/* ==========================================================================
   Luxury Women's Couture Cart & Checkout Styles (Wine & Gold Funnel)
   Brand: Asha Devi Mittal (ashadevimittal.in)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   1. Master Wrapper & Step Progress Bar
   -------------------------------------------------------------------------- */
.d2c-cart-master-wrapper {
    max-width: 1240px;
    margin: 40px auto 85px;
    padding: 0 16px;
}

/* 3-Step Couture Progress Bar */
.cart-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto 35px;
    gap: 12px;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1e6e9;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}
.step-item.active {
    color: #2a0813;
}
.step-item.active .step-circle {
    background: #881337;
    color: #ffffff;
}
.step-line {
    flex: 1;
    height: 2px;
    background: #f1e6e9;
}
.step-line.active-line {
    background: #881337;
}

/* Free Express Delivery Banner */
.cart-free-shipping-banner {
    background: #fdfbf7;
    border: 1px solid rgba(197, 155, 39, 0.4);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}
.fs-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #c59b27, #eab308);
    color: #18080e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.fs-text strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 13.5px;
    color: #2a0813;
}
.fs-text small {
    font-size: 12px;
    color: #6b7280;
}

/* --------------------------------------------------------------------------
   2. Two-Column Layout Grid
   -------------------------------------------------------------------------- */
.d2c-cart-grid {
    display: grid;
    grid-template-columns: 1fr 390px;
    gap: 36px;
    align-items: flex-start;
}

/* --------------------------------------------------------------------------
   3. Left Column: Product Cards
   -------------------------------------------------------------------------- */
.cart-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cart-item-card {
    background: #ffffff;
    border: 1px solid #f1e6e9;
    border-radius: 16px;
    padding: 20px;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(42, 8, 19, 0.02);
    transition: border-color 0.2s;
}
.cart-item-card:hover {
    border-color: #dcb3bc;
}

/* Portrait Thumbnail */
.item-card-thumb {
    width: 90px;
    height: 115px;
    border-radius: 10px;
    overflow: hidden;
    background: #fdfbf7;
    border: 1px solid #f1e6e9;
    flex-shrink: 0;
}
.item-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details */
.item-brand-tag {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 800;
    color: #c59b27;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}
.item-product-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px 0;
}
.item-product-name a {
    color: #1a070d;
    text-decoration: none;
}
.item-product-name a:hover {
    color: #881337;
}

.item-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.unit-price {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 800;
    color: #881337;
}
.stock-status-pill {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Quantity & Remove */
.item-actions-row {
    display: flex;
    align-items: center;
    gap: 18px;
}
.cart-qty-wrapper .quantity {
    display: inline-block;
}
.cart-qty-wrapper input.qty {
    width: 58px;
    height: 38px;
    border: 1px solid #f1e6e9;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #1a070d;
    background: #fdfbf7;
    outline: none;
}
.cart-qty-wrapper input.qty:focus {
    border-color: #881337;
    background: #ffffff;
}

.remove-cart-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}
.remove-cart-item-btn:hover {
    color: #991b1b;
}

/* Subtotal */
.item-card-subtotal {
    text-align: right;
    min-width: 95px;
}
.subtotal-label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 700;
}
.subtotal-figure {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 900;
    color: #881337;
}

/* Coupon & Update Actions */
.cart-bottom-actions-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.cart-coupon-box {
    display: flex;
    gap: 8px;
}
.coupon-input {
    border: 1px solid #f1e6e9;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13.5px;
    outline: none;
    min-width: 200px;
}
.coupon-input:focus {
    border-color: #881337;
}
.btn-apply-coupon {
    background: #18080e;
    color: #ffffff;
    border: none;
    font-family: 'Cinzel', serif;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-apply-coupon:hover {
    background: #881337;
}
.btn-update-cart {
    background: #ffffff;
    border: 1px solid #f1e6e9;
    color: #2a0813;
    font-family: 'Cinzel', serif;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-update-cart:hover {
    background: #fdf8f9;
    border-color: #881337;
    color: #881337;
}

/* --------------------------------------------------------------------------
   4. Right Column: Sticky Trousseau Summary Card
   -------------------------------------------------------------------------- */
.order-summary-sticky-card {
    background: #ffffff;
    border: 1px solid #f1e6e9;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(42, 8, 19, 0.04);
    position: sticky;
    top: 95px;
}
.summary-heading {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 800;
    color: #2a0813;
    margin-bottom: 20px;
    border-bottom: 1px solid #f8ebeb;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
}

.summary-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4b5563;
}
.summary-row strong {
    color: #1a070d;
    font-weight: 800;
}
.free-shipping-text {
    color: #059669 !important;
    font-weight: 800 !important;
}
.summary-divider {
    height: 1px;
    background: #f1e6e9;
    margin: 8px 0;
}

.grand-total-row {
    font-size: 16px;
    color: #2a0813;
    font-weight: 800;
}
.grand-total-amount {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 900;
    color: #881337;
}
.tax-tag {
    font-size: 11px;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

/* Proceed CTA */
.summary-checkout-action {
    margin-bottom: 22px;
}
.btn-proceed-checkout {
    display: block;
    background: #881337;
    color: #ffffff !important;
    text-align: center;
    font-family: 'Cinzel', serif;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(136, 19, 55, 0.35);
}
.btn-proceed-checkout:hover {
    background: #9f1239;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 19, 55, 0.5);
}

/* Trust Bullets */
.summary-trust-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f8ebeb;
}
.trust-bullet {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.tb-icon {
    font-size: 14px;
    color: #c59b27;
}

/* Helpline */
.summary-helpline-card {
    background: #fdfbf7;
    border: 1px solid #f1e6e9;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
}
.summary-helpline-card span {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}
.summary-helpline-card a {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 800;
    color: #881337;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Empty Cart Screen
   -------------------------------------------------------------------------- */
.empty-cart-wrapper {
    padding: 70px 16px 100px;
    text-align: center;
}
.empty-cart-card {
    max-width: 580px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #f1e6e9;
    border-radius: 18px;
    padding: 50px 30px;
    box-shadow: 0 4px 20px rgba(42, 8, 19, 0.03);
}
.empty-cart-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fdfbf7;
    color: #c59b27;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.empty-title {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    font-weight: 800;
    color: #2a0813;
    margin-bottom: 10px;
}
.empty-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 28px;
}
.btn-return-shop {
    display: inline-block;
    background: #881337;
    color: #ffffff !important;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 13px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}
.btn-return-shop:hover {
    background: #9f1239;
}

/* ==========================================================================
   CHECKOUT PAGE (Split Funnel)
   ========================================================================== */
.checkout-steps {
    margin-top: 20px;
    margin-bottom: 40px;
}

form.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 1.35fr 1fr !important;
    gap: 40px !important;
    max-width: 1200px;
    margin: 0 auto 85px;
    padding: 0 16px;
    align-items: flex-start;
}

#customer_details {
    width: 100% !important;
}
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: #ffffff;
    border: 1px solid #f1e6e9;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(42, 8, 19, 0.02);
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 800;
    color: #2a0813;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8ebeb;
    letter-spacing: 0.5px;
}

