﻿.cart-section {
    padding: 40px 0 72px;
    background: #f9f6f2;
    min-height: 60vh;
}

/* ── Layout ── */
.cart-wrap {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* ════════════════════════════
   DESKTOP TABLE
════════════════════════════ */
.cart-table-wrap {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

    .cart-table thead tr {
        background: #1a1a1a;
        color: #fff;
    }

    .cart-table thead th {
        padding: 14px 16px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        text-align: left;
    }

.cart-row {
    border-bottom: 1px solid #f0ebe4;
    transition: background 0.15s;
}

    .cart-row:last-child {
        border-bottom: none;
    }

    .cart-row:hover {
        background: #fdf9f5;
    }

    .cart-row td {
        padding: 14px 16px;
        vertical-align: middle;
        font-size: 14px;
        color: #1a1a1a;
    }

.cart-item-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.cart-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #f0ebe4;
    flex-shrink: 0;
}

.cart-name-text {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.cart-size {
    display: inline-block;
    font-size: 11px;
    color: #c8a07a;
    font-weight: 700;
    background: #fdf6ee;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #e8d5be;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cart-notes-input {
    width: 130px;
    padding: 7px 10px;
    border: 1px solid #e8d5be;
    border-radius: 8px;
    font-size: 12px;
    color: #555;
    background: #fdf6ee;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .cart-notes-input:focus {
        border-color: #c8a07a;
        box-shadow: 0 0 0 3px rgba(200,160,122,0.15);
    }

.cart-price {
    font-size: 14px;
    color: #888;
}

.cart-qty-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f9f6f2;
    border-radius: 30px;
    padding: 4px 8px;
    border: 1px solid #f0ebe4;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e8d5be;
    color: #1a1a1a;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

    .cart-qty-btn:hover {
        background: #c8a07a;
        color: #fff;
        border-color: #c8a07a;
    }

.cart-qty-num {
    font-size: 14px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    color: #1a1a1a;
}

.cart-subtotal {
    font-weight: 700;
    font-size: 15px;
}

.cart-remove {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f9f6f2;
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #f0ebe4;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    cursor: pointer;
}

    .cart-remove:hover {
        background: #fdecea;
        color: #e53935;
        border-color: #f5c6c5;
    }

/* ════════════════════════════
   MOBILE CARDS
════════════════════════════ */
.cart-mobile-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cart-mobile-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cmc-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cmc-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #f0ebe4;
    flex-shrink: 0;
}

.cmc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cmc-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.cmc-price {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}

.cmc-remove {
    flex-shrink: 0;
    margin-top: 2px;
}

.cmc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0ebe4;
}

.cmc-notes {
    width: 100%;
    max-width: 160px;
}

.cmc-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cmc-subtotal {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 50px;
    text-align: right;
}

/* ════════════════════════════
   SUMMARY
════════════════════════════ */
.cart-summary {
    width: 300px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    position: sticky;
    top: 20px;
    flex-shrink: 0;
}

/* Gold header bar */
.cart-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 18px 24px;
    background: #1a1a1a;
    letter-spacing: 0.3px;
}

/* Body padding wrapper */
.cart-summary-body {
    padding: 20px 24px 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
    padding: 9px 0;
    border-bottom: 1px dashed #f0ebe4;
}

    .cart-summary-row:last-of-type {
        border-bottom: none;
    }

.cart-summary-val {
    font-weight: 600;
    color: #1a1a1a;
}

.cart-summary-divider {
    height: 2px;
    background: #f0ebe4;
    margin: 4px 0;
}

/* Total row */
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0 4px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 2px solid #1a1a1a;
    margin-top: 6px;
}

    .cart-summary-total .cart-summary-val {
        color: #c8a07a;
        font-size: 20px;
        font-weight: 800;
    }

/* Perks */
.cart-perks {
    background: #fdf6ee;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 16px 0 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid #e8d5be;
}

.cart-perk {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cart-perk svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

/* Checkout button */
.cart-checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
    margin-top: 18px;
    text-align: center;
}

    .cart-checkout-btn:hover {
        background: #c8a07a;
        transform: translateY(-1px);
        color: #fff;
    }

