/* =========================================
   BRYXEL MODERN THEME v4.0
   Premium Light Design System
   ========================================= */

:root {
    /* Brand Colors */
    --color-primary: #1a1a1a;
    --color-accent: #84A98C;        /* Sage Green */
    --color-accent-hover: #6B8E74;
    --color-secondary: #D4A574;     /* Warm Terracotta */
    --color-background: #FAFAF7;    /* Off-white cream */
    --color-surface: #FFFFFF;
    --color-border: #E8E6E1;
    --color-text: #1a1a1a;
    --color-text-muted: #6B6B6B;
    --color-text-light: #9A9A9A;
    
    /* Semantic */
    --color-success: #4CAF50;
    --color-warning: #FF9800;
    --color-error: #E53935;
    --color-info: #2196F3;
    
    /* Admin-specific */
    --admin-sidebar: #1F2937;
    --admin-accent: #4F46E5;        /* Indigo */
    --admin-accent-hover: #4338CA;
    
    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   STOREFRONT: ANNOUNCEMENT BAR
   ========================================= */

.announcement-bar {
    background: var(--color-primary);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* =========================================
   STOREFRONT: NAVIGATION
   ========================================= */

.navbar {
    background: var(--color-surface);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-icon {
    position: relative;
    font-size: 1.1rem;
    color: var(--color-text);
    padding: 8px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.nav-icon:hover {
    background: var(--color-border);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.3rem;
    color: var(--color-text);
}

/* =========================================
   STOREFRONT: HERO SECTION
   ========================================= */

.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(250, 250, 247, 0.4), rgba(250, 250, 247, 0.7)), 
                url('../assets/hero-image.jpg') center/cover;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 24px;
    color: var(--color-primary);
    font-weight: 500;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--color-accent);
    color: white;
}

.btn-accent:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* =========================================
   STOREFRONT: COLLECTIONS
   ========================================= */

.collections-section {
    padding: var(--space-4xl) 5%;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
    color: var(--color-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.collection-card {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: var(--color-border);
}

.collection-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collection-card:hover img {
    transform: scale(1.08);
}

.collection-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: white;
}

.collection-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.collection-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.collection-overlay .arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.collection-card:hover .arrow {
    transform: translateX(5px);
}

/* =========================================
   STOREFRONT: PRODUCTS GRID
   ========================================= */

.products-section {
    padding: var(--space-4xl) 5%;
    background: var(--color-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--color-background);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    z-index: 2;
}

.product-badge.sale {
    background: var(--color-secondary);
}

.product-wishlist {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-card:hover .product-wishlist {
    opacity: 1;
}

.product-wishlist:hover {
    color: var(--color-secondary);
}

.product-info {
    padding: 20px;
}

.product-collection {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--color-primary);
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.original-price {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-decoration: line-through;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.product-rating .stars {
    color: #FFC107;
}

/* =========================================
   STOREFRONT: BRAND STORY
   ========================================= */

.brand-story {
    padding: var(--space-4xl) 5%;
    background: var(--color-background);
}

.story-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-border);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    color: var(--color-primary);
}

.story-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================
   STOREFRONT: NEWSLETTER
   ========================================= */

.newsletter {
    padding: var(--space-4xl) 5%;
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.newsletter-form button {
    padding: 16px 32px;
    background: white;
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--color-accent);
    color: white;
}

/* =========================================
   STOREFRONT: FOOTER
   ========================================= */

.site-footer {
    background: var(--color-surface);
    padding: var(--space-4xl) 5% var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.footer-col .brand-tagline {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    padding: 6px 0;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--color-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
}

.social-links a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.payment-icons {
    display: flex;
    gap: 12px;
    font-size: 1.5rem;
    color: var(--color-text-light);
}

/* =========================================
   STOREFRONT: PRODUCT DETAIL PAGE
   ========================================= */

.product-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) 5%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
}

.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    aspect-ratio: 4/5;
    background: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-main:hover img {
    transform: scale(1.03);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-thumb {
    aspect-ratio: 1;
    background: var(--color-background);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--color-primary);
}

.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info .breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.product-info .breadcrumb a:hover {
    color: var(--color-accent);
}

.product-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    color: var(--color-primary);
}

