/* ==========================================================================
   Restauraciones Miguel Ángel — Design System v4.2
   Systematic spacing, type scale, alignment, comprehensive admin styles
   ========================================================================== */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --c-bg: #F9FAFB;
    --c-surface: #FFFFFF;
    --c-text: #1F2937;
    --c-text-2: #6B7280;
    --c-text-3: #9CA3AF;
    --c-accent: #C5A059;
    --c-accent-hover: #A8894A;
    --c-accent-light: #FDF6EC;
    --c-success: #059669;
    --c-danger: #DC2626;
    --c-warning: #D97706;
    --c-border: #E5E7EB;
    --c-border-2: #D1D5DB;
    --c-whatsapp: #25D366;
    
    /* Spacing scale (4px base) */
    --s-1: 4px;   /* 0.25rem */
    --s-2: 8px;   /* 0.5rem */
    --s-3: 12px;  /* 0.75rem */
    --s-4: 16px;  /* 1rem */
    --s-5: 20px;  /* 1.25rem */
    --s-6: 24px;  /* 1.5rem */
    --s-8: 32px;  /* 2rem */
    --s-10: 40px; /* 2.5rem */
    --s-12: 48px; /* 3rem */
    --s-16: 64px; /* 4rem */
    
    /* Type scale (1.2 ratio) */
    --t-xs: 11px;
    --t-sm: 13px;
    --t-base: 15px;
    --t-lg: 18px;
    --t-xl: 22px;
    --t-2xl: 26px;
    --t-3xl: 32px;
    
    /* Font weights */
    --w-normal: 400;
    --w-medium: 500;
    --w-semibold: 600;
    --w-bold: 700;
    
    /* Radius */
    --r-sm: 4px;
    --r: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    /* Layout */
    --max-w: 1200px;
    --header-h: 56px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; }
button { font-family: inherit; }

body {
    font-family: var(--font);
    font-size: var(--t-base);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--c-accent-hover); }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container { 
    max-width: var(--max-w); 
    margin: 0 auto; 
    padding: 0 var(--s-4); 
}
.text-center { text-align: center; }

/* Spacing utilities */
.mt-1 { margin-top: var(--s-1); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }

/* Flexbox utilities */
.flex { display: flex; }
.inline-flex { display: inline-flex; align-items: center; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); }

/* Icon utilities */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon svg {
    width: 1em;
    height: 1em;
}
.icon-sm svg { width: 14px; height: 14px; }
.icon-md svg { width: 18px; height: 18px; }
.icon-lg svg { width: 24px; height: 24px; }

/* Text utilities */
.text-xs { font-size: var(--t-xs); }
.text-sm { font-size: var(--t-sm); }
.text-base { font-size: var(--t-base); }
.text-lg { font-size: var(--t-lg); }
.text-muted { color: var(--c-text-2); }
.text-light { color: var(--c-text-3); }
.text-accent { color: var(--c-accent); }
.text-success { color: var(--c-success); }
.font-medium { font-weight: var(--w-medium); }
.font-semibold { font-weight: var(--w-semibold); }
.font-bold { font-weight: var(--w-bold); }

/* Price note (used on product page) */
.price-note {
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin-top: calc(var(--s-2) * -1);
    margin-bottom: var(--s-4);
}

/* Filter group (alias for form-group in filter panel) */
.filter-group {
    margin-bottom: var(--s-4);
}
.filter-group label {
    display: block;
    margin-bottom: var(--s-1);
    font-size: var(--t-sm);
    font-weight: var(--w-medium);
    color: var(--c-text);
}
.filter-group input,
.filter-group select {
    display: block;
    width: 100%;
    padding: var(--s-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    font-size: var(--t-base);
    font-family: var(--font);
    background: var(--c-surface);
    color: var(--c-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-light);
}

/* Filter row (price min/max side by side) */
.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
}
.filter-row .filter-group {
    margin-bottom: 0;
}

/* No image placeholder - large variant */
.no-image-lg {
    min-height: 280px;
    aspect-ratio: 4/3;
    font-size: var(--t-base);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1 { font-size: var(--t-xl); font-weight: var(--w-bold); line-height: 1.25; }
h2 { font-size: var(--t-lg); font-weight: var(--w-semibold); line-height: 1.3; }
h3 { font-size: var(--t-base); font-weight: var(--w-semibold); line-height: 1.4; }
h4 { font-size: var(--t-sm); font-weight: var(--w-semibold); line-height: 1.4; }

.page-title { 
    font-size: var(--t-xl); 
    font-weight: var(--w-bold);
    margin-bottom: var(--s-4); 
}
.section-title { 
    text-align: center; 
    font-size: var(--t-lg);
    font-weight: var(--w-semibold);
    margin-bottom: var(--s-4); 
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    color: var(--c-text);
    font-size: var(--t-base);
    font-weight: var(--w-medium);
    display: flex;
    align-items: center;
    gap: var(--s-2);
    transition: color 0.15s;
}
.logo:hover { color: var(--c-accent); }
.logo-icon { font-size: var(--t-lg); }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--s-2);
    margin-right: calc(var(--s-2) * -1);
}
.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--c-text);
    transition: transform 0.2s;
}

.nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.nav-links.open { max-height: 280px; }

.nav-links li a {
    display: block;
    padding: var(--s-3) var(--s-4);
    color: var(--c-text);
    font-size: var(--t-base);
    font-weight: var(--w-medium);
    transition: color 0.15s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--c-accent); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--r);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text);
    font-size: var(--t-sm);
    font-weight: var(--w-medium);
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.5;
    text-align: center;
}
.btn:hover { 
    background: var(--c-bg); 
    border-color: var(--c-border-2);
}

.btn-primary {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.btn-primary:hover { 
    background: var(--c-accent-hover); 
    border-color: var(--c-accent-hover);
    color: #fff; 
}

.btn-outline {
    background: transparent;
    color: var(--c-accent);
    border-color: var(--c-accent);
}
.btn-outline:hover { 
    background: var(--c-accent-light); 
    color: var(--c-accent);
}

.btn-whatsapp {
    background: var(--c-whatsapp);
    color: #fff;
    border-color: var(--c-whatsapp);
}
.btn-whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

.btn-lg { 
    padding: var(--s-3) var(--s-6); 
    font-size: var(--t-base); 
}
.btn-sm { 
    padding: var(--s-1) var(--s-3); 
    font-size: var(--t-xs); 
}
.btn-block { 
    display: flex; 
    width: 100%; 
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group { margin-bottom: var(--s-4); }
.form-group label {
    display: block;
    margin-bottom: var(--s-1);
    font-size: var(--t-sm);
    font-weight: var(--w-medium);
    color: var(--c-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    display: block;
    width: 100%;
    padding: var(--s-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    font-size: var(--t-base);
    font-family: var(--font);
    background: var(--c-surface);
    color: var(--c-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-3);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #1E1E2D 0%, #2D2D2D 50%, #3D3530 100%);
    color: #fff;
    padding: var(--s-6) 0 var(--s-5);
    text-align: center;
}

.hero h1 {
    font-size: var(--t-xl);
    font-weight: var(--w-bold);
    margin-bottom: var(--s-2);
    line-height: 1.25;
}

.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: var(--t-sm);
    margin-bottom: var(--s-1);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-stock {
    color: rgba(255,255,255,0.6);
    font-size: var(--t-xs);
    margin-bottom: var(--s-4);
}

.hero-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-6);
    border-radius: var(--r);
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    font-size: var(--t-base);
    font-weight: var(--w-medium);
    transition: all 0.15s;
}
.btn-hero-outline:hover { 
    border-color: #fff; 
    background: rgba(255,255,255,0.1);
    color: #fff; 
}
.btn-hero-outline svg { 
    width: 18px; 
    height: 18px;
    flex-shrink: 0;
}

/* ==========================================================================
   CATEGORIES
   ========================================================================== */
.categories { 
    padding: var(--s-5) 0 var(--s-4); 
}
.categories .section-title { 
    margin-bottom: var(--s-3); 
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--c-surface);
    border-radius: var(--r);
    padding: var(--s-3);
    text-align: center;
    border: 1px solid var(--c-border);
    color: var(--c-text);
    transition: all 0.2s;
}
.category-card:hover {
    border-color: var(--c-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--c-text);
}

.category-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-full);
    background: var(--c-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-2);
    color: var(--c-accent);
}
.category-icon svg { width: 20px; height: 20px; }

.category-card h3 { 
    font-size: var(--t-sm); 
    font-weight: var(--w-semibold);
    margin-bottom: var(--s-1); 
}
.category-card p {
    color: var(--c-text-2);
    font-size: var(--t-xs);
    line-height: 1.4;
}

/* 3rd card full-width on mobile */
.grid-3 > *:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
    gap: var(--s-3);
    padding: var(--s-3) var(--s-4);
    text-align: left;
}
.grid-3 > *:nth-child(3) .category-icon { margin-bottom: 0; }
.grid-3 > *:nth-child(3) p { display: none; }

/* ==========================================================================
   TRUST BADGES
   ========================================================================== */
.trust-section {
    background: var(--c-accent-light);
    padding: var(--s-3) 0;
}

.trust-grid {
    display: flex;
    gap: var(--s-2);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.trust-grid::-webkit-scrollbar { display: none; }

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-shrink: 0;
    font-size: var(--t-xs);
    font-weight: var(--w-medium);
    background: rgba(255,255,255,0.85);
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-full);
    white-space: nowrap;
    color: var(--c-text);
}
.trust-item svg { 
    width: 14px; 
    height: 14px; 
    flex-shrink: 0;
    color: var(--c-accent);
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
}

