/* ============================================================
   AssetFlow — components.css
   Product cards, filters, checkout, reviews, etc.
   ============================================================ */

/* ============================================================
   PRODUCT CARD
   ============================================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-5);
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.product-card-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-thumb img {
    transform: scale(1.04);
}

.product-card-thumb .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
}

.product-card-thumb .no-image svg {
    width: 40px;
    height: 40px;
    stroke: var(--border-light);
    fill: none;
    stroke-width: 1.5;
}

.product-card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}

.product-card-wishlist {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    background: rgba(8, 8, 16, 0.7);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    opacity: 0;
    transition: all var(--transition);
    cursor: pointer;
}

.product-card:hover .product-card-wishlist,
.product-card-wishlist.active {
    opacity: 1;
}

.product-card-wishlist svg {
    width: 15px;
    height: 15px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 2;
    transition: all var(--transition);
}

.product-card-wishlist.active svg,
.product-card-wishlist:hover svg {
    stroke: var(--red);
    fill: var(--red);
}

.product-card-body {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.product-card-category {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-card-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
}

.product-card-price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--amber);
    letter-spacing: -0.02em;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.product-card-rating .star {
    color: var(--amber);
    font-size: 12px;
}

/* ============================================================
   FEATURED CARD (larger, homepage hero grid)
   ============================================================ */

.featured-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    transition: all var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    border-color: var(--accent-border);
    box-shadow: var(--shadow-glow);
}

.featured-card-thumb {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-elevated);
}

.featured-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-thumb img {
    transform: scale(1.05);
}

.featured-card-body {
    padding: var(--space-4) var(--space-5) var(--space-5);
}

.featured-card-title {
    font-family: var(--font-display);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
    line-height: 1.3;
}

.featured-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

/* ============================================================
   CATEGORY CARD
   ============================================================ */

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.category-card:hover {
    border-color: var(--accent-border);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.category-card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.category-card:hover .category-card-icon {
    background: var(--accent-glow);
    border-color: var(--accent-border);
}

.category-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.75;
    transition: stroke var(--transition);
}

.category-card:hover .category-card-icon svg {
    stroke: var(--accent-light);
}

.category-card-name {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-body);
    letter-spacing: -0.01em;
    transition: color var(--transition);
}

.category-card:hover .category-card-name { color: var(--text-primary); }

.category-card-count {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ============================================================
   FILTERS BAR
   ============================================================ */

.filters-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-6);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.filter-chip:hover { border-color: var(--border-light); color: var(--text-body); }
.filter-chip.active { background: var(--accent-glow); border-color: var(--accent-border); color: var(--accent-light); }

.filters-sort {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filters-count {
    font-size: var(--text-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-page-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-7) 0;
}

/* Gallery */
.product-gallery {
    position: relative;
}

.gallery-main {
    aspect-ratio: 16/10;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex-shrink: 0;
    width: 72px;
    height: 48px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    opacity: 0.6;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent);
    opacity: 1;
}

.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product info */
.product-info {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
}

.product-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.product-info-head {
    padding: var(--space-5) var(--space-5) 0;
}

.product-info-price-block {
    padding: var(--space-5);
    border-top: 1px solid var(--border);
}

.product-price-main {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--amber);
    letter-spacing: -0.03em;
    line-height: 1;
}

.license-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.license-tab {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.license-tab.active {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.license-tab-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-body);
}

.license-tab.active .license-tab-name { color: var(--accent-light); }

.license-tab-price {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--amber);
    margin-top: 2px;
}

.license-tab-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 3px;
}

/* Product tabs */
.product-tabs {
    margin-top: var(--space-7);
}

.tabs-nav {
    display: flex;
    gap: var(--space-1);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    padding: 10px 18px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    margin-bottom: -1px;
}

.tab-btn:hover { color: var(--text-body); }
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--accent); }

.tab-panel { padding: var(--space-6) 0; display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   CHECKOUT
   ============================================================ */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-7) 0;
}

.checkout-section {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    margin-bottom: var(--space-5);
}

.checkout-section-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.order-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
}

.order-summary-head {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.order-summary-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
}

.order-product-row {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--border);
}

.order-product-thumb {
    width: 56px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.order-product-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    flex: 1;
}

