/* ============================================
   Sparks to Perfection - Storefront Styles
   Customer-facing e-commerce pages
   ============================================ */

/* ============================================
   Base / Layout
   ============================================ */
.sf-page, .storefront-page {
    background: var(--sf-bg);
    color: var(--sf-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.sf-page a, .storefront-page a { color: var(--brand-accent); }
.sf-page a:hover, .storefront-page a:hover { color: var(--brand-accent-light); }

/* ============================================
   Site Header
   ============================================ */
/* Navy header - consistent across light and dark themes */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: #0c1a32;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.3), transparent);
    pointer-events: none;
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5px var(--space-lg);
    min-height: 64px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--sf-header-text);
    flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }
.site-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.site-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--brand-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

/* Logo images (replaces icon + text) */
.site-logo-img {
    height: 100px;
    width: auto;
}
/* Navy header = always show white logo, hide dark logo */
.site-logo-img-light { display: block; }
.site-logo-img-dark { display: none; }

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}
.site-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #8e98af;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.site-nav-link:hover {
    color: #dfc06e;
    background: rgba(201, 168, 76, 0.08);
    text-decoration: none;
}
.site-nav-link.active {
    color: #c9a84c;
}

/* Cart icon with badge */
.cart-link {
    position: relative;
    padding: 9px 14px;
}
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #c9a84c;
    color: #0c1a32;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #1f2d4a;
    border-radius: var(--radius-md);
    background: transparent;
    color: #8e98af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all var(--transition-fast);
}
.theme-toggle:hover {
    color: #c9a84c;
    border-color: #c9a84c;
}

