/* ============================================================
   Clicks Leather — Main Stylesheet
   Premium leather-themed dark design
   ============================================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    /* Brand Colors */
    --color-primary: #8C5C38;
    --color-primary-dark: #6A4325;
    --color-primary-light: #B48560;
    --color-accent: #A67347;
    --color-gold: #C9A96E;
    --color-gold-light: #E0C992;

    /* Light Theme */
    --bg-dark: #FDFBF7;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F5F2EB;
    --bg-input: #FFFFFF;
    --bg-sidebar: #FDFBF7;
    --bg-overlay: rgba(255, 255, 255, 0.8);

    /* Text Colors */
    --text-primary: #2C2825;
    --text-secondary: #5C554F;
    --text-muted: #8C847D;
    --text-dark: #1A1A1A;
    --text-light: #FDFBF7;

    /* Borders */
    --border-color: #E6DFD5;
    --border-light: #F0EBE1;

    /* Status Colors */
    --color-success: #4ADE80;
    --color-error: #F87171;
    --color-warning: #FBBF24;
    --color-info: #60A5FA;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(200, 149, 108, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Font */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-anchor: none;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Page Wrapper - controls horizontal overflow without breaking sticky header */
.page-wrapper {
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #e1dfdf;
    box-shadow: 0 2px 8px rgba(200, 149, 108, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    box-shadow: 0 4px 16px rgba(200, 149, 108, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: rgba(200, 149, 108, 0.1);
    border-color: var(--color-primary-dark);
    color: var(--color-primary);
}

.btn-google {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    font-weight: 500;
    white-space: nowrap;
}

.btn-google:hover {
    background: #f8f8f8;
    box-shadow: var(--shadow-md);
    color: #333;
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Password Input with Toggle Icon */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.password-toggle-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.password-toggle-icon:hover {
    color: var(--text-secondary);
}

.password-toggle-icon svg {
    width: 100%;
    height: 100%;
}


.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A8A29E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.required {
    color: var(--color-error);
}

.form-helper-text {
    display: block;
    margin-top: var(--space-xs);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Flash Messages ---------- */
.flash-message {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    border-left: 4px solid;
    animation: flashIn 0.3s ease-out;
    transition: opacity 0.5s ease;
}

.flash-message.fade-out {
    opacity: 0;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--color-success);
    color: var(--color-success);
}

.flash-error {
    background: rgba(248, 113, 113, 0.1);
    border-color: var(--color-error);
    color: var(--color-error);
}

.flash-warning {
    background: rgba(251, 191, 36, 0.1);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.flash-info {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--color-info);
    color: var(--color-info);
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--space-xl);
    background: var(--bg-dark);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(140, 92, 56, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
}

.admin-auth-page {
    background-image: 
        radial-gradient(ellipse at 50% 50%, rgba(140, 92, 56, 0.03) 0%, transparent 50%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    animation: cardSlideUp 0.5s ease-out;
}

@keyframes cardSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-logo {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.auth-logo:hover {
    color: var(--color-primary-light);
}

.admin-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(140, 92, 56, 0.1);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.auth-header h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    margin-bottom: var(--space-lg);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 var(--space-md);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 500;
}

.admin-link {
    margin-top: var(--space-md);
}

.admin-link a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-link a:hover {
    color: var(--color-primary);
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
/* Header Container */
.header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    overflow-anchor: none;
}

/* Multi-Stage Scroll Animation Classes */
.announcement-bar,
.main-nav,
.header-center {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Stage 2 & 3: Hide Announcement Bar and Logo */
.stage-2 .announcement-bar,
.stage-3 .announcement-bar,
.stage-2 .header-center,
.stage-3 .header-center {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    position: absolute;
    width: 100%;
    left: 0;
}

/* Stage 3 only: Hide Navigation Bar */
.stage-3 .main-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    position: absolute;
    width: 100%;
    left: 0;
}

/* Tier 1: Announcement Bar */
.announcement-bar {
    background-color: var(--color-primary-dark);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.announcement-bar .separator {
    opacity: 0.5;
}

/* Tier 2: Main Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-xl);
}
.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 0;
}
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}
.header-logo-link {
    display: block;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}
.header-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-lg);
    min-width: 0;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.icon-link {
    color: var(--text-primary);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
}
.icon-link:hover {
    color: var(--color-primary);
}
.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-count.hidden {
    display: none;
}
.subscribe-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 0.5rem;
}

.search-dropdown.open {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrapper {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    border-color: var(--color-primary);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-message {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-results-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* Tier 3: Main Navigation */
.main-nav {
    padding: 0 var(--space-xl);
    border-top: 1px solid var(--border-light);
}
.main-nav {
    overflow-x: auto;
    overflow-y: hidden;
}

.nav-categories {
    display: flex;
    justify-content: center;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}
.nav-categories::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.nav-categories li {
    margin: 0 var(--space-md);
}
.nav-categories a {
    display: block;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: color var(--transition-fast);
    white-space: nowrap;
}
.nav-categories a:hover {
    color: var(--text-primary);
}
.nav-highlight a {
    color: var(--text-primary);
    border-bottom: 2px solid var(--color-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: calc(85vh);
    padding: 2rem var(--space-xl) var(--space-2xl);
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 100%);
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

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

/* Hero Content Wrapper - confines text on desktop */
.hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 50%;
    z-index: 2;
    padding: 0 var(--space-xl);
}

.hero-content {
    max-width: 600px;
    text-align: left;
    margin-top: -1rem;
    animation: heroFadeIn 0.8s ease-out;
    padding-left: 0;
    position: relative;
    z-index: 2;
}

/* Dot Indicators (tablet/mobile only) */
.hero-carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 0.75rem;
    z-index: 3;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    border-color: rgba(255, 255, 255, 1);
}

.hero-dot.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
}

/* Desktop (≥1024px): show all 3 side-by-side */
@media (min-width: 1024px) {
    .hero-carousel-track {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    
    .hero-content-wrapper {
        width: 45%;
    }

    .hero-title {
        font-size: 3rem !important;
    }
}

/* Tablet (768px - 1023px): single-slide with dots */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-carousel-track {
        grid-template-columns: repeat(3, 100%);
        width: 100%;
    }
    
    .hero-slide img {
        object-fit: contain;
    }
    
    .hero-content-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 var(--space-xl);
    }
    
    .hero-carousel-dots {
        display: flex;
    }
    
    .hero-content {
        max-width: 500px;
    }

    .hero-title {
        font-size: 3rem !important;
    }
}

/* Mobile (<768px): single-slide with dots */
@media (max-width: 767px) {
    .hero-carousel-track {
        grid-template-columns: repeat(3, 100%);
        width: 100%;
    }
    
    .hero-slide img {
        object-fit: contain;
    }
    
    .hero-content-wrapper {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        padding: 0 var(--space-md);
    }
    
    .hero-carousel-dots {
        display: flex;
        bottom: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem var(--space-md) var(--space-xl);
    }
    
    .hero-content {
        max-width: 400px;
    }
}

/* Responsive */
@media (max-width: 1080px) {
    #hero-join-btn {
        color: #FFFFFF;
        border-color: rgba(255, 255, 255, 0.6);
    }

    #hero-join-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #ffffff;
        color: #FFFFFF;
    }
}

