/* ========================================
   RIN SERV WOOD - Mathaus-Inspired Design
   Primary: #ffb52d (amber/gold)
   ======================================== */

:root {
    --primary: #f5a623;
    --primary-dark: #d4900e;
    --primary-light: #fef5e0;
    --primary-hover: #f7b84a;
    --text-dark: #111111;
    --text-primary: #222222;
    --text-secondary: #555555;
    --text-muted: #888888;
    --bg-body: #f0f0f0;
    --bg-white: #ffffff;
    --bg-light: #f7f7f7;
    --bg-dark: #252525;
    --bg-darker: #161616;
    --border: #d5d5d5;
    --border-light: #e8e8e8;
    --success: #2e8b3e;
    --danger: #d32f2f;
    --warning: #ef8c00;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 3px 10px rgba(0,0,0,0.12);
    --shadow-lg: 0 6px 24px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --font: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    --transition: all 0.18s ease;
    --container: 1280px;
    --header-h: 72px;
    --nav-h: 46px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { -webkit-user-drag: none; user-select: none; pointer-events: auto; }
img[draggable], a[draggable] { -webkit-user-drag: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Thin scrollbars everywhere */
* { scrollbar-width: thin; scrollbar-color: #c0c0c0 transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; }
*::-webkit-scrollbar-thumb:hover { background: #999; }

body {
    font-family: var(--font);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#app { display: flex; flex-direction: column; min-height: 100vh; }
#app > main { flex: 1; }
#app > footer { margin-top: auto; }

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
input, select, textarea { font-family: inherit; font-size: inherit; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--bg-darker);
    color: #b0b0b0;
    font-size: 12px;
    height: 34px;
    display: flex;
    align-items: center;
    letter-spacing: 0.2px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-bar-left a, .top-bar-right a { color: #b0b0b0; display: inline-flex; align-items: center; gap: 6px; }
.top-bar-left a:hover, .top-bar-right a:hover { color: #fff; }
.top-bar-right { display: flex; gap: 16px; align-items: center; }

/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
}
.header-logo { flex-shrink: 0; display: flex; align-items: center; }
.header-logo img { height: 48px; width: auto; object-fit: contain; }

/* Search Bar */
.header-search { flex: 1; max-width: 620px; min-width: 0; position: relative; }
.search-form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 44px;
    background: var(--bg-light);
}
.search-form:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245,166,35,0.15); background: #fff; }
.search-form:hover { border-color: #bbb; }
.search-form input {
    flex: 1;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: transparent;
    min-width: 0;
    color: var(--text-dark);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
    background: var(--primary);
    color: white;
    padding: 0 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.search-form button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    color: var(--text-primary);
    white-space: nowrap;
}
.header-action-btn:hover { background: var(--bg-light); color: var(--text-dark); }
.header-action-btn .icon { font-size: 22px; position: relative; display: inline-block; line-height: 1; }
.header-action-btn .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}
.header-action-btn .label { font-size: 13px; font-weight: 500; }

/* ========================================
   NAVIGATION BAR - Dark professional style
   ======================================== */
.nav-bar {
    background: var(--bg-darker);
    height: var(--nav-h);
    position: sticky;
    top: var(--header-h);
    z-index: 999;
}
.nav-bar .container { display: flex; align-items: stretch; height: 100%; position: relative; }

.nav-categories-btn {
    background: var(--primary);
    color: var(--text-dark);
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: var(--transition);
    flex-shrink: 0;
}
.nav-categories-btn:hover { background: var(--primary-dark); }
.nav-categories-btn .nav-icon { font-size: 15px; flex-shrink: 0; }
.nav-categories-btn > .cat-label { display: inline; }

/* Mega Menu - under navbar, symmetric with container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 998;
    display: none;
}
.mega-menu.show { display: block; }
.mega-menu-inner {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    border-top: 3px solid var(--primary);
    max-height: 520px;
}
.mega-menu-left {
    width: 250px;
    min-width: 250px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    flex-shrink: 0;
}
.mega-menu-left a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.1s, color 0.1s;
}
.mega-menu-left a:last-child { border-bottom: none; }
.mega-menu-left a:hover, .mega-menu-left a.active { background: var(--bg-darker); color: white; }
.mega-menu-left a .fa-chevron-right { font-size: 9px; opacity: 0.35; }
.mega-menu-left a:hover .fa-chevron-right,
.mega-menu-left a.active .fa-chevron-right { opacity: 1; color: var(--primary); }
.mega-menu-right {
    flex: 1;
    background: var(--bg-light);
    padding: 24px 28px;
    overflow-y: auto;
    max-height: 520px;
}
.mega-right-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.mega-right-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.mega-see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.mega-see-all:hover { color: var(--text-dark); }
.mega-groups {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
}
.mega-group {}
.mega-group-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 6px 0;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--border);
}
.mega-group-title:hover { color: var(--primary-dark); }
.mega-group-item {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 0;
    transition: color 0.1s;
    line-height: 1.35;
}
.mega-group-item:hover { color: var(--primary-dark); padding-left: 4px; }
.mega-menu-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    color: var(--text-muted);
}

/* Filters toolbar (replaces sidebar on category page) */
.filters-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}
.filters-toolbar .filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}
.filters-toolbar .filter-group label {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}
.filters-toolbar .filter-group input {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    outline: none;
}
.filters-toolbar .filter-group input:focus { border-color: var(--primary); }
.filters-toolbar .filter-sep { color: var(--text-muted); }
.filters-toolbar .filter-btn {
    padding: 6px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.filters-toolbar .filter-btn:hover { background: var(--primary-dark); }
.filters-toolbar .filter-check {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    user-select: none;
}
.filters-toolbar .filter-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.filters-toolbar .sort-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filters-toolbar .results-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: auto;
}
.filters-toolbar .results-info strong { color: var(--text-dark); }

/* Nav Menu */
.nav-menu { display: flex; align-items: stretch; margin-left: auto; }
.nav-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.nav-menu a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-menu a .fa-solid, .nav-menu a .fa-regular { font-size: 13px; }

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider { position: relative; overflow: hidden; background: var(--bg-darker); }
.hero-slide {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    animation: slideFadeIn 0.6s ease;
}
@keyframes slideFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.05) 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 560px;
    padding: 40px 0;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.1;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-desc {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: rgba(255,255,255,0.88);
    max-width: 460px;
}
.btn-hero { font-size: 15px; padding: 14px 32px; }
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    padding: 0;
}
.slider-dot.active { background: var(--primary); transform: scale(1.3); }