/* Account dropdown */
.account-menu {
    position: relative;
}
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #131d33;
    border: 1px solid #1f2d4a;
    border-radius: var(--radius-lg);
    box-shadow: var(--sf-card-shadow-hover);
    min-width: 200px;
    padding: var(--space-sm) 0;
    display: none;
    z-index: 600;
}
.account-dropdown.open { display: block; }
.account-dropdown-item {
    display: block;
    padding: 10px var(--space-md);
    font-size: 14px;
    color: #8e98af;
    text-decoration: none;
    transition: background var(--transition-fast);
}
.account-dropdown-item:hover {
    background: #1a2744;
    text-decoration: none;
    color: #dfc06e;
}
.account-dropdown-divider {
    height: 1px;
    background: var(--sf-border);
    margin: var(--space-xs) 0;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: none;
    color: #eceef2;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 900;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: #0c1a32;
    z-index: 901;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-nav-panel.open { transform: translateX(0); }
.mobile-nav-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 28px;
    color: #5c667e;
    cursor: pointer;
    padding: 8px;
    margin: -8px -8px var(--space-md) 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-panel .site-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 500;
    color: #8e98af !important;
    text-decoration: none;
    border-bottom: 1px solid #1f2d4a;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-panel .site-nav-link:hover,
.mobile-nav-panel .site-nav-link:active {
    color: #c9a84c !important;
}
.mobile-nav-panel .theme-toggle {
    display: flex !important;
    width: 100%;
    height: 48px;
    font-size: 16px;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    background: #0e1628;
    border: 1px solid #1f2d4a;
    border-radius: var(--radius-md);
    color: #8e98af;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #060a14;
    color: var(--sf-footer-text);
    margin-top: auto;
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}
[data-theme="light"] .site-footer {
    background: #0c1a32;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-xl);
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 18px;
    color: #c9a84c;
    margin-bottom: var(--space-sm);
}
.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 300px;
}
.footer-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c9a84c;
    margin-bottom: var(--space-md);
}
.footer-link {
    display: block;
    color: var(--sf-footer-text);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color var(--transition-fast);
}
.footer-link:hover { color: #dfc06e; text-decoration: none; }
.footer-bottom {
    margin-top: var(--space-xl);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(201, 168, 76, 0.1);
    font-size: 13px;
    opacity: 0.5;
    text-align: center;
}

/* ============================================
   Page Container
   ============================================ */
.sf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.sf-content {
    padding: var(--space-xl) 0;
    flex: 1;
}

/* ============================================
   Hero Section (Home)
   ============================================ */
.hero {
    position: relative;
    padding: 80px var(--space-lg) 90px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(170deg, #0c1a32 0%, #0f2240 40%, #132a4d 70%, #0c1a32 100%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(223, 192, 110, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.06) 0%, transparent 40%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--sf-bg));
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero h1 .accent { color: var(--brand-accent-light); }
.hero p {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(201, 168, 76, 0.7);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 16px 36px;
    background: linear-gradient(135deg, #c9a84c, #b89840);
    color: #0c1a32;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}
.hero-cta:hover {
    background: linear-gradient(135deg, #dfc06e, #c9a84c);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
    text-decoration: none;
    color: #0c1a32;
}

/* Spark particles (CSS-only decorative) */
.hero-sparks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c9a84c;
    box-shadow: 0 0 6px rgba(201, 168, 76, 0.6);
    opacity: 0;
    animation: sparkFloat 4s ease-in-out infinite;
}
.spark:nth-child(1) { left: 15%; top: 60%; animation-delay: 0s; }
.spark:nth-child(2) { left: 35%; top: 75%; animation-delay: 0.8s; }
.spark:nth-child(3) { left: 55%; top: 65%; animation-delay: 1.6s; }
.spark:nth-child(4) { left: 75%; top: 70%; animation-delay: 2.4s; }
.spark:nth-child(5) { left: 85%; top: 55%; animation-delay: 3.2s; }
.spark:nth-child(6) { left: 25%; top: 50%; animation-delay: 0.4s; }
.spark:nth-child(7) { left: 65%; top: 80%; animation-delay: 1.2s; }
.spark:nth-child(8) { left: 45%; top: 45%; animation-delay: 2s; }

@keyframes sparkFloat {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    20% { opacity: 0.8; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-60px) scale(0.3); }
}

/* Hero Section aliases (HTML uses .hero-section) */
.hero-section { position: relative; padding: 80px var(--space-lg) 90px; text-align: center; overflow: hidden; background: linear-gradient(170deg, #0c1a32 0%, #0f2240 40%, #132a4d 70%, #0c1a32 100%); }
.hero-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(223, 192, 110, 0.08) 0%, transparent 50%), radial-gradient(circle at 50% 100%, rgba(201, 168, 76, 0.06) 0%, transparent 40%); pointer-events: none; }
.hero-section::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--sf-bg)); pointer-events: none; }
[data-theme="light"] .hero-section::after { height: 80px; background: linear-gradient(to bottom, transparent, var(--sf-bg)); }
.hero-section .hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-section .hero-heading { font-family: var(--font-display); font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: #ffffff; line-height: 1.15; margin-bottom: var(--space-md); letter-spacing: -0.02em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.hero-section .hero-subheading { font-size: clamp(16px, 2vw, 20px); color: rgba(201, 168, 76, 0.7); line-height: 1.6; margin-bottom: var(--space-xl); max-width: 520px; margin-left: auto; margin-right: auto; }

/* Home sections (HTML uses .home-section) */
.home-section { padding: var(--space-2xl) 0; }
.home-section-inner { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.section-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--sf-text); margin-bottom: var(--space-sm); letter-spacing: -0.01em; }
.section-subtitle { font-size: 16px; color: var(--sf-text-muted); max-width: 480px; margin-bottom: var(--space-xl); }

/* How It Works section background */
.how-it-works { background: var(--sf-bg-alt); border-top: 1px solid var(--sf-border); border-bottom: 1px solid var(--sf-border); }

/* Product card image container (HTML uses .product-card-image) */
.product-card-image { position: relative; height: 220px; background: var(--sf-bg-alt); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card-image img { max-height: 100%; max-width: 100%; object-fit: contain; padding: var(--space-md); transition: transform var(--transition-normal); }
.product-card:hover .product-card-image img { transform: scale(1.08); }

/* Product card info (HTML uses .product-card-info) */
.product-card-info { padding: var(--space-md) var(--space-lg); }
.product-card-info .product-card-category { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sf-text-muted); display: block; margin-bottom: 4px; }

/* Steps/How It Works (HTML uses .steps-grid, .step-card, .step-number) */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.step-card { text-align: center; padding: var(--space-xl) var(--space-md); }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #c9a84c, #a88a35); color: #0c1a32; font-family: var(--font-display); font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3); }
.step-card h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--sf-text); margin-bottom: var(--space-sm); }
.step-card p { font-size: 14px; color: var(--sf-text-muted); line-height: 1.6; }

/* Fade-up animation class (HTML uses .fade-up) */
.fade-up { animation: fadeUp 0.5s ease both; }

/* Product detail aliases (HTML uses .product-detail-grid, .product-main-image, etc.) */
.product-detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-2xl); align-items: start; }
.product-detail-grid > * { min-width: 0; }
.product-main-image { background: var(--sf-bg-alt); border-radius: var(--radius-xl); overflow: hidden; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--sf-border); }
.product-main-image img { max-width: 95%; max-height: 95%; object-fit: contain; }
.product-thumbs { display: flex; gap: var(--space-sm); margin-top: var(--space-md); overflow-x: auto; }
.product-thumb { width: 80px; height: 80px; border: 2px solid var(--sf-border); border-radius: var(--radius-md); overflow: hidden; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--sf-bg-alt); transition: border-color var(--transition-fast); }
.product-thumb.active, .product-thumb:hover { border-color: var(--brand-accent); }
.product-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* Product detail info aliases */
.product-detail-category { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sf-text-muted); display: block; margin-bottom: var(--space-xs); }
.product-detail-name { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--sf-text); line-height: 1.2; margin-bottom: var(--space-sm); }
.product-detail-price { font-size: 28px; font-weight: 700; color: var(--brand-accent); margin-bottom: var(--space-lg); }
.product-detail-desc { font-size: 15px; color: var(--sf-text-secondary); line-height: 1.7; margin-bottom: var(--space-lg); }

