/* ============================================
   CUSTOM CART ESTIMATE PAGE - SPARTAN STYLES
============================================ */

.custom-cart-page {
    padding-top: 30px;
    padding-bottom: 80px;
    background: var(--bg, #F8FAFC);
}

/* STEPPER */
.cart-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px 20px;
    background: var(--navy, #090D16);
    border-radius: 18px;
    border: 1px solid rgba(255, 183, 3, 0.25);
    box-shadow: 0 8px 24px rgba(9,13,22,0.15);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94A3B8;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}

.step-item.active {
    color: var(--gold, #FFB703);
}

.step-item.done {
    color: #10B981;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.step-item.active .step-num {
    background: var(--grad-flame, linear-gradient(135deg, #FF2A00 0%, #F59E0B 50%, #FFB703 100%));
    color: var(--navy, #090D16);
}

.step-item.done .step-num {
    background: #10B981;
    color: #FFFFFF;
}

.step-line {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.step-line.active {
    background: var(--gold, #FFB703);
}

/* MINIMUM ORDER BANNER */
.min-order-banner {
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.min-order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.min-status {
    font-weight: 800;
    font-size: 15px;
    font-family: var(--font-heading);
}

.min-status.warning {
    color: var(--crimson, #FF2A00);
}

.min-status.success {
    color: #10B981;
}

.min-text {
    color: var(--muted, #64748B);
    font-size: 14px;
    font-weight: 600;
}

.min-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface2, #F1F5F9);
    border-radius: 9999px;
    overflow: hidden;
}

.min-progress-fill {
    height: 100%;
    background: var(--grad-flame, linear-gradient(135deg, #FF2A00 0%, #F59E0B 50%, #FFB703 100%));
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* GRID LAYOUT */
.cart-layout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

/* LEFT COLUMN: ITEMS LIST */
.cart-items-column {
    background: var(--surface, #FFFFFF);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.cart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border, #E2E8F0);
}

.cart-card-header h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--navy, #090D16);
}

.header-share-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(22, 163, 74, 0.1);
    color: #16A34A;
    border: 1px solid rgba(22, 163, 74, 0.3);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-share-icon-btn:hover {
    background: #16A34A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    overflow-y: auto;
    padding-right: 6px;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: var(--surface2, #F1F5F9);
    border-radius: 4px;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: var(--subtle, #94A3B8);
    border-radius: 4px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--surface2, #F8FAFC);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    position: relative;
}

.item-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #0F172A);
    margin-bottom: 2px;
    line-height: 1.3;
}

.item-price-unit {
    font-size: 12px;
    color: var(--muted, #64748B);
    font-weight: 600;
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: var(--navy, #090D16);
    color: var(--gold, #FFB703);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: var(--crimson, #FF2A00);
    color: #FFFFFF;
}

.cart-qty-input {
    width: 42px;
    height: 28px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.item-subtotal {
    min-width: 80px;
    text-align: right;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy, #090D16);
}

.item-remove-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 42, 0, 0.1);
    color: var(--crimson, #FF2A00);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: background 0.2s ease;
}

.item-remove-btn:hover {
    background: var(--crimson, #FF2A00);
    color: #FFFFFF;
}

/* RIGHT COLUMN: SUMMARY SIDEBAR (STICKY) */
.cart-summary-column {
    position: sticky;
    top: calc(var(--header-height, 80px) + 10px);
}

.summary-card {
    background: var(--navy, #090D16);
    border: 1px solid rgba(255, 183, 3, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 36px rgba(9,13,22,0.25);
    color: #FFFFFF;
}

.summary-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--gold, #FFB703);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 183, 3, 0.2);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: #CBD5E1;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.summary-row.total-row {
    margin-top: 10px;
    padding-top: 16px;
    border-bottom: none;
    font-size: 17px;
    font-weight: 800;
    color: #FFFFFF;
}

.total-val {
    color: var(--gold, #FFB703);
    font-size: 20px;
}

.checkout-act-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    background: var(--grad-flame, linear-gradient(135deg, #FF2A00 0%, #F59E0B 50%, #FFB703 100%));
    color: var(--navy, #090D16);
    font-size: 16px;
    font-weight: 800;
    font-family: var(--font-heading);
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 42, 0, 0.35);
    transition: transform 0.2s ease;
}

.checkout-act-btn:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 42, 0, 0.45);
}

.checkout-act-btn.disabled {
    background: #475569;
    color: #94A3B8;
    cursor: not-allowed;
    box-shadow: none;
}

.continue-act-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.continue-act-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.whatsapp-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    margin-top: 10px;
    background: #16A34A;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}

.whatsapp-share-btn:hover {
    background: #15803D;
}

/* EMPTY CART */
.custom-cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface, #FFFFFF);
    border-radius: 24px;
    border: 1px solid var(--border);
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 54px;
    margin-bottom: 16px;
}

.custom-cart-empty h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--navy, #090D16);
    margin-bottom: 8px;
}

.custom-cart-empty p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-flame);
    color: var(--navy);
    font-weight: 800;
    font-size: 15px;
    padding: 12px 28px;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 42, 0, 0.3);
}

@media(max-width: 900px) {
    .cart-layout-grid {
        grid-template-columns: 1fr;
    }
    .cart-stepper {
        padding: 12px 10px;
    }
    .step-item {
        font-size: 12px;
    }
    .step-label {
        display: none;
    }
    .cart-item-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .item-subtotal {
        width: 100%;
        text-align: left;
        border-top: 1px dashed var(--border);
        padding-top: 8px;
    }
}