@media (max-width: 1024px) {
    .hero-description {
        color: rgba(255, 255, 255, 0.75);
    }

    .hero-subtitle {
        color: #FFFFFF !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        color: #FFFFFF;
        -webkit-text-fill-color: initial;
        background: none;
    }

    .hero-description {
        color: rgba(255, 255, 255, 0.75);
    }

    .hero-subtitle {
        color: #FFFFFF;
    }

    #hero-explore-btn,
    #hero-join-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(140, 92, 56, 0.08);
    color: #FFFFFF;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#hero-explore-btn {
    color: #FFFFFF;
}

#hero-explore-btn:hover {
    color: #FFFFFF;
}

#hero-join-btn {
    color: #FFFFFF;
}

#hero-join-btn:hover {
    color: #FFFFFF;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.section-header p {
    color: var(--text-muted);
}

/* ---------- Circular Showcase Section ---------- */
.circular-showcase-section {
    padding: 5rem var(--space-xl);
    background: var(--bg-card);
}

.circular-showcase {
    max-width: 1060px;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.circular-showcase::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.circular-showcase-track {
    display: flex;
    gap: 2rem;
    padding: 1rem;
}

.category-circle-wrapper {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.category-circle-wrapper:hover {
    transform: translateY(-4px);
}

.category-circle {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-dark);
}

.category-circle-wrapper:hover .category-circle {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(140, 92, 56, 0.2);
}

.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-circle-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-circle-label {
    margin-top: var(--space-md);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

/* Scroll Progress Indicator */
.circular-showcase-progress {
    width: 100%;
    height: 2px;
    background: var(--border-color);
    border-radius: 1px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.circular-showcase-progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 0.3s ease, left 0.3s ease;
    width: 50%;
    position: relative;
}

/* Responsive */
@media (max-width: 1024px) {
    .circular-showcase-section {
        padding: 3rem var(--space-xl);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .category-circle {
        width: 180px;
        height: 180px;
    }

    .circular-showcase-track {
        gap: 1.75rem;
    }
}

@media (max-width: 768px) {
    .circular-showcase {
        max-width: 100%;
    }
    
    .category-circle {
        width: 140px;
        height: 140px;
    }
    
    .category-circle-label {
        font-size: 0.875rem;
    }
    
    .circular-showcase-track {
        gap: 1.5rem;
        padding: 1rem;
    }
}

/* ---------- Featured Section ---------- */
.featured-section {
    padding: 5rem var(--space-xl);
    background: var(--bg-card);
}

.featured-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-section .section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.featured-section .section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.featured-product-card {
    display: block;
    text-decoration: none;
    background: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(140, 92, 56, 0.15);
}

.featured-product-image {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--border-light);
    border-radius: 10px;
}

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

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

.featured-product-info {
    padding: 1rem;
    text-align: center;
}

.featured-product-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-product-price {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .featured-section .section-header h2 {
        font-size: 2rem;
    }
}

/* ---------- Trust Badges ---------- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    padding: 3rem var(--space-xl);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-primary-dark);
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ---------- Trust Bar Section ---------- */
.trust-bar-section {
    padding: 2.5rem var(--space-xl);
    background: var(--bg-card-hover);
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.trust-bar-icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.trust-bar-item:hover .trust-bar-icon-wrapper {
    transform: scale(1.1);
    color: var(--color-primary-dark);
}

.trust-bar-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.trust-bar-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Responsive */
@media (min-width: 768px) and (max-width: 1023px) {
    .trust-bar-section {
        padding: 2rem var(--space-md);
    }

    .trust-bar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .trust-bar-icon-wrapper {
        width: 48px;
        height: 48px;
    }

    .trust-bar-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .trust-bar-label {
        font-size: 0.85rem;
    }

    .trust-bar-subtitle {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .trust-bar-section {
        padding: 2rem var(--space-md);
    }

    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ---------- Promotional Banners ---------- */
.promotional-banners-section {
    padding: 5rem var(--space-xl);
    background: var(--bg-card);
}

.banners-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.banner-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.banner-full-width {
    aspect-ratio: 21/9;
}

.banner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8c5c38 0%, #6b4423 100%);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    color: white;
    z-index: 2;
}

.banner-heading {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: white;
}

.banner-subheading {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.banner-card:hover .banner-placeholder {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .banners-top-row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .banner-card {
        aspect-ratio: 4/3;
    }
    
    .banner-full-width {
        aspect-ratio: 16/9;
    }
    
    .banner-heading {
        font-size: 1.25rem;
    }
    
    .banner-subheading {
        font-size: 0.875rem;
    }
}

/* ---------- Testimonials ---------- */
.testimonials-section {
    padding: 5rem var(--space-xl);
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-card-hover);
    padding: var(--space-2xl);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.stars {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.1em;
}

.review-text {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    position: relative;
}

.review-text::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
}

.reviewer-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 400px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-section {
        padding: 3rem var(--space-md);
    }
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 4rem var(--space-xl) 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.1fr 2fr;
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto var(--space-2xl);
    min-width: 0;
}

.footer-logo-link {
    display: block;
    margin-bottom: var(--space-md);
    text-decoration: none;
}

.footer-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    /* margin-bottom: var(--space-sm); */
}

.footer-tagline {
    font-family: var(--font-body);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-mobile-tagline {
    display: none;
}

.footer-col {
    min-width: 0;
}

.footer-social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.social-icon-link:hover {
    color: var(--color-primary);
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
}

.footer-mobile-only {
    display: none;
}

/* Footer Accordion Base */
.footer-accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.footer-accordion .accordion-icon {
    display: none;
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.footer-accordion .accordion-content {
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer Tablet Responsive (768px–968px) */
@media (max-width: 968px) and (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 0.8fr 0.8fr 0.8fr 1.5fr;
        gap: var(--space-md);
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col ul li a {
        font-size: 0.85rem;
    }
}

/* Footer Mobile Responsive (≤767px) */
@media (max-width: 767px) {
    /* Mobile-only brand centering and tagline — safe to remove independently */
    .footer-col:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* padding: 1.5rem 0; */
        margin-bottom: var(--space-xl);
    }

    .footer-logo-link {
        margin-bottom: var(--space-sm);
    }

    .footer-logo-img {
        height: 100px;
        width: auto;
        max-width: 100%;
    }

    .footer-mobile-tagline {
        display: block;
        font-family: var(--font-display);
        font-size: 1rem;
        color: var(--text-primary);
        margin: 0;
        letter-spacing: 0.3px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-accordion .accordion-icon {
        display: block;
    }

    .footer-accordion .accordion-header {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-accordion .accordion-content {
        display: none;
        padding: 0 0 1rem 0;
    }

    .footer-accordion.active .accordion-content {
        display: block;
    }

    .footer-accordion.active .accordion-icon {
        transform: rotate(45deg);
    }

    .footer-social-col {
        margin-top: 0;
        padding-top: var(--space-md);
    }

    .footer-heading-spacer {
        display: none;
    }

    .footer-mobile-only {
        display: block;
    }

    .footer-links-list {
        display: none;
    }

    .site-footer {
        padding: 3rem var(--space-md) 2rem;
    }
}

/* ---------- Account Page ---------- */
.account-page {
    padding: 3rem var(--space-xl) 5rem;
    min-height: calc(100vh - 200px);
}

.account-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.account-header h1 {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.account-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

/* Account Sidebar */
.account-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.account-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.account-nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.account-nav-item.active {
    background: rgba(140, 92, 56, 0.1);
    color: var(--color-primary);
    font-weight: 500;
}

.account-nav-item svg {
    flex-shrink: 0;
}

.account-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.account-info-item {
    margin-bottom: var(--space-md);
}

.account-info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.info-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.logout-form {
    margin-top: var(--space-lg);
}

/* Account Main */
.account-main {
    min-width: 0;
}

.account-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.account-section h2 {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem var(--space-xl);
}

.empty-state svg {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Product Detail Page ---------- */
.product-detail-page {
    padding: 3rem var(--space-xl) 5rem;
    min-height: calc(100vh - 200px);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-image-container {
    position: relative;
    /* aspect-ratio: 1/1; */
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-placeholder {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.gallery-nav:hover {
    background: white;
    box-shadow: var(--shadow-md);
}

.gallery-prev {
    left: var(--space-md);
}

.gallery-next {
    right: var(--space-md);
}

.gallery-thumbnails {
    display: none;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
}

/* Product Info Detail */
.product-info-detail {
    padding-top: var(--space-md);
}

.product-detail-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Trust badges - compact single line (product detail page) */
.product-info-detail .trust-badges {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    padding: 0;
    padding-bottom: var(--space-sm);
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: none;
    justify-content: flex-start;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.trust-badge-icon {
    width: 14px;
    height: 14px;
    color: var(--color-success);
}

.product-detail-price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.product-option-group {
    margin-bottom: var(--space-md);
}

.product-option-group:last-of-type {
    margin-bottom: 1.75rem;
}

.option-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.option-btn {
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 60px;
}

.option-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.option-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.option-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.option-btn.disabled:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.gallery-nav.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.product-detail-description {
    margin-bottom: var(--space-lg);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Description intro text */
.desc-intro {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Description sections */
.desc-section {
    margin-bottom: 1.5rem;
}

.desc-section:last-child {
    margin-bottom: 0;
}

.desc-section h3.desc-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.desc-section-content {
    line-height: 1.6;
}

.desc-section-content ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.desc-section-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.desc-section-content li:last-child {
    margin-bottom: 0;
}

.add-to-cart-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    margin-top: var(--space-md);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .gallery-image-container {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .product-detail-page {
        padding: 2rem var(--space-md) 4rem;
    }

    .product-detail-title {
        font-size: 1.5rem;
    }

    .product-detail-price {
        font-size: 1.75rem;
    }


    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-thumbnails {
        flex-wrap: wrap;
    }

    .gallery-image-container {
        aspect-ratio: 1/1;
    }
}

/* ---------- Products Page ---------- */
.products-page {
    padding: 2rem var(--space-xl) 5rem;
    min-height: calc(100vh - 200px);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb-separator {
    color: var(--border-color);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
}

/* Filters Sidebar */
.filters-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.filter-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.filter-option:hover {
    color: var(--text-primary);
}

/* Products Main */
.products-main {
    min-width: 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-light);
}

.products-title {
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0;
}

.products-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.products-grid .product-card {
    background: var(--bg-card);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
}

.products-grid .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(140, 92, 56, 0.1);
}

.products-grid .product-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--border-light);
}

.products-grid .product-image img,
.products-grid .product-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.products-grid .product-image .product-img-main {
    opacity: 1;
}

/* Fallback: zoom effect on hover */
.products-grid .product-image:hover .product-img-main {
    transform: scale(1.05);
}

/* Product Card Image Carousel */
.products-grid .product-image-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.products-grid .product-image-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.products-grid .product-image-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.products-grid .product-image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.personalization-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(140, 92, 56, 0.2);
    z-index: 3;
}

.products-grid .product-info {
    padding: 1rem;
    text-align: left;
}

.products-grid .product-name {
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.products-grid .product-card:hover .product-name {
    color: var(--color-primary);
}

.products-grid .product-price {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

/* Color Swatches */
.products-grid .color-swatches {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.products-grid .color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    transition: transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.products-grid .color-swatch:hover {
    transform: scale(1.15);
    border-color: var(--color-primary);
}

.products-grid .color-swatch.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(140, 92, 56, 0.2);
}

.products-grid .product-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

.products-grid .product-card:hover .product-description {
    opacity: 1;
    max-height: 80px;
    margin-top: 0.5rem;
}

/* No Products State */
.no-products {
    text-align: center;
    padding: 4rem var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.no-products svg {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.no-products h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.no-products p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.7rem;
    }

    .auth-card {
        padding: var(--space-xl);
    }

    .header-nav {
        display: none;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 767px) and (min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .products-layout {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--space-md);
    }
}

@media (max-width: 599px) {
    .hero-title {
        font-size: 2.5rem;
    }

    /* .hero-actions {
        flex-direction: column;
    } */

    .products-page {
        padding: 1.5rem var(--space-md) 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* Cart Drawer */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-card);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    min-width: 0;
}

.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cart-title-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2b2b2b;
}

.cart-title-count {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #8a8a8a;
    margin-left: 4px;
}

.cart-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-drawer-close:hover {
    color: var(--text-primary);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.cart-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-secondary);
}

.cart-empty p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--bg-input);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.cart-item-variant {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-item-variant span {
    color: var(--text-secondary);
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-primary);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-primary);
    transition: background 0.2s ease, border-color 0.2s ease;
    border-radius: var(--radius-sm);
}

.cart-quantity-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--color-primary);
}

.cart-quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
}

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove:hover {
    color: var(--color-error);
}

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-subtotal-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.cart-subtotal-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.checkout-btn {
    text-decoration: none;
    text-align: center;
}

.add-to-cart-error {
    display: none;
    color: var(--color-error);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-drawer-title {
        font-size: 1.1rem;
    }
}

/* ---------- Filter Drawer ---------- */

/* Filter Drawer Overlay */
.filter-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.filter-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filters Toggle Button */
.filters-toggle-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filters-toggle-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Products Header Right */
.products-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive - Tablet/Mobile: Transform sidebar into drawer */
@media (max-width: 1024px) {
    .filters-toggle-btn {
        display: flex;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 117px;
        left: 0;
        width: 280px;
        height: calc(100% - 117px);
        background: var(--bg-card);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding: 0;
    }
    
    .filters-sidebar.active {
        transform: translateX(0);
    }
    
    .filters-sidebar .filter-section {
        padding: 1.5rem;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-light);
    }
    
    .filters-sidebar .filter-section:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .filters-sidebar {
        width: 85%;
    }
}

/* ---------- Mobile Menu & Hamburger ---------- */

/* Hamburger Button */
.hamburger-btn {
    display: none;
    position: fixed;
    top: calc(8px + 50px - 16px);
    left: 20px;
    z-index: 1003;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    height: 32px;
    justify-content: center;
    /* transition: top 0.3s ease; */
}

.hamburger-btn svg {
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

/* Hamburger Button - Collapsed Header State */
#site-header.stage-2 ~ .hamburger-btn,
#site-header.stage-3 ~ .hamburger-btn {
    top: 3px;
}

/* Hamburger Button - Hide when cart drawer is open */
body.cart-open .hamburger-btn {
    display: none;
}

.hamburger-btn:hover svg {
    color: var(--color-primary);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1004;
    display: none;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background: var(--bg-card);
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
}

.mobile-menu-close:hover {
    color: var(--color-primary);
}

.mobile-nav-categories {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.mobile-nav-categories li {
    margin-bottom: 0;
}

.mobile-nav-categories a {
    display: block;
    padding: 1.25rem 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-categories a:hover {
    color: var(--color-primary);
}

/* Media Query: Hide desktop nav, show hamburger */
@media (max-width: 968px) {
    .main-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .faq-icon-link {
        display: none;
    }
}

/* Hide announcement bar on mobile/tablet */
@media (max-width: 1024px) {
    .announcement-bar {
        display: none;
    }
}

/* Hide subscribe button everywhere */
.subscribe-btn {
    display: none;
}

/* ---------- Size Selector Modal (Leather Shoes) ---------- */

.size-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
}

.size-selector-overlay.active {
    opacity: 1;
    visibility: visible;
}

.size-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.size-selector-modal.active {
    opacity: 1;
    visibility: visible;
}

.size-selector-content {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.size-selector-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.size-selector-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.size-selector-step h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.size-format-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.size-format-btn {
    flex: 1;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.size-format-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.size-format-btn:active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.size-selector-cancel {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.size-selector-cancel:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.custom-size-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-sm);
}

.custom-size-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.custom-size-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: var(--space-md);
}

.custom-size-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration var(--transition-fast);
}

.custom-size-link a:hover {
    text-decoration: underline;
}

.size-custom-btn {
    width: 100%;
    margin-bottom: 1rem;
}

/* Custom Measurements Modal Styles */
.custom-measurements-content {
    max-width: 600px;
}

.custom-measurements-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.custom-measurements-back {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: var(--space-sm);
    display: inline-flex;
    align-items: center;
}

.custom-measurements-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.custom-measurements-diagram {
    margin: var(--space-xl) 0;
}

.diagram-image-wrapper {
    display: inline-block;
    width: 100%;
}

.diagram-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.measurement-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.measurement-card {
    background: var(--bg-card-hover);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.measurement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.measurement-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--color-primary);
}

.measurement-card-content {
    flex: 1;
}

.measurement-label {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    display: block;
}

.measurement-step-heading {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    margin-top: var(--space-lg);
    font-size: 1rem;
}

.measurement-instruction {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.measurement-instructions {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: var(--space-md);
}

.measurement-instructions ul {
    margin: 0;
    padding-left: 1.5rem;
}

.measurement-instructions li {
    margin-bottom: var(--space-sm);
}

.measurement-input {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    background: var(--bg-input);
}

.measurement-tip {
    background: var(--bg-card-hover);
    border-left: 3px solid var(--color-primary);
    padding: var(--space-md);
    margin: var(--space-xl) 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

.measurement-notes {
    margin-bottom: var(--space-lg);
    margin-top: var(--space-lg);
}

.measurement-textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    min-height: 80px;
    resize: vertical;
    background: var(--bg-input);
}

.measurement-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.measurement-help .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
}

.size-back-btn {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.size-back-btn:hover {
    text-decoration: none;
}

.size-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.size-option {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.size-option:hover:not(.sold-out) {
    border-color: var(--color-primary);
    background: rgba(200, 149, 108, 0.1);
}

.size-option.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-muted);
}

.size-option-label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
}

.size-option.sold-out .size-option-label {
    color: var(--text-muted);
}

.size-stock-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.size-option.low-stock .size-stock-status {
    color: var(--color-primary-light);
    font-weight: 600;
}

.size-option.sold-out .size-stock-status {
    color: var(--text-muted);
}

.size-selector-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-selector-trigger:hover {
    border-color: var(--color-primary);
}

#selected-size-display {
    color: var(--text-primary);
}

.size-selector-trigger.has-selection #selected-size-display {
    color: var(--color-primary);
    font-weight: 500;
}

/* Mobile: Bottom Sheet */
@media (max-width: 768px) {
    .size-selector-modal {
        align-items: flex-end;
    }
    
    .size-selector-content {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        max-width: 100%;
        width: 100%;
        max-height: 70vh;
        padding: 1.5rem;
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .size-selector-modal.active .size-selector-content {
        transform: translateY(0);
    }
    
    .size-selector-modal {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .size-selector-modal.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .size-selector-overlay {
        opacity: 1;
        visibility: hidden;
        pointer-events: none;
    }
    
    .size-selector-overlay.active {
        visibility: visible;
        pointer-events: auto;
    }
}