/* Variant label alias */
.variant-label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sf-text-muted); margin-bottom: var(--space-md); display: block; }
.variant-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: var(--space-xl); }

/* ============================================
   Shop Page Layout
   ============================================ */
/* Shared page container */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg) var(--space-2xl);
}
.shop-page {
    flex: 1;
}
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg) var(--space-2xl);
}
.shop-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}
.shop-header-left {
    flex-shrink: 0;
}
.page-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 4px;
}
.page-subtitle {
    font-size: 15px;
    color: var(--sf-text-secondary);
}

/* Shop search */
.shop-search {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    align-self: center;
}
.shop-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-text-muted);
    pointer-events: none;
}
.shop-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-full);
    color: var(--sf-text);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-fast);
}
.shop-search-input::placeholder {
    color: var(--sf-text-muted);
}
.shop-search-input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

/* Category filter bar */
.category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

/* Category pill aliases (shop.html uses .category-pill) */
.category-pill { padding: 8px 18px; border: 1.5px solid var(--sf-border); border-radius: var(--radius-full); background: transparent; color: var(--sf-text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); }
.category-pill:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.category-pill.active { background: #c9a84c; border-color: #c9a84c; color: #0c1a32; }

/* Hidden utility */
.hidden { display: none !important; }

/* Empty state (generic) */
.empty-state { text-align: center; padding: var(--space-2xl); }
.empty-state h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: var(--space-sm); }

/* Loading placeholder */
.loading-placeholder { text-align: center; padding: var(--space-xl); color: var(--sf-text-muted); }

/* About section */
.about-section .section-subtitle { max-width: 700px; line-height: 1.7; }

/* Responsive fixes for new aliases */
@media (max-width: 900px) {
    .product-detail-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
@media (max-width: 768px) {
    .hero-section { padding: 60px var(--space-md) 80px; }
    .product-card-image { height: 160px; }
}

/* ============================================
   Section Headers
   ============================================ */
.sf-section {
    padding: var(--space-2xl) 0;
}
.sf-section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.sf-section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}
.sf-section-header p {
    font-size: 16px;
    color: var(--sf-text-muted);
    max-width: 480px;
    margin: 0 auto;
}
.sf-section-divider {
    width: 48px;
    height: 3px;
    background: var(--brand-accent);
    border-radius: 2px;
    margin: var(--space-md) auto;
}

/* ============================================
   Product Cards
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-lg);
}
.product-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sf-card-shadow);
}
.product-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    box-shadow: var(--sf-card-shadow-hover);
    transform: translateY(-4px);
    text-decoration: none;
    color: inherit;
}
.product-card-img {
    position: relative;
    height: 220px;
    background: var(--sf-bg-alt);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: var(--space-md);
    transition: transform var(--transition-normal);
}
.product-card:hover .product-card-img img {
    transform: scale(1.08);
}
.product-card-category {
    display: inline-block;
    margin-top: -12px;
    margin-left: var(--space-xs);
    margin-bottom: 6px;
    padding: 4px 10px;
    background: var(--sf-surface);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sf-text-muted); /* Original: var(--sf-text-muted) = ~#5c667e in dark mode */
    border: 1px solid var(--sf-border);
    position: relative;
    z-index: 2;
}
/* Slightly lighter category tag text in dark mode */
[data-theme="dark"] .product-card-category {
    color: #8e98af;
}
.product-card-body {
    padding: var(--space-md) var(--space-lg);
}
.product-card-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: 4px;
}
.product-card-price {
    font-size: 16px;
    font-weight: 600;
    color: #c9a84c;
}
.product-card-desc {
    font-size: 13px;
    color: var(--sf-text-muted);
    margin-top: 4px;
    line-height: 1.5;
}
.product-card-action {
    padding: 0 var(--space-lg) var(--space-lg);
}
.product-card-action .btn {
    width: 100%;
}

