/* ==========================================================================
   D'NOAH LUXURY — BESPOKE LUXURY CHECKOUT & PASARELA DE PAGO (WOMPI + MANUAL)
   Oro Laminado 18K (30 Micras) • Cali, Colombia
   ========================================================================== */

:root {
    --bg-page: #0D0B0A;
    --bg-panel: #141210;
    --bg-card: #181512;
    --bg-input: #100E0C;
    --border-color: #2B251E;
    --border-gold: rgba(212, 175, 55, 0.38);
    --gold: #D4AF37;
    --gold-light: #FCF6BA;
    --gold-hover: #E6C762;
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 35%, #D4AF37 68%, #9A711C 100%);
    --text-primary: #F5F2EB;
    --text-secondary: #B8B0A4;
    --text-muted: #847B6F;
    --accent-green: #25D366;
    --wompi-green: #00C389;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.checkout-page-body,
body.checkout-body {
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.05) 0%, transparent 45%);
    color: var(--text-primary);
    font-family: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold {
    color: var(--gold) !important;
}

/* ==========================================================================
   1. TOP SECURITY HEADER
   ========================================================================== */
.checkout-header {
    background: rgba(16, 14, 12, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-gold);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.checkout-header-inner,
.checkout-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn-back-store,
.checkout-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    transition: all 0.22s ease;
}

.btn-back-store:hover,
.checkout-back-link:hover {
    color: var(--gold-light);
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(-2px);
}

.checkout-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.checkout-brand img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.25));
}

.checkout-brand .brand-title,
.checkout-brand-text h1 {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    line-height: 1.1;
}

.checkout-brand .brand-sub,
.checkout-brand-text span {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 2px;
}

.checkout-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.secure-seal,
.checkout-header-security {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.22);
}

/* ==========================================================================
   2. MEMBER / VIP DISCOUNT PROMO BANNER
   ========================================================================== */
.checkout-main {
    flex-grow: 1;
    padding-top: 28px;
    padding-bottom: 70px;
}

#checkoutDiscountBannerArea {
    margin-bottom: 24px;
}

.member-promo-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14) 0%, rgba(24, 21, 18, 0.96) 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.member-promo-banner.logged-in {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, rgba(212, 175, 55, 0.14) 100%);
    border-color: rgba(212, 175, 55, 0.5);
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.promo-badge-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--gold-gradient);
    color: #12100E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.3);
}

.promo-left h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 3px;
}

.promo-left p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.promo-left p strong {
    color: #FFFFFF;
}

.promo-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.45);
    color: #4ADE80;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 7px 15px;
    border-radius: 999px;
    white-space: nowrap;
}

.promo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-promo-reg {
    background: var(--gold-gradient);
    color: #12100E;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-promo-reg:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.btn-promo-login {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-gold);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-promo-login:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light);
}

/* ==========================================================================
   3. MAIN 2-COLUMN CHECKOUT GRID LAYOUT
   ========================================================================== */
.checkout-grid-layout,
.checkout-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 28px;
    align-items: start;
}

.checkout-steps-col,
.checkout-form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-card,
.checkout-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    position: relative;
}

.checkout-card:hover {
    border-color: rgba(212, 175, 55, 0.28);
}

.card-step-header,
.step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.step-num,
.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #12100E;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.card-step-header h2,
.step-header h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 4px;
}

.card-step-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   4. FORM FIELDS & GEOGRAPHY SELECTORS
   ========================================================================== */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #E4DEC6;
    letter-spacing: 0.02em;
}

.form-field .req {
    color: var(--gold);
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #655E54;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--gold);
    background: #14110E;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.form-field select option {
    background: #161310;
    color: #FFFFFF;
}

.location-divider {
    margin: 22px 0 16px;
    padding: 10px 14px;
    background: rgba(212, 175, 55, 0.07);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--gold-light);
}

/* ==========================================================================
   5. STEP 2: DELIVERY MODALITY CARDS (PREPAID VS CONTRAENTREGA)
   ========================================================================== */
.modality-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modality-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg-panel);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.24s ease;
    position: relative;
}

.modality-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.modality-card:hover {
    border-color: rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.04);
}

.modality-card.active {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.12) 0%, rgba(20, 18, 16, 0.96) 100%);
    border-color: var(--gold);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.15);
}

.mod-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.mod-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s ease;
}

.modality-card.active .mod-radio-circle {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: inset 0 0 0 4px #141210;
}

.mod-title-group {
    flex: 1;
}

.mod-title-group h4 {
    font-size: 0.96rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.mod-tag-gold {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.16);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-light);
}

.mod-tag-gold.free-active {
    background: rgba(74, 222, 128, 0.18);
    border-color: #4ADE80;
    color: #4ADE80;
}

