/* Rotteri 2026 — Shein-inspired, mobile-first marketplace */

:root {
  --primary: #FF4F00;
  --primary-dark: #E54500;
  --primary-light: #FFF3EB;
  --bg: #F5F5F5;
  --bg-gradient: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #F0F0F0;
  --text: #111827;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
  --font: 'Inter', -apple-system, sans-serif;
}

html { overflow-x: hidden; background: #F5F5F5; max-width: 100vw; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: #F5F5F5; color: #111827; -webkit-font-smoothing: antialiased; min-height: 100vh; -webkit-tap-highlight-color: transparent; max-width: 100%; overflow-x: hidden; }
/* === PAGE LAYOUT === */
.page-bg {
  width: 100%;
  background: #F5F5F5;  /* full-width background */
  min-height: calc(100vh - 54px);
}
.page-clip {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
}
.page-clip main {
  min-height: inherit;
}
/* Content wrapper — use inside page-clip for padded sections */
.content-wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
}
a { text-decoration: none; color: inherit; }
input, select, textarea { font-size: 16px; } /* Prevent iOS zoom on focus */

/* =========================================================
   NAVBAR — Responsive: mobile / tablet / desktop / ultrawide
   ========================================================= */

/* --- Header shell --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s, padding .25s;
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header.shrunk {
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

/* --- Inner wrapper — caps width & centres content --- */
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Logo --- */
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-logo { height: 26px; max-height: 30px; max-width: 120px; width: auto; object-fit: contain; display: block; }
.nav-logo-text {
  font-size: 1.1rem; font-weight: 900;
  letter-spacing: -.02em; color: var(--primary);
  align-items: center; /* toggled to flex via onerror */
}

/* --- Desktop nav links (hidden mobile/tablet) --- */
.nav-links {
  display: none;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .82rem; font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-link i { font-size: .8rem; }
.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-link.active { color: var(--primary); background: var(--primary-light); }

/* --- Search wrap (flex: 1 on tablet+) --- */
.nav-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Mobile: fullscreen overlay when .open */
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  background: var(--surface);
  padding: 0 12px;
  z-index: 300;
  transform: translateY(-100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s;
  opacity: 0;
  pointer-events: none;
}
.nav-search-wrap.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-search-close {
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer; font-size: .9rem;
  transition: background .15s;
}
.nav-search-close:hover { background: var(--primary-light); color: var(--primary); }

.nav-search-box {
  flex: 1; position: relative; min-width: 0;
}
.nav-search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: .82rem; pointer-events: none;
}
.nav-search-box input {
  width: 100%;
  padding: 9px 36px 9px 34px;
  background: var(--surface-2);
  border: 1.5px solid transparent;
  border-radius: 22px;
  font-size: .88rem;
  color: var(--text);
  transition: border-color .2s, background .2s;
  -webkit-appearance: none;
}
.nav-search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.nav-search-box input::placeholder { color: var(--text-3); }
.nav-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%; border: none;
  background: var(--text-3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; cursor: pointer;
}

/* --- Action buttons --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-icon-btn:hover { background: var(--primary-light); color: var(--primary); transform: scale(1.06); }
.nav-icon-btn:active { transform: scale(.95); }

/* Cart badge */
.nav-badge {
  position: absolute;
  top: 2px; right: 1px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  font-size: .58rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #fff;
  pointer-events: none;
}