/* ========================================
   CATEGORY CAROUSEL
   ======================================== */
.cat-carousel-section { padding: 24px 0 8px; }
.cat-carousel-wrap { position: relative; }
.cat-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}
.cat-carousel::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
    .cat-carousel .category-tile:last-child { animation: tileHint 1.5s ease 1s 2; }
    @keyframes tileHint { 0%, 100% { box-shadow: none; } 50% { box-shadow: -4px 0 12px rgba(0,0,0,0.15); } }
}

.category-tile {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 88px;
    flex-shrink: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--text-primary);
    user-select: none;
    -webkit-user-drag: none;
}
.category-tile:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-tile .tile-icon { font-size: 24px; margin-bottom: 6px; color: var(--primary); line-height: 1; }
.category-tile .tile-photo { width: 48px; height: 48px; margin-bottom: 4px; }
.category-tile .tile-photo img { width: 100%; height: 100%; object-fit: contain; opacity: 0.45; transition: opacity 0.2s; }
.category-tile:hover .tile-photo img { opacity: 0.7; }
.category-tile .tile-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1.3;
    word-break: break-word;
}
.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}
.cat-arrow:hover { background: var(--primary); color: white; border-color: var(--primary); }
.cat-arrow-left { left: -12px; }
.cat-arrow-right { right: -12px; }

/* Category tiles grid (used on category sub-pages) */
.category-tiles { padding: 32px 0; }
.category-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.products-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border); transform: translateY(-2px); }
.product-card .card-image {
    display: block;
    position: relative;
    padding-top: 100%;
    background: white;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}