.latest-products {
    padding: var(--s-6) 0;
    background: var(--c-surface);
}
.latest-products .section-title { margin-bottom: var(--s-4); }

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--c-surface);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--c-border);
    color: var(--c-text);
    transition: all 0.2s;
}
.product-card:hover {
    border-color: var(--c-border-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--c-text);
}

.product-card-img {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--c-bg);
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-card-img img {
    transform: scale(1.03);
}

.product-card-body { 
    padding: var(--s-3); 
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--s-1);
}

.product-card-title {
    font-size: var(--t-sm);
    font-weight: var(--w-semibold);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-brand {
    font-size: var(--t-xs);
    color: var(--c-text-2);
    display: block;
}

.product-card-price {
    font-size: var(--t-lg);
    font-weight: var(--w-bold);
    color: var(--c-accent);
    display: block;
    margin-top: auto;
    padding-top: var(--s-2);
}

.product-card-iva {
    font-size: var(--t-xs);
    color: var(--c-text-3);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 120px;
    color: var(--c-text-3);
    background: var(--c-bg);
    font-size: var(--t-sm);
}

/* ==========================================================================
   CATALOG PAGE
   ========================================================================== */
.catalog-page { 
    padding: var(--s-4) 0 var(--s-6); 
}

.catalog-layout {
    display: block;
}

.catalog-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-4);
    gap: var(--s-3);
}

.results-count { 
    font-size: var(--t-sm); 
    color: var(--c-text-2); 
}

.filter-toggle { 
    display: inline-flex;
    gap: var(--s-2);
}
.filter-toggle svg { width: 16px; height: 16px; }

/* Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-4);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-1);
    padding: var(--s-1) var(--s-3);
    background: var(--c-accent-light);
    color: var(--c-accent);
    border-radius: var(--r-full);
    font-size: var(--t-xs);
    font-weight: var(--w-medium);
}
.filter-pill a { 
    color: var(--c-accent); 
    font-weight: var(--w-bold);
    margin-left: var(--s-1);
}

/* Mobile Filter Drawer */
.filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 149;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.filter-backdrop.show { 
    display: block; 
    opacity: 1;
}

.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--c-surface);
    padding: var(--s-4);
    z-index: 150;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}
.filter-panel.open { transform: translateX(0); }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--s-4);
    padding-bottom: var(--s-3);
    border-bottom: 1px solid var(--c-border);
}
.filter-header h3 { 
    font-size: var(--t-lg); 
    margin: 0; 
}
.filter-close {
    background: none;
    border: none;
    font-size: var(--t-2xl);
    cursor: pointer;
    color: var(--c-text-2);
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r);
    transition: background 0.15s;
}
.filter-close:hover {
    background: var(--c-bg);
}

.filter-form .btn { margin-top: var(--s-2); }
.filter-form .btn + .btn { margin-top: var(--s-3); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s-2);
    margin-top: var(--s-6);
    flex-wrap: wrap;
}
.pagination-dots { color: var(--c-text-3); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--s-8) var(--s-4);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
}
.empty-state-icon { margin-bottom: var(--s-4); }
.empty-state-icon svg { 
    margin: 0 auto; 
    width: 48px;
    height: 48px;
    color: var(--c-text-3);
}
.empty-state h3 {
    color: var(--c-text);
    font-size: var(--t-lg);
    margin-bottom: var(--s-2);
}
.empty-state p {
    color: var(--c-text-2);
    font-size: var(--t-base);
    margin-bottom: var(--s-4);
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.empty-state .active-filters {
    font-size: var(--t-sm);
    color: var(--c-text-3);
    margin-bottom: var(--s-4);
}
.empty-state .btn { margin: var(--s-1); }

/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */
.product-page { padding: var(--s-4) 0 var(--s-8); }

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--s-1);
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin-bottom: var(--s-4);
    overflow: hidden;
}
.breadcrumb a { 
    color: var(--c-text-2);
    transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span {
    color: var(--c-text);
    font-weight: var(--w-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}

.product-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.gallery-main {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--c-bg);
    position: relative;
    width: 100%;
}
.gallery-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
}
.gallery-counter {
    position: absolute;
    bottom: var(--s-2);
    right: var(--s-2);
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: var(--t-xs);
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-sm);
}
.gallery-thumbs {
    display: flex;
    gap: var(--s-2);
    margin-top: var(--s-3);
    overflow-x: auto;
    padding-bottom: var(--s-2);
    -webkit-overflow-scrolling: touch;
}
.gallery-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--r);
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--c-accent); }

.product-info {
    width: 100%;
}