/* Username text (desktop only) */
.nav-user-name {
  display: none;
  font-size: .78rem; font-weight: 600;
  color: var(--text);
  margin-left: 2px;
  max-width: 90px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Tablet (≥600px): Search always visible, no overlay ── */
@media (min-width: 600px) {
  .nav-search-wrap {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all;
    flex: 1;
    padding: 0;
    background: transparent;
    z-index: auto;
  }
  .nav-search-close { display: none; }
  .nav-search-toggle { display: none; }
}

/* ── Desktop (≥960px): Show nav links + username ── */
@media (min-width: 960px) {
  .nav-inner { height: 60px; padding: 0 24px; gap: 16px; }
  .nav-logo { height: 28px; }
  .nav-links { display: flex; }
  .nav-search-box input { font-size: .85rem; }
  .nav-icon-btn { width: 40px; height: 40px; }
  .nav-user-name { display: block; }
  .nav-account { width: auto; padding: 0 12px 0 8px; border-radius: 20px; gap: 4px; }
}

/* ── Large desktop (≥1280px) ── */
@media (min-width: 1280px) {
  .nav-inner { padding: 0 40px; gap: 20px; }
  .nav-link { font-size: .88rem; padding: 9px 14px; }
}

/* ── Ultrawide (≥1600px) — keep content centred ── */
@media (min-width: 1600px) {
  .nav-inner { max-width: 1560px; }
}

/* ── Mobile (≤599px) ── */
@media (max-width: 599px) {
  .nav-inner { height: 50px; padding: 0 10px; gap: 6px; }
  .nav-logo { height: 22px; }
  .nav-icon-btn { width: 36px; height: 36px; font-size: 1rem; }
  .nav-badge { min-width: 14px; height: 14px; font-size: .52rem; }
}

/* ── Extra small (≤380px) ── */
@media (max-width: 380px) {
  .nav-inner { padding: 0 8px; gap: 4px; }
  .nav-logo { height: 20px; max-width: 90px; }
  .nav-icon-btn { width: 34px; height: 34px; font-size: .95rem; }
  .nav-badge { top: 1px; right: 0; min-width: 13px; height: 13px; }
}


/* === HERO BANNER (legacy) === */
.hero { padding: 10px 12px; max-width: 1440px; margin: 0 auto; }
.hero-banner {
  border-radius: var(--radius); overflow: hidden;
  position: relative;
  height: clamp(140px, 28vw, 360px);  /* fluid height */
}
.hero-banner .slides { display: flex; transition: transform .4s ease; height: 100%; }
.hero-banner .slide { flex-shrink: 0; width: 100%; height: 100%; }
.hero-banner .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px;
}
.hero-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; }
.hero-dots .dot.active { background: #fff; width: 16px; border-radius: 3px; }

/* === CATEGORIES === */
.categories {
  display: flex; gap: 16px; padding: 16px 12px;
  overflow-x: auto; scrollbar-width: none;
  max-width: 1440px;
  margin: 0 auto;
}
.categories::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex-shrink: 0; min-width: 56px;
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-light); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary);
}
.cat-name { font-size: .68rem; color: var(--text-2); text-align: center; font-weight: 500; }

/* === SECTION TITLE === */
.section-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 12px 8px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-title h2 { font-size: .95rem; font-weight: 700; }
.section-title a { font-size: .78rem; color: var(--primary); font-weight: 500; }

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  /* Fluid: min 140px per card, fills available space */
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  padding: 0 12px 80px;
  max-width: 1440px;
  margin: 0 auto;
}
.product-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.product-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  background: var(--surface-2);
}
.product-card .info { padding: 8px 10px; }
.product-card .name {
  font-size: .78rem; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 4px;
}
.product-card .price { font-size: .9rem; font-weight: 700; color: var(--primary); }
.product-card .old-price { font-size: .7rem; color: var(--text-3); text-decoration: line-through; margin-left: 4px; }
.product-card .sold { font-size: .65rem; color: var(--text-3); margin-top: 2px; }
.product-card .badge-sale {
  position: absolute; top: 6px; left: 6px;
  background: var(--danger); color: #fff;
  padding: 2px 6px; border-radius: 4px;
  font-size: .6rem; font-weight: 700;
}
.product-card { position: relative; }

/* === STORE SHOWCASE === */
.store-section { padding: 12px; }
.store-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.store-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.store-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.store-name { flex: 1; font-size: .85rem; font-weight: 600; }
.store-btn {
  padding: 5px 12px; border-radius: 20px; border: 1.5px solid var(--primary);
  color: var(--primary); font-size: .7rem; font-weight: 600; background: none;
}
.store-products {
  display: flex; gap: 1px; overflow-x: auto; scrollbar-width: none;
}
.store-products::-webkit-scrollbar { display: none; }
.store-products img { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; }