/* ============================================
   Category Filter Bar
   ============================================ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    overflow-x: auto;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
}
.filter-chip {
    padding: 8px 18px;
    border: 1.5px solid var(--sf-border);
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--sf-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}
.filter-chip:hover {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}
.filter-chip.active {
    background: #c9a84c;
    border-color: #c9a84c;
    color: #0c1a32;
}

/* Search bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    padding-left: 40px;
    background: var(--sf-input-bg);
    border: 1.5px solid var(--sf-input-border);
    border-radius: var(--radius-lg);
    color: var(--sf-text);
    font-size: 15px;
    transition: border-color var(--transition-fast);
}
.search-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px var(--brand-accent-glow);
}
.search-input::placeholder { color: var(--sf-text-muted); }
.search-wrap {
    position: relative;
    flex: 1;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sf-text-muted);
    font-size: 16px;
    pointer-events: none;
}

/* ============================================
   Product Detail Page
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}
.product-gallery {
    position: sticky;
    top: 80px;
}
.product-gallery-main {
    background: var(--sf-bg-alt);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border: 1px solid var(--sf-border);
}
.product-gallery-main img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}
.product-gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    overflow-x: auto;
    padding-bottom: 10px;
}
.product-gallery-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--sf-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-bg-alt);
    transition: border-color var(--transition-fast);
}
.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--brand-accent);
}
.product-gallery-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.product-info h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--sf-text);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}
.product-info .product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: var(--space-lg);
}
.product-info .product-desc {
    font-size: 15px;
    color: var(--sf-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Variant selector */
.variant-selector-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sf-text-muted);
    margin-bottom: var(--space-sm);
}
.variant-selector {
    margin-bottom: var(--space-xl);
}
.variant-swatch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid var(--sf-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--sf-bg-alt);
    color: var(--sf-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: all var(--transition-fast);
}
.variant-swatch:hover { border-color: var(--brand-accent); color: var(--brand-accent); }
.variant-swatch.selected, .variant-swatch.active {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}
.variant-swatch img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--sf-surface);
}
.variant-swatch-label {
    flex: 1;
    line-height: 1.3;
    word-break: break-word;
}

/* Compact variant thumb grid (product detail redesign) */
.variant-selected-name {
    color: var(--sf-text);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}
.variant-thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-thumb-btn {
    width: 56px;
    height: 56px;
    border: 2px solid var(--sf-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sf-bg-alt);
    padding: 0;
    flex-shrink: 0;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.variant-thumb-btn:hover {
    border-color: var(--brand-accent);
}
.variant-thumb-btn.active {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}
.variant-thumb-btn img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ============================================
   Sale Pricing
   ============================================ */
.price-original {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.85em;
    margin-right: 6px;
}
.price-sale {
    color: var(--brand-accent, #c9a84c);
    font-weight: 700;
}
.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
    letter-spacing: 0.5px;
}
.product-detail-price .price-original {
    font-size: 20px;
    color: #9ca3af;
}
.product-detail-price .price-sale {
    font-size: 28px;
}

/* ============================================
   Breadcrumbs
   ============================================ */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 13px;
    color: var(--sf-text-muted);
    padding: var(--space-md) 0;
}
.breadcrumbs a {
    color: var(--sf-text-muted);
    text-decoration: none;
}
.breadcrumbs a:hover { color: var(--brand-accent); text-decoration: none; }
.breadcrumbs .separator { opacity: 0.4; }

/* ============================================
   How It Works (Home)
   ============================================ */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.how-step {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
}
.how-step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #a88a35);
    color: #0c1a32;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}
.how-step h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: var(--space-sm);
}
.how-step p {
    font-size: 14px;
    color: var(--sf-text-muted);
    line-height: 1.6;
}

/* ============================================
   Cart Page
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-xl);
    align-items: start;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.cart-item {
    display: flex;
    gap: var(--space-lg);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.cart-item-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sf-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--sf-border);
}
.cart-item-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cart-item-info,
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.cart-item-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--sf-text);
}
.cart-item-variant {
    font-size: 13px;
    color: var(--sf-text-muted);
    margin-top: 2px;
}
.cart-item-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-accent);
    margin-top: auto;
    padding-top: var(--space-sm);
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}
.cart-qty-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--sf-text-secondary);
}
.cart-item-qty {
    width: 60px;
    padding: 8px 10px;
    background: var(--sf-surface);
    border: 1.5px solid var(--sf-border);
    border-radius: var(--radius-md);
    color: var(--sf-text);
    font-size: 14px;
    font-family: var(--font-sans);
    text-align: center;
    outline: none;
    transition: border-color var(--transition-fast);
    -moz-appearance: textfield;
}
.cart-item-qty::-webkit-inner-spin-button,
.cart-item-qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.cart-item-qty:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
}
.cart-item-remove:hover { text-decoration: underline; }

/* Dual Preview for Patch Items (product + patch side by side) */
.cart-item-dual-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.cart-dual-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.cart-dual-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.cart-dual-img-patch {
    border-color: var(--brand-accent);
    border-width: 1.5px;
}
.cart-dual-connector {
    font-size: 18px;
    font-weight: 700;
    color: var(--sf-text-muted);
    flex-shrink: 0;
    line-height: 1;
}
.cart-dual-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    padding: 2px 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-dual-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sf-text-muted);
    font-size: 0.75rem;
    text-align: center;
    padding: 8px;
}