.product-rating-large {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.product-rating-large .stars {
    color: #FFC107;
}

.product-rating-large .count {
    color: var(--color-text-muted);
}

.product-price-large {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.product-price-large .current-price {
    font-size: 1.8rem;
    font-weight: 600;
}

.product-price-large .original-price {
    font-size: 1.2rem;
}

.product-price-large .discount {
    background: var(--color-secondary);
    color: white;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.product-description {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.variant-section {
    margin-bottom: 28px;
}

.variant-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.variant-label span {
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: normal;
    margin-left: 8px;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--color-border);
    transition: var(--transition);
    position: relative;
}

.color-swatch.active {
    border-color: var(--color-primary);
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
}

.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    min-width: 50px;
    padding: 12px 20px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    background: var(--color-surface);
}

.size-option.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.size-option:hover:not(.active) {
    border-color: var(--color-primary);
}

.size-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.quantity-section {
    margin-bottom: 32px;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.quantity-control button {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.quantity-control button:hover {
    background: var(--color-background);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    -moz-appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.action-buttons .btn {
    flex: 1;
}

.wishlist-btn {
    width: 56px;
    height: 56px;
    border: 1.5px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.wishlist-btn:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.product-features {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--color-accent);
    font-size: 1rem;
}

.product-accordions {
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
}

.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 20px;
}

/* Reviews Section */
.reviews-section {
    max-width: 1400px;
    margin: var(--space-4xl) auto;
    padding: 0 5%;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
}

.average-rating {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 500;
}

.rating-details .stars {
    color: #FFC107;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.rating-details .count {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.review-card {
    background: var(--color-surface);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reviewer-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.review-rating {
    color: #FFC107;
    font-size: 0.9rem;
}

.review-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.review-text {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.verified-badge {
    display: inline-block;
    background: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-top: 8px;
}

/* =========================================
   FORMS (General)
   ========================================= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(132, 169, 140, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-error {
    background: rgba(229, 57, 53, 0.1);
    color: #C62828;
    border: 1px solid rgba(229, 57, 53, 0.2);
}

.alert-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #E65100;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.alert-info {
    background: rgba(33, 150, 243, 0.1);
    color: #1565C0;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* =========================================
   ADMIN LAYOUT
   ========================================= */

body.admin-body {
    background: #F9FAFB;
    overflow: hidden;
}

.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 260px;
    background: var(--admin-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    overflow-y: auto;
    flex-shrink: 0;
}

.admin-sidebar.collapsed {
    width: 70px;
}

.sidebar-brand {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.sidebar-brand img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
}

.admin-sidebar.collapsed .sidebar-brand span,
.admin-sidebar.collapsed .nav-item span,
.admin-sidebar.collapsed .badge,
.admin-sidebar.collapsed .sidebar-footer .user-info {
    display: none;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    padding: 16px 16px 8px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-item.active {
    background: var(--admin-accent);
    color: white;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--color-error);
    color: white;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--admin-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-info .name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info .role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-topbar {
    background: white;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
}

.collapse-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.collapse-btn:hover {
    background: var(--color-border);
    color: var(--color-text);
}

.search-bar-admin {
    position: relative;
    width: 360px;
}

.search-bar-admin input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.search-bar-admin i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn-admin {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
    position: relative;
}

.icon-btn-admin:hover {
    background: var(--color-background);
    color: var(--color-text);
}

.icon-btn-admin .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-error);
    border-radius: 50%;
    border: 2px solid white;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: #F9FAFB;
}

/* =========================================
   ADMIN: DASHBOARD COMPONENTS
   ========================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(79, 70, 229, 0.1);
    color: var(--admin-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-trend.positive {
    color: var(--color-success);
}

.stat-trend.negative {
    color: var(--color-error);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-body);
}

.card-body {
    padding: 24px;
}

/* Admin Tables */
.table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.table-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.table-filter {
    padding: 8px 14px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #F9FAFB;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.admin-table td {
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: #F9FAFB;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-background);
    flex-shrink: 0;
}

.product-cell-info .name {
    font-weight: 500;
    margin-bottom: 2px;
}

.product-cell-info .sku {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.pending {
    background: rgba(255, 152, 0, 0.1);
    color: #E65100;
}

.status-badge.processing {
    background: rgba(33, 150, 243, 0.1);
    color: #1565C0;
}

.status-badge.shipped {
    background: rgba(79, 70, 229, 0.1);
    color: var(--admin-accent);
}

.status-badge.delivered {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.status-badge.cancelled {
    background: rgba(229, 57, 53, 0.1);
    color: #C62828;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.status-badge.inactive {
    background: rgba(158, 158, 158, 0.1);
    color: #616161;
}

.status-badge.paid {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.status-badge.unpaid {
    background: rgba(255, 152, 0, 0.1);
    color: #E65100;
}

.action-btn-group {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--color-background);
    color: var(--color-text);
}

.action-btn.danger:hover {
    background: rgba(229, 57, 53, 0.1);
    color: var(--color-error);
}

/* Admin Login */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    padding: 20px;
}

.login-container {
    background: white;
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 420px;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo h1 {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.login-logo p {
    color: var(--color-text-muted);
    margin-top: 8px;
    font-size: 0.9rem;
}

/* =========================================
   CART & CHECKOUT
   ========================================= */

.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) 5%;
}

.cart-page h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 120px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-background);
}

.cart-item-details h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: var(--font-display);
}

.cart-item-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.cart-item-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-item-actions button {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

.cart-item-actions button:hover {
    color: var(--color-error);
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
}

.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: 28px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    padding-top: 16px;
    margin-top: 12px;
    border-top: 2px solid var(--color-border);
}

.coupon-section {
    margin: 20px 0;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.coupon-input {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.coupon-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.coupon-input button {
    padding: 10px 16px;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.empty-cart i {
    font-size: 4rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.empty-cart h2 {
    margin-bottom: 12px;
}

.empty-cart p {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

/* Checkout */
.checkout-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) 5%;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.checkout-step.active {
    color: var(--color-text);
    font-weight: 500;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.checkout-step.active .step-number {
    background: var(--color-primary);
    color: white;
}

.checkout-step.completed .step-number {
    background: var(--color-accent);
    color: white;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.checkout-section {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
}

.checkout-section h2 {
    font-size: 1.2rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method:hover {
    border-color: var(--color-accent);
}

.payment-method.active {
    border-color: var(--color-accent);
    background: rgba(132, 169, 140, 0.05);
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 1200px) {
    .story-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .story-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.open {
        left: 0;
    }
    
    .admin-content {
        padding: 20px;
    }
    
    .admin-topbar {
        padding: 12px 20px;
    }
    
    .search-bar-admin {
        display: none;
    }
    
    .checkout-steps {
        gap: 20px;
        font-size: 0.8rem;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 16px;
    }
    
    .cart-item-price {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   AUTH PAGES (Login / Register / Reset)
   ========================================= */

.auth-page {
    min-height: 100vh;
    display: flex;
    background: var(--color-background);
}

/* Left: Brand Image */
.auth-image-side {
    flex: 1.1;
    position: relative;
    background: 
        linear-gradient(rgba(26, 26, 26, 0.5), rgba(26, 26, 26, 0.8)),
        url('assets/auth-side.jpg') center/cover no-repeat;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
}

.auth-side-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    color: white;
}

.auth-side-quote {
    max-width: 480px;
}

.auth-side-quote p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.auth-side-quote span {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
}

/* Right: Form */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow-y: auto;
}

.auth-card {
    width: 100%;
    max-width: 460px;
}

.auth-logo-mobile {
    display: none;
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 32px;
}

.auth-title {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.auth-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* Inputs with icons */
.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group input {
    width: 100%;
    padding: 14px 48px;
    background: white;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(132, 169, 140, 0.12);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--color-text);
}

/* Checkbox & links */
.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.checkbox-label input {
    accent-color: var(--color-accent);
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-link {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    color: var(--color-text-light);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

/* Strength meter */
.strength-meter {
    display: flex;
    gap: 6px;
    margin-top: -6px;
    margin-bottom: 4px;
}

.strength-meter .bar {
    height: 4px;
    flex: 1;
    background: var(--color-border);
    border-radius: 2px;
    transition: background 0.3s;
}

/* Error list inside alert */
.alert ul {
    list-style: disc;
}

/* Responsive */
@media (max-width: 960px) {
    .auth-image-side {
        display: none;
    }
    .auth-logo-mobile {
        display: block;
    }
    .auth-form-side {
        padding: 32px 20px;
    }
}
/* =========================================
   ORDER SUCCESS PAGE
   ========================================= */

.order-success-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 5% 80px;
    position: relative;
    z-index: 1;
}

.success-header {
    text-align: center;
    margin-bottom: 48px;
}

.success-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.success-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 28px;
}

/* Animated checkmark */
.success-checkmark {
    width: 96px;
    height: 96px;
    margin: 0 auto 24px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.check-circle {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeDraw 0.7s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.check-check {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeDraw 0.5s 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes strokeDraw {
    to { stroke-dashoffset: 0; }
}

.order-number-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 12px 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.order-number-pill span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.order-number-pill strong {
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.copy-btn {
    color: var(--color-text-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.copy-btn:hover { color: var(--color-accent); }

.email-note {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.email-note i { color: var(--color-accent); }

/* Next steps */
.next-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.next-step {
    text-align: center;
    max-width: 200px;
}

.next-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(132, 169, 140, 0.12);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 12px;
}

.next-step h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.next-step p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.next-step-arrow {
    color: var(--color-text-light);
}

/* Success grid */
.success-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.success-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-border);
}

.success-item:last-child { border-bottom: none; }

.success-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.success-item-info { flex: 1; }
.success-item-info strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.success-item-info span { font-size: 0.85rem; color: var(--color-text-muted); }
.success-item-price { font-weight: 600; }

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Confetti */
.confetti {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti span {
    position: absolute;
    top: -12px;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 4s ease-in forwards;
}

.confetti span:nth-child(1) { left: 5%; background: #84A98C; animation-delay: 0.1s; }
.confetti span:nth-child(2) { left: 15%; background: #D4A574; transform: rotate(45deg); animation-delay: 0.4s; }
.confetti span:nth-child(3) { left: 25%; background: #4F46E5; animation-delay: 0.2s; border-radius: 50%; }
.confetti span:nth-child(4) { left: 35%; background: #FFC107; transform: rotate(20deg); animation-delay: 0.6s; }
.confetti span:nth-child(5) { left: 45%; background: #84A98C; border-radius: 50%; animation-delay: 0.3s; }
.confetti span:nth-child(6) { left: 55%; background: #E53935; transform: rotate(60deg); animation-delay: 0.5s; }
.confetti span:nth-child(7) { left: 65%; background: #D4A574; animation-delay: 0.15s; }
.confetti span:nth-child(8) { left: 75%; background: #4F46E5; border-radius: 50%; animation-delay: 0.45s; }
.confetti span:nth-child(9) { left: 85%; background: #FFC107; transform: rotate(30deg); animation-delay: 0.25s; }
.confetti span:nth-child(10) { left: 92%; background: #84A98C; animation-delay: 0.55s; }
.confetti span:nth-child(11) { left: 10%; background: #E53935; border-radius: 50%; animation-delay: 0.7s; }
.confetti span:nth-child(12) { left: 30%; background: #D4A574; transform: rotate(70deg); animation-delay: 0.8s; }
.confetti span:nth-child(13) { left: 60%; background: #84A98C; animation-delay: 0.9s; }
.confetti span:nth-child(14) { left: 80%; background: #4F46E5; transform: rotate(15deg); animation-delay: 1s; }

@keyframes confettiFall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* =========================================
   ORDER DETAIL PAGE
   ========================================= */

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

/* Timeline */
.order-timeline {
    display: flex;
}

.timeline-step {
    flex: 1;
    position: relative;
    text-align: center;
}

.timeline-step .step-dot {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--color-text-light);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    background: var(--color-border);
    z-index: 1;
}

.timeline-step strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.timeline-step span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.timeline-step.completed .step-dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.timeline-step.completed:not(:last-child)::after {
    background: var(--color-accent);
}

.timeline-step.active .step-dot {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 0 6px rgba(132, 169, 140, 0.15);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(132, 169, 140, 0.3); }
    70% { box-shadow: 0 0 0 12px rgba(132, 169, 140, 0); }
    100% { box-shadow: 0 0 0 0 rgba(132, 169, 140, 0); }
}

.tracking-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(132, 169, 140, 0.08);
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 28px;
}

.tracking-box > i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* Order detail grid */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.order-item-row {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.order-item-row:last-child { border-bottom: none; }

.order-item-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.order-item-info { flex: 1; }
.order-item-info strong { display: block; margin-bottom: 4px; }
.order-item-info > span { font-size: 0.85rem; color: var(--color-text-muted); }

.order-item-actions {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 0.85rem;
}

.order-item-actions a { color: var(--color-accent); font-weight: 500; }
.order-item-actions a:hover { text-decoration: underline; }

.review-link { color: #FF9800 !important; }
.reviewed-note { color: var(--color-success); }

.order-item-price { font-weight: 600; }

.help-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s;
}

.help-link:last-child { border-bottom: none; }
.help-link:hover { color: var(--color-text); }
.help-link.danger:hover { color: var(--color-error); }
.help-link i { width: 20px; text-align: center; }

/* =========================================
   ORDERS LIST
   ========================================= */

.orders-filter-bar {
    margin-bottom: 20px;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-list-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: var(--transition);
}

.order-list-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.order-list-image img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.order-list-info { flex: 1; min-width: 0; }

.order-list-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.order-list-progress {
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
    max-width: 300px;
}

.order-list-progress-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.order-list-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.view-order-link {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* =========================================
   PRINT STYLES (Invoice)
   ========================================= */

@media print {
    .navbar, .announcement-bar, .site-footer, .no-print,
    .user-sidebar, .orders-filter-bar {
        display: none !important;
    }
    body { background: white; }
    .order-detail-grid { grid-template-columns: 1fr; }
    .card { border: 1px solid #ddd; box-shadow: none; }
}

/* Responsive */
@media (max-width: 900px) {
    .success-grid, .order-detail-grid { grid-template-columns: 1fr; }
    .next-step-arrow { display: none; }
    .order-list-card { flex-direction: column; align-items: flex-start; }
    .order-list-right { align-items: flex-start; text-align: left; }
    .timeline-step strong { font-size: 0.75rem; }
    .timeline-step span { display: none; }
}
/* =========================================
   STATIC PAGES (CMS-rendered)
   ========================================= */

.static-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 5% 100px;
}

.static-page h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 32px;
    color: var(--color-primary);
}

.page-content h2 {
    font-size: 1.6rem;
    margin: 36px 0 14px;
    color: var(--color-primary);
}

.page-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 10px;
}

.page-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul, .page-content ol {
    padding-left: 24px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.page-content th, .page-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.page-content th {
    background: var(--color-background);
    font-weight: 600;
    color: var(--color-text);
}

.page-content tr:last-child td { border-bottom: none; }

.page-content a { color: var(--color-accent); }
.page-content a:hover { text-decoration: underline; }

.variant-row { display: grid; grid-template-columns: 36px 1fr 1fr 80px 100px 40px; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-move { display: flex; flex-direction: column; gap: 2px; }
.variant-move button { padding: 3px 0; color: var(--color-text-light); border-radius: 4px; transition: all 0.15s; }
.variant-move button:hover { background: var(--color-background); color: var(--color-text); }

/* =========================================
   NAVBAR SEARCH + MOBILE MENU (missing rules)
   ========================================= */

/* Expanding search */
.nav-search-form { display: flex; align-items: center; }
.nav-search-input {
    width: 0; opacity: 0; padding: 8px 0; border: none;
    border-bottom: 1.5px solid var(--color-border); background: transparent;
    transition: all 0.3s ease; font-family: var(--font-body); font-size: 0.9rem;
}
.nav-search-form.open .nav-search-input { width: 180px; opacity: 1; padding: 8px 12px; }
.nav-search-input:focus { outline: none; border-color: var(--color-accent); }

/* Mobile slide-in menu (hidden off-screen by default) */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: min(320px, 85%); height: 100vh;
    background: #fff; z-index: 1200; transition: right 0.3s ease;
    padding: 24px; box-shadow: var(--shadow-xl); overflow-y: auto;
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--color-border);
    font-weight: 500; font-size: 0.95rem;
}

/* Dark overlay behind mobile menu */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1100; }
.mobile-overlay.open { display: block; }

/* Design Your Own highlight */
.nav-custom-link { color: var(--color-secondary) !important; font-weight: 600 !important; }
.nav-custom-link:hover { text-decoration: underline; }

/* =========================================
   HERO BANNER BACKGROUND
   ========================================= */
.hero-banner {
    background-position: center 35%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* Soft cream wash keeps dark text readable over the photo */
.hero-banner .hero-content {
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
}

/* Slight parallax feel on large screens */
@media (min-width: 1200px) {
    .hero-banner { background-attachment: fixed; }
}

/* Mobile: focus on the jacket rack area of the banner */
@media (max-width: 768px) {
    .hero-banner {
        background-position: 60% center;
        background-attachment: scroll;
    }
    .hero-banner .hero-content {
        background: rgba(250, 250, 247, 0.55);
        backdrop-filter: blur(4px);
        border-radius: 16px;
        padding: 32px 20px;
    }
}
/* =========================================
   SHOW FULL PRODUCT IMAGES (no cropping)
   ========================================= */

/* White backdrop so letterbox gaps blend with the photo's white background */
.product-image-wrapper,
.gallery-main,
.pdp-main,
.pdp-thumb,
.gallery-thumb,
.lb-stage,
.cart-item-image,
.order-item-row img,
.success-item img,
.product-thumb {
    background: #ffffff;
}

/* Show the ENTIRE image instead of cropping */
.product-image-wrapper img,
.gallery-main img,
.pdp-main img,
.pdp-thumb img,
.gallery-thumb img,
.lb-stage img,
.cart-item-image,
.order-item-row img,
.success-item img {
    object-fit: contain !important;
}

/* Make product cards square so square photos fit perfectly */
.product-image-wrapper { aspect-ratio: 1 / 1; }

/* Product page main image: square, full view */
.pdp-main,
.gallery-main { aspect-ratio: 1 / 1; }

/* Keep thumbnails square */
.pdp-thumb,
.gallery-thumb { aspect-ratio: 1 / 1; }