/* === FLASH SALE === */
.flash-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; background: linear-gradient(90deg, #FFF0E6, #FFF);
  margin: 0 12px; border-radius: var(--radius-sm);
}
.flash-bar .icon { font-size: 1.1rem; color: var(--danger); }
.flash-bar .title { font-size: .82rem; font-weight: 700; flex: 1; }
.flash-bar .timer { font-size: .75rem; color: var(--danger); font-weight: 600; }

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: -webkit-flex; display: flex;
  z-index: 100;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.bottom-nav a {
  -webkit-flex: 1; flex: 1;
  display: -webkit-flex; display: flex;
  -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center;
  gap: 3px; padding: 4px 0;
  font-size: .62rem; color: var(--text-3); font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.bottom-nav a i { font-size: 1.2rem; }
.bottom-nav a.active { color: var(--primary); }

/* === UTILITIES === */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 12px;
}
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(50px);
  background: var(--text); color: #fff; padding: 12px 22px;
  border-radius: 24px; font-size: .82rem; font-weight: 500; opacity: 0; visibility: hidden;
  transition: opacity .3s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
  z-index: 200; pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  max-width: 85%; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }

/* === RESPONSIVE — Products & layout === */
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 0 20px 40px; }
  .hero-banner { height: 220px; }
  .section-title { padding: 20px 20px 10px; }
  .categories { padding: 16px 20px; }
  .content-wrap { padding: 0 20px; }
}
@media (min-width: 960px) {
  .bottom-nav { display: none; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 0 24px 40px; }
  .section-title { padding: 24px 24px 12px; }
  .content-wrap { padding: 0 24px; }
}
@media (min-width: 1280px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 0 40px 60px; }
  .section-title { padding: 28px 40px 14px; }
  .hero-banner { height: 340px; }
  .categories { padding: 20px 40px; }
  .content-wrap { padding: 0 40px; }
}
@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); padding: 0 48px 60px; }
  .section-title { padding: 28px 48px 14px; }
  .content-wrap { padding: 0 48px; }
}

/* Mobile fixes — Chrome Android & Safari iOS */
@media (max-width: 767px) {
  .hero-modern { padding: 10px; gap: 8px; flex-direction: column; }
  .hero-carousel { height: 180px; flex: unset; width: 100%; }
  .hero-services { height: auto; flex: unset; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hero-services .service-item { padding: 12px 6px; }
  .hero-services .service-item i { font-size: 1.4rem; }
  .hero-services .service-item span { font-size: .6rem; }
  .categories-strip { padding: 10px; gap: 6px; }
  .category-chip { padding: 7px 14px; font-size: .75rem; }
  .section-header-modern { padding: 14px 10px 8px; }
  .section-header-modern h2 { font-size: .88rem; }
  .product-grid { gap: 6px; padding: 0 8px 80px; }
  .product-card .info { padding: 7px 8px; }
  .product-card .name { font-size: .73rem; }
  .product-card .price { font-size: .84rem; }
  .escaparate-unico { margin: 10px 8px; }
  .esc-slide { height: 240px; }
  .esc-left { flex: 0 0 30%; padding: 10px 8px; }
  .esc-store-name { font-size: .82rem; }
  .esc-store-desc { font-size: .65rem; margin-bottom: 6px; }
  .esc-stat { font-size: .62rem; }
  .esc-badge { font-size: .55rem; padding: 3px 5px; }
  .esc-cta { padding: 7px 10px; font-size: .65rem; }
  .promo-banner-inline { margin: 10px 8px; padding: 12px 14px; }
  .promo-banner-inline h3 { font-size: .82rem; }
  .promo-banner-inline p { font-size: .68rem; }
  .flash-bar { margin: 0 8px 10px; padding: 8px 10px; }
  .store-card { margin-bottom: 10px; }
  .store-products img { width: 80px; height: 80px; }
  .bottom-nav { padding: 6px 0 max(6px, env(safe-area-inset-bottom)); }
  .bottom-nav a { font-size: .58rem; }
  .bottom-nav a i { font-size: 1.05rem; }
}

@media (max-width: 380px) {
  .hero-carousel { height: 140px; }
  .hero-services { height: 140px; }
  .hero-services .service-item i { font-size: 1.2rem; }
  .hero-services .service-item span { font-size: .5rem; }
  .esc-slide { height: 200px; }
  .esc-left { flex: 0 0 28%; padding: 8px 6px; }
  .esc-store-desc, .esc-badges { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 0 6px 80px; }
}


/* === HERO + SERVICIOS === */
.hero-modern { padding: 12px; display: flex; gap: 10px; max-width: 1440px; margin: 0 auto; }
.hero-carousel { flex: 0 0 63%; border-radius: var(--radius); overflow: hidden; position: relative; height: clamp(200px, 26vw, 360px); }
.hero-carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background-size: cover; background-position: center; background-repeat: no-repeat; }
.hero-carousel .slide.active { opacity: 1; }
.hero-carousel .slide-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; }
.hero-carousel .slide-content h2 { font-size: 1.2rem; font-weight: 700; }
.hero-carousel .slide-content p { font-size: .82rem; opacity: .9; }
.hero-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }
.hero-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: .2s; }
.hero-dots .dot.active { width: 18px; border-radius: 4px; background: var(--primary); }
.hero-services { flex: 1; height: 280px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hero-services .service-item { flex: 1; background: var(--surface); border-radius: var(--radius-sm); padding: 10px; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border); transition: .25s; }
.hero-services .service-item:active { transform: scale(.9); }
.hero-services .service-item i { font-size: 2.8rem; color: var(--primary); }
.hero-services .service-item span { font-size: .62rem; font-weight: 600; color: var(--text-2); }