.order-product-price {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 800;
    color: var(--amber);
    flex-shrink: 0;
}

.order-totals {
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.order-total-row.final {
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    font-size: var(--text-base);
    font-weight: 700;
}

.order-total-row.final .order-total-value {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--amber);
}

/* Payment method tabs */
.payment-tabs {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}

.payment-tab {
    flex: 1;
    min-width: 120px;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
}

.payment-tab:hover { border-color: var(--border-light); color: var(--text-body); }
.payment-tab.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent-light); }

/* Coupon */
.coupon-row {
    display: flex;
    gap: var(--space-3);
    align-items: stretch;
}

/* UPI section */
.upi-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}

.upi-qr-wrap img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: var(--radius-md);
}

.upi-id {
    font-family: var(--font-mono);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px var(--space-4);
    letter-spacing: 0.04em;
}

/* ============================================================
   REVIEWS
   ============================================================ */

.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    gap: var(--space-4);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--accent-light);
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}

.review-author {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.review-stars {
    color: var(--amber);
    font-size: 13px;
    letter-spacing: 1px;
}

.review-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: auto;
}

.review-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.review-body {
    font-size: var(--text-sm);
    color: var(--text-body);
    line-height: 1.7;
}

/* Rating summary */
.rating-summary {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
}

.rating-big {
    text-align: center;
    flex-shrink: 0;
}

.rating-big-num {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.rating-big-stars { color: var(--amber); font-size: 18px; letter-spacing: 2px; margin: 6px 0 4px; }
.rating-big-count { font-size: var(--text-xs); color: var(--text-muted); }

.rating-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.rating-bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-base);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--amber);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-5);
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.auth-card-head {
    padding: var(--space-7) var(--space-7) var(--space-5);
    text-align: center;
}

.auth-card-logo {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    box-shadow: 0 4px 20px rgba(124,92,252,0.4);
}

.auth-card-logo svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-2);
}

.auth-card-sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.6;
}

.auth-card-body {
    padding: var(--space-5) var(--space-7);
}

.auth-card-footer {
    padding: var(--space-5) var(--space-7);
    border-top: 1px solid var(--border);
    background: var(--bg-base);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Password strength */
.password-strength-bar {
    height: 4px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: var(--space-2);
}

.password-strength-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.strength-0 { width: 0%; }
.strength-1 { width: 25%; background: var(--red); }
.strength-2 { width: 50%; background: var(--amber); }
.strength-3 { width: 75%; background: var(--blue); }
.strength-4 { width: 100%; background: var(--green); }

/* ============================================================
   ACCOUNT PAGES
   ============================================================ */

.account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-7);
    padding: var(--space-7) 0;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--space-5));
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
}

.account-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 2px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--accent-light);
    margin: 0 auto var(--space-4);
}

.account-user-name {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.account-user-email {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
}

/* ============================================================
   TRUST BADGES / FEATURES STRIP
   ============================================================ */

.trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: inherit;
}

.trust-item-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-item-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-light);
    fill: none;
    stroke-width: 1.75;
}

.trust-item-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-body);
    white-space: nowrap;
}

.trust-item-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 1px;
}

/* ============================================================
   HERO STATS
   ============================================================ */

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-7);
    flex-wrap: wrap;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ============================================================
   PILL / TAG
   ============================================================ */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.pill svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================================
   CAROUSEL CONTROLS
   ============================================================ */

.carousel-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-muted);
}

.carousel-btn:hover {
    background: var(--accent-glow);
    border-color: var(--accent-border);
    color: var(--accent-light);
}

.carousel-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.section-eyebrow {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: var(--space-2);
}

/* ============================================================
   RESPONSIVE — COMPONENTS
   ============================================================ */

@media (max-width: 768px) {
    /* Product grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    /* Product page */
    .product-page-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        padding: var(--space-5) 0;
    }

    .product-info { position: static; }

    /* Checkout */
    .checkout-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        padding: var(--space-5) 0;
    }

    .order-summary-card { position: static; }

    /* Account */
    .account-layout {
        grid-template-columns: 1fr;
        padding: var(--space-5) 0;
    }

    .account-sidebar { position: static; }

    /* Trust strip */
    .trust-strip { gap: var(--space-5); }
    .trust-item-label { display: none; }

    /* Hero stats */
    .hero-stats { gap: var(--space-5); }
    .hero-stat-num { font-size: var(--text-xl); }

    /* Rating summary */
    .rating-summary { flex-direction: column; gap: var(--space-4); }
}

