:root {
    --bg: #f8f9fb;
    --panel: #ffffff;
    --border: #e3e7ee;
    --text: #1e2433;
    --muted: #6f7891;
    --accent: #4285f4;
    --radius: 14px;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

body {
    background-color: #ffffff;
}

/* 상품 헤더 섹션 (이미지 + 상품명/설명) */
.product-header-section {
    display: flex;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.product-thumbnail {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-thumbnail .no-image {
    color: #999;
    font-size: 14px;
}

.product-header-info {
    flex: 1;
    min-width: 0;
}

.product-header-info .product-name {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-header-info .product-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 2컬럼 레이아웃 (좌측: 옵션, 우측: 가격 sticky) */
.product-layout {
    display: flex;
    gap: 32px;
    padding: 0 24px 24px 24px;
    position: relative;
}

.product-main-column {
    flex: 1;
    min-width: 0;
}

.product-price-column {
    width: 340px;
    flex-shrink: 0;
}

/* 견적 컨테이너 (sticky) */
.estimate-container {
    position: sticky;
    top: 24px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* 브레드크럼 네비게이션 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 24px 16px 24px;
    font-size: 14px;
    color: var(--muted);
}

.breadcrumb-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: var(--accent);
}

.breadcrumb-separator {
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb-current {
    color: var(--text);
    font-weight: 500;
}

/* .product-main-section은 더 이상 사용하지 않음 - preview-card가 직접 page-wrap 안에 위치 */

.product-thumbnail-container .main-thumbnail {
    width: 100%;
    border-radius: var(--radius);
}

.product-order-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.best-seller-badge {
    background-color: #E8EFFF;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.product-description {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.price-tier-card,
.order-card {
    background: var(--bg); /* Slightly different background for cards inside */
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.price-tier-card h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text);
}

.price-tier-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.price-tier-table th,
.price-tier-table td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid var(--border);
}

.price-tier-table th {
    color: var(--muted);
    font-weight: 500;
}

.price-tier-table tr:last-child td {
    border-bottom: none;
}

.price-tier-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-size: 16px;
    font-weight: 500;
}

.quantity-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
}

.quantity-input-wrapper button {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.quantity-input-wrapper button:hover {
    background-color: #f9fafb;
}

.quantity-input-wrapper button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input-wrapper input {
    width: 80px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 16px;
    font-weight: 500;
    background: transparent;
    color: var(--text);
    height: 48px;
    -moz-appearance: textfield;
}

.quantity-input-wrapper input::-webkit-outer-spin-button,
.quantity-input-wrapper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.total-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
    margin-top: 10px;
}

.total-price-section span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.total-price-section span:last-child {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent);
}

.action-buttons {
    margin-top: 12px;
}