.product-card .card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.3s ease;
}
.product-card:hover .card-image img { transform: scale(1.05); }
.product-card .card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.card-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: nowrap;
}
.card-badge.in-stock { background: #e6f4ea; color: #1b7a2b; }
.card-badge.low-stock { background: #fff3e0; color: #e65100; animation: lowStockPulse 2s ease infinite; }
@keyframes lowStockPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.card-badge.out-of-stock { background: #fce8e6; color: #b71c1c; }
.card-badge.oferta { background: var(--primary-light); color: var(--primary-dark); }
.card-badge.discount { background: var(--danger); color: white; }

.product-card .card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card .card-category {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}
.product-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 36px;
}
.product-card .card-title:hover { color: var(--primary-dark); }
.product-card .card-price { margin-bottom: 10px; }
.card-price .current-price { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.card-price .current-price .currency { font-size: 13px; font-weight: 600; }
.card-price .old-price { font-size: 13px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-card .card-actions { display: flex; gap: 8px; margin-top: auto; }
.product-card .btn-add-cart {
    flex: 1;
    padding: 9px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
.product-card .btn-add-cart:hover { background: var(--text-dark); color: white; }
.product-card .btn-view {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.product-card .btn-view:hover { border-color: var(--primary); color: var(--primary); }

/* ========================================
   PRODUCT SECTIONS
   ======================================== */
.product-section { padding: 24px 0; }

/* ========================================
   PARTNERS
   ======================================== */
.partners-section { padding: 32px 0; background: var(--bg-white); }
.partners-grid { display: flex; justify-content: center; align-items: center; }
.partners-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; align-items: center; }
.partner-logo-item.mobile-only { display: none; }
@media (max-width: 768px) {
    .partners-grid { overflow: hidden; }
    .partners-track { display: flex !important; flex-wrap: nowrap !important; gap: 32px; width: max-content; animation: partnersScroll 8s linear infinite; }
    .partner-logo-item { flex-shrink: 0; opacity: 1 !important; filter: none !important; }
    .partner-logo-item.mobile-only { display: block; }
}
@keyframes partnersScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.partner-logo-item { height: 48px; opacity: 0.5; transition: var(--transition); filter: grayscale(100%); }
.partner-logo-item:hover { opacity: 1; filter: grayscale(0%); }
.partner-logo-item img { height: 100%; width: auto; object-fit: contain; }

/* About page partners - grid layout */
.about-partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 20px; align-items: center; background: var(--bg-white); padding: 24px; border-radius: var(--radius-md); }
.about-partner { display: flex; align-items: center; justify-content: center; height: 56px; }
.about-partner img { max-height: 100%; max-width: 100%; object-fit: contain; opacity: 0.7; transition: opacity 0.2s; }
.about-partner img:hover { opacity: 1; }

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs { background: var(--bg-white); border-bottom: 1px solid var(--border-light); padding: 12px 0; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 13px; }
.breadcrumb-list a { color: var(--text-secondary); }
.breadcrumb-list a:hover { color: var(--primary); }
.breadcrumb-list .separator { color: var(--text-muted); margin: 0 2px; }
.breadcrumb-list .current { color: var(--text-dark); font-weight: 500; }

/* ========================================
   CATEGORY PAGE
   ======================================== */
.category-page { padding: 24px 0 48px; }
.category-layout { display: block; }

/* Results Bar (Search Page) */
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.results-count { font-size: 15px; color: var(--text-secondary); }
.results-count strong { color: var(--text-dark); }

/* Sort Select */
.sort-select {
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg-white);
    cursor: pointer;
    outline: none;
}
.sort-select:focus { border-color: var(--primary); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 24px; flex-wrap: wrap; }
.pagination button {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0 6px;
}
.pagination button:hover:not(:disabled):not(.active) { background: var(--bg-light); border-color: var(--border); color: var(--text-dark); }
.pagination button.active { background: var(--text-dark); border-color: var(--text-dark); color: white; font-weight: 600; }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-detail { padding: 24px 0 48px; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 32px;
}
.product-gallery { position: relative; }
.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    padding: 20px;
}
.product-main-image img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; height: auto; }
.product-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.product-thumb {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    padding: 4px;
    background: var(--bg-light);
}
.product-thumb.active, .product-thumb:hover { border-color: var(--primary); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Product Info */
.product-info .product-category-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
}
.product-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { display: inline-flex; gap: 2px; color: var(--primary); font-size: inherit; }
.stars .empty { color: #ddd; }
.rating-count { font-size: 13px; color: var(--text-muted); }

.product-price-box {
    padding: 16px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}
.product-price-box .price-current { font-size: 28px; font-weight: 700; color: var(--text-dark); }
.product-price-box .price-current .currency { font-size: 18px; }
.product-price-box .price-old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-left: 12px; }
.product-short-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.product-short-desc img { max-width: 100%; border-radius: var(--radius-md); }
.product-stock { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; }
.stock-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.stock-dot.in-stock { background: var(--success); }
.stock-dot.out-of-stock { background: var(--danger); }

.product-viewers {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: #fff8e1; border: 1px solid #ffe082; border-radius: var(--radius-md);
    font-size: 13px; color: #e65100; margin-bottom: 14px; width: 100%;
}
.product-viewers i { animation: viewersPulse 2s ease infinite; }
@keyframes viewersPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.product-add-form { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; width: 100%; }
.product-add-form .btn-primary { flex: 1; }

.btn-whatsapp-order {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px;
    background: #25d366; color: #fff; border: none; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 700; text-decoration: none;
    transition: background 0.2s, transform 0.15s; margin-bottom: 20px; cursor: pointer;
}
.btn-whatsapp-order:hover { background: #1da851; transform: translateY(-1px); }
.btn-whatsapp-order i { font-size: 18px; }
.qty-input {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.qty-input button {
    width: 38px;
    height: 42px;
    background: var(--bg-light);
    border: none;
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.qty-input button:hover { background: var(--border); }
.qty-input input {
    width: 52px;
    height: 42px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    background: white;
}

/* Swipe hint */
.swipe-hint { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,0.5); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 10px; pointer-events: none; }
.product-main-image { position: relative; touch-action: pan-y; }

/* Sticky cart bar (mobile) */
.sticky-cart-bar { display: none; }
@media (max-width: 768px) {
    .sticky-cart-bar { display: block; position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-white); border-top: 1px solid var(--border); padding: 10px 16px; z-index: 999; box-shadow: 0 -4px 16px rgba(0,0,0,0.1); animation: slideUp 0.25s ease; }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .sticky-cart-inner { display: flex; align-items: center; gap: 12px; max-width: var(--container); margin: 0 auto; }
    .sticky-cart-info { flex: 1; min-width: 0; }
    .sticky-cart-price { font-size: 18px; font-weight: 800; color: var(--text-dark); display: block; }
    .sticky-cart-name { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .sticky-cart-btn { flex-shrink: 0; padding: 12px 20px; font-size: 14px; font-weight: 700; white-space: nowrap; }
}

.product-guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border-light); }
.pg-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.pg-item i { color: var(--success); font-size: 14px; flex-shrink: 0; }

/* Product Tabs */
.product-tabs { margin-top: 32px; background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; }
.tab-headers { display: flex; border-bottom: 2px solid var(--border); }
.tab-header {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.tab-header.active { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-header:hover { color: var(--primary); }
.tab-content { padding: 24px; }
/* Force uniform typography on all product descriptions regardless of DB content */
.tab-content .description-content,
.tab-content .description-content *,
.product-short-desc,
.product-short-desc * {
    font-family: var(--font) !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--text-secondary) !important;
}
.tab-content .description-content b,
.tab-content .description-content strong { font-weight: 700 !important; color: var(--text-dark) !important; }
.tab-content .description-content ul,
.tab-content .description-content ol { padding-left: 20px !important; list-style: disc !important; margin: 8px 0 !important; }
.tab-content .description-content li { margin-bottom: 4px !important; }
.tab-content .description-content { font-size: 15px; line-height: 1.7; color: var(--text-secondary); word-break: break-word; overflow: hidden; }
.tab-content .description-content img { border-radius: var(--radius-md); margin: 16px 0; max-width: 100%; height: auto; }
.tab-content .description-content table { max-width: 100%; overflow-x: auto; display: block; }

/* Reviews */
.review-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.review-body { flex: 1; min-width: 0; }
.review-body h4 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.review-body .review-text { font-size: 14px; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.review-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: var(--transition);
}
.review-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,181,45,0.1); }