.product-title { 
    font-size: var(--t-lg); 
    margin-bottom: var(--s-2);
    line-height: 1.3;
    word-wrap: break-word;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    margin-bottom: var(--s-3);
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: var(--s-1) var(--s-2);
    background: var(--c-bg);
    border-radius: var(--r-full);
    font-size: var(--t-xs);
    font-weight: var(--w-medium);
    color: var(--c-text-2);
    white-space: nowrap;
}
.tag-warn { 
    background: #FEF3C7; 
    color: var(--c-warning); 
}

.product-price {
    font-size: var(--t-xl);
    font-weight: var(--w-bold);
    color: var(--c-accent);
    margin-bottom: var(--s-1);
}

.price-note {
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin-bottom: var(--s-4);
}

.product-cta { margin-bottom: var(--s-4); }

.product-trust {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-2);
    padding: var(--s-3);
    background: var(--c-bg);
    border-radius: var(--r-lg);
}

.trust-check {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: var(--t-sm);
    color: var(--c-text-2);
}
.trust-check svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--c-success);
}

.product-description {
    margin-top: var(--s-5);
    padding-top: var(--s-5);
    border-top: 1px solid var(--c-border);
}
.product-description h2 {
    font-size: var(--t-lg);
    margin-bottom: var(--s-3);
}
.description-text {
    line-height: 1.7;
    font-size: var(--t-sm);
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.description-intro {
    margin-bottom: var(--s-3);
}
.description-details {
    border: 1px solid var(--c-border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.description-details summary {
    padding: var(--s-3) var(--s-4);
    background: var(--c-bg);
    cursor: pointer;
    font-weight: var(--w-medium);
    font-size: var(--t-sm);
    color: var(--c-accent);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.description-details summary::-webkit-details-marker { display: none; }
.description-details summary::after {
    content: '+';
    font-size: var(--t-lg);
    font-weight: var(--w-normal);
}
.description-details[open] summary::after {
    content: '−';
}
.description-details[open] summary {
    border-bottom: 1px solid var(--c-border);
}
.description-full {
    padding: var(--s-4);
    font-size: var(--t-sm);
    line-height: 1.8;
    background: var(--c-surface);
}

.related-products { margin-top: var(--s-6); }
.related-products h2 {
    font-size: var(--t-lg);
    margin-bottom: var(--s-4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: var(--s-6) 0 var(--s-4);
    margin-top: var(--s-8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}
.footer-col h4 {
    color: #fff;
    margin-bottom: var(--s-2);
    font-size: var(--t-base);
    font-weight: var(--w-semibold);
}
.footer-col p,
.footer-col li {
    font-size: var(--t-sm);
    line-height: 1.7;
    margin-bottom: var(--s-1);
}
.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--s-1);
}
.footer-col a { color: #D1D5DB; }
.footer-col a:hover { color: var(--c-accent); }

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: var(--s-5);
    padding-top: var(--s-4);
    text-align: center;
    font-size: var(--t-xs);
    color: #9CA3AF;
}
.footer-wa-link { 
    color: var(--c-whatsapp); 
    font-weight: var(--w-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

/* ==========================================================================
   WHATSAPP FLOAT
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: var(--s-4);
    right: var(--s-4);
    width: 56px;
    height: 56px;
    background: var(--c-whatsapp);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 99;
    transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { 
    transform: scale(1.08); 
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.3);
}
.whatsapp-float svg { width: 28px; height: 28px; }
.cookie-visible .whatsapp-float { bottom: 80px; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 200;
    display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding: var(--s-3) var(--s-4);
    flex-wrap: wrap;
}
.cookie-inner p {
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin: 0;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    font-size: var(--t-3xl);
    cursor: pointer;
    padding: var(--s-4);
    z-index: 301;
    min-width: 48px;
    min-height: 48px;
    transition: opacity 0.15s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 0.7; }
.lightbox-close { top: 0; right: 0; }
.lightbox-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
    position: absolute;
    bottom: var(--s-5);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.8);
    font-size: var(--t-sm);
}

/* ==========================================================================
   PAGE SECTIONS
   ========================================================================== */
.page-section { padding: var(--s-6) 0; }
.about-layout { display: grid; gap: var(--s-6); }
.contact-layout { display: grid; gap: var(--s-6); }
.map-embed iframe { 
    border-radius: var(--r-lg); 
    width: 100%; 
}

.legal-content h2 { margin-top: var(--s-6); }
.legal-content p,
.legal-content ul { margin-bottom: var(--s-4); }
.legal-content ul { padding-left: var(--s-6); list-style: disc; }

/* Flash messages */
.flash-messages { padding-top: var(--s-4); }
.flash {
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r);
    margin-bottom: var(--s-3);
    font-size: var(--t-sm);
}
.flash-success { 
    background: #D1FAE5; 
    color: var(--c-success); 
}
.flash-error { 
    background: #FEE2E2; 
    color: var(--c-danger); 
}

/* Error page */
.error-page {
    text-align: center;
    padding: var(--s-12) 0;
}
.error-page h1 { 
    font-size: var(--t-3xl); 
    color: var(--c-text-3); 
}
.error-page p { 
    font-size: var(--t-lg); 
    color: var(--c-text-2); 
    margin-bottom: var(--s-6); 
}

/* ==========================================================================
   ORDER FLOW
   ========================================================================== */
.order-layout { max-width: 640px; }
.order-product-summary { margin-bottom: var(--s-5); }
.order-product-row { 
    display: flex; 
    gap: var(--s-4); 
    align-items: center; 
}
.order-product-img { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: var(--r); 
}
.order-form h2 { 
    margin-top: var(--s-6); 
    margin-bottom: var(--s-4); 
    font-size: var(--t-lg); 
}
.payment-info { 
    background: var(--c-bg); 
    border-radius: var(--r); 
    padding: var(--s-4); 
    margin-bottom: var(--s-4); 
}
.payment-note { 
    font-size: var(--t-sm); 
    color: var(--c-text-2); 
    margin-top: var(--s-3); 
}
.sepa-details { width: 100%; border-collapse: collapse; }
.sepa-details td { 
    padding: var(--s-2); 
    font-size: var(--t-sm); 
}

.order-confirmation { max-width: 540px; margin: 0 auto; }
.confirm-header { text-align: center; margin-bottom: var(--s-6); }
.confirm-icon { 
    font-size: var(--t-3xl); 
    display: block; 
    margin-bottom: var(--s-3); 
}
.confirm-subtitle { color: var(--c-text-2); }
.confirm-order-number {
    text-align: center;
    padding: var(--s-4);
    background: var(--c-accent-light);
    border-radius: var(--r);
    margin-bottom: var(--s-4);
}
.confirm-order-number .label { 
    font-size: var(--t-sm); 
    color: var(--c-text-2); 
}
.confirm-order-number .value { 
    font-size: var(--t-xl); 
    font-weight: var(--w-bold); 
    color: var(--c-accent); 
}

/* ==========================================================================
   ADMIN STYLES
   ========================================================================== */

/* Admin Layout */
.admin-body { 
    display: flex; 
    min-height: 100vh; 
    background: #F3F4F6; 
}

/* Admin Login */
.admin-login-body { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 100vh; 
    background: #F3F4F6; 
}
.admin-login-card { 
    background: var(--c-surface); 
    padding: var(--s-8); 
    border-radius: var(--r-lg); 
    box-shadow: var(--shadow-md); 
    width: 100%; 
    max-width: 400px; 
    text-align: center; 
}
.admin-login-card h1 {
    margin-bottom: var(--s-2);
}
.login-subtitle { 
    color: var(--c-text-2); 
    margin-bottom: var(--s-6); 
}

/* Admin Sidebar */
.admin-sidebar { 
    width: 240px; 
    background: #1F2937; 
    color: #D1D5DB; 
    min-height: 100vh; 
    position: fixed; 
    left: 0; 
    top: 0; 
    z-index: 50; 
    transform: translateX(-100%); 
    transition: transform 0.3s; 
    overflow-y: auto;
}
.admin-sidebar.open { transform: translateX(0); }

.admin-sidebar-header { 
    padding: var(--s-4); 
    border-bottom: 1px solid #374151; 
    display: flex; 
    align-items: center; 
    gap: var(--s-3); 
}
.admin-sidebar-header h2 { 
    font-size: var(--t-base); 
    color: #fff;
    margin: 0;
}
.admin-badge { 
    background: var(--c-accent); 
    color: #fff; 
    font-size: var(--t-xs); 
    padding: var(--s-1) var(--s-2); 
    border-radius: var(--r-sm);
    font-weight: var(--w-medium);
}

.admin-nav { 
    padding: var(--s-2) 0; 
}
.admin-nav hr {
    border: none;
    border-top: 1px solid #374151;
    margin: var(--s-2) 0;
}
.admin-nav-link { 
    display: flex; 
    align-items: center; 
    gap: var(--s-3); 
    padding: var(--s-3) var(--s-4); 
    color: #9CA3AF; 
    font-size: var(--t-sm); 
    transition: all 0.15s;
    text-decoration: none;
}
.admin-nav-link:hover { 
    background: #374151; 
    color: #fff; 
}
.admin-nav-link.active { 
    background: rgba(197,160,89,0.15); 
    color: var(--c-accent); 
    border-left: 3px solid var(--c-accent); 
}
.admin-nav-link .nav-icon {
    width: 20px;
    text-align: center;
    font-size: var(--t-base);
}
.admin-nav-link .nav-badge {
    background: var(--c-danger);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--r-full);
    margin-left: auto;
}

/* Admin Main Content */
.admin-main { 
    flex: 1; 
    padding: var(--s-4);
    min-width: 0;
}
.admin-content {
    max-width: 1200px;
}

.admin-topbar { 
    display: flex; 
    align-items: center; 
    gap: var(--s-4);
    margin-bottom: var(--s-5); 
}
.admin-page-title {
    font-size: var(--t-xl);
    font-weight: var(--w-bold);
    margin: 0;
}
.admin-menu-toggle { 
    background: none; 
    border: none; 
    font-size: var(--t-xl); 
    cursor: pointer; 
    padding: var(--s-2);
    color: var(--c-text);
    border-radius: var(--r);
    transition: background 0.15s;
}
.admin-menu-toggle:hover {
    background: var(--c-bg);
}

/* Admin Cards */
.admin-card,
.card { 
    background: var(--c-surface); 
    border-radius: var(--r-lg); 
    padding: var(--s-5); 
    box-shadow: var(--shadow-sm); 
    margin-bottom: var(--s-4); 
}
.admin-card h2,
.admin-card h3,
.card h3 { 
    margin-bottom: var(--s-4); 
    font-size: var(--t-lg);
    font-weight: var(--w-semibold);
}

/* Admin Alerts */
.admin-alert {
    padding: var(--s-3) var(--s-4);
    border-radius: var(--r);
    margin-bottom: var(--s-4);
    font-size: var(--t-sm);
}
.admin-alert-success {
    background: #D1FAE5;
    color: var(--c-success);
    border: 1px solid #A7F3D0;
}
.admin-alert-error {
    background: #FEE2E2;
    color: var(--c-danger);
    border: 1px solid #FECACA;
}

/* Stats Grid */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--s-3); 
    margin-bottom: var(--s-5);
}
.stat-card { 
    background: var(--c-surface); 
    padding: var(--s-4); 
    border-radius: var(--r-lg); 
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-card.stat-published { border-left: 3px solid var(--c-success); }
.stat-card.stat-sold { border-left: 3px solid var(--c-accent); }
.stat-card.stat-archived { border-left: 3px solid var(--c-text-3); }

.stat-value { 
    font-size: var(--t-2xl); 
    font-weight: var(--w-bold); 
    color: var(--c-accent);
    display: block;
}
.stat-label { 
    font-size: var(--t-xs); 
    color: var(--c-text-2); 
    margin-top: var(--s-1);
    display: block;
}

/* Sale Mode Card */
.sale-mode-card {
    margin-bottom: var(--s-5);
}
.sale-mode-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
}
.sale-mode-row h3 {
    margin: 0 0 var(--s-1) 0;
    font-size: var(--t-base);
}
.sale-mode-row p {
    margin: 0;
    font-size: var(--t-sm);
    color: var(--c-text-2);
}

/* Quick Actions */
.quick-actions {
    background: var(--c-surface);
    padding: var(--s-5);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--s-5);
}
.quick-actions h3 {
    margin: 0 0 var(--s-4) 0;
    font-size: var(--t-lg);
}
.actions-row {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}

/* Recent Imports */
.recent-imports {
    background: var(--c-surface);
    padding: var(--s-5);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}
.recent-imports h3 {
    margin: 0 0 var(--s-4) 0;
    font-size: var(--t-lg);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--s-1) var(--s-2);
    border-radius: var(--r-sm);
    font-size: var(--t-xs);
    font-weight: var(--w-medium);
    text-transform: capitalize;
}
.status-published { background: #D1FAE5; color: var(--c-success); }
.status-sold { background: var(--c-accent-light); color: #92751A; }
.status-archived { background: #E5E7EB; color: var(--c-text-2); }
.status-draft { background: #DBEAFE; color: #1D4ED8; }
.status-pending { background: #FEF3C7; color: var(--c-warning); }
.status-completed { background: #D1FAE5; color: var(--c-success); }
.status-cancelled { background: #FEE2E2; color: var(--c-danger); }

/* Admin Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    margin-bottom: var(--s-4);
    flex-wrap: wrap;
}
.admin-search-form {
    display: flex;
    gap: var(--s-2);
    flex-wrap: wrap;
    flex: 1;
}
.admin-search-form input,
.admin-search-form select {
    padding: var(--s-2) var(--s-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    font-size: var(--t-sm);
    background: var(--c-surface);
}
.admin-search-form input {
    min-width: 200px;
    flex: 1;
}
.admin-search-form select {
    min-width: 140px;
}

/* Admin Table */
.admin-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: var(--t-sm);
    background: var(--c-surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table th, 
.admin-table td { 
    padding: var(--s-3); 
    text-align: left; 
    border-bottom: 1px solid var(--c-border); 
}
.admin-table th { 
    font-weight: var(--w-semibold); 
    color: var(--c-text-2); 
    font-size: var(--t-xs); 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--c-bg);
}
.admin-table tbody tr:hover {
    background: var(--c-bg);
}
.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Table Cell Variants */
.td-img { width: 60px; }
.td-title { max-width: 300px; }
.td-title a { 
    color: var(--c-text); 
    font-weight: var(--w-medium);
}
.td-title a:hover { color: var(--c-accent); }
.td-truncate { 
    max-width: 200px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
.td-actions {
    display: flex;
    gap: var(--s-2);
    align-items: center;
}

.admin-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--r);
}
.admin-no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--c-bg);
    border-radius: var(--r);
    color: var(--c-text-3);
    font-size: var(--t-lg);
}

/* Inline Form (for table actions) */
.inline-form {
    display: inline-flex;
    align-items: center;
}
.inline-form select {
    padding: var(--s-1) var(--s-2);
    border: 1px solid var(--c-border);
    border-radius: var(--r-sm);
    font-size: var(--t-xs);
    background: var(--c-surface);
}

/* Danger Button */
.btn-danger {
    background: var(--c-danger);
    color: #fff;
    border-color: var(--c-danger);
}
.btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
    color: #fff;
}

/* Edit Grid (Product Edit) */
.edit-grid { 
    display: grid; 
    gap: var(--s-4); 
}
.edit-main { }
.edit-sidebar { }

.edit-images { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--s-3);
    margin-bottom: var(--s-4);
}
.edit-image-item { 
    position: relative;
    background: var(--c-bg);
    border-radius: var(--r);
    overflow: hidden;
}
.edit-image-item img { 
    width: 100%; 
    aspect-ratio: 1; 
    object-fit: cover;
}
.edit-image-info {
    padding: var(--s-2);
    font-size: var(--t-xs);
    color: var(--c-text-2);
    display: flex;
    align-items: center;
    gap: var(--s-2);
    flex-wrap: wrap;
}
.edit-image-item .btn {
    margin: var(--s-2);
}

/* Form Textarea */
.form-group textarea {
    display: block;
    width: 100%;
    padding: var(--s-3);
    border: 1px solid var(--c-border);
    border-radius: var(--r);
    font-size: var(--t-base);
    font-family: var(--font);
    background: var(--c-surface);
    color: var(--c-text);
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}
.form-group textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-light);
}