@media (max-width: 480px) {
    /* Product grid - single column on very small screens */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Auth card */
    .auth-card-head,
    .auth-card-body,
    .auth-card-footer {
        padding-inline: var(--space-5);
    }

    /* UPI QR */
    .upi-qr-wrap img { width: 150px; height: 150px; }

    /* Payment tabs */
    .payment-tabs { flex-direction: column; }
    .payment-tab { min-width: unset; }

    /* Section header */
    .section-header { flex-direction: column; align-items: flex-start; gap: var(--space-2); }

    /* Filters */
    .filters-bar { gap: var(--space-2); }
    .filters-sort { width: 100%; }
}

/* ============================================================
   PRODUCT PAGE — Complete styles
   ============================================================ */

/* Layout */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-7);
    align-items: start;
    padding: var(--space-5) 0 var(--space-10);
}

/* Breadcrumb */
.product-breadcrumb-nav {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-5);
}

.product-breadcrumb-nav ol {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: var(--text-xs);
    color: var(--text-muted);
    list-style: none;
}

/* ---- Carousel ---- */
.carousel {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.35s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(8,8,16,0.75);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-body);
    z-index: 2;
}

.carousel-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.carousel-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.carousel-btn.prev { left: var(--space-3); }
.carousel-btn.next { right: var(--space-3); }

.carousel-dots {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: #fff;
    width: 20px;
    border-radius: 3px;
}

.carousel-thumbs {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.carousel-thumbs::-webkit-scrollbar { display: none; }

.carousel-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 44px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition);
    opacity: 0.55;
}

.carousel-thumb.active,
.carousel-thumb:hover {
    border-color: var(--accent);
    opacity: 1;
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Tabs ---- */
.product-tabs {
    margin-top: var(--space-6);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.product-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-base);
    overflow-x: auto;
    scrollbar-width: none;
}

.product-tabs-nav::-webkit-scrollbar { display: none; }

.product-tab {
    padding: 14px var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    margin-bottom: -1px;
}

.product-tab:hover { color: var(--text-body); }
.product-tab.active { color: var(--text-primary); border-bottom-color: var(--accent); }

.product-tab-panel {
    display: none;
    padding: var(--space-6);
}

.product-tab-panel.active { display: block; }

/* ---- Buy card (right sidebar) ---- */
.product-sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--space-4));
}

.product-buy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.product-buy-head {
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    background: var(--bg-base);
}

.product-buy-price-regular {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--amber);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}

.product-buy-price-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

.product-buy-body {
    padding: var(--space-5);
}

/* License options */
.license-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.license-option {
    display: block;
    cursor: pointer;
}

.license-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.license-option-card {
    padding: var(--space-4);
    background: var(--bg-elevated);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
}

.license-option input:checked + .license-option-card {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.license-option-card:hover {
    border-color: var(--border-light);
}

.license-option-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.license-option-price {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--amber);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.license-option-desc {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

/* Product meta list */
.product-buy-footer {
    padding: var(--space-5);
    border-top: 1px solid var(--border);
    background: var(--bg-base);
}

.product-meta-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    list-style: none;
}

.product-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-size: var(--text-xs);
}

.product-meta-key {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-weight: 500;
}

.product-meta-key svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    flex-shrink: 0;
}

.product-meta-val {
    color: var(--text-body);
    font-weight: 600;
    text-align: right;
}

/* Category badge */
.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid var(--accent-border);
}

/* Star input */
.star-input {
    display: flex;
    gap: 6px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-input label {
    font-size: 24px;
    color: var(--border-light);
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
}

.star-input input { display: none; }

.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label {
    color: var(--amber);
}

/* Review header */
.review-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.reviewer-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--accent-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-sm);
    color: var(--accent-light);
    flex-shrink: 0;
    overflow: hidden;
    object-fit: cover;
}

.reviewer-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-2);
}

.review-rating .star-filled { color: var(--amber); }
.review-rating .star-empty  { color: var(--border-light); }