/* ========================================
   CART PAGE
   ======================================== */
.cart-page { padding: 24px 0 48px; }
.cart-table-wrapper { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--border-light); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    background: var(--bg-light);
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.3px;
}
.cart-table td { padding: 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-product-cell { display: flex; align-items: center; gap: 12px; }
.cart-product-cell img { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-light); padding: 6px; flex-shrink: 0; }
.cart-product-cell .name { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.cart-product-cell .name:hover { color: var(--primary-dark); }
.cart-remove-btn { color: var(--text-muted); font-size: 20px; transition: var(--transition); background: none; border: none; cursor: pointer; padding: 4px; line-height: 1; }
.cart-remove-btn:hover { color: var(--danger); }

.cart-bottom { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 24px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    border: 1px solid var(--border-light);
}
.cart-summary h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.cart-summary-row.total {
    border-top: 2px solid var(--text-dark);
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
}

/* ========================================
   AUTH PAGES
   ======================================== */
.auth-page { padding: 48px 16px; display: flex; justify-content: center; align-items: center; min-height: calc(100vh - var(--header-h) - var(--nav-h) - 34px); }
.auth-card { background: var(--bg-white); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.auth-card h2 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    background: white;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,181,45,0.15); }

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.3;
}
.btn-primary:hover { background: var(--text-dark); color: white; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary.full-width { width: 100%; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.btn-secondary:hover { background: var(--bg-light); border-color: var(--text-muted); color: var(--text-dark); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ========================================
   CONTENT PAGES
   ======================================== */
.content-page { padding: 32px 0 48px; }
.content-card { background: var(--bg-white); border-radius: var(--radius-md); padding: 32px; }
.content-card h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.content-card p { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 16px; }
.content-card p:last-child { margin-bottom: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 20px; }
.contact-info-item .ci-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    flex-shrink: 0;
    font-size: 18px;
}
.contact-info-item .ci-text span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-item .ci-text p { font-size: 15px; color: var(--text-primary); margin: 2px 0 0; }

/* Product Picker */
.product-picker { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; background: #fff; }
.pp-selected { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pp-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-light); color: var(--text-dark); padding: 5px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.pp-tag-x { background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; padding: 0; line-height: 1; }
.pp-tag-x:hover { color: var(--danger); }
.pp-search-wrap { position: relative; }
.pp-search-wrap .form-control { border: none; padding: 6px 8px; font-size: 14px; box-shadow: none; }
.pp-search-wrap .form-control:focus { box-shadow: none; }
.pp-dropdown { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); z-index: 50; max-height: 200px; overflow-y: auto; }
.pp-dropdown a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; color: var(--text-primary); border-bottom: 1px solid var(--border-light); transition: background 0.1s; }
.pp-dropdown a:last-child { border-bottom: none; }
.pp-dropdown a:hover { background: var(--primary-light); }
.pp-price { font-size: 12px; color: var(--text-muted); font-weight: 500; white-space: nowrap; margin-left: 8px; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer { background: var(--bg-dark); color: #aaa; padding-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand .footer-logo-text { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; color: #aaa; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.footer-contact-item a { color: #aaa; }
.footer-contact-item a:hover { color: #fff; }
.footer-col h4 { font-size: 16px; font-weight: 700; color: white; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; color: #aaa; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid #444; padding: 16px 0; }
.footer-bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: #777; margin: 0; }
.footer-bottom a { color: var(--primary); }
.footer-badges { display: flex; gap: 8px; align-items: center; }
.footer-badges img { height: 36px; width: auto; }

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 14px; margin-bottom: 16px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* Dashboard responsive grids */
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .dash-row { grid-template-columns: 1fr; } .dash-cols { grid-template-columns: 1fr; } }

.order-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.ob-pending { background: #fff3e0; color: #e65100; }
.ob-success { background: #e8f5e9; color: #2e7d32; }
.ob-danger { background: #ffebee; color: #c62828; }

.toast-container { position: fixed; top: 84px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    max-width: 360px;
    pointer-events: auto;
}
.toast.success { background: #2e7d32; color: white; }
.toast.error { background: #c62828; color: white; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 64px 20px; }
.empty-state .es-icon { font-size: 48px; color: var(--border); margin-bottom: 16px; line-height: 1; }
.empty-state h3 { font-size: 20px; color: var(--text-primary); margin-bottom: 8px; font-weight: 600; }
.empty-state p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-toggle { display: none; font-size: 24px; color: var(--text-primary); padding: 4px; line-height: 1; }
.mobile-search-btn { display: none; font-size: 18px; color: var(--text-secondary); padding: 8px; transition: var(--transition); }
.mobile-search-btn:hover { color: var(--text-dark); }
.mobile-sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-sidebar-overlay.show { opacity: 1; visibility: visible; }
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--bg-white);
    z-index: 2001;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-shadow: var(--shadow-lg);
}
.mobile-sidebar.show { left: 0; }
.mobile-sidebar .close-btn { position: absolute; top: 12px; right: 12px; font-size: 28px; color: var(--text-primary); cursor: pointer; line-height: 1; padding: 4px; }
.mobile-sidebar h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--text-dark); }
.mobile-sidebar .ms-link { display: block; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border-light); color: var(--text-primary); }
.mobile-sidebar .ms-link:hover { color: var(--primary-dark); }
.mobile-sidebar .ms-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Vue Transitions */
.fade-enter-active, .fade-leave-active { transition: opacity 0.15s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* Image Modal */
.image-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.image-modal img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.image-modal .close-btn { position: absolute; top: 16px; right: 20px; color: white; font-size: 36px; cursor: pointer; line-height: 1; padding: 8px; }

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .mega-menu-left { width: 200px; min-width: 200px; }
    .mega-menu-right { padding: 18px; }
    .mega-groups { grid-template-columns: 1fr 1fr; gap: 16px; }
    .product-detail-grid { gap: 24px; padding: 24px; }
    .hero-title { font-size: 34px; }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
    :root { --header-h: 60px; --nav-h: 0px; }
    .top-bar { display: none; }
    .nav-bar { display: none; }
    .mega-menu { display: none !important; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; }
    .mobile-search-btn { display: flex; align-items: center; justify-content: center; }
    .header-logo img { height: 36px; }
    .header-action-btn .label { display: none; }
    .header-action-btn { padding: 8px; }
    .header-inner { gap: 8px; position: relative; }
    .search-form { height: 44px; }

    /* Search hidden by default on mobile */
    .header-search { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 4px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; z-index: 5; max-width: none; background: var(--bg-white); }
    .header-search .search-form { flex: 1; height: 44px; position: relative; }
    .header-inner.search-active .header-search { opacity: 1; pointer-events: auto; }
    .header-inner.search-active .header-logo,
    .header-inner.search-active .mobile-menu-toggle,
    .header-inner.search-active .mobile-search-btn,
    .header-inner.search-active .header-actions { opacity: 0; pointer-events: none; transition: opacity 0.15s ease; }

    .filters-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
    .filters-toolbar .sort-wrap { margin-left: 0; }
    .filters-toolbar .results-info { margin-right: 0; }

    .hero-slide { min-height: 240px; }
    .hero-slide-content { padding: 20px 0; }
    .hero-title { font-size: 24px; }
    .hero-desc { font-size: 13px; margin-bottom: 16px; }
    .btn-hero { font-size: 13px; padding: 10px 20px; }
    .slider-arrow { width: 32px; height: 32px; font-size: 14px; }

    .cat-arrow { display: none; }
    .category-tile { min-width: 100px; min-height: 78px; padding: 12px 10px; }
    .category-tile .tile-icon { font-size: 20px; }
    .category-tile .tile-name { font-size: 10px; }
    .category-tiles-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .products-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .product-detail-grid { grid-template-columns: 1fr; gap: 20px; padding: 16px; }

    .category-layout { display: block; }

    .contact-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { justify-content: center; text-align: center; }

    /* Cart mobile */
    .cart-table-wrapper { overflow-x: auto; }
    .cart-table { min-width: 520px; }
    .cart-img-link { display: none; }
    .cart-bottom { flex-direction: column; }
    .cart-summary { max-width: none; margin-left: 0; }

    .auth-card { padding: 28px 20px; }
    .content-card { padding: 20px; }
    .section-header h2 { font-size: 18px; }
    .dash-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dash-tab { white-space: nowrap; font-size: 13px !important; padding: 10px 14px !important; }

    .toast-container { top: auto; bottom: 20px; right: 12px; left: 12px; }
    .toast { max-width: none; }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .products-grid { gap: 8px; }
    .product-card .card-body { padding: 8px; }
    .product-card .card-title { font-size: 13px; min-height: 34px; }
    .card-price .current-price { font-size: 15px; }
    .card-price .old-price { font-size: 11px; display: block; margin-left: 0; }
    .product-card .btn-add-cart { font-size: 11px; padding: 7px 6px; }
    .product-card .btn-view { padding: 7px 8px; font-size: 12px; }
    .category-tiles-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-slide-content h2 { font-size: 20px; }
    .product-info h1 { font-size: 20px; }
    .product-price-box .price-current { font-size: 22px; }
    .results-bar { flex-direction: column; align-items: stretch; gap: 8px; }
}

/* ========================================
   COOKIE CONSENT
   ======================================== */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--bg-darker); color: #fff; padding: 18px 24px; z-index: 99999; display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); font-size: 14px; line-height: 1.5; }
.cookie-banner p { margin: 0; max-width: 700px; color: #ccc; }
.cookie-banner p a { color: var(--primary); text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { padding: 10px 22px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; cursor: pointer; border: none; transition: var(--transition); }
.cookie-btn.accept { background: var(--primary); color: #fff; }
.cookie-btn.accept:hover { background: var(--primary-dark); }
.cookie-btn.reject { background: transparent; color: #aaa; border: 1px solid #555; }
.cookie-btn.reject:hover { border-color: #999; color: #fff; }
@media (max-width: 600px) { .cookie-banner { flex-direction: column; text-align: center; padding: 16px; } }

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 9990; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.wa-float::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(37,211,102,0.4); animation: wa-pulse 2s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-tooltip { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--text-dark); padding: 8px 14px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.wa-float:hover .wa-tooltip { opacity: 1; }
@media (max-width: 768px) { .wa-float { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 24px; } .wa-tooltip { display: none; } }

/* ========================================
   SEARCH AUTOCOMPLETE
   ======================================== */
.search-autocomplete { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); max-height: 380px; overflow-y: auto; z-index: 1000; }
.sa-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text-primary); border-bottom: 1px solid var(--border-light); transition: background 0.15s; cursor: pointer; }
.sa-item:last-child { border-bottom: none; }
.sa-item:hover, .sa-item.active { background: var(--primary-light); }
.sa-item img { width: 40px; height: 40px; object-fit: contain; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--bg-light); }
.sa-item-info { flex: 1; min-width: 0; }
.sa-item-name { font-size: 13px; font-weight: 500; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-item-price { font-size: 13px; font-weight: 700; color: var(--primary-dark); }
.sa-footer { padding: 10px 14px; text-align: center; font-size: 13px; border-top: 1px solid var(--border); }
.sa-footer a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.sa-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ========================================
   CART ADD ANIMATION
   ======================================== */
@keyframes cartBounce { 0%,100% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(0.9); } }
.header-action-btn .icon.bounce { animation: cartBounce 0.5s ease; }
.badge { transition: transform 0.2s; }
@keyframes badgePop { 0% { transform: scale(0.5); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }
.badge.pop { animation: badgePop 0.3s ease; }

/* ========================================
   SKELETON LOADERS
   ======================================== */
.skeleton-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skeleton-card { background: var(--bg-white); border-radius: var(--radius-md); overflow: hidden; }
.skeleton-img { height: 200px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-body { padding: 14px; }
.skeleton-line { height: 14px; border-radius: 4px; background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; margin-bottom: 10px; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.thick { height: 20px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (max-width: 768px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } .skeleton-img { height: 140px; } }

/* ========================================
   BLOG
   ======================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.blog-card { background: var(--bg-white); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text-dark); box-shadow: var(--shadow-sm); transition: transform 0.25s, box-shadow 0.25s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-light); }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--border); }
.blog-card-body { padding: 18px; }
.blog-card-body h3 { font-size: 16px; font-weight: 700; line-height: 1.4; margin: 0 0 8px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0 0 12px; }
.blog-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); }
.blog-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.blog-tag { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); }

/* Blog Article */
.blog-article { padding: 32px 0 48px; }
.blog-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; max-height: 400px; }
.blog-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-article-header { margin-bottom: 32px; }
.blog-article-header h1 { font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--text-dark); margin: 8px 0 16px; }
.blog-article-meta { display: flex; gap: 20px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.blog-article-content { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.blog-article-content h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin: 32px 0 16px; }
.blog-article-content h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin: 24px 0 12px; }
.blog-article-content p { margin-bottom: 16px; }
.blog-article-content ul, .blog-article-content ol { padding-left: 24px; margin-bottom: 16px; }
.blog-article-content li { margin-bottom: 8px; }
.blog-article-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); margin: 16px 0; }
.blog-article-content blockquote { border-left: 4px solid var(--primary); padding: 16px 20px; margin: 20px 0; background: var(--primary-light); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--text-primary); }
.blog-related { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--border-light); }
.blog-related h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: var(--text-dark); }

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .blog-article-header h1 { font-size: 24px; }
    .blog-card-body { padding: 14px; }
    .blog-card-body h3 { font-size: 14px; }
}
@media (max-width: 480px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-article-header h1 { font-size: 20px; }
    .blog-article-content { font-size: 15px; }
}