/* === ESCAPARATE TIENDAS (carrusel único) === */
.escaparate-unico { margin: 12px auto; max-width: 1440px; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.esc-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.esc-slide { flex-shrink: 0; width: 100%; display: flex; height: 340px; }
.esc-left { flex: 0 0 24%; padding: 16px 12px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #2A2438, #342E42); }
.esc-store-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.esc-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 2px solid rgba(255,255,255,.15); }
.esc-store-name { font-size: 1.1rem; font-weight: 700; color: #fff; }
.esc-store-desc { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.4; margin-bottom: 10px; }
.esc-stats { display: grid; grid-template-columns: 1fr; gap: 5px; margin-bottom: 10px; }
.esc-stat { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: rgba(255,255,255,.75); }
.esc-stat i { font-size: .7rem; color: var(--primary); width: 14px; text-align: center; }
.esc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.esc-badge { padding: 5px 10px; border-radius: 5px; background: rgba(255,107,0,.12); color: var(--primary); font-size: .7rem; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.esc-cta { margin-top: auto; padding: 10px 16px; border-radius: 50px; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 600; text-decoration: none; text-align: center; display: flex; align-items: center; justify-content: center; gap: 5px; }
.esc-right { flex: 1; overflow: hidden; position: relative; }
.esc-offers-btn { position: absolute; top: 8px; right: 8px; background: var(--danger); color: #fff; padding: 5px 10px; border-radius: 50px; font-size: .65rem; font-weight: 700; text-decoration: none; z-index: 2; display: flex; align-items: center; gap: 4px; }
.collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 2px; width: 100%; height: 100%; }
.collage-item { position: relative; overflow: hidden; border-radius: 4px; background: var(--surface-2); text-decoration: none; }
.collage-item.col-tall { grid-row: span 2; }
.collage-item.col-wide { grid-column: span 2; }
.collage-item img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .3s; padding: 2px; background: var(--surface-2); }
.collage-item:hover img { transform: scale(1.06); }
.collage-item span { position: absolute; bottom: 3px; left: 3px; background: rgba(0,0,0,.75); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-size: .6rem; font-weight: 700; z-index: 1; }
.collage-item.broken { display: none; }
.esc-nav { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; z-index: 3; background: rgba(0,0,0,.5); padding: 5px 12px; border-radius: 50px; backdrop-filter: blur(4px); }
.esc-nav button { width: 24px; height: 24px; border-radius: 50%; background: none; border: none; color: #fff; font-size: .7rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.esc-dots { display: flex; gap: 5px; }
.esc-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: .2s; }
.esc-dot.active { width: 18px; border-radius: 4px; background: var(--primary); }

/* === CARRUSELES ANIMADOS === */
.carousel-animated { overflow: hidden; position: relative; padding: 12px 0; max-width: 1440px; margin: 0 auto; }
.carousel-animated::before, .carousel-animated::after { content: ''; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 2; pointer-events: none; }
.carousel-animated::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.carousel-animated::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.carousel-track { display: flex; gap: 12px; animation: scrollLeft 25s linear infinite; width: max-content; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-animated.reverse .carousel-track { animation-name: scrollRight; }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
.carousel-card { flex-shrink: 0; width: 150px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); cursor: pointer; transition: .2s; }
.carousel-card:active { transform: scale(.95); }
.carousel-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.carousel-card .cc-body { padding: 8px; }
.carousel-card .cc-name { font-size: .72rem; font-weight: 500; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-card .cc-price { font-size: .85rem; font-weight: 700; color: var(--primary); margin-top: 3px; display: block; }

/* === PROMO BANNER === */
.promo-banner-inline { margin: 16px auto; max-width: 1440px; padding: 16px 20px; border-radius: var(--radius); background: linear-gradient(135deg, #2A2438, #1F2937); color: var(--text); display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); }
.promo-banner-inline h3 { font-size: .95rem; font-weight: 700; }
.promo-banner-inline p { font-size: .75rem; color: var(--text-2); margin-top: 2px; }
.promo-banner-inline .promo-cta { background: var(--primary); color: #fff; padding: 8px 16px; border-radius: 50px; font-size: .78rem; font-weight: 600; border: none; cursor: pointer; }

/* === EYE CATCHER === */
.eye-catcher { margin: 16px auto; max-width: 1440px; padding: 20px; border-radius: var(--radius); background: linear-gradient(135deg, #FF6B00, #E74C5A); color: #fff; text-align: center; position: relative; overflow: hidden; }
.eye-catcher h2 { font-size: 1.2rem; font-weight: 800; position: relative; }
.eye-catcher p { font-size: .85rem; opacity: .9; margin: 6px 0 14px; position: relative; }
.eye-catcher .cta-btn { background: #fff; color: var(--primary); border: none; padding: 10px 24px; border-radius: 50px; font-size: .85rem; font-weight: 700; cursor: pointer; position: relative; }

/* === SECTION HEADERS === */
.section-header-modern { display: flex; align-items: center; justify-content: space-between; padding: 18px 12px 10px; max-width: 1440px; margin: 0 auto; }
.section-header-modern h2 { font-size: .95rem; font-weight: 700; color: var(--text); }
.section-header-modern .see-all { font-size: .78rem; color: var(--primary); font-weight: 500; text-decoration: none; }

/* === AISLE SCROLL === */
.aisle-section { margin-bottom: 20px; max-width: 1440px; margin-left: auto; margin-right: auto; }
.aisle-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 12px 8px; scrollbar-width: none; }
.aisle-scroll::-webkit-scrollbar { display: none; }
.aisle-card { flex-shrink: 0; width: 140px; scroll-snap-align: start; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); text-decoration: none; color: inherit; }
.aisle-card:active { transform: scale(.95); }
.aisle-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.aisle-card .aisle-info { padding: 8px; }
.aisle-card .aisle-name { font-size: .72rem; font-weight: 500; color: var(--text-2); }
.aisle-card .aisle-price { font-size: .85rem; font-weight: 700; color: var(--primary); }

/* === CATEGORIES STRIP === */
.categories-strip { padding: 12px; overflow-x: auto; display: flex; gap: 8px; scrollbar-width: none; }
.categories-strip::-webkit-scrollbar { display: none; }
.category-chip { flex-shrink: 0; padding: 8px 16px; border-radius: 50px; background: var(--surface); border: 1px solid var(--border); font-size: .8rem; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 5px; transition: .2s; }
.category-chip.active, .category-chip:active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* === RESPONSIVE EXTRAS === */
@media (max-width: 480px) {
}

/* Desktop nav centering */
@media (min-width: 1024px) {
  .nav { max-width: 1200px; margin: 0 auto; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }
  .bottom-nav { max-width: 1200px; margin: 0 auto; left: 0; right: 0; border-top-left-radius: 8px; border-top-right-radius: 8px; bottom: 0; }
}

/* ============================================================
   DASHBOARD LAYOUT — Premium 2026
   ============================================================ */

/* --- Topbar --- */
.dash-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, #FF8C00 100%);
  position: sticky; top: 0; z-index: 80;
  box-shadow: 0 2px 16px rgba(255,107,0,.25);
}
.dash-topbar-logo { display: flex; align-items: center; }
.dash-topbar-logo img { filter: brightness(0) invert(1); height: 22px; }
.dash-topbar-title {
  flex: 1; font-size: .92rem; font-weight: 700;
  color: rgba(255,255,255,.9); letter-spacing: .02em;
}
.dash-topbar-right { display: flex; align-items: center; gap: 10px; }
.dash-user-name {
  font-size: .78rem; color: rgba(255,255,255,.85); font-weight: 500;
}
.dash-topbar .dash-btn-ghost {
  color: rgba(255,255,255,.9); background: rgba(255,255,255,.15);
  border-radius: 8px; padding: 6px 10px;
}
.dash-topbar .dash-btn-ghost:hover { background: rgba(255,255,255,.25); }

/* --- Content area --- */
.dash-content {
  padding: 24px 32px 48px;
  max-width: 1440px;
  margin: 0 auto;
  background: #F7F8FA;
  min-height: calc(100vh - 56px);
  width: 100%;
  box-sizing: border-box;
}

/* --- Page header --- */
.dash-page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap; gap: 12px;
}
.dash-title {
  font-size: 1.4rem; font-weight: 800;
  color: #111827; letter-spacing: -.02em;
}
.dash-subtitle { font-size: .8rem; color: #6B7280; margin-top: 3px; }
.dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- KPI Stat Cards --- */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dash-stat {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.dash-stat:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.dash-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
/* Color variants for stat icons */
.dash-icon-primary { background: rgba(255,107,0,.12); color: var(--primary); }
.dash-icon-success { background: rgba(46,204,113,.12); color: var(--success); }
.dash-icon-warning { background: rgba(244,161,0,.12); color: var(--warning); }
.dash-icon-danger  { background: rgba(231,76,90,.12);  color: var(--danger); }

.dash-stat-value {
  display: block; font-size: 1.35rem; font-weight: 800;
  color: #111827; line-height: 1.1;
}
.dash-stat-label {
  font-size: .7rem; color: #9CA3AF; font-weight: 500;
  margin-top: 2px; display: block;
}

/* --- Dashboard Cards --- */
.dash-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}
.dash-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid #F3F4F6;
  font-size: .88rem; font-weight: 700; color: #374151;
  display: flex; align-items: center; gap: 8px;
}
.dash-card-header i { color: var(--primary); }
.dash-card-body { padding: 16px 18px; }

/* --- Tables --- */
.dash-table-wrap { overflow-x: auto; }
.dash-table {
  width: 100%; border-collapse: collapse; font-size: .82rem;
}
.dash-table th {
  text-align: left; padding: 10px 14px;
  color: #9CA3AF; font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .06em;
  background: #F9FAFB;
  border-bottom: 1px solid #F3F4F6;
}
.dash-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #F9FAFB;
  color: #374151;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tbody tr { transition: background .15s; }
.dash-table tbody tr:hover { background: #FFF7F0; }
.dash-empty {
  text-align: center; color: #9CA3AF;
  padding: 40px 20px; font-size: .85rem;
}

/* --- Badges --- */
.dash-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: .68rem; font-weight: 700;
  letter-spacing: .02em;
}
.dash-badge-success { background: #D1FAE5; color: #065F46; }
.dash-badge-danger  { background: #FEE2E2; color: #991B1B; }
.dash-badge-warning { background: #FEF3C7; color: #92400E; }
.dash-badge-default { background: #F3F4F6; color: #6B7280; }

/* --- Buttons --- */
.dash-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
  text-decoration: none; border: none;
  white-space: nowrap;
}
.dash-btn-primary { background: var(--primary); color: #fff; }
.dash-btn-primary:hover { background: #E65000; opacity: 1; }
.dash-btn-success { background: var(--success); color: #fff; }
.dash-btn-danger  { background: var(--danger);  color: #fff; }
.dash-btn-warning { background: var(--warning); color: #fff; }
.dash-btn-ghost {
  background: none; color: #6B7280;
  border: 1.5px solid #E5E7EB;
}
.dash-btn-ghost:hover { background: #F9FAFB; color: #374151; opacity: 1; }
.dash-btn:hover { opacity: .88; transform: translateY(-1px); }
.dash-btn-sm { padding: 5px 10px; font-size: .72rem; border-radius: 7px; }
.dash-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; }

/* Legacy aliases */
.dash-btn-succ { background: var(--success); color: #fff; }
.bg-green { background: var(--success) !important; }
.bg-red   { background: var(--danger)  !important; }
.bg-blue  { background: var(--primary) !important; }

/* --- Tabs --- */
.dash-tabs {
  display: flex; gap: 4px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar { display: none; }
.dash-tab {
  padding: 8px 16px;
  font-size: .8rem; font-weight: 500;
  color: #6B7280; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
  text-decoration: none; border: none;
  background: transparent; transition: all .2s;
}
.dash-tab.active {
  background: #fff; color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* --- Sidebar (optional, for wider screens) --- */
/* --- Sidebar (optional, for wider screens) --- */
.dash-container {
  display: flex;
  min-height: calc(100vh - 56px);
  background: #F7F8FA;
}
.dash-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  outline: none;
}
.dash-sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff; border-right: 1px solid #F3F4F6;
  height: calc(100vh - 56px); position: sticky; top: 56px;
  overflow-y: auto; padding: 16px 12px;
  box-sizing: border-box;
}
.dash-sidebar-header { padding: 8px 8px 16px; text-align: center; }
.dash-logo { height: 26px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: .83rem; font-weight: 500; color: #6B7280;
  text-decoration: none; transition: all .2s;
}
.dash-nav-item i { width: 18px; text-align: center; font-size: .95rem; }
.dash-nav-item:hover { background: #FFF7F0; color: var(--primary); }
.dash-nav-item.active { background: rgba(255,107,0,.08); color: var(--primary); font-weight: 700; }

/* --- Quick-action link bar --- */
.dash-quick-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}

/* --- Notification dot on buttons --- */
.dash-notif-dot {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: .6rem; font-weight: 700; margin-left: 2px;
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
  .dash-container { display: block; }
  .dash-content { padding: 16px 12px 32px; }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dash-topbar { padding: 0 12px; height: 56px; justify-content: space-between; }
  .dash-user-name { display: none; }
  .dash-home-btn span { display: none; }
  .dash-home-btn { padding: 8px 10px; border-radius: 8px; }
  .dash-menu-toggle { display: flex; }
  .dash-sidebar {
    display: block;
    position: fixed;
    top: 56px;
    left: -260px;
    width: 240px;
    height: calc(100vh - 56px);
    z-index: 999;
    box-shadow: 4px 0 15px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    border-right: 1px solid #E5E7EB;
  }
  .dash-sidebar.open {
    left: 0;
  }
  .dash-sidebar-backdrop {
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .dash-sidebar-backdrop.show {
    display: block;
    opacity: 1;
  }
  .dash-page-header { margin-bottom: 16px; }
  .dash-title { font-size: 1.2rem; }
  .dash-tabs { border-radius: 10px; }
  .dash-stat { padding: 14px 12px; gap: 10px; }
  .dash-stat-value { font-size: 1.1rem; }
  .dash-card-header, .dash-card-body { padding: 13px 14px; }
  /* Force 1-column grids in content area on mobile */
  .dash-content [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 360px) {
  .dash-stats-grid { grid-template-columns: 1fr; }
  .dash-stat-value { font-size: 1rem; }
}