/* Clickable preview hover effect */
.cart-preview-clickable {
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-preview-clickable:hover {
    transform: scale(1.04);
}
.cart-preview-clickable:hover .cart-dual-img,
.cart-item-preview.cart-preview-clickable:hover {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.25);
}
.cart-preview-zoom-hint {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.cart-preview-clickable:hover .cart-preview-zoom-hint {
    opacity: 0.8;
}

/* Cart Image Lightbox */
.cart-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    transition: background 0.25s ease, backdrop-filter 0.25s ease;
    padding: 20px;
}
.cart-lightbox.active {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}
.lightbox-container {
    position: relative;
    max-width: 800px;
    width: 100%;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    text-align: center;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.cart-lightbox.active .lightbox-container {
    transform: scale(1);
    opacity: 1;
}
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--sf-text-muted);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: var(--radius-md);
    transition: color 0.15s, background 0.15s;
    z-index: 1;
}
.lightbox-close:hover {
    color: var(--sf-text);
    background: rgba(255,255,255,0.08);
}
.lightbox-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-text);
    margin: 0 0 20px;
}

/* Lightbox dual layout */
.lightbox-dual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.lightbox-plus {
    font-size: 28px;
    font-weight: 700;
    color: var(--sf-text-muted);
    flex-shrink: 0;
}
.lightbox-single {
    display: flex;
    justify-content: center;
}
.lightbox-image-wrap {
    flex: 1;
    max-width: 380px;
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
/* Single images get more room since there's no side-by-side constraint */
.lightbox-single .lightbox-image-wrap {
    max-width: 500px;
}
.lightbox-image-patch {
    border-color: var(--brand-accent);
    border-width: 2px;
}
.lightbox-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}
.lightbox-single .lightbox-image-wrap img {
    max-height: 70vh;
}
.lightbox-img-label {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-text-secondary);
    background: var(--sf-surface);
    border-top: 1px solid var(--sf-border);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lightbox-no-design {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: var(--sf-text-muted);
    font-size: 1rem;
}
.lightbox-meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--sf-text-muted);
}
.lightbox-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Order Summary Sidebar */
.order-summary {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: sticky;
    top: 80px;
}
.order-summary h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    font-size: 15px;
}
.summary-row.total {
    border-top: 2px solid var(--sf-border);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-size: 18px;
    font-weight: 700;
}
.summary-row .label { color: var(--sf-text-secondary); }
.summary-row .value { font-weight: 600; color: var(--sf-text); }
.summary-row.total .value { color: var(--brand-accent); }

/* ============================================
   Checkout Page
   ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-xl);
    align-items: start;
}
/* Checkout error banner (stock errors, etc.) */
.checkout-error-banner {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}
.checkout-error-banner p {
    margin: 0;
    color: #f87171;
    font-size: 14px;
    font-weight: 500;
}

.checkout-form-section {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}
.checkout-section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: var(--space-lg);
}

/* Checkout form controls */
.checkout-form-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.checkout-form-section .form-group {
    margin-bottom: var(--space-md);
}
.checkout-form-section .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-text-secondary);
    margin-bottom: 6px;
}
.checkout-form-section .form-group input[type="text"],
.checkout-form-section .form-group input[type="email"],
.checkout-form-section .form-group input[type="tel"],
.checkout-form-section .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--sf-input-bg);
    border: 1.5px solid var(--sf-input-border);
    border-radius: var(--radius-md);
    color: var(--sf-text);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}
.checkout-form-section .form-group input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.checkout-form-section .form-group input::placeholder {
    color: var(--sf-text-muted);
}
/* Override browser/extension autofill background */
.checkout-form-section .form-group input:-webkit-autofill,
.checkout-form-section .form-group input:-webkit-autofill:hover,
.checkout-form-section .form-group input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--sf-input-bg) inset;
    -webkit-text-fill-color: var(--sf-text);
    caret-color: var(--sf-text);
    transition: background-color 5000s ease-in-out 0s;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--sf-text-secondary);
}
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--brand-accent);
    flex-shrink: 0;
}
.checkout-account-option {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--sf-border);
}

/* Storefront form controls (generic sf-input) */
.sf-page .sf-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--sf-input-bg);
    border: 1.5px solid var(--sf-input-border);
    border-radius: var(--radius-md);
    color: var(--sf-text);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color var(--transition-fast);
}
.sf-page .sf-input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px var(--brand-accent-glow);
}
.sf-page .sf-input::placeholder { color: var(--sf-text-muted); }
.sf-page .sf-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-text-secondary);
    margin-bottom: 6px;
}
.sf-page .sf-form-group {
    margin-bottom: var(--space-md);
}

/* Payment selection */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.payment-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--sf-surface);
    border: 2px solid var(--sf-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.payment-option:hover { border-color: var(--brand-accent); }
.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-accent);
    flex-shrink: 0;
}
.payment-option-content strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--sf-text);
}
.payment-option-content span {
    display: block;
    font-size: 13px;
    color: var(--sf-text-muted);
    margin-top: 2px;
}