.mod-tag-cod {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7DD3FC;
}

.mod-icon {
    font-size: 1.35rem;
    color: var(--gold);
    opacity: 0.85;
}

.mod-desc {
    font-size: 0.81rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.intl-shipping-notice {
    margin-top: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    gap: 16px;
}

.intl-shipping-notice i {
    font-size: 1.6rem;
}

.intl-shipping-notice h4 {
    font-size: 0.95rem;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.intl-shipping-notice p {
    font-size: 0.83rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   6. STEP 3: PAYMENT METHODS (WOMPI + BANCOLOMBIA + NEQUI)
   ========================================================================== */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.pay-method-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    background: var(--bg-panel);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
}

.pay-method-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-method-tab:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.pay-method-tab.active {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.14) 0%, rgba(20, 18, 16, 0.96) 100%);
    border-color: var(--gold);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.pay-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.pay-icon-box.wompi-bg {
    background: linear-gradient(135deg, #00C389 0%, #00996B 100%);
    color: #061A12;
    box-shadow: 0 4px 14px rgba(0, 195, 137, 0.28);
}

.pay-icon-box.bancolombia-bg {
    background: linear-gradient(135deg, #FDDA24 0%, #E5B800 100%);
    color: #111111;
    box-shadow: 0 4px 14px rgba(253, 218, 36, 0.22);
}

.pay-icon-box.nequi-bg {
    background: linear-gradient(135deg, #DA0081 0%, #830051 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(218, 0, 129, 0.25);
}

.pay-method-tab h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 2px;
}

.pay-method-tab span {
    font-size: 0.74rem;
    color: var(--text-secondary);
    display: block;
}

.wompi-recommended-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 195, 137, 0.18);
    border: 1px solid rgba(0, 195, 137, 0.5);
    color: #34D399 !important;
    font-size: 0.62rem !important;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Amount to Transfer Banner */
.amount-to-transfer-banner {
    background: linear-gradient(135deg, #1E1912 0%, #14110D 100%);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.amt-banner-left span,
.amt-banner-right span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.amt-banner-left strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold-light);
}

.amt-banner-right strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

/* Wompi & Bank Account Details Cards */
.wompi-info-card {
    background: linear-gradient(145deg, rgba(14, 28, 23, 0.92) 0%, rgba(18, 16, 14, 0.98) 100%);
    border: 1px solid rgba(0, 195, 137, 0.38);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 16px;
}

.bank-account-details-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 16px;
}

.bank-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bank-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.bank-card-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #FFFFFF;
}

.btn-copy-acct {
    background: rgba(212, 175, 55, 0.14);
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-copy-acct:hover {
    background: var(--gold);
    color: #12100E;
}

.bank-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bank-info-item span {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.bank-info-item strong {
    font-size: 0.95rem;
    color: #FFFFFF;
}

.acct-num-highlight {
    color: var(--gold-light) !important;
    font-size: 1.08rem !important;
    letter-spacing: 0.04em;
}

.bank-qr-box {
    margin-top: 16px;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
}

.bank-qr-box span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.bank-qr-box img {
    max-width: 200px;
    border-radius: 10px;
    border: 2px solid var(--gold);
    background: #FFFFFF;
    padding: 6px;
}

.wompi-methods-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.wompi-method-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #EAEAEA;
}

.wompi-method-chip i {
    color: #34D399;
}

.wompi-security-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.wompi-security-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #BDBDBD;
}

.wompi-security-list li i {
    color: #34D399;
}

/* Receipt Upload Box */
.receipt-upload-wrapper {
    margin-top: 16px;
}

.receipt-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 20px;
    background: rgba(212, 175, 55, 0.04);
    border: 2px dashed rgba(212, 175, 55, 0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.22s ease;
}

.receipt-upload-label:hover {
    background: rgba(212, 175, 55, 0.09);
    border-color: var(--gold);
}

.receipt-upload-label i {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.receipt-upload-label strong {
    font-size: 0.9rem;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.receipt-upload-label span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    max-width: 520px;
}

.receipt-upload-label input[type="file"] {
    display: none;
}

.receipt-preview-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.35);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 14px;
}

.receipt-preview-box img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--gold);
}

.receipt-preview-box strong {
    display: block;
    font-size: 0.85rem;
    color: #FFFFFF;
}

.receipt-preview-box span {
    font-size: 0.76rem;
    color: #4ADE80;
}

.btn-remove-receipt {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ==========================================================================
   7. RIGHT COLUMN: STICKY ORDER SUMMARY
   ========================================================================== */
.checkout-summary-col {
    position: sticky;
    top: 94px;
}

.summary-sticky-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
}

.summary-card-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.38rem;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-cart-link {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
}

.edit-cart-link:hover {
    text-decoration: underline;
}