.woocommerce form .form-row label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    width: 100%;
    background: #fdfbf7;
    border: 1px solid #f1e6e9;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1a070d;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #881337;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(136, 19, 55, 0.12);
}

#order_review_heading {
    display: none;
}

#order_review {
    background: #ffffff;
    border: 1px solid #f1e6e9;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(42, 8, 19, 0.04);
    position: sticky;
    top: 95px;
}

#order_review::before {
    content: "Trousseau Summary & Review";
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 17px;
    font-weight: 800;
    color: #2a0813;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8ebeb;
    letter-spacing: 0.5px;
}

/* Order Review Products Table */
table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f8ebeb;
    font-size: 14px;
}

table.woocommerce-checkout-review-order-table thead th {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 800;
}

table.woocommerce-checkout-review-order-table tbody td.product-name {
    color: #1a070d;
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}
table.woocommerce-checkout-review-order-table tbody td.product-total {
    text-align: right;
    font-weight: 800;
    color: #881337;
    font-family: 'Cinzel', serif;
}

table.woocommerce-checkout-review-order-table tfoot th {
    color: #4b5563;
    font-weight: 700;
    text-align: left;
}
table.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 800;
    color: #1a070d;
}
table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    border-top: 2px solid #f1e6e9;
    border-bottom: none;
    padding-top: 16px;
    font-size: 18px;
    color: #2a0813;
    font-weight: 900;
}
table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
    color: #881337;
    font-family: 'Cinzel', serif;
}

/* Payment Methods */
.woocommerce-checkout-payment {
    background: #fdfbf7;
    border: 1px solid #f1e6e9;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.woocommerce-checkout-payment ul.wc_payment_methods {
    list-style: none;
    margin: 0 0 16px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.woocommerce-checkout-payment ul.wc_payment_methods li {
    background: #ffffff;
    border: 1px solid #f1e6e9;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 0;
    transition: all 0.2s ease;
}

.woocommerce-checkout-payment ul.wc_payment_methods li:hover {
    border-color: #881337;
}

.woocommerce-checkout-payment ul.wc_payment_methods li input[type="radio"] {
    margin-right: 8px;
    accent-color: #881337;
}

.woocommerce-checkout-payment ul.wc_payment_methods li label {
    font-size: 14px;
    font-weight: 700;
    color: #2a0813;
    cursor: pointer;
}

/* Place Order Button */
#place_order {
    width: 100% !important;
    background: #881337 !important;
    color: #ffffff !important;
    font-family: 'Cinzel', serif !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    padding: 16px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 14px rgba(136, 19, 55, 0.35) !important;
}

#place_order:hover {
    background: #9f1239 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 19, 55, 0.5) !important;
}

/* Security Trust Box */
.checkout-security-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #f1e6e9;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sec-icon {
    font-size: 18px;
    width: 32px;
    height: 32px;
    background: #fdfbf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-item strong {
    font-family: 'Cinzel', serif;
    display: block;
    font-size: 12px;
    color: #2a0813;
}

.security-item small {
    font-size: 11px;
    color: #6b7280;
}

/* --------------------------------------------------------------------------
   6. Mobile Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .d2c-cart-grid,
    form.woocommerce-checkout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .order-summary-sticky-card,
    #order_review {
        position: static;
    }
}

@media (max-width: 640px) {
    .cart-progress-steps {
        font-size: 11px;
    }
    .cart-item-card {
        grid-template-columns: 75px 1fr;
        gap: 14px;
    }
    .item-card-thumb {
        width: 75px;
        height: 95px;
    }
    .item-card-subtotal {
        grid-column: span 2;
        text-align: left;
        border-top: 1px solid #f8ebeb;
        padding-top: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .cart-bottom-actions-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .coupon-input {
        min-width: unset;
        width: 100%;
    }
    .btn-apply-coupon,
    .btn-update-cart {
        width: 100%;
    }
    .woocommerce-billing-fields,
    .woocommerce-shipping-fields,
    #order_review {
        padding: 20px 16px;
    }
    #place_order {
        font-size: 14px !important;
        padding: 14px !important;
    }
}