/* Checkout order summary sidebar */
.checkout-summary {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: sticky;
    top: 100px;
}
.cart-summary-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: var(--space-lg);
}
.checkout-items-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.checkout-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.checkout-item-preview {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.checkout-item-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.checkout-dual-preview {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.checkout-dual-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.checkout-dual-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.checkout-dual-plus {
    font-size: 11px;
    font-weight: 700;
    color: var(--sf-text-muted);
    line-height: 1;
}
.checkout-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.checkout-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--sf-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.checkout-item-variant {
    font-size: 12px;
    color: var(--sf-text-muted);
}
.checkout-item-qty {
    font-size: 12px;
    color: var(--sf-text-muted);
}
.checkout-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--sf-text);
    flex-shrink: 0;
}
.cart-summary-divider {
    height: 1px;
    background: var(--sf-border);
    margin: var(--space-md) 0;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--sf-text-secondary);
    padding: 4px 0;
}
.cart-summary-note span:last-child {
    font-size: 12px;
    color: var(--sf-text-muted);
}
.cart-summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--sf-text);
}

/* ============================================
   Confirmation Page
   ============================================ */
.confirmation-card {
    text-align: center;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 600px;
    margin: var(--space-xl) auto;
    box-shadow: var(--sf-card-shadow);
}
.confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-accent-dark));
    color: #fff;
    font-size: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}
.confirmation-card h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.confirmation-order-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-accent);
    font-family: var(--font-mono);
    margin: var(--space-md) 0;
}

/* ============================================
   Account Pages
   ============================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-2xl) var(--space-lg);
}
.auth-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--sf-card-shadow);
}
.auth-card h1, .auth-card h2, .auth-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--sf-text);
    margin-bottom: var(--space-xs);
}
.auth-subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--sf-text-muted);
    margin-bottom: var(--space-xl);
}
.auth-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: var(--space-lg);
    text-align: center;
}
.auth-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.auth-card .form-group {
    margin-bottom: var(--space-md);
}
.auth-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.auth-card .form-group label small {
    text-transform: none;
    font-weight: 400;
    color: var(--sf-text-muted);
    letter-spacing: 0;
}
.auth-card .form-group input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: var(--font-sans);
    border: 1.5px solid var(--sf-border);
    border-radius: var(--radius-md);
    background: var(--sf-bg-alt);
    color: var(--sf-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    min-height: 48px;
    box-sizing: border-box;
}
.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.auth-card .form-group input::placeholder {
    color: var(--sf-text-muted);
    opacity: 0.6;
}
.auth-card .sf-btn {
    margin-top: var(--space-md);
}
.auth-links {
    text-align: center;
    font-size: 14px;
    color: var(--sf-text-muted);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--sf-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}
.auth-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: var(--space-xs) 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--sf-border);
}
.auth-divider span {
    padding: 0 var(--space-md);
    font-size: 12px;
    color: var(--sf-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.auth-card .auth-link {
    text-align: center;
    font-size: 14px;
    color: var(--sf-text-muted);
    margin-top: var(--space-lg);
}
@media (max-width: 480px) {
    .auth-card { padding: var(--space-xl) var(--space-lg); }
    .auth-card .form-row { grid-template-columns: 1fr; }
}

/* Account page */
.account-page {
    flex: 1;
}
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

/* Account sidebar */
.account-sidebar {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    position: sticky;
    top: 120px;
}
.account-sidebar-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--sf-text);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
}
.account-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px var(--space-md);
    font-size: 14px;
    color: var(--sf-text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.account-nav-item svg {
    flex-shrink: 0;
    opacity: 0.6;
}
.account-nav-item:hover {
    background: var(--sf-surface-hover);
    color: var(--sf-text);
    text-decoration: none;
}
.account-nav-item:hover svg {
    opacity: 1;
}
.account-nav-item.active {
    background: rgba(201, 168, 76, 0.1);
    color: var(--brand-accent);
    font-weight: 600;
}
.account-nav-item.active svg {
    opacity: 1;
    stroke: var(--brand-accent);
}

/* Account content area */
.account-content .page-title {
    margin-bottom: var(--space-lg);
}
.account-content-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}
.account-content-card h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

/* Profile section */
.profile-section {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}
.profile-section .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
.profile-section .form-group {
    margin-bottom: var(--space-md);
}
.profile-section .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sf-text-secondary);
    margin-bottom: 6px;
}
.profile-section .form-group input[type="text"],
.profile-section .form-group input[type="email"],
.profile-section .form-group input[type="tel"],
.profile-section .form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--sf-input-bg);
    border: 1.5px solid var(--sf-input-border);
    border-radius: var(--radius-md);
    color: var(--sf-text);
    font-family: var(--font-sans);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}