/* Import Dropzone */
.import-dropzone { 
    border: 2px dashed var(--c-border); 
    border-radius: var(--r-lg); 
    padding: var(--s-8); 
    text-align: center; 
    background: var(--c-bg); 
    transition: all 0.15s;
    cursor: pointer;
}
.import-dropzone:hover {
    border-color: var(--c-accent);
}
.import-dropzone.dragover { 
    border-color: var(--c-accent); 
    background: var(--c-accent-light); 
}
.import-dropzone p {
    margin: 0;
    color: var(--c-text-2);
}

.import-log { 
    background: #1F2937; 
    color: #D1D5DB; 
    font-family: var(--font-mono, monospace); 
    font-size: var(--t-xs); 
    padding: var(--s-4); 
    border-radius: var(--r); 
    max-height: 300px; 
    overflow-y: auto; 
    margin-top: var(--s-4);
    line-height: 1.6;
}
.log-info { color: #60A5FA; }
.log-ok { color: #34D399; }
.log-skip { color: #FBBF24; }
.log-err { color: #F87171; }

/* Import Progress */
.progress-bar-wrap {
    background: var(--c-bg);
    border-radius: var(--r);
    height: 24px;
    overflow: hidden;
    margin-bottom: var(--s-3);
}
.progress-bar {
    background: linear-gradient(90deg, var(--c-accent), var(--c-accent-hover));
    height: 100%;
    transition: width 0.3s ease;
    border-radius: var(--r);
}
.progress-text {
    font-size: var(--t-sm);
    color: var(--c-text-2);
    margin: 0;
}
.import-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    font-size: var(--t-sm);
    color: var(--c-text-2);
}
.import-stats strong {
    color: var(--c-text);
}
.import-summary-stats {
    font-size: var(--t-lg);
    margin-bottom: var(--s-4);
}
.stat-imported { color: var(--c-success); font-weight: var(--w-bold); }
.stat-skipped { color: var(--c-warning); font-weight: var(--w-bold); }
.stat-errors { color: var(--c-danger); font-weight: var(--w-bold); }
.input-lg {
    width: 100%;
    padding: var(--s-3) var(--s-4);
    font-size: var(--t-base);
}

/* Admin Settings */
.admin-settings { max-width: 640px; }
.settings-section { 
    margin-bottom: var(--s-6); 
}
.settings-section h3 { 
    margin-bottom: var(--s-4); 
    padding-bottom: var(--s-3); 
    border-bottom: 1px solid var(--c-border);
    font-size: var(--t-lg);
}

/* ==========================================================================
   RESPONSIVE: TABLET (640px+)
   ========================================================================== */
@media (min-width: 640px) {
    .trust-grid { 
        justify-content: center; 
        overflow: visible; 
    }
    
    .grid-3 { 
        grid-template-columns: repeat(3, 1fr); 
        gap: var(--s-4); 
    }
    .grid-3 > *:nth-child(3) {
        grid-column: auto;
        flex-direction: column;
        text-align: center;
        padding: var(--s-3);
    }
    .grid-3 > *:nth-child(3) .category-icon { 
        margin-bottom: var(--s-2); 
    }
    .grid-3 > *:nth-child(3) p { display: block; }
    
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .edit-images { grid-template-columns: repeat(3, 1fr); }
    
    /* Admin tablet improvements */
    .admin-toolbar {
        flex-wrap: nowrap;
    }
    .admin-search-form {
        flex-wrap: nowrap;
    }
}

/* ==========================================================================
   RESPONSIVE: DESKTOP (768px+)
   ========================================================================== */
@media (min-width: 768px) {
    :root {
        --header-h: 64px;
    }
    
    h1 { font-size: var(--t-2xl); }
    h2 { font-size: var(--t-xl); }
    .page-title { font-size: var(--t-2xl); }
    .section-title { font-size: var(--t-xl); }
    
    .logo { font-size: var(--t-lg); }
    
    .nav-toggle { display: none; }
    .nav-links {
        position: static;
        display: flex;
        background: none;
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        gap: var(--s-1);
    }
    .nav-links li a {
        padding: var(--s-2) var(--s-4);
        border-bottom: 2px solid transparent;
        font-size: var(--t-base);
    }
    .nav-links li a.active {
        color: var(--c-accent);
        border-bottom-color: var(--c-accent);
    }
    
    .hero { 
        padding: var(--s-10) 0 var(--s-8); 
    }
    .hero h1 { font-size: var(--t-2xl); }
    .hero-subtitle { 
        font-size: var(--t-base); 
        max-width: 460px; 
    }
    .hero-stock { font-size: var(--t-sm); }
    
    .categories { padding: var(--s-8) 0 var(--s-6); }
    .category-card { padding: var(--s-4); }
    .category-icon { width: 48px; height: 48px; }
    .category-icon svg { width: 24px; height: 24px; }
    .category-card h3 { font-size: var(--t-base); }
    .category-card p { font-size: var(--t-sm); }
    
    .latest-products { padding: var(--s-10) 0; }
    
    .product-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: var(--s-4); 
    }
    .product-card-body { padding: var(--s-4); }
    .product-card-title { font-size: var(--t-base); }
    
    .product-layout { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
    .product-info { 
        position: sticky; 
        top: calc(var(--header-h) + var(--s-4)); 
        align-self: start; 
    }
    .product-title { font-size: var(--t-xl); }
    .product-price { font-size: var(--t-2xl); }
    .description-text { font-size: var(--t-base); }
    .gallery-thumb { width: 64px; height: 64px; }
    
    .footer-grid { 
        grid-template-columns: repeat(3, 1fr); 
        gap: var(--s-8);
    }
    .footer-col h4 { margin-bottom: var(--s-3); }
    .about-layout { grid-template-columns: 1.2fr 1fr; }
    .contact-layout { grid-template-columns: 1fr 1.2fr; }
    
    /* Catalog desktop: sidebar + main */
    .catalog-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: var(--s-6);
        align-items: start;
    }
    
    .filter-toggle { display: none; }
    .filter-backdrop { display: none !important; }
    
    .filter-panel {
        position: sticky;
        top: calc(var(--header-h) + var(--s-4));
        transform: none;
        width: auto;
        max-width: none;
        height: auto;
        max-height: calc(100vh - var(--header-h) - var(--s-8));
        border-radius: var(--r-lg);
        border: 1px solid var(--c-border);
        box-shadow: var(--shadow-sm);
    }
    .filter-panel.open { transform: none; }
    .filter-header { display: none; }
    
    /* Admin */
    .admin-sidebar { transform: translateX(0); }
    .admin-main { margin-left: 240px; }
    .admin-menu-toggle { display: none; }
    .edit-grid { grid-template-columns: 1fr 300px; }
    .stats-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ==========================================================================
   RESPONSIVE: LARGE DESKTOP (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .product-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: var(--s-5);
    }
    
    .hero { 
        padding: var(--s-12) 0 var(--s-10); 
    }
    .hero h1 { font-size: var(--t-3xl); }
    .hero-subtitle { 
        font-size: var(--t-lg); 
        max-width: 540px; 
    }
}

/* ==========================================================================
   RESPONSIVE: XL DESKTOP (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
    .container { 
        padding: 0 var(--s-6); 
    }
}