.btn.primary {
    width: 100%;
    background: #222;
    color: #fff;
    display: block;
    text-align: center;
    padding: 14px 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn.primary:hover {
    background: #333;
}

/* Content Section: Detail Images */
.product-content-section {
    margin-top: 48px;
    text-align: center;
}

.content-divider {
    border-top: 1px solid var(--border);
    margin: 48px auto;
    width: 80%;
}

.product-content-section h2 {
    font-size: 24px;
    margin-bottom: 32px;
    color: var(--text);
}

.product-detail-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.product-detail-images img {
    max-width: 800px;
    width: 100%;
    display: block;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Product Options Section (관리자 페이지 스타일 적용) */
.product-options-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.option-group {
    padding-bottom: 0;
    border-bottom: none;
}

.option-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.option-group-header .title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.multi-option-controls {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

.btn-add-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #222;
    border: 1px solid #222;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-option svg {
    width: 14px;
    height: 14px;
}

.btn-add-option:hover {
    background: #f5f5f5;
}

.option-instances {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.option-instance {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    position: relative;
    transition: all 0.2s;
}

.option-instance:hover {
    border-color: transparent;
    box-shadow: none;
}

.instance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.instance-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
}

.instance-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.btn-remove-option {
    background: transparent;
    color: #F24A4A;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-remove-option:hover {
    background: #FEF2F2;
}

.option-group-header {
    margin-bottom: 12px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

.option-group-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-group-header p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.attribute-selector {
    margin-bottom: 20px;
}
.attribute-selector:last-child {
    margin-bottom: 0;
}

.option-quantity-selector {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: #f0f2f5; /* A slightly different background */
    border-radius: 10px;
}

.option-quantity-selector .attribute-label {
    margin-bottom: 10px; /* Override default margin */
}

/* 옵션 내 수량 입력기 - 메인 수량 입력기와 동일한 스타일 */
.option-quantity-selector .quantity-input-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: white;
    overflow: hidden;
}

.option-quantity-selector .quantity-input-wrapper button {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.option-quantity-selector .quantity-input-wrapper button:hover {
    background-color: #f9fafb;
}

.option-quantity-selector .quantity-input-wrapper input {
    width: 60px;
    text-align: center;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    color: var(--text);
    height: 40px;
    -moz-appearance: textfield;
}

.option-quantity-selector
    .quantity-input-wrapper
    input::-webkit-outer-spin-button,
.option-quantity-selector
    .quantity-input-wrapper
    input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Image Select Style (관리자 페이지와 동일한 스타일) */
.image-select-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.image-select-item {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: var(--panel);
}

.image-select-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    background-color: #FAFAFA;
}

.image-select-item.selected {
    border-color: var(--accent);
    background-color: #E8EFFF;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.image-select-item img {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.image-select-item .item-info {
    text-align: center;
}

.image-select-item .item-value {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.image-select-item .item-description {
    font-size: 12px;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
}

/* Dropdown Style (Figma 디자인 적용) */
.dropdown-container {
    position: relative;
    margin-top: 0;
}

.dropdown-select {
    width: 100%;
    padding: 10px 10px 10px 15px;
    border-radius: 5px;
    border: 1px solid #d9d9d9;
    background-color: white;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10L12 15L17 10' stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 24px 24px;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
    line-height: 1.25;
}

.dropdown-select:hover {
    border-color: #bbb;
}

.dropdown-select:focus {
    outline: none;
    border-color: #4285f4;
    color: #4285f4;
}

.dropdown-select:focus option {
    color: #555;
}

.dropdown-select option {
    padding: 10px 15px;
    color: #555;
}

.dropdown-select option:checked {
    color: #4285f4;
    background: #f5f8ff;
}

/* Input Box Style */
.input-box-container {
    position: relative;
    margin-top: 10px;
}

.input-box-text {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--panel);
    font-size: 15px;
    color: var(--text);
}

.input-box-text::placeholder {
    color: var(--muted);
}

.size-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-box-width,
.input-box-height {
    width: 100px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--panel);
    font-size: 15px;
    color: var(--text);
    text-align: center;
    -moz-appearance: textfield;
}

.input-box-width::-webkit-outer-spin-button,
.input-box-width::-webkit-inner-spin-button,
.input-box-height::-webkit-outer-spin-button,
.input-box-height::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.size-input-container span {
    color: var(--muted);
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
}

/* Helper class to hide conditional options */
.hidden {
    display: none;
}

/* Styling for nested (child) options */
.child-attribute-container {
    margin-top: 20px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--border);
}

/* 디자인 방법 선택하기 레이어 팝업 */
.layer-popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.inner-popup {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    max-width: 757px;
    margin: 0 40px;
}
.inner-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding: 20px 30px;
    background: #f8f8f8;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.inner-popup .popup-header .pop-title {
    font-size: 16px;
    font-weight: 500;
    color: #252525;
}
.inner-popup .popup-header img {
    cursor: pointer;
}
.inner-popup .popup-content {
    display: flex;
    justify-content: space-around;
    padding: 20px 30px 30px 30px;
    gap: 20px;
    background: #f2f2f2;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
@media screen and (max-width: 700px) {
    .inner-popup .popup-content {
        flex-direction: column;
    }
}
.inner-popup .popup-content.pd5 {
    padding: 5px;
}
.inner-popup .popup-content .content-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    text-align: left;
    padding: 19px 26px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #d9d9d9;
}
.inner-popup .popup-content .content-item img {
    margin-bottom: 50px;
}
.inner-popup .popup-content .content-item .content-title {
    font-size: 18px;
    font-weight: 700;
    color: #4285f4;
    margin-bottom: 5px;
}
.inner-popup .popup-content .content-item .content-description {
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    line-height: 1.5;
}