.profile-section .form-group input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.profile-section .form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.profile-section .form-group input::placeholder {
    color: var(--sf-text-muted);
}
.profile-section .form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--sf-text-muted);
}

/* Dashboard welcome */
.account-welcome h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--sf-text);
    margin-bottom: var(--space-lg);
}

/* Dashboard quick-link cards */
.account-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.account-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-fast);
}
.account-quick-card:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
    text-decoration: none;
}
.account-quick-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.1);
    border-radius: var(--radius-lg);
    color: var(--brand-accent);
}
.account-quick-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--brand-accent);
}
.account-quick-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--sf-text);
}
.account-quick-card p {
    font-size: 13px;
    color: var(--sf-text-muted);
}

/* Recent orders on dashboard */
#recentOrders h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--sf-text);
}

/* ============================================
   Order History Table (Customer)
   ============================================ */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.order-history {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.order-row {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: inherit;
    min-height: 72px;
}
.order-row:hover {
    border-color: var(--brand-accent);
    box-shadow: var(--sf-card-shadow);
    text-decoration: none;
    color: inherit;
}

/* Stacked image thumbnails */
.order-row-thumbs {
    flex-shrink: 0;
}
.order-thumb-stack {
    position: relative;
    height: 60px;
}
.order-thumb {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sf-bg-alt);
    border: 2px solid var(--brand-accent, #c9a84c);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.order-thumb-empty {
    font-size: 18px;
    opacity: 0.35;
}
.order-thumb-more {
    background: var(--sf-bg-alt);
    border: 2px dashed rgba(201, 168, 76, 0.4);
    box-shadow: none;
}
.order-thumb-more span {
    font-size: 15px;
    font-weight: 700;
    color: rgba(201, 168, 76, 0.7);
}
.order-thumb-patch {
    border-color: var(--sf-accent, #e67e22);
}

/* Order row info */
.order-row-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.order-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}
.order-row-number {
    font-weight: 700;
    font-family: var(--font-mono);
    font-size: 14px;
}
.order-row-total {
    font-weight: 600;
    color: var(--brand-accent);
    font-size: 15px;
    white-space: nowrap;
}
.order-row-items-summary {
    font-size: 13px;
    color: var(--sf-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.order-row-bottom {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 2px;
}
.order-row-date {
    font-size: 12px;
    color: var(--sf-text-muted);
}

/* Order status & payment badges */
.order-status-badge,
.order-payment-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: capitalize;
}
.order-status-badge.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}
.order-status-badge.in-progress {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}
.order-status-badge.completed {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}
.order-payment-badge.paid {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}
.order-payment-badge.unpaid {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}
.order-status-badge.cancelled {
    background: rgba(107, 114, 128, 0.12);
    color: #9ca3af;
}

/* ============================================
   Customer Order Detail Page
   ============================================ */
.od-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--sf-text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-lg);
    transition: color var(--transition-fast);
}
.od-back-link:hover {
    color: var(--brand-accent);
    text-decoration: none;
}

/* Header */
.od-header {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}
.od-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.od-order-number {
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-accent);
    margin: 0;
}
.od-badges {
    display: flex;
    gap: var(--space-sm);
}
.od-header-meta {
    margin-top: var(--space-sm);
    font-size: 13px;
    color: var(--sf-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.od-meta-sep {
    opacity: 0.4;
}

/* Items section */
.od-items {
    margin-bottom: var(--space-lg);
}
.od-section-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

/* Single item card */
.od-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* Item images */
.od-item-images {
    flex-shrink: 0;
}
.od-item-images-dual {
    display: flex;
    align-items: center;
    gap: 8px;
}
.od-item-img-wrap {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--sf-bg-alt);
    border: 1px solid var(--sf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}
.od-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.od-item-img-patch {
    border-color: var(--sf-accent, #e67e22);
}
.od-item-img-empty {
    font-size: 28px;
    opacity: 0.3;
}
.od-item-img-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 2px 0;
}
.od-item-img-plus {
    font-size: 16px;
    font-weight: 700;
    color: var(--sf-text-muted);
    flex-shrink: 0;
}

/* Item info */
.od-item-info {
    flex: 1;
    min-width: 0;
}
.od-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--sf-text);
}
.od-item-variant {
    font-size: 13px;
    color: var(--sf-text-secondary);
    margin-top: 2px;
}
.od-item-patch {
    font-size: 13px;
    color: var(--sf-text-secondary);
    margin-top: 2px;
}
.od-item-patch-price {
    color: var(--brand-accent);
}
.od-item-no-engrave {
    font-size: 12px;
    color: var(--sf-text-muted);
    font-style: italic;
    margin-top: 4px;
}