/* ============================================================
   PRODUCT PAGE — MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        padding: var(--space-4) 0 var(--space-8);
    }

    /* Show buy card before gallery on mobile */
    .product-sidebar {
        position: static;
        order: -1;
    }

    .product-buy-card { border-radius: var(--radius-lg); }

    .product-buy-head { padding: var(--space-4); }

    .product-buy-price-regular {
        font-size: var(--text-2xl);
    }

    .product-buy-body { padding: var(--space-4); }
    .product-buy-footer { padding: var(--space-4); }

    .product-tab { padding: 12px var(--space-4); font-size: var(--text-xs); }
    .product-tab-panel { padding: var(--space-4); }

    /* Carousel */
    .carousel-btn { width: 30px; height: 30px; }
    .carousel-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 480px) {
    .product-buy-price-regular { font-size: var(--text-xl); }

    .license-option-card { padding: var(--space-3); }
    .license-option-price { font-size: var(--text-base); }

    .product-meta-item { font-size: 11px; }
}

/* ============================================================
   PRODUCT PAGE — New layout structure
   ============================================================ */

/* Image top — full width */
.product-image-top {
    margin-bottom: var(--space-6);
}

.product-image-top .carousel {
    border-radius: var(--radius-xl);
}

/* Body layout — description left, buy right */
.product-body-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-6);
    align-items: start;
    margin-bottom: var(--space-10);
}

.product-body-left {
    min-width: 0;
}

/* License options — side by side */
.license-options-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.license-options-grid .license-option-card {
    padding: var(--space-3) var(--space-3);
}

.license-options-grid .license-option-name {
    font-size: var(--text-xs);
    margin-bottom: 2px;
}

.license-options-grid .license-option-price {
    font-size: var(--text-base);
    margin-bottom: 2px;
}

.license-options-grid .license-option-desc {
    font-size: 10px;
    line-height: 1.4;
}

/* Product tags */
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.product-tag {
    padding: 5px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--text-muted);
    transition: all var(--transition);
    text-decoration: none;
}

.product-tag:hover {
    border-color: var(--accent-border);
    color: var(--accent-light);
    background: var(--accent-glow);
}

/* ============================================================
   WISHLIST PAGE
   ============================================================ */

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */

@media (max-width: 768px) {
    /* Product layout — stack */
    .product-body-layout {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    /* Buy card comes first on mobile */
    .product-sidebar { order: -1; position: static; }

    /* License options — keep side by side on mobile too */
    .license-options-grid {
        grid-template-columns: 1fr 1fr;
    }

    .license-options-grid .license-option-card {
        padding: var(--space-2) var(--space-3);
    }
}

@media (max-width: 380px) {
    .license-options-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CHECKOUT — Missing classes
   ============================================================ */

.checkout-page {
    padding: var(--space-6) 0 var(--space-12);
}

.checkout-page-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
}

.checkout-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    margin-right: var(--space-2);
    flex-shrink: 0;
}

/* ============================================================
   PRODUCT DESCRIPTION
   ============================================================ */

.product-description {
    color: var(--text-body);
    line-height: 1.8;
    font-size: var(--text-base);
}

.product-description h2,
.product-description h3,
.product-description h4 {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    margin: var(--space-5) 0 var(--space-3);
    letter-spacing: -0.02em;
}

.product-description p { margin-bottom: var(--space-4); }
.product-description ul,
.product-description ol {
    padding-left: var(--space-5);
    margin-bottom: var(--space-4);
    list-style: disc;
}
.product-description li { margin-bottom: var(--space-2); }
.product-description a  { color: var(--accent-light); }
.product-description strong { color: var(--text-primary); font-weight: 700; }
.product-description code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    color: var(--accent-light);
}

/* ============================================================
   PRODUCTS PAGE — missing
   ============================================================ */

.products-page {
    padding: var(--space-7) 0 var(--space-12);
}

/* ============================================================
   ACCOUNT PAGE — missing  
   ============================================================ */

.orders-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   WISHLIST BUTTON
   ============================================================ */

.wishlist-btn svg path {
    transition: fill var(--transition), stroke var(--transition);
}

.wishlist-btn.active svg path {
    fill: var(--red);
    stroke: var(--red);
}

.wishlist-btn.active {
    color: var(--red);
    border-color: rgba(240,64,96,0.25);
    background: var(--red-glow);
}