/* 디자인 파일 업로드 레이어 팝업 */
.inner-popup .popup-content .content-job-info {
    display: flex;
    flex-direction: column;
}
.inner-popup .popup-content .content-job-info .job-info-header {
    padding-bottom: 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid #d9d9d9;
}
.inner-popup .popup-content .content-job-info .job-info-header .job-title {
    font-size: 16px;
    font-weight: 700;
    color: #555;
}
.inner-popup .popup-content .content-job-info .job-notes {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.5;
}
.inner-popup .popup-content .file-upload-area {
    padding: 40px 50px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.inner-popup .popup-content .file-upload-area .btn-file-upload {
    text-wrap: nowrap;
    background: var(--accent);
    color: #fff !important;
    padding: 10px 60px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    margin-top: 10px;
    margin-bottom: 13px;
}
.inner-popup .popup-content .file-upload-area .btn-file-upload:hover {
    background: #357ae8;
}
.inner-popup .popup-content .file-upload-area .file-type-notice {
    font-size: 14px;
    font-weight: 500;
    color: #aeaeae;
}

/* 내 디자인 불러오기 레이어 팝업 */
.inner-popup .popup-content .tab-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.inner-popup .popup-content .tab-wrap .tab-menu {
    display: flex;
    align-items: center;
}
.inner-popup .popup-content .tab-wrap .tab-menu .tab-item {
    padding: 10px;
    width: 50%;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #aeaeae;
    width: 100%;
    cursor: pointer;
    border-bottom: 2px solid #d9d9d9;
}
.inner-popup .popup-content .tab-wrap .tab-menu .tab-item.on {
    color: #4285f4;
    border-bottom: 2px solid #4285f4;
    background: #fff;
}
.inner-popup .popup-content .tab-wrap .tab-content {
    padding: 5px;
    width: 100%;
    max-width: 747px;
    height: 275px;
    background: #fff;
}
.inner-popup .popup-content .tab-wrap .tab-content .no-design {
    font-size: 16px;
    font-weight: 500;
    color: #787a7d;
    text-align: center;
    line-height: 275px;
}
.inner-popup .popup-content .tab-wrap .tab-content .design-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    overflow-y: auto;
    height: 275px;
}
.inner-popup .popup-content .tab-wrap .tab-content .design-list .design-item {
    width: 130px;
    height: 163px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.inner-popup
    .popup-content
    .tab-wrap
    .tab-content
    .design-list
    .design-item
    .design-thumb {
    position: relative;
    border-radius: 5px;
    margin-bottom: 5px;
    width: 110px;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.inner-popup
    .popup-content
    .tab-wrap
    .tab-content
    .design-list
    .design-item
    .design-thumb
    .img-thumb {
    width: 110px;
    height: 110px;
    /* border-radius: 5px; */
    object-fit: contain;
    border: 1px solid #d9d9d9;
}
.inner-popup
    .popup-content
    .tab-wrap
    .tab-content
    .design-list
    .design-item
    .design-thumb
    .check-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    background: rgba(66, 133, 244, 0.25);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}
.inner-popup
    .popup-content
    .tab-wrap
    .tab-content
    .design-list
    .design-item
    .design-thumb
    .check-icon.on {
    display: flex;
}
.inner-popup
    .popup-content
    .tab-wrap
    .tab-content
    .design-list
    .design-item
    .design-title {
    font-size: 11px;
    font-weight: 600;
    color: #aeaeae;
}
.inner-popup
    .popup-content
    .tab-wrap
    .tab-content
    .design-list
    .design-item
    .design-date {
    font-size: 11px;
    font-weight: 600;
    color: #aeaeae;
    line-height: 1.3;
}
.inner-popup .popup-content .tab-wrap .tab-bottom {
    padding: 10px;
    text-align: right;
}
.inner-popup .popup-content .tab-wrap .tab-bottom .btn-edit-design {
    padding: 10px 27px;
    background: #aeaeae;
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    border-radius: 10px;
}
.inner-popup .popup-content .tab-wrap .tab-bottom .btn-edit-design.on {
    background: var(--accent);
}
.inner-popup .popup-content .tab-wrap .tab-bottom .btn-edit-design.on:hover {
    background: #357ae8;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   PreviewType별 옵션 UI 스타일
   ============================================ */

/* SELECT_BOX: 버튼 형태 선택 (관리자 페이지와 동일한 스타일) */
.select-box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.select-box-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: white;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.select-box-btn:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.select-box-btn.selected {
    border-color: var(--accent);
    background-color: var(--accent);
    color: white;
}

.select-box-btn .price-badge {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.select-box-btn.selected .price-badge {
    color: white;
}

/* CHECK_BOX: 체크박스 (다중 선택) - 관리자 페이지와 동일한 스타일 */
.checkbox-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background-color: var(--panel);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.checkbox-item:hover {
    border-color: var(--accent);
    background-color: #FAFAFA;
}

.checkbox-item:has(.checkbox-input:checked) {
    border-color: var(--accent);
    background-color: #E8EFFF;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-label-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.checkbox-label-text .price-badge {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

/* INPUT_NUMBER, INPUT_STRING: 입력 필드 (관리자 페이지 스타일 적용) */
.input-number,
.input-string {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background-color: var(--panel);
    font-size: 13px;
    color: var(--text);
    transition: border-color 0.2s;
}

.input-number:focus,
.input-string:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.input-number::placeholder,
.input-string::placeholder {
    color: #BBBBBB;
}

/* 숫자 입력 스피너 숨기기 */
.input-number::-webkit-outer-spin-button,
.input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-number {
    -moz-appearance: textfield;
}

/* INPUT_DATE_TIME: 날짜/시간 입력 */
.input-datetime {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--panel);
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s;
}

.input-datetime:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* 이미지 없음 플레이스홀더 */
.no-image-placeholder {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 6px;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

/* 이미지 선택 항목 가격 표시 */
.image-select-item .item-price {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* 일반 가격 뱃지 스타일 (관리자 페이지 스타일 적용) */
.price-badge {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
    padding: 2px 6px;
    background-color: #E8EFFF;
    border-radius: 4px;
    margin-left: 4px;
}

/* 속성 라벨 스타일 (관리자 페이지 스타일 적용) */
.attribute-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.attribute-description {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

/* ============================================
   백오피스 견적식 미리보기 통합 스타일
   ============================================ */

/* 수량 섹션 (위로 이동) */
.quantity-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.quantity-section .quantity-input-wrapper {
    margin-top: 10px;
}

/* 용지/크기/인쇄 선택 섹션 */
.paper-selection-section,
.size-selection-section,
.ink-selection-section {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

/* 용지 종류 선택기 */
.paper-type-selector {
    margin-bottom: 16px;
}

/* 평량 선택기 */
.paper-grammage-selector {
    margin-top: 16px;
    margin-bottom: 16px;
}

/* 페이지 수 선택기 */
.page-count-selector {
    margin-top: 16px;
}

/* 용지 아이콘 */
.paper-icon {
    font-size: 24px;
}

/* 사이즈 미리보기 아이콘 */
.size-preview {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 8px;
}

.size-icon {
    width: 30px;
    height: 40px;
    border: 2px solid #888;
    border-radius: 2px;
    background: #fff;
    position: relative;
}

.size-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #ccc;
    border-radius: 1px;
}

/* 커스텀 사이즈 입력 */
.custom-size-input {
    margin-top: 20px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.custom-size-input .attribute-label {
    margin-bottom: 12px;
}

.custom-size-input .size-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-size-input .size-unit {
    font-size: 14px;
    color: var(--muted);
    font-weight: 500;
}

/* 직접입력 안내 텍스트 */
.custom-size-hint {
    font-size: 12px;
    color: #888;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

/* 인쇄 옵션 섹션 */
.ink-config-selector {
    margin-bottom: 16px;
}

.print-side-selector {
    margin-top: 16px;
}

.print-side-selector .attribute-label {
    margin-bottom: 10px;
}

/* 인쇄 옵션 버튼 확장 스타일 */
.ink-config-btn,
.print-side-btn {
    min-width: 80px;
    text-align: center;
    justify-content: center;
}

/* Order Card 수정 (수량 섹션 제거됨) */
.order-card .total-price-section {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* 선택된 크기 템플릿 강조 */
.size-template-btn.selected .size-icon {
    border-color: var(--accent);
}

/* 용지/크기 선택 아이템 호버 효과 강화 */
.paper-type-btn:hover,
.size-template-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .custom-size-input .size-input-container {
        flex-wrap: wrap;
    }

    .custom-size-input .input-box-width,
    .custom-size-input .input-box-height {
        width: 100%;
        flex: 1;
        min-width: 80px;
    }
}

/* ===== 선택 요약 미리보기 섹션 (관리자 페이지 스타일 적용) ===== */
.selection-summary-section {
    background: #f9f9f9;
    border: none;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.selection-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 0;
    border-bottom: none;
}

.selection-summary-header .summary-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-summary-header .summary-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background-color: var(--accent);
    border-radius: 2px;
}

.selection-summary-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #eee;
    transition: all 0.2s ease;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item:hover {
    border-color: #eee;
    background-color: transparent;
}

.summary-item .summary-label {
    font-size: 13px;
    font-weight: 500;
    color: #555;
    flex-shrink: 0;
}

.summary-item .summary-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
}

/* ===== 양방향 필터링: 비활성화 스타일 ===== */
.paper-type-btn.disabled,
.size-template-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

.paper-type-btn.disabled:hover,
.size-template-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 비활성화된 옵션에 X 표시 오버레이 */
.paper-type-btn.disabled::after,
.size-template-btn.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 45%,
        rgba(0, 0, 0, 0.1) 45%,
        rgba(0, 0, 0, 0.1) 55%,
        transparent 55%
    );
    pointer-events: none;
    border-radius: inherit;
}

/* 용지/크기 선택 아이템에 position: relative 추가 */
.paper-type-btn,
.size-template-btn {
    position: relative;
}

/* ===== 선택 요약 섹션 반응형 ===== */
@media (max-width: 768px) {
    .selection-summary-section {
        padding: 14px 16px;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .summary-item .summary-value {
        text-align: left;
    }
}

/* ============================================
   systemAttributeType별 특화 UI 스타일
   (관리자 페이지와 기능적 일관성 유지)
   ============================================ */

/* ===== BINDING_TYPE: 제본 방식 (120x120px 그리드 박스) ===== */
.binding-type-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.binding-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
    padding: 16px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background-color: var(--panel);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
}

.binding-type-item:hover {
    border-color: var(--accent);
    background-color: #E8EFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.binding-type-item.selected {
    border-color: var(--accent);
    background-color: #E8EFFF;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

.binding-type-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.binding-type-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 10px;
}

.binding-type-icon .binding-icon {
    font-size: 32px;
}

.binding-type-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.binding-type-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

/* ===== BINDING_DIRECTION: 제본 방향 (Pill 형태) ===== */
.binding-direction-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.binding-direction-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--border);
    border-radius: 50px;
    background-color: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.binding-direction-pill:hover {
    border-color: var(--accent);
    background-color: #E8EFFF;
}

.binding-direction-pill.selected {
    border-color: var(--accent);
    background-color: #E8EFFF;
    color: var(--accent);
}

.binding-direction-pill .direction-icon {
    font-size: 16px;
    font-weight: bold;
}

.binding-direction-pill .direction-name {
    font-weight: 600;
}

/* ===== PAPER_TYPE (옵션 내): 용지 종류 + 색상 샘플 ===== */
.paper-type-option-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.paper-type-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background-color: var(--panel);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.paper-type-option-item:hover {
    border-color: var(--accent);
    background-color: #FAFAFA;
    transform: translateY(-2px);
}

.paper-type-option-item.selected {
    border-color: var(--accent);
    background-color: #E8EFFF;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

.paper-type-option-preview {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.paper-color-sample {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid #d0d0d0;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.paper-icon-placeholder {
    font-size: 28px;
}

.paper-type-option-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.paper-type-option-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* ===== GRAMMAGE: 평량 (Pill 형태 태그) ===== */
.grammage-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.grammage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background-color: #f5f5f5;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.grammage-pill:hover {
    border-color: var(--accent);
    background-color: #E8EFFF;
}

.grammage-pill.selected {
    border-color: var(--accent);
    background-color: #E8EFFF;
    color: var(--accent);
}

.grammage-pill .grammage-value {
    font-weight: 600;
}

/* ===== PRINT_COLOR_MODE: 인쇄 색상 모드 (자주색 스킴) ===== */
.print-color-mode-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.print-color-mode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background-color: var(--panel);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.print-color-mode-item:hover {
    border-color: #7B1FA2;
    background-color: #EDE7F6;
}

.print-color-mode-item.selected {
    border-color: #7B1FA2;
    background-color: #EDE7F6;
    box-shadow: 0 0 0 2px rgba(123, 31, 162, 0.2);
}

.print-color-mode-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3e5f5;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 24px;
}

.print-color-mode-item.selected .print-color-mode-icon {
    background: #CE93D8;
}

.print-color-mode-info {
    text-align: center;
}

.print-color-mode-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.print-color-mode-item.selected .print-color-mode-name {
    color: #7B1FA2;
}

/* ===== END_PAPER_PLACEMENT: 면지 위치 ===== */
.end-paper-placement-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.end-paper-placement-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.end-paper-placement-btn:hover {
    border-color: var(--accent);
    background-color: #E8EFFF;
}

.end-paper-placement-btn.selected {
    border-color: var(--accent);
    background-color: #E8EFFF;
    color: var(--accent);
}

/* ===== INSERT_PAGE_NUMBER: 간지 삽입 페이지 ===== */
.insert-page-number-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.insert-page-number-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 10px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--panel);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.insert-page-number-btn:hover {
    border-color: var(--accent);
    background-color: #E8EFFF;
}

.insert-page-number-btn.selected {
    border-color: var(--accent);
    background-color: var(--accent);
    color: white;
}

.insert-page-number-btn .page-number {
    font-weight: 700;
}

/* ===== 비례 크기 아이콘 (용지 크기 시각화) ===== */
.proportional-size-icon {
    border: 2px solid #888;
    border-radius: 3px;
    background: #fff;
    position: relative;
    min-width: 20px;
    min-height: 20px;
    transition: all 0.2s ease;
}

.proportional-size-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: #ccc;
    border-radius: 1px;
}

.size-template-btn.selected .proportional-size-icon {
    border-color: var(--accent);
    background-color: #E8EFFF;
}

.size-dimensions {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

/* 크기 템플릿 컨테이너 */
.size-template-container {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}

/* ===== DISABLE 상태 스타일 (트리거 조건 미충족 시) ===== */
.attribute-selector.disabled,
.attribute-selector[data-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.attribute-selector.disabled::before,
.attribute-selector[data-disabled="true"]::before {
    content: '조건 미충족';
    display: block;
    font-size: 11px;
    color: #888;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    width: fit-content;
}

/* 비활성화된 개별 옵션 항목 */
.binding-type-item.disabled,
.binding-direction-pill.disabled,
.paper-type-option-item.disabled,
.grammage-pill.disabled,
.print-color-mode-item.disabled,
.end-paper-placement-btn.disabled,
.insert-page-number-btn.disabled,
.select-box-btn.disabled,
.image-select-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%);
}

/* ===== systemAttributeType별 반응형 스타일 ===== */
@media (max-width: 768px) {
    .binding-type-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .binding-type-item {
        min-height: 100px;
        padding: 12px 10px;
    }

    .binding-type-icon {
        width: 48px;
        height: 48px;
    }

    .binding-type-icon .binding-icon {
        font-size: 24px;
    }

    .paper-type-option-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .print-color-mode-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .binding-direction-pill,
    .grammage-pill {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .binding-type-container {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .binding-type-item {
        min-height: 90px;
        padding: 10px 8px;
    }

    .binding-type-name {
        font-size: 12px;
    }

    .paper-type-option-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   책자 상품 전용 스타일 (pod_24_frontend 동기화)
   ============================================ */

/* 책자 상품 용지 섹션 */
.book-paper-section {
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
}

.book-paper-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 12px;
}

.attribute-label-small {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

/* 용지 선택 버튼 (Pill 형태) */
.paper-buttons {
    gap: 8px !important;
}

.paper-pill-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: white;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.paper-pill-btn:hover {
    border-color: #bbb;
}

.paper-pill-btn.selected {
    border-color: #4285F4;
    background-color: #E8EFFF;
    color: #4285F4;
}

/* 페이지 수 입력 섹션 */
.page-count-section {
    margin-bottom: 16px;
}

.page-count-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    transition: border-color 0.2s;
}

.page-count-input:focus {
    outline: none;
    border-color: #4285F4;
}

.page-count-input::placeholder {
    color: #aaa;
}

/* 크기 선택 그리드 (시각적 아이콘 포함) */
.size-template-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.size-template-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.size-template-card:hover {
    border-color: #bbb;
    transform: translateY(-2px);
}

.size-template-card.selected {
    border-color: #4285F4;
    background-color: #E8EFFF;
}

/* 크기 아이콘 래퍼 */
.size-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

/* 동적 종이 아이콘 */
.size-paper-icon {
    position: relative;
    min-width: 20px;
    min-height: 20px;
}

.size-paper-icon .paper-shape {
    position: absolute;
    inset: 0;
    border: 2px solid #999;
    background: white;
    border-radius: 2px;
    clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}

.size-paper-icon .paper-fold {
    position: absolute;
    top: 0;
    left: 0;
}

.size-template-card.selected .paper-shape {
    border-color: #4285F4;
}

/* 직접입력 아이콘 */
.custom-size-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 20px;
    color: #888;
}

.size-template-card.selected .custom-size-icon {
    background: #4285F4;
    color: white;
}

/* 크기 라벨 */
.size-label {
    font-size: 11px;
    color: #333;
    text-align: center;
    margin-top: 2px;
}

.size-template-card.selected .size-label {
    color: #4285F4;
    font-weight: 600;
}

/* 가격 계산 버튼 */
.calculate-price-btn {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    background: #222;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.calculate-price-btn:hover {
    background: #444;
}

/* 반응형 */
@media (max-width: 768px) {
    .size-template-grid {
        gap: 8px;
    }

    .size-template-card {
        min-width: 70px;
        padding: 6px;
    }

    .size-icon-wrapper {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   관리자 페이지 미리보기 스타일 동기화
   (pod_24_frontend ProductSystemDetailPage.tsx)
   ============================================ */

/* 기존 preview-layout은 더 이상 사용하지 않음 - 전체 너비 레이아웃으로 변경됨 */

/* .preview-card는 더 이상 사용하지 않음 - page-wrap에 직접 콘텐츠 배치 */

/* 상품 정보 영역 */
.product-info {
    padding: 0 0 20px 0;
    text-align: left;
}

.product-info .preview-product-name,
.product-info .product-name {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    text-align: left;
}

.product-info .preview-product-description,
.product-info .product-description {
    font-size: 14px;
    color: #888;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

/* 옵션 영역 */
.preview-options {
    padding: 0;
    max-height: none;
    overflow-y: visible;
    text-align: left;
}

.preview-options .option-section {
    margin-bottom: 20px;
}

.preview-options .option-section:last-child {
    margin-bottom: 0;
}

/* 옵션 섹션 스타일 */
.product-options-section {
    padding: 0;
    background: transparent;
    border: none;
    margin-top: 0;
}

.product-options-section .quantity-section {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.product-options-section .option-group {
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 16px;
}

.product-options-section .option-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product-options-section .option-group-header {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 10px;
}

/* 가격 영역 (estimate-container 내부) */
.estimate-container .quote-inquiry-inline-form,
.estimate-container .price-breakdown,
.estimate-container .price-subtotal-area,
.estimate-container .total-price-row {
    /* estimate-container 내부 스타일 */
}


/* 가격 세부내역 */
.price-breakdown {
    margin-bottom: 12px;
}

.price-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 6px;
}

.price-breakdown-item:last-child {
    margin-bottom: 0;
}

.price-breakdown-item .breakdown-label {
    color: #666;
}

.price-breakdown-item .breakdown-value {
    color: #333;
    font-weight: 500;
}

/* 옵션 그룹 (optionName + valueName들) */
.price-breakdown-group {
    margin-bottom: 10px;
}

.price-breakdown-group:last-child {
    margin-bottom: 0;
}

.breakdown-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.breakdown-group-label {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.breakdown-group-price {
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.breakdown-group-value {
    font-size: 11px;
    color: #999;
    padding-left: 2px;
    line-height: 1.6;
}

/* 소계/부가세 영역 */
.price-subtotal-area {
    margin-bottom: 12px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
}

.price-subtotal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 4px;
}

.price-subtotal-item .subtotal-label {
    color: #888;
}

.price-subtotal-item .subtotal-value {
    color: #333;
}

/* 세네카 두께 (책자 상품용) */
.spine-thickness-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    background: #E8EFFF;
    border-radius: 4px;
    font-size: 11px;
    color: #4285F4;
}

/* 총금액 영역 */
.total-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.total-price-row .total-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.total-price-row .total-value {
    font-size: 20px;
    font-weight: 700;
    color: #4285F4;
}

/* 가격 대신 안내 메시지가 표시될 때 */
.total-price-row .total-value:not(:empty) {
    /* 숫자가 아닌 경우 (옵션을 선택하세요 등) 다른 스타일 적용 */
}

/* 안내 메시지 스타일 - JS에서 class 추가 시 적용 */
.total-price-row .total-value.guide-message {
    font-size: 14px;
    font-weight: 500;
    color: #888;
}

/* 가격 계산 버튼 */
.btn-calculate-price {
    width: 100%;
    height: 42px;
    margin-top: 12px;
    background: #222;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-calculate-price:hover {
    background: #444;
}

.btn-calculate-price:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 가격 로딩 상태 */
.price-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    color: #888;
    font-size: 13px;
}

.price-loading .spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e0e0;
    border-top-color: #4285F4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* 2컬럼 레이아웃 반응형 */
@media (max-width: 1024px) {
    .product-layout {
        flex-direction: column;
        gap: 24px;
    }

    .product-price-column {
        width: 100%;
    }

    .estimate-container {
        position: static;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 16px 16px 12px 16px;
    }

    .product-layout {
        padding: 0 16px 16px 16px;
    }

    .product-header-section {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .product-thumbnail {
        width: 100%;
        height: 250px;
    }

    .product-header-info .product-name {
        font-size: 22px;
    }

    .product-header-info .product-description {
        font-size: 14px;
    }

    .estimate-container {
        padding: 16px;
        border-radius: 12px;
    }

    .total-price-row .total-value {
        font-size: 16px;
    }
}

/* ============================================
   Figma 디자인 기반 스타일 (POD24 Design)
   ============================================ */

/* 옵션 행 스타일 (레이블 150px + 입력 flex-1) */
.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.option-row:last-child {
    margin-bottom: 0;
}

.option-row .option-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    width: 150px;
    flex-shrink: 0;
    line-height: 1.25;
}

.option-row .option-input {
    flex: 1;
    min-width: 0;
}

/* Figma 스타일 드롭다운 버튼 */
.figma-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 10px 10px 15px;
    background: white;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    height: 44px;
}

.figma-dropdown:hover {
    border-color: #bbb;
}

.figma-dropdown:focus,
.figma-dropdown.active {
    border-color: #4285f4;
    outline: none;
}

.figma-dropdown .dropdown-text {
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    text-align: left;
    line-height: 1.25;
}

.figma-dropdown.active .dropdown-text,
.figma-dropdown:focus .dropdown-text {
    color: #4285f4;
}

.figma-dropdown .dropdown-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.figma-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.figma-dropdown .dropdown-arrow svg {
    width: 14px;
    height: 7px;
}

/* 드롭다운 메뉴 (열린 상태) */
.figma-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #4285f4;
    border-radius: 5px;
    overflow: hidden;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.figma-dropdown-menu.show {
    display: block;
}

.figma-dropdown-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    height: 44px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    border-bottom: 1px solid #d9d9d9;
    transition: background-color 0.2s;
}

.figma-dropdown-menu .menu-item:last-child {
    border-bottom: none;
}

.figma-dropdown-menu .menu-item:hover {
    background-color: #f5f8ff;
}

.figma-dropdown-menu .menu-item.selected {
    color: #4285f4;
    background-color: #f5f8ff;
}

/* 후가공 체크박스 스타일 (Figma 디자인) */
.figma-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    align-items: center;
}

.figma-checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.figma-checkbox {
    width: 20px;
    height: 20px;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.figma-checkbox.checked {
    background: #4285f4;
    border-color: #4285f4;
}

.figma-checkbox .check-icon {
    display: none;
    width: 12px;
    height: 10px;
}

.figma-checkbox.checked .check-icon {
    display: block;
}

.figma-checkbox-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.25;
}

/* 총 금액 영역 (Figma 스타일) */
.figma-total-section {
    background: #f5f8ff;
    border-radius: 8px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.figma-total-price {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #252525;
    line-height: 1.25;
}

.figma-next-btn {
    width: 160px;
    height: 40px;
    background: #4285f4;
    border: none;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.figma-next-btn:hover {
    background: #3367d6;
}

/* 참고사항 스타일 */
.note-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.note-bullet {
    width: 4px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-bullet::after {
    content: '';
    width: 4px;
    height: 4px;
    background: #555;
    border-radius: 50%;
}

.note-text {
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    line-height: 1.4;
}

/* 상품 헤더 스타일 (Figma) */
.product-title-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid #d9d9d9;
    margin-bottom: 20px;
}

.product-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5px;
}

.product-title-name {
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #252525;
    line-height: 1.25;
}

.product-guide-link {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4285f4;
    text-decoration: underline;
    cursor: pointer;
}

.product-title-desc {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #757575;
    line-height: 1.25;
}

/* 옵션 섹션 구분선 */
.option-divider {
    width: 100%;
    height: 1px;
    background: #d9d9d9;
    margin: 20px 0;
}

/* 후가공 하위 옵션 */
.sub-option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.sub-option-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sub-option-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    width: 50px;
    flex-shrink: 0;
}

.sub-option-input {
    flex: 1;
}