/* Clickable preview (lightbox trigger) */
.od-preview-clickable {
    cursor: pointer;
    position: relative;
    transition: transform var(--transition-fast);
}
.od-preview-clickable:hover {
    transform: scale(1.04);
}
.od-preview-clickable:hover .od-item-img-wrap {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 1px var(--brand-accent);
}
.od-preview-zoom {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
.od-preview-clickable:hover .od-preview-zoom {
    opacity: 0.8;
}

/* Item pricing (right side) */
.od-item-pricing {
    flex-shrink: 0;
    text-align: right;
}
.od-item-line-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--sf-text);
}
.od-item-qty {
    font-size: 12px;
    color: var(--sf-text-muted);
    margin-top: 2px;
}

/* Price summary */
.od-summary {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg) var(--space-xl);
    max-width: 360px;
    margin-left: auto;
}

/* Error state */
.od-error {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}
.od-error-icon {
    font-size: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}
.od-error h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--sf-text-secondary);
}

/* Clickable order rows */
a.order-row-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
a.order-row-link:hover {
    text-decoration: none;
}
a.order-row-link:hover .order-row {
    border-color: var(--brand-accent);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.1);
}

/* ============================================
   Storefront Buttons
   ============================================ */
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    min-height: 48px;
}
.sf-btn:hover { text-decoration: none; }
.sf-btn:active { transform: scale(0.97); }
.sf-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.sf-btn-primary {
    background: linear-gradient(135deg, #c9a84c, #b89840);
    color: #0c1a32 !important;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
    font-weight: 700;
}
.sf-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #dfc06e, #c9a84c);
    color: #0c1a32 !important;
    box-shadow: 0 8px 30px rgba(201, 168, 76, 0.45);
}
.sf-btn-secondary {
    background: transparent;
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    color: var(--sf-text) !important;
}
.sf-btn-secondary:hover:not(:disabled) {
    border-color: #c9a84c;
    color: #c9a84c !important;
    background: rgba(201, 168, 76, 0.05);
}
.sf-btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 56px;
}
.sf-btn-block { width: 100%; }

/* ============================================
   Empty State
   ============================================ */
.sf-empty {
    text-align: center;
    padding: var(--space-2xl);
}
.sf-empty-icon {
    font-size: 56px;
    opacity: 0.3;
    margin-bottom: var(--space-md);
}
.sf-empty h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.sf-empty p {
    color: var(--sf-text-muted);
    margin-bottom: var(--space-lg);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeUp 0.5s ease both;
}
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
    .cart-layout, .checkout-layout {
        grid-template-columns: 1fr;
    }
    .order-summary,
    .checkout-summary {
        position: static;
    }
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .account-layout {
        grid-template-columns: 1fr;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .site-header-inner { min-height: 56px; height: auto; padding-top: 2px; padding-bottom: 2px; }
    .site-logo-img { height: 60px; }
    .site-nav .site-nav-link:not(.cart-link) { display: none; }
    .mobile-menu-btn { display: flex; }
    .site-nav > .theme-toggle { display: none; }

    .hero { padding: 60px var(--space-md) 80px; }
    .sf-content { padding: var(--space-lg) 0; }

    .page-container,
    .shop-container { padding-left: var(--space-md); padding-right: var(--space-md); }
    .shop-header { flex-direction: column; gap: var(--space-sm); }
    .shop-search { width: 100%; }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    .product-card-img { height: 160px; }

    .cart-item { flex-direction: column; gap: var(--space-md); }
    .cart-item-preview { width: 80px; height: 80px; }
    .cart-dual-img { width: 72px; height: 72px; }
    .cart-item-dual-preview { gap: 6px; }
    .cart-dual-connector { font-size: 14px; }

    .lightbox-container { padding: 24px 16px; }
    .lightbox-dual { flex-direction: column; gap: 12px; }
    .lightbox-plus { font-size: 20px; }
    .lightbox-image-wrap { max-width: 300px; }
    .lightbox-single .lightbox-image-wrap { max-width: 85vw; }
    .lightbox-single .lightbox-image-wrap img { max-height: 55vh; }
    .lightbox-title { font-size: 17px; margin-bottom: 14px; }

    .order-row { gap: var(--space-md); padding: var(--space-md); }
    .order-thumb { width: 50px; height: 50px; border-radius: 6px; }
    .order-thumb-stack { height: 50px; }
    .order-row-items-summary { font-size: 12px; }

    /* Order detail responsive */
    .od-item { flex-direction: column; gap: var(--space-md); }
    .od-item-images-dual { justify-content: center; }
    .od-item-img-wrap { width: 70px; height: 70px; }
    .od-item-pricing { text-align: left; }
    .od-summary { max-width: 100%; }
    .od-order-number { font-size: 18px; }

    .checkout-form-section .form-row,
    .profile-section .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-info h1 { font-size: 24px; }
    .product-info .product-price { font-size: 22px; }
}
