/**
 * GAZAL LENS BUILDER - PRICING DISPLAY STYLES
 * ============================================
 * V1.1 - Strikethrough pricing and promotional elements
 *
 * Copyright (c) 2024-2025 Gazal Eyecare. All Rights Reserved.
 */

/* ===== PROMOTIONAL BANNER ===== */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    color: #1a1a1a;
    text-align: center;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 100001;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.promo-banner .promo-text {
    display: inline-block;
}

.promo-banner .promo-savings {
    background: rgba(0, 0, 0, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    font-size: 12px;
}

.promo-banner .close-promo {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: #1a1a1a;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.promo-banner .close-promo:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Adjust body padding when promo banner is visible */
body.has-promo-banner {
    padding-top: 45px;
}

/* ===== STRIKETHROUGH PRICING ===== */
.price-strikethrough {
    text-decoration: line-through;
    color: #888 !important;
    font-size: 0.85em;
    margin-right: 6px;
    opacity: 0.7;
}

.price-sale {
    color: #d4af37 !important;
    font-weight: 700 !important;
}

.price-included {
    color: #4ade80 !important;  /* Green for "Included" */
    font-weight: 600 !important;
    font-size: 0.9em;
}

/* ===== SAVINGS BADGE ===== */
.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== V1.1 TAB CONTENT FIX - Ensure centered layout ===== */
/* Step section headers should be centered */
.step-section-header {
    text-align: center !important;
    width: 100% !important;
}

/* All direct children of tab content should have consistent max-width */
.tab-content.active {
    text-align: center;
}

.tab-content.active > * {
    text-align: left;
    max-width: 500px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ===== ACCORDION STYLES (V1.1 Step 1) ===== */
/* V1.1 FIX: Ensure accordions are centered and don't push layout left */
.lens-category-accordion {
    margin: 0 auto 15px auto;  /* Center horizontally */
    max-width: 100%;           /* Don't exceed container */
    width: 100%;               /* Full width within container */
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.08);
}

.accordion-header.active {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-title .category-icon {
    font-size: 24px;
}

.accordion-title .category-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.accordion-title .category-subtitle {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
}

.accordion-price-range {
    text-align: right;
}

.accordion-price-range .starting-at {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accordion-price-range .price-display {
    font-size: 18px;
    font-weight: 700;
}

.accordion-arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #d4af37;
    font-size: 14px;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-content.open {
    max-height: 500px;  /* Adjust as needed */
}

.accordion-content-inner {
    padding: 20px;
}

/* ===== LENS OPTION CARDS (Inside Accordion) ===== */
.lens-option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lens-option-card:last-child {
    margin-bottom: 0;
}

.lens-option-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.lens-option-card.selected {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

.lens-option-info {
    display: flex;
    flex-direction: column;
}

.lens-option-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.lens-option-description {
    font-size: 12px;
    color: #aaa;
}

.lens-option-price {
    text-align: right;
    font-size: 16px;
    font-weight: 600;
}

/* ===== AR COATING TIERS (V1.1 Step 2) ===== */
/* V1.1 FIX: Ensure AR tier cards are centered */
.ar-tier-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;           /* Center horizontally */
    max-width: 100%;          /* Don't exceed container */
    width: 100%;              /* Full width within container */
}

.ar-tier-card {
    display: flex;
    align-items: flex-start;
    padding: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ar-tier-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 175, 55, 0.4);
}

.ar-tier-card.selected {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.2);
}

.ar-tier-radio {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ar-tier-card.selected .ar-tier-radio {
    border-color: #d4af37;
    background: #d4af37;
}

.ar-tier-card.selected .ar-tier-radio::after {
    content: '✓';
    color: #1a1a1a;
    font-size: 12px;
    font-weight: bold;
}

.ar-tier-content {
    flex: 1;
}

.ar-tier-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.ar-tier-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.ar-tier-price {
    font-size: 16px;
    font-weight: 600;
    text-align: right;
}

.ar-tier-features {
    font-size: 13px;
    color: #aaa;
    line-height: 1.5;
}

.ar-tier-features ul {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.ar-tier-features li {
    margin-bottom: 4px;
}

/* Brand dropdown for Ultra tier */
.brand-dropdown-wrapper {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.brand-dropdown-wrapper label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-dropdown {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.brand-dropdown:focus {
    outline: none;
    border-color: #d4af37;
}

.brand-dropdown option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* ===== TOTAL PRICE DISPLAY ===== */
.total-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.total-label {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.total-price-display .regular-price {
    font-size: 14px;
    text-decoration: line-through;
    color: #888;
}

.total-price-display .sale-price {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
}

.total-price-display .you-save {
    font-size: 12px;
    color: #4ade80;
    margin-top: 4px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    .promo-banner {
        font-size: 12px;
        padding: 8px 40px 8px 15px;
    }

    .promo-banner .promo-savings {
        display: none;  /* Hide savings badge on mobile */
    }

    body.has-promo-banner {
        padding-top: 40px;
    }

    .accordion-header {
        padding: 14px 16px;
    }

    .accordion-price-range .price-display {
        font-size: 16px;
    }

    .lens-option-card {
        padding: 12px 14px;
    }

    .ar-tier-card {
        padding: 14px;
    }

    .total-price-display .sale-price {
        font-size: 24px;
    }
}