/* Continue Shopping */
.cart-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    text-decoration: none;
    border-radius: 10px;
    border: 1.5px dashed #e8d5be;
    transition: all 0.2s;
}

    .cart-continue svg {
        width: 14px;
        height: 14px;
        transition: transform 0.2s;
    }

    .cart-continue:hover {
        color: #c8a07a;
        border-color: #c8a07a;
        background: #fdf6ee;
        text-decoration: none;
    }

        .cart-continue:hover svg {
            transform: translateX(-3px);
        }

/* ════════════════════════════
   EMPTY STATE
════════════════════════════ */
.cart-empty {
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.cart-empty-inner {
    text-align: center;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border: 1px solid #2e2e2e;
}

.cart-empty-svg {
    width: 100px;
    height: 100px;
    max-width: 100px;
    margin: 0 auto 22px;
}

    .cart-empty-svg svg {
        width: 100%;
        height: 100%;
    }

.cart-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #c8a07a; /* gold */
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}

.cart-empty-sub {
    font-size: 14px;
    color: #f0ebe4;
    line-height: 1.7;
    margin: 0 0 28px;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: #c8a07a;
    color: #1a1a1a;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}

    .cart-empty-btn svg {
        width: 16px;
        height: 16px;
    }

    .cart-empty-btn:hover {
        background: #fff;
        color: #1a1a1a;
        transform: translateY(-2px);
        text-decoration: none;
    }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 767px) {
    .cart-wrap {
        flex-direction: column;
    }

    .cart-mobile-list {
        width: 100%;
    }

    .cart-summary {
        width: 100%;
        position: static;
    }
}

/* ── Notes Trigger Button ── */
.cart-notes-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f9f6f2;
    border: 1.5px dashed #e8d5be;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .cart-notes-trigger svg {
        width: 13px;
        height: 13px;
        flex-shrink: 0;
    }

    .cart-notes-trigger:hover {
        border-color: #c8a07a;
        color: #c8a07a;
        background: #fdf6ee;
    }

/* Note preview under item name */
.cart-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-note-preview {
    font-size: 11px;
    color: #c8a07a;
    font-weight: 500;
    background: #fdf6ee;
    border: 1px solid #e8d5be;
    border-radius: 6px;
    padding: 2px 8px;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Notes Modal ── */
.notes-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    backdrop-filter: blur(3px);
}

    .notes-modal-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.notes-modal {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.25s;
    margin: 20px;
}

.notes-modal-overlay.active .notes-modal {
    transform: translateY(0);
}

.notes-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #1a1a1a;
}

.notes-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .notes-modal-title-wrap svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

.notes-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.notes-modal-sub {
    font-size: 12px;
    color: #c8a07a;
    margin: 2px 0 0;
}

.notes-modal-close {
    background: #2e2e2e;
    border: none;
    color: #aaa;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

    .notes-modal-close:hover {
        background: #e53935;
        color: #fff;
    }

.notes-modal-body {
    padding: 24px;
}

.notes-modal-textarea {
    width: 100%;
    height: 110px;
    padding: 12px 14px;
    border: 1.5px solid #e8d5be;
    border-radius: 10px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fdf6ee;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

    .notes-modal-textarea:focus {
        border-color: #c8a07a;
        box-shadow: 0 0 0 3px rgba(200,160,122,0.15);
    }

.notes-modal-hint {
    font-size: 11px;
    color: #bbb;
    margin: 8px 0 0;
}

.notes-modal-footer {
    display: flex;
    gap: 10px;
    padding: 0 24px 24px;
}

.notes-modal-cancel {
    flex: 1;
    padding: 12px;
    background: #f9f6f2;
    border: 1.5px solid #e8d5be;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

    .notes-modal-cancel:hover {
        background: #f0ebe4;
        color: #555;
    }

.notes-modal-save {
    flex: 2;
    padding: 12px;
    background: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s;
}

    .notes-modal-save svg {
        width: 15px;
        height: 15px;
    }

    .notes-modal-save:hover {
        background: #c8a07a;
    }