
/* 총금액 및 주문하기 섹션 */
.total-amount-and-order {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1200px;
    height: 80px;
    padding: 20px 25px 20px 25px;
    background: #F5F8FF;
    border-radius: 8px;
    margin-top: 30px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.total-amount-and-order .amount-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.total-amount-and-order .total-amount {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

.total-amount-and-order .total-amount .label {
    font-size: 16px;
    font-weight: 700;
    color: #252525;
}

.total-amount-and-order .total-amount .value {
    font-size: 16px;
    font-weight: 700;
    color: #252525;
}

.total-amount-and-order .amount-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: #787A7D;
}

.total-amount-and-order .amount-item .label {
    font-weight: 500;
    color: #787A7D;
}

.total-amount-and-order .amount-item .value {
    font-weight: 500;
    color: #787A7D;
}

.total-amount-and-order .amount-item .icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #D9D9D9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #787A7D;
    line-height: 1;
    flex-shrink: 0;
}

.total-amount-and-order .action-buttons {
    display: flex;
    gap: 12px;
}

.total-amount-and-order .btn-quote {
    height: 40px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #787A7D;
    cursor: pointer;
}

.total-amount-and-order .btn-quote:hover {
    background: #f5f5f5;
}

.total-amount-and-order .btn-order {
    width: 160px;
    height: 40px;               
    padding: 8px 20px;
    background: #AEAEAE;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.total-amount-and-order .btn-order:hover {
    background: #4285F4;
}

/* 장바구니 리스트 섹션 */
.cart-list {
    background: #fff;
    padding: 0;
    margin-bottom: 110px;
}

.cart-list .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-list .cart-header .header-left {
    display: flex;
    align-items: center;
}

.cart-list .select-all {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #757575;
    cursor: pointer;
}

.cart-list .select-all input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    background: #FFFFFF;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.cart-list .select-all input[type="checkbox"]:hover {
    border-color: #4285F4;
    background: #F5F8FF;
}

.cart-list .select-all input[type="checkbox"]:checked {
    border-color: #4285F4;
    background: #4285F4;
}

.cart-list .select-all input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: 2px solid #FFFFFF;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.cart-list .cart-header .sep {
    display: inline-block;
    color: #C9CDD3;
    font-size: 16px;
    line-height: 1;
    margin: 0 6px;
}

.cart-list .btn-delete-selected {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #757575;
    cursor: pointer;
}

.cart-list .btn-delete-selected:hover {
    color: #252525;
}

/* 드롭다운 메뉴 스타일 */
.cart-list .cart-header .menu-wrapper {
    position: relative;
}

.cart-list .cart-header .btn-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-list .cart-header .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 16px;
    min-width: 136px;
    z-index: 1000;
    overflow: hidden;
}

.cart-list .cart-header .dropdown-menu.active {
    display: block;
}

.cart-list .cart-header .dropdown-menu .dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border-bottom: 1px solid #D9D9D9;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: #757575;
    cursor: pointer;
}

.cart-list .cart-header .dropdown-menu .dropdown-item:hover {
    background: #F2F2F2;
}

.cart-list .cart-header .dropdown-menu .dropdown-item:first-child {
    padding-top: 12px;
}

.cart-list .cart-header .dropdown-menu .dropdown-item:last-child {
    padding-bottom: 12px;
}

/* 장바구니 아이템 */
.cart-items {
    border-top: 1px solid #D9D9D9;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cart-item {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 30px 0;
    border-bottom: 1px solid #F2F2F2;
    position: relative;
}

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

.cart-item .item-left {
    display: flex;
    align-items: center;
}

.cart-item .item-checkbox {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #D9D9D9;
    border-radius: 4px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-item .item-checkbox:hover {
    border-color: #4285F4;
    background: #F5F8FF;
}

.cart-item .item-checkbox:checked {
    background: #4285F4;
    border-color: #4285F4;
}

.cart-item .item-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: 2px solid #FFFFFF;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cart-item .item-image {
    position: relative;
    width: 180px;
    height: 180px;
    background: #F2F2F2;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8BBC2;
    font-size: 24px;
}

.cart-item .item-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item .product-type-name {
    font-size: 16px;
    font-weight: 500;
    color: #252525;
}

.cart-item .product-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item .spec-item {
    font-size: 14px;
    font-weight: 500;
    color: #555555;
}

.cart-item .spec-item .spec-label {
    font-weight: 500;
    margin-right: 8px;
}

.cart-item .spec-item .spec-value {
    font-weight: 400;
}

.cart-item .v-divider {
    width: 1px;
    background: #E6E8EC;
}

.cart-item .btn-remove {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cart-item .btn-remove:hover {
    color: #252525;
}

.cart-item .item-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    width: 220px;
    padding: 0 20px;
}

.cart-item .btn-option,
.cart-item .btn-design {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.cart-item .btn-option:hover,
.cart-item .btn-design:hover {
    background: #f5f5f5;
}

.cart-item .item-price-section {
    display: none;
}

.cart-item .item-order {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 220px;
    padding: 0 20px;
}

.cart-item .item-price {
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.cart-item .btn-order-now {
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #4285F4;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #4285F4;
    cursor: pointer;
    height: 50px;
}

/* 상품 복제 확인 모달 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    width: 392px;
    height: 189px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #555555;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: #252525;
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 24px 24px 24px;
    box-sizing: border-box;
}

.modal-message {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    color: #555555;
    text-align: center;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.modal-buttons .btn-cancel {
    flex: 1;
    height: 50px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #555555;
    cursor: pointer;
}

.modal-buttons .btn-cancel:hover {
    background: #F5F5F5;
}

.modal-buttons .btn-confirm {
    flex: 1;
    height: 50px;
    background: #4285F4;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
}

.modal-buttons .btn-confirm:hover {
    background: #357AE8;
}

/* PDF 뷰어 모달 */
.modal-container.pdf-viewer {
    width: 80vw;
    height: 90vh;
    max-width: 1000px;
    padding: 20px;
}

.modal-container.pdf-viewer .modal-content {
    padding: 0;
    height: calc(100% - 70px); /* 버튼 영역 높이 제외 */
}

.modal-container.pdf-viewer iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-container.pdf-viewer .modal-buttons {
    padding-top: 20px;
    justify-content: center;
}

.modal-container.pdf-viewer .btn-email,
.modal-container.pdf-viewer .btn-download {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

.modal-container.pdf-viewer .btn-email {
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
}

.modal-container.pdf-viewer .btn-download {
    background: #4285F4;
    border: none;
    color: #fff;
}