/* Cart Items List */
.summary-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 18px;
}

.chk-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.chk-item-row img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    flex-shrink: 0;
}

.chk-item-info {
    flex: 1;
    min-width: 0;
}

.chk-item-info h4 {
    font-size: 0.86rem;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chk-item-sku {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.chk-item-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chk-item-controls button {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chk-item-controls button:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.chk-item-controls .chk-del-btn {
    color: #F87171;
    border-color: transparent;
    background: transparent;
    margin-left: 4px;
}

.chk-item-controls span {
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
}

.chk-item-price {
    text-align: right;
    flex-shrink: 0;
}

.chk-item-price strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--gold-light);
}

.chk-item-price small {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.empty-checkout-box {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary);
}

.empty-checkout-box i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.btn-back-cat {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--gold-gradient);
    color: #12100E;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

/* Free Shipping Progress Bar */
.free-shipping-progress-box {
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 18px;
}

.fs-text {
    font-size: 0.78rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.fs-bar-bg {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.fs-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #4ADE80);
    border-radius: 999px;
    transition: width 0.35s ease;
}

/* Totals Breakdown */
.summary-totals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.tot-row strong {
    color: #FFFFFF;
    font-weight: 700;
}

.tot-row.discount-row {
    color: #4ADE80;
}

.tot-row.discount-row strong {
    color: #4ADE80;
}

.tot-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 0;
}

.tot-row.grand-total-row {
    font-size: 1.12rem;
    font-weight: 800;
    color: #FFFFFF;
}

.tot-row.grand-total-row strong {
    font-size: 1.28rem;
    color: var(--gold-light);
}

.payment-split-summary {
    margin-top: 8px;
    padding: 14px;
    background: var(--bg-panel);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.84rem;
}

.split-row.pay-today {
    color: #4ADE80;
    font-weight: 700;
}

.split-row.pay-today strong {
    font-size: 1.05rem;
    font-weight: 800;
}

.split-row.pay-later {
    color: var(--gold-light);
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Primary Submit Button */
.btn-confirm-order {
    width: 100%;
    padding: 16px 22px;
    border: none;
    border-radius: 999px;
    background: var(--gold-gradient);
    color: #12100E;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.3);
    transition: all 0.25s ease;
}

.btn-confirm-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.42);
    filter: brightness(1.05);
}

.btn-confirm-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-confirm-order.wompi-mode {
    background: linear-gradient(135deg, #00C389 0%, #00A876 52%, #D4AF37 100%);
    color: #06150F;
    box-shadow: 0 12px 28px rgba(0, 195, 137, 0.3);
}

.summary-trust-badges {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   8. ORDER SUCCESS MODAL & AUTO-INVOICE PREVIEW
   ========================================================================== */
.order-success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.order-success-modal.active {
    display: flex;
}

.success-modal-card {
    background: #161310;
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    width: 100%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

.success-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.15);
    border: 2px solid #4ADE80;
    color: #4ADE80;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.success-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.success-modal-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.9rem;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.success-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.success-summary-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.success-summary-box span {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.success-summary-box strong {
    font-size: 1.05rem;
}

.success-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-succ-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 999px;
    background: #25D366;
    color: #071E10;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-succ-invoice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 999px;
    background: var(--gold-gradient);
    color: #12100E;
    border: none;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.btn-succ-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
}

/* ==========================================================================
   9. CUSTOMER AUTHENTICATION MODAL & HEADER PILL
   ========================================================================== */
.customer-auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.customer-auth-modal.active {
    display: flex;
}

.auth-modal-card {
    background: #171411;
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    color: var(--text-primary);
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.auth-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    color: #FFFFFF;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 18px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 9px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-tab-btn.active {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: #FFFFFF;
}

.auth-form-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input-group label {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    color: #D6D3D1;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    color: var(--gold);
    font-size: 0.9rem;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.88rem;
    outline: none;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-auth-submit {
    width: 100%;
    padding: 13px;
    background: var(--gold-gradient);
    color: #121212;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.auth-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #EF4444;
    color: #EF4444;
}

.auth-alert.success {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid #25D366;
    color: #25D366;
}

.btn-customer-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.38);
    color: var(--gold-light);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.customer-logged-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #EDEDED;
    cursor: pointer;
}

.cust-disc-badge {
    background: #EAB308;
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .checkout-grid-layout,
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary-col {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .checkout-header-inner {
        flex-wrap: wrap;
    }

    .secure-seal span {
        display: none;
    }

    .checkout-card {
        padding: 20px 16px;
    }

    .form-grid-2,
    .form-grid-3,
    .modality-options-grid,
    .payment-methods-grid,
    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .form-field[style*="span 2"] {
        grid-column: span 1 !important;
    }
}
