/* ============================================================
   SPARK ELETRÔNICA — Design System & Global Styles
   ============================================================ */

:root {
  color-scheme: light;

  /* Colors */
  --yellow:       #facc15;
  --yellow-hover: #fde047;
  --yellow-light: #fef9c3;
  --yellow-50:    #fefce8;
  --gold:         #ca8a04;
  --gold-strong:  #b45309;
  --gold-deep:    #92400e;
  --black:        #000000;
  --bg:           #f9fafb;
  --surface:      #ffffff;
  --img-well:     #f9fafb;
  --text:         #111827;
  --text-sec:     #6b7280;
  --text-muted:   #9ca3af;
  --footer-bg:    #000000;
  --footer-text:  #d1d5db;
  --red:          #ef4444;
  --red-dark:     #dc2626;
  --green:        #16a34a;
  --orange:       #f97316;
  --blue:         #3b82f6;
  --border:       #e5e7eb;
  --border-active:#facc15;

  /* Radii */
  --r-sm:  6px;
  --r-md:  8px;
  --r-lg:  12px;
  --r-xl:  16px;
  --r-2xl: 24px;
  --r-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.04);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.1),  0 8px 10px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,.12);
  --shadow-btn: 0 4px 14px rgba(0,0,0,.25);

  /* Z-indices */
  --z-header:  50;
  --z-sidebar: 60;
  --z-overlay: 55;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 400px at 20% 0%, rgba(250, 204, 21, .14), transparent 60%),
    radial-gradient(700px 350px at 85% 10%, rgba(17, 24, 39, .06), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,0));
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}
img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ─── Utilities ─────────────────────────────────────────── */
.container     { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.sr-only       { position: absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: .75rem;
  background: var(--yellow);
  color: var(--black);
  padding: .65rem 1rem;
  border-radius: var(--r-md);
  font-weight: 800;
  transform: translateY(-140%);
  transition: transform .2s ease;
  z-index: calc(var(--z-header) + 1);
}
.skip-link:focus { transform: translateY(0); }
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.items-center  { align-items: center; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2         { gap: .5rem; }
.gap-3         { gap: .75rem; }
.gap-4         { gap: 1rem; }
.gap-6         { gap: 1.5rem; }
.gap-8         { gap: 2rem; }
.w-full        { width: 100%; }
.text-center   { text-align: center; }
.hidden        { display: none !important; }
.overflow-hidden{ overflow: hidden; }
.relative      { position: relative; }
.absolute      { position: absolute; }
.sticky        { position: sticky; }

/* ─── Typography ────────────────────────────────────────── */
.text-xs   { font-size:.75rem;  line-height:1rem; }
.text-sm   { font-size:.875rem; line-height:1.25rem; }
.text-base { font-size:1rem;    line-height:1.5rem; }
.text-lg   { font-size:1.125rem;line-height:1.75rem; }
.text-xl   { font-size:1.25rem; line-height:1.75rem; }
.text-2xl  { font-size:1.5rem;  line-height:2rem; }
.text-3xl  { font-size:1.875rem;line-height:2.25rem; }
.text-4xl  { font-size:2.25rem; line-height:2.5rem; }
.font-medium{ font-weight:500; }
.font-semibold{ font-weight:600; }
.font-bold  { font-weight:700; }
.font-black { font-weight:900; }
.uppercase  { text-transform:uppercase; }
.tracking-widest{ letter-spacing:.1em; }
.leading-tight { line-height:1.25; }
.leading-relaxed{ line-height:1.625; }
.line-clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.truncate   { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.5rem;
  border-radius: var(--r-md); font-weight: 700; font-size: .875rem;
  transition: all .2s ease; cursor: pointer;
}
.btn:hover { transform: scale(1.02); }
.btn-primary {
  background: var(--black); color: var(--yellow);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--yellow); color: var(--black); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
.btn-yellow {
  background: var(--yellow); color: var(--black);
  box-shadow: var(--shadow-md);
}
.btn-yellow:hover { background: var(--yellow-hover); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--yellow); color: var(--gold); background: rgba(250, 204, 21, .06); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--r-lg); height: 4rem; }
.btn-sm { padding: .375rem .875rem; font-size: .75rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ─── Inputs ────────────────────────────────────────────── */
.input-field {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  font-size: .875rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-field:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(250,204,21,.14), 0 10px 22px rgba(0,0,0,.06);
}
.input-field::placeholder { color: var(--text-muted); }
.input-group {
  position: relative;
}
.input-group .icon-left {
  position: absolute; left: .875rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
  display:flex;align-items:center;
}
.input-group input { padding-left: 2.75rem; }
.input-readonly { background: var(--bg); color: var(--text-muted); cursor: not-allowed; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid rgba(229, 231, 235, .95); box-shadow: var(--shadow-sm);
}
.card-xl {
  background: var(--surface); border-radius: var(--r-2xl);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .625rem; border-radius: var(--r-full);
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.badge-yellow { background: var(--yellow); color: var(--black); }
.badge-green  { background: #dcfce7; color: var(--green); }
.badge-red    { background: #fee2e2; color: var(--red); }
.badge-orange { background: #ffedd5; color: var(--orange); }

/* ─── Spinner ───────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 2rem; height: 2rem;
  border: 3px solid var(--border);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm { width:1.25rem; height:1.25rem; border-width:2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner-center { display:flex; justify-content:center; align-items:center; min-height:200px; }

/* ─── Section Header ────────────────────────────────────── */
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  border-left: 4px solid var(--yellow); padding-left: .75rem;
  line-height: 1.2;
}
@media(min-width:640px){ .section-title { font-size: 1.5rem; } }
.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 1.25rem; gap: .75rem; flex-wrap: wrap;
}
@media(min-width:640px){ .section-header { margin-bottom: 1.5rem; } }
.section-link {
  font-size: .875rem; font-weight: 600; color: var(--gold);
  transition: color .2s; white-space: nowrap;
}
.section-link:hover { color: var(--gold-strong); }

/* ─── Product Grid ──────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}
@media(min-width:480px){ .products-grid { gap: 1rem; } }
@media(min-width:768px){ .products-grid { grid-template-columns: repeat(3,1fr); gap:1.5rem; } }
@media(min-width:1024px){ .products-grid { grid-template-columns: repeat(4,1fr); gap:2rem; } }

/* ─── Product Card ──────────────────────────────────────── */
.product-card--skeleton { pointer-events: none; opacity: .85; }
.product-card--skeleton .product-card__img { aspect-ratio: 1 / 1; }
@keyframes spark-skel { 0%{opacity:.6} 50%{opacity:1} 100%{opacity:.6} }
.product-card--skeleton, .product-card--skeleton > * > * { animation: spark-skel 1.2s ease-in-out infinite; }

.product-card {
  background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid rgba(229, 231, 235, .9);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.04);
  display: flex; flex-direction: column; height: 100%;
  overflow: hidden; transition: box-shadow .3s ease, transform .3s ease, border-color .2s ease;
}
@media(hover:hover){
  .product-card:hover { box-shadow: 0 18px 40px rgba(0,0,0,.10); transform: translateY(-3px); }
}
.product-card:focus-within { box-shadow: 0 18px 40px rgba(0,0,0,.10); transform: translateY(-3px); border-color: rgba(250, 204, 21, .65); }

.product-card__img {
  display: block; aspect-ratio: 1 / 1; background: var(--img-well);
  overflow: hidden; position: relative;
}
@media(min-width:768px){ .product-card__img { aspect-ratio: 4 / 3; } }
.product-card__img img {
  width: 100%; height: 100%; object-fit: contain;
  padding: .75rem; transition: transform .35s ease;
  mix-blend-mode: multiply;
}
@media(min-width:640px){ .product-card__img img { padding: 1rem; } }
@media(hover:hover){
  .product-card:hover .product-card__img img { transform: scale(1.05); }
}

.product-card__body {
  padding: .875rem; display: flex; flex-direction: column;
  flex: 1; background: linear-gradient(to bottom, rgba(249,250,251,.75), rgba(249,250,251,1));
}
@media(min-width:640px){ .product-card__body { padding: 1.25rem; } }
.product-card__name {
  font-size: .875rem; font-weight: 600; color: var(--text);
  margin-bottom: .5rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.4em;
  transition: color .2s;
}
@media(min-width:640px){ .product-card__name { font-size: 1rem; line-height: 1.4; } }
.product-card__name:hover { color: var(--gold); }
.product-card__code {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-sec);
  margin: -.2rem 0 .5rem;
}
.product-card__price {
  font-size: 1.125rem; font-weight: 800; color: var(--text);
  margin-bottom: .75rem; flex: 1;
  letter-spacing: -.01em;
}
@media(min-width:640px){ .product-card__price { font-size: 1.35rem; margin-bottom: 1rem; } }
.product-card__btn {
  width: 100%;
  background: linear-gradient(180deg, #0b0b0b, #000);
  color: var(--yellow);
  font-weight: 800; padding: .7rem; border-radius: var(--r-md);
  font-size: .8125rem;
  display: flex; align-items: center; justify-content: center; gap: .375rem;
  min-height: 44px;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
@media(min-width:640px){
  .product-card__btn { padding: .8rem; font-size: .875rem; gap: .5rem; }
}
.product-card__btn svg { width: 16px; height: 16px; }
@media(min-width:640px){ .product-card__btn svg { width: 20px; height: 20px; } }
.product-card__btn:hover { background: var(--yellow); color: var(--black); transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0,0,0,.18); }
.product-card__btn:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.product-card__btn:disabled,
.product-card__btn--disabled {
  background: #e5e7eb;
  color: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}
.product-card__btn:disabled:hover,
.product-card__btn--disabled:hover {
  background: #e5e7eb;
  color: #6b7280;
  transform: none;
  box-shadow: none;
}

/* ─── HEADER ────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--surface); height: 6rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 22px rgba(0,0,0,.03);
  transition: background .3s, box-shadow .3s;
  display: none;
}
@media(min-width:640px){ .site-header { display: block; } }
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,.08);
}
.site-header.scrolled::after {
  content:''; display:block; position:absolute; bottom:0; left:0; right:0;
  height:6px;
  background: linear-gradient(to bottom, rgba(0,0,0,.04), transparent);
}
.header-inner {
  max-width:1280px; margin:0 auto; padding:0 1rem;
  height:100%; display:flex; align-items:center; justify-content:space-between;
}
/* Logo zone */
.header-logo-zone { width:160px; flex-shrink:0; position:relative; }
.header-logo {
  position:absolute; top:50%; left:0; transform:translateY(-50%);
  width:260px; height:260px; object-fit:contain;
}
/* Categories zone */
.header-cats { flex:1; max-width:42rem; padding:0 1.5rem; display:flex; align-items:center; gap:1.5rem; }
.cat-dropdown { position:relative; }
.cat-dropdown-btn {
  display:flex; align-items:center; gap:.375rem;
  font-weight:600; font-size:.875rem; color:var(--text-sec);
  transition:color .2s; white-space:nowrap; padding:.5rem 0;
  text-transform:uppercase;
}
.cat-dropdown-btn:hover, .cat-dropdown:hover .cat-dropdown-btn { color:var(--gold); }
.cat-dropdown-btn.active { color:var(--gold); }
.cat-dropdown:focus-within .cat-dropdown-btn { color:var(--gold); }
.cat-dropdown:focus-within .cat-dropdown-panel { display:block; }
.cat-dropdown-panel {
  display:none; position:absolute; top:calc(100% - 8px); left:0;
  width:19rem; background:var(--surface);
  box-shadow:0 10px 20px rgba(0,0,0,.1);
  border:1px solid var(--border); border-top:none;
  border-radius:0 0 var(--r-lg) var(--r-lg);
  overflow:visible; z-index:100;
}
.cat-dropdown:hover .cat-dropdown-panel { display:block; }
.cat-dropdown-all {
  display:block; padding:.75rem 1rem; font-weight:600; font-size:.875rem;
  border-bottom:1px solid var(--border); color:var(--text);
  transition:background .2s, color .2s;
  text-transform:uppercase;
}
.cat-dropdown-all:hover { background:var(--yellow-50); color:var(--gold); }
.cat-menu-list {
  list-style:none; margin:0; padding:.5rem 0;
}
.cat-menu-item { position:relative; }
.cat-menu-link,
.cat-submenu-link {
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  padding:.75rem 1rem; font-size:.875rem; font-weight:500;
  color:var(--text-sec); transition:background .2s, color .2s;
  text-transform:uppercase;
}
.cat-menu-link:hover,
.cat-menu-item:hover > .cat-menu-link,
.cat-menu-item:focus-within > .cat-menu-link,
.cat-menu-link.active,
.cat-submenu-link:hover,
.cat-submenu-link.active {
  background:var(--yellow-50); color:var(--gold);
}
.cat-menu-text { flex:1; }
.cat-menu-arrow { flex-shrink:0; }
.cat-submenu {
  display:none; position:absolute; top:-1px; left:calc(100% - 1px);
  min-width:19rem; background:var(--surface);
  border:1px solid var(--border); border-radius:0 var(--r-lg) var(--r-lg) 0;
  box-shadow:0 10px 20px rgba(0,0,0,.1); overflow:hidden; z-index:101;
}
.cat-menu-item:hover > .cat-submenu,
.cat-menu-item:focus-within > .cat-submenu {
  display:block;
}
.cat-submenu-link {
  min-height:3rem; align-items:center;
}
.header-quick-cats { display:flex; gap:1.5rem; }
.header-quick-cat {
  font-size:.875rem; font-weight:500; color:var(--text-sec);
  white-space:nowrap; transition:color .2s;
}
.header-quick-cat:hover { color:var(--gold); }
.header-quick-cat.active { color:var(--gold); font-weight:600; }
.header-quick-cat.active { position:relative; }
.header-quick-cat.active::after {
  content:''; position:absolute; left:0; right:0; bottom:-.35rem;
  height:2px; background:var(--yellow); border-radius:999px;
}
/* Actions zone */
.header-actions { display:flex; align-items:center; gap:1.5rem; }
.header-action-btn {
  display:flex; flex-direction:column; align-items:center; gap:.125rem;
  color:var(--text-sec); transition:color .2s; position:relative;
  padding:.35rem .5rem; border-radius:.9rem;
}
.header-action-btn:hover { color:var(--gold-strong); background:rgba(250, 204, 21, .08); }
.header-action-btn.active { color:var(--gold); background:rgba(250, 204, 21, .10); }
.header-action-btn svg { flex-shrink:0; }
.header-action-label { font-weight:500; font-size:.875rem; }
.header-action-sublabel { font-size:.6rem; color:var(--text-muted); }
.header-action-label:empty, .header-action-sublabel:empty { display:none; }
.cart-badge {
  position:absolute; top:-8px; right:-12px;
  background:var(--yellow); color:var(--black);
  font-size:.65rem; font-weight:700;
  padding:.1rem .4rem; border-radius:var(--r-full);
  min-width:1.2rem; text-align:center;
  box-shadow:0 1px 4px rgba(0,0,0,.15);
  display:none;
}
.cart-badge.visible { display:block; }

/* ─── MOBILE BOTTOM BAR ─────────────────────────────────── */
.mobile-bar {
  position:fixed; bottom:0; left:0; right:0;
  background:rgba(255,255,255,.92);
  border-top:1px solid rgba(229,231,235,.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index:var(--z-header); display:flex; align-items:center;
  justify-content:space-around; padding:.75rem 1rem;
}
@media(min-width:640px){ .mobile-bar { display:none; } }
.mobile-bar__btn {
  display:flex; flex-direction:column; align-items:center; gap:.25rem;
  color:var(--text-sec); font-size:.6rem; font-weight:500;
  transition:color .2s; position:relative;
  padding:.35rem .65rem; border-radius:.9rem;
}
.mobile-bar__btn:hover,
.mobile-bar__btn.active { color:var(--gold); }
.mobile-bar__btn:hover,
.mobile-bar__btn.active { background:rgba(250, 204, 21, .10); }
.mobile-bar__btn:active { transform: scale(.98); }
.mobile-cart-badge {
  position:absolute; top:-6px; right:-8px;
  background:var(--red); color:#fff;
  font-size:.55rem; font-weight:700;
  padding:.1rem .3rem; border-radius:var(--r-full);
  min-width:1.1rem; text-align:center;
  border:2px solid var(--surface);
  display:none;
}
.mobile-cart-badge.visible { display:block; }

/* ─── OVERLAY ───────────────────────────────────────────── */
.sidebar-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.52);
  z-index:var(--z-overlay);
  opacity:0; pointer-events:none;
  transition:opacity .3s;
}
.sidebar-overlay.active { opacity:1; pointer-events:all; }

/* ─── SIDEBARS (Cart & Search) ──────────────────────────── */
.sidebar {
  position:fixed; top:0; right:0; bottom:0;
  width:100%; max-width:400px;
  background:var(--surface);
  box-shadow:0 30px 80px rgba(0,0,0,.22);
  z-index:var(--z-sidebar);
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .3s ease-in-out;
  border-left:1px solid rgba(229,231,235,.9);
  border-top-left-radius: 1.25rem;
  border-bottom-left-radius: 1.25rem;
}
.sidebar.open { transform:translateX(0); }
.sidebar-header {
  padding:1rem; border-bottom:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-between; flex-shrink:0;
}
.sidebar-title {
  display:flex; align-items:center; gap:.5rem;
  font-size:1.125rem; font-weight:700; color:var(--text);
}
.sidebar-close {
  padding:.5rem; border-radius:var(--r-full);
  transition:background .2s; color:var(--text-sec);
  display:flex; align-items:center; justify-content:center;
}
.sidebar-close:hover { background:var(--bg); }
.sidebar-body { flex:1; overflow-y:auto; padding:1rem; padding-bottom:6rem; }
.sidebar-footer {
  position:absolute; bottom:0; left:0; right:0;
  border-top:1px solid var(--border);
  background:rgba(249,250,251,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding:1rem;
}

/* Cart items */
.cart-item {
  display:flex; gap:1rem; padding-bottom:1rem;
  border-bottom:1px solid var(--border); margin-bottom:1rem;
}
.cart-item__img {
  width:5rem; height:5rem; border-radius:var(--r-md);
  background:var(--img-well); flex-shrink:0; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.cart-item__img img { width:100%; height:100%; object-fit:contain; padding:.375rem; }
.cart-item__info { flex:1; min-width:0; }
.cart-item__name {
  font-size:.875rem; font-weight:500; color:var(--text);
  line-height:1.35; margin-bottom:.375rem;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.cart-item__price { font-size:.875rem; font-weight:700; color:var(--gold); }
.cart-item__actions { display:flex; align-items:center; gap:.5rem; margin-top:.5rem; }
.qty-control {
  display:flex; align-items:center;
  border:1px solid var(--border); border-radius:var(--r-md); height:2rem;
  overflow:hidden;
}
.qty-btn {
  width:2rem; height:2rem; display:flex; align-items:center; justify-content:center;
  transition:background .2s; color:var(--text-sec); flex-shrink:0;
}
.qty-btn:hover { background:var(--bg); color:var(--text); }
.qty-val {
  width:2.5rem; text-align:center; font-size:.875rem; font-weight:500;
  border:none; outline:none; background:transparent; color:var(--text);
}
.cart-remove { color:var(--text-muted); transition:color .2s; padding:.25rem; }
.cart-remove:hover { color:var(--red); }
.cart-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:3rem 1rem; gap:1rem; color:var(--text-muted);
}
.cart-empty svg { color:#d1d5db; }
.cart-empty p { font-size:.875rem; }
.cart-empty a { color:var(--gold); font-weight:600; font-size:.875rem; }
.cart-subtotal {
  display:flex; justify-content:space-between; align-items:center; margin-bottom:.75rem;
}
.cart-subtotal-label { font-size:.875rem; font-weight:500; color:var(--text-sec); }
.cart-subtotal-val { font-size:1.25rem; font-weight:700; color:var(--text); }
.cart-checkout-btn {
  width:100%; background:var(--black); color:#fff;
  font-weight:700; padding:.875rem; border-radius:var(--r-md);
  transition:background .2s, color .2s;
  box-shadow:0 14px 36px rgba(0,0,0,.14);
}

:focus-visible {
  outline: 3px solid rgba(250, 204, 21, .75);
  outline-offset: 3px;
}
.cat-dropdown.open .cat-dropdown-panel { display:block; }
.cart-checkout-btn:hover { background:var(--yellow); color:var(--black); }

/* Search sidebar */
.search-input-row { display:flex; gap:.75rem; padding:1rem 1rem 0; }
.search-input-row .input-field { flex:1; }
.search-submit-btn {
  background:var(--black); color:#fff; font-weight:700;
  padding:.75rem 1.25rem; border-radius:var(--r-md); white-space:nowrap;
  transition:background .2s, color .2s;
}
.search-submit-btn:hover { background:var(--yellow); color:var(--black); }
.search-live-results { padding:1rem; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.search-live-results[hidden] { display:none; }
.search-live-title { font-size:.75rem; font-weight:700; color:var(--text-sec); text-transform:uppercase; letter-spacing:.08em; margin-bottom:.75rem; }
.search-live-list { display:grid; gap:.75rem; }
.search-live-item {
  display:grid; grid-template-columns:64px 1fr; gap:.75rem; align-items:center;
  padding:.625rem; border-radius:var(--r-md); border:1px solid var(--border); background:var(--surface);
  transition:border-color .2s, box-shadow .2s, transform .2s;
}
.search-live-item:hover { border-color:rgba(250,204,21,.65); box-shadow:0 8px 24px rgba(0,0,0,.08); transform:translateY(-1px); }
.search-live-item img { width:64px; height:64px; object-fit:contain; background:var(--img-well); border-radius:var(--r-md); padding:.35rem; }
.search-live-name { font-size:.875rem; font-weight:600; color:var(--text); line-height:1.35; }
.search-live-meta { font-size:.75rem; color:var(--text-sec); margin-top:.125rem; }
.search-live-price { font-size:.875rem; font-weight:800; color:var(--gold); margin-top:.25rem; }
.search-live-empty { font-size:.875rem; color:var(--text-sec); }
.search-live-more { display:inline-flex; margin-top:.875rem; font-size:.875rem; font-weight:700; color:var(--gold); }
.search-cats { flex:1; overflow-y:auto; border-top:1px solid var(--border); padding:1rem; }
.search-cats-title {
  font-size:.75rem; font-weight:700; color:var(--text-sec);
  text-transform:uppercase; letter-spacing:.08em; margin-bottom:1rem;
}
.search-cat-item {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem; border-radius:var(--r-md); color:var(--text-sec);
  font-size:.875rem; transition:background .2s, color .2s;
}
.search-cat-item:hover { background:var(--bg); color:var(--gold); }
.search-cat-item:first-child { font-weight:600; }
.skeleton { background:var(--border); border-radius:var(--r-md); animation:pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:.45; } }

/* ─── FOOTER ────────────────────────────────────────────── */
.site-footer { background:var(--black); color:var(--footer-text); }
@media(max-width:639px){ .site-footer { padding-bottom:5.25rem; } }
.footer-grid {
  display:grid; grid-template-columns:1fr;
  gap:1.25rem; padding:.5rem 0 1.25rem; align-items:start;
}
@media(min-width:768px){ .footer-grid { grid-template-columns:repeat(2,1fr); } }
@media(min-width:1024px){
  .footer-grid { grid-template-columns:minmax(0,1.15fr) repeat(3,minmax(0,1fr)); column-gap:1.75rem; }
  .footer-grid > :not(.footer-brand) { padding-top:4rem; }
}
.footer-brand { display:flex; flex-direction:column; align-items:flex-start; }
.footer-logo { width:18rem; display:block; object-fit:contain; margin:-2rem 0 -3rem -1rem; }
.footer-desc { margin:0; max-width:18rem; font-size:.875rem; color:#9ca3af; line-height:1.75; }
.footer-col-title { font-size:1.125rem; font-weight:600; margin-bottom:1rem; color:#fff; }
.footer-link {
  display:block; padding:.25rem 0; font-size:.875rem; color:#9ca3af;
  transition:color .3s;
}
.footer-link:hover { color:var(--red); }
.footer-socials { display:flex; gap:1rem; margin-top:.5rem; }
.footer-social {
  width:2.75rem; height:2.75rem; border-radius:50%;
  background:#fff; border:2px solid #fff;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden; position:relative;
  transition:transform .3s;
  cursor:pointer;
}
.footer-social:hover { transform:scale(1.1); }
.footer-social svg {
  position:relative; z-index:1; transition:transform .5s;
}
.footer-social:hover svg { transform:rotate(360deg); }
.footer-social { color: var(--social-icon, #111827); }
.footer-social:hover { color:#fff; }
.footer-social::before {
  content:''; position:absolute; inset:0;
  background:var(--social-color,#ccc);
  transform:translateY(100%); transition:transform .5s ease;
  z-index:0;
}
.footer-social:hover::before { transform:translateY(0); }
.footer-social svg path,
.footer-social svg rect,
.footer-social svg circle,
.footer-social svg line { transition:fill .5s, stroke .5s; }
.footer-social.fb     { --social-color:#3b5999; }
.footer-social.ln     { --social-color:#0077b5; }
.footer-social.ig     { --social-color:#e1306c; }
.footer-social.tt     { --social-color:#010101; }
.footer-social.fb { --social-icon:#1877f2; }
.footer-social.ln { --social-icon:#0077b5; }
.footer-social.ig { --social-icon:#e1306c; }
.footer-social.tt { --social-icon:#111827; }
.footer-bottom {
  border-top:1px solid #1f2937;
  padding:1.25rem 0;
  text-align:center;
  font-size:.75rem; color:#6b7280;
}
.footer-bottom p + p { margin-top:.25rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── BANNER CAROUSEL ───────────────────────────────────── */
.banner-carousel {
  position:relative;
  overflow:hidden;
  background:var(--black);
  border-radius:var(--r-2xl);
  margin:.75rem auto 0;
  width:min(1280px, calc(100% - 2rem));
  height:clamp(220px, 26vw, 380px);
  box-shadow:0 1px 2px rgba(0,0,0,.12), 0 12px 32px rgba(0,0,0,.16), 0 28px 64px rgba(0,0,0,.12);
  isolation:isolate;
}
/* hairline ring keeps the rounded edge crisp over bright slide art */
.banner-carousel::after {
  content:""; position:absolute; inset:0; z-index:4;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.10);
  pointer-events:none;
}
@media(max-width:639px){ .banner-carousel { display:none !important; } }
.banner-slide {
  position:absolute; inset:0;
  opacity:0; transform:translateX(40px);
  transition:opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}
.banner-slide.active { opacity:1; transform:translateX(0); pointer-events:auto; }
.banner-slide.prev   { opacity:0; transform:translateX(-40px); }
.banner-slide picture,
.banner-slide img {
  width:100%; height:100%;
  position:absolute; inset:0;
}
.banner-slide img {
  object-fit:cover; display:block;
  transform:scale(1.06);
}
/* slow Ken Burns settle while the slide is on screen */
.banner-slide.active img {
  transform:scale(1);
  transition:transform 6.5s cubic-bezier(.25,.46,.45,.94);
}
.banner-overlay {
  position:absolute; inset:0;
  background:
    linear-gradient(to right,
      rgba(2,6,23,.78) 0%, rgba(2,6,23,.60) 24%,
      rgba(2,6,23,.32) 48%, rgba(2,6,23,.10) 66%, transparent 84%),
    linear-gradient(to top, rgba(2,6,23,.45), transparent 32%),
    linear-gradient(to bottom, rgba(2,6,23,.22), transparent 16%);
}
.banner-content {
  position:relative; z-index:2;
  max-width:40rem;
  padding:2rem clamp(1.5rem, 4vw, 3rem);
  display:flex; flex-direction:column; align-items:flex-start; gap:.875rem;
  height:100%; justify-content:center;
  pointer-events:none;
}
.banner-content a, .banner-content button { pointer-events:auto; }
/* staggered entrance for the copy block; `backwards` fill releases the
   elements after the run so the CTA hover transform isn't overridden */
@keyframes banner-rise {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.banner-slide.active .banner-badge { animation:banner-rise .7s cubic-bezier(.22,1,.36,1) .10s backwards; }
.banner-slide.active .banner-title { animation:banner-rise .7s cubic-bezier(.22,1,.36,1) .20s backwards; }
.banner-slide.active .banner-sub   { animation:banner-rise .7s cubic-bezier(.22,1,.36,1) .30s backwards; }
.banner-slide.active .banner-cta   { animation:banner-rise .7s cubic-bezier(.22,1,.36,1) .40s backwards; }
.banner-badge {
  display:inline-flex; align-items:center; gap:.4rem;
  background:rgba(250,204,21,.12);
  color:var(--yellow);
  border:1px solid rgba(250,204,21,.35);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  font-size:.7rem; font-weight:800; text-transform:uppercase; letter-spacing:.12em;
  padding:.375rem 1rem; border-radius:var(--r-full);
  width:fit-content;
}
.banner-title {
  color:#fff;
  font-size:clamp(1.6rem, 2.6vw, 2.875rem);
  font-weight:800;
  line-height:1.08;
  letter-spacing:-.025em;
  text-wrap:balance;
  text-shadow:0 2px 24px rgba(0,0,0,.45);
}
.banner-sub {
  color:rgba(255,255,255,.80);
  font-size:clamp(.9rem, 1.25vw, 1.0625rem);
  line-height:1.6;
  max-width:34rem;
}
.banner-cta {
  display:inline-flex; align-items:center; gap:.5rem;
  background:var(--yellow); color:var(--black);
  font-weight:800; font-size:.9rem;
  padding:.8rem 1.6rem; border-radius:var(--r-full);
  width:fit-content; margin-top:.25rem;
  box-shadow:0 4px 14px rgba(250,204,21,.25), 0 12px 32px rgba(0,0,0,.28);
  transition:background .2s, transform .2s, box-shadow .2s;
}
.banner-cta:hover {
  background:var(--yellow-hover);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(250,204,21,.32), 0 18px 40px rgba(0,0,0,.30);
}
.banner-cta:active { transform:translateY(0) scale(.98); }
.banner-cta:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.banner-cta-arrow { transition:transform .2s; }
.banner-cta:hover .banner-cta-arrow { transform:translateX(3px); }
/* Arrows */
.banner-arrow {
  position:absolute; top:50%; z-index:3;
  transform:translateY(-50%);
  width:2.75rem; height:2.75rem; border-radius:var(--r-full);
  background:rgba(17,24,39,.38);
  backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.20);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  opacity:0;
  transition:opacity .25s, background .2s, transform .2s, border-color .2s;
}
.banner-carousel:hover .banner-arrow,
.banner-carousel:focus-within .banner-arrow { opacity:1; }
@media (hover:none) { .banner-arrow { opacity:1; } }
.banner-arrow:hover { background:rgba(17,24,39,.60); border-color:rgba(255,255,255,.45); }
.banner-arrow:active { transform:translateY(-50%) scale(.92); }
.banner-arrow:focus-visible { outline:2px solid var(--yellow); outline-offset:2px; }
.banner-arrow-prev { left:1rem; }
.banner-arrow-next { right:1rem; }
/* Progress bar */
.banner-progress {
  position:absolute; top:0; left:0; right:0;
  height:3px; background:rgba(255,255,255,.12); z-index:3;
}
.banner-progress-bar {
  height:100%;
  background:linear-gradient(to right, var(--gold), var(--yellow));
  border-radius:0 var(--r-full) var(--r-full) 0;
  box-shadow:0 0 12px rgba(250,204,21,.55);
  width:0; transition:width linear;
}
/* Dots — glass pill; padding + content-box clip widen each hit target
   to ~26px without changing the 8px visual dot */
.banner-dots {
  position:absolute; bottom:1rem; left:50%; transform:translateX(-50%);
  display:flex; gap:.25rem; z-index:3;
  padding:.25rem .5rem;
  background:rgba(17,24,39,.30);
  border:1px solid rgba(255,255,255,.14);
  border-radius:var(--r-full);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.banner-dot {
  width:8px; height:8px;
  padding:5px;
  box-sizing:content-box;
  background:rgba(255,255,255,.45);
  background-clip:content-box;
  border-radius:var(--r-full);
  transition:width .3s, background-color .3s;
}
.banner-dot:hover { background-color:rgba(255,255,255,.75); }
.banner-dot.active { width:26px; background-color:var(--yellow); }
.banner-dot:focus-visible { outline:2px solid var(--yellow); outline-offset:1px; }
/* 100vw · RTL variant (admin-toggled via /admin/banner.php).
   Breaks out of the 1280px shell to span the full viewport — body has
   overflow-x:hidden, so the 100vw breakout can't introduce a horizontal
   scrollbar. direction:rtl flows the content block to the right edge. */
.banner-carousel.banner-full-rtl {
  max-width:none;
  width:100vw;
  margin-top:0; /* full-bleed variant sits flush against the header */
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  border-radius:0;
  direction:rtl;
}
.banner-carousel.banner-full-rtl::after { box-shadow:none; } /* no ring on full bleed */
/* transforms don't follow direction — mirror the slide motion */
.banner-full-rtl .banner-slide        { transform:translateX(-40px); }
.banner-full-rtl .banner-slide.active { transform:translateX(0); }
.banner-full-rtl .banner-slide.prev   { transform:translateX(40px); }
/* The copy is Latin-script (pt-BR): render its bidi as LTR inside the RTL
   shell, otherwise trailing punctuation jumps to the line start (leading-
   period artifact on the subtitle, displaced → on the CTA). Placement is
   fully owned by the alignment classes below, so flex semantics stay normal. */
.banner-full-rtl .banner-content { direction:ltr; }

/* ── Text alignment (admin-toggled via /admin/banner.php) ──
   index.php always emits banner-align-left or banner-align-right; explicit
   classes override the variant's natural side via direction-independent
   margins/align-items. The readability gradient mirrors to the text side. */
.banner-carousel.banner-align-left .banner-content {
  margin-left:0; margin-right:auto;
  align-items:flex-start; text-align:left;
}
.banner-carousel.banner-align-right .banner-content {
  margin-left:auto; margin-right:0;
  align-items:flex-end; text-align:right;
}
.banner-carousel.banner-align-right .banner-overlay {
  background:
    linear-gradient(to left,
      rgba(2,6,23,.78) 0%, rgba(2,6,23,.60) 24%,
      rgba(2,6,23,.32) 48%, rgba(2,6,23,.10) 66%, transparent 84%),
    linear-gradient(to top, rgba(2,6,23,.45), transparent 32%),
    linear-gradient(to bottom, rgba(2,6,23,.22), transparent 16%);
}

/* ─── CALL TO ACTION STRIP ──────────────────────────────── */
.cta-strip {
  background:
    radial-gradient(700px 220px at 50% 0%, rgba(250,204,21,.10), transparent 65%),
    #f3f4f6;
  padding:2.25rem 1rem;
  text-align:center;
  border-top:1px solid rgba(0,0,0,.04);
  border-bottom:1px solid rgba(0,0,0,.04);
}
@media(min-width:640px){ .cta-strip { padding:2.75rem 0; } }
.cta-strip-title {
  font-size:1.375rem; font-weight:900; color:var(--text);
  text-transform:uppercase; letter-spacing:.04em;
  margin-bottom:.5rem; line-height:1.15;
}
@media(min-width:640px){ .cta-strip-title { font-size:2.25rem; letter-spacing:.05em; } }
.cta-strip-title .accent { color:var(--gold); }
.cta-strip-sub {
  color:var(--text-sec); font-size:.875rem; font-weight:500;
  max-width:48rem; margin:0 auto; line-height:1.55;
}
@media(min-width:640px){ .cta-strip-sub { font-size:1.125rem; } }

/* ─── PRODUCTS PAGE ─────────────────────────────────────── */
.page-header { margin-bottom:2rem; }
.page-title {
  font-size:1.5rem; font-weight:700; color:var(--text);
  border-left:4px solid var(--yellow); padding-left:.75rem;
}
@media(min-width:640px){ .page-title { font-size:1.875rem; } }
.page-subtitle { color:var(--text-sec); font-size:.875rem; margin-top:.5rem; padding-left:.875rem; }
.filter-pills { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.75rem; padding-bottom:.25rem; overflow-x:auto; }
.filter-pills::-webkit-scrollbar { height:3px; }
.filter-pills::-webkit-scrollbar-track { background:transparent; }
.filter-pills::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }
.pill {
  flex-shrink:0; padding:.375rem 1rem;
  border-radius:var(--r-full); font-size:.875rem; font-weight:600;
  border:1.5px solid var(--border); background:var(--surface);
  color:var(--text-sec); transition:all .2s; white-space:nowrap;
}
.pill:hover { border-color:var(--yellow); color:var(--gold); }
.pill.active { background:var(--yellow); color:var(--black); border-color:var(--yellow); box-shadow:var(--shadow-sm); }
.filter-sub-row {
  display:flex; flex-wrap:wrap; gap:.5rem;
  padding:.375rem 0 .375rem .75rem;
  border-left:2px solid var(--yellow); overflow-x:auto;
  padding-bottom:.25rem;
}
.pill-sm { font-size:.75rem; padding:.25rem .75rem; }
.filters-container { margin-bottom:2rem; }

/* ─── PRODUCT DETAIL ────────────────────────────────────── */
.product-detail-wrap {
  background:var(--surface); padding:1.5rem;
  border-radius:1.5rem; box-shadow:0 4px 32px rgba(0,0,0,.05);
  border:1px solid var(--border);
}
@media(min-width:640px){ .product-detail-wrap { padding:2rem; } }
.detail-grid {
  display:grid; grid-template-columns:1fr;
  gap:2rem;
}
@media(min-width:1024px){ .detail-grid { grid-template-columns:1fr 1fr; gap:3rem; } }
/* Gallery */
.gallery-main {
  background:var(--img-well); border-radius:var(--r-xl);
  aspect-ratio:1/1; overflow:hidden; position:relative;
}
.gallery-main img {
  width:100%; height:100%; object-fit:contain; padding:2rem;
  transition:opacity .3s;
  mix-blend-mode: multiply;
}
.gallery-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:2.25rem; height:2.25rem; border-radius:9999px;
  background:rgba(17,24,39,.45); color:#fff;
  border:1px solid rgba(255,255,255,.35);
  display:flex; align-items:center; justify-content:center;
  transition:background .2s, transform .2s;
  z-index:2;
}
.gallery-arrow:hover { background:rgba(17,24,39,.7); transform:translateY(-50%) scale(1.05); }
.gallery-arrow-prev { left:.75rem; }
.gallery-arrow-next { right:.75rem; }
.gallery-dots {
  display:flex; align-items:center; justify-content:center;
  gap:.375rem; margin-top:.625rem;
}
.gallery-dot {
  width:.5rem; height:.5rem; border-radius:9999px;
  background:#d1d5db; transition:all .2s;
}
.gallery-dot.active { width:1.25rem; background:#facc15; }
.gallery-thumbs { display:grid; grid-template-columns:repeat(4,1fr); gap:.75rem; margin-top:.75rem; }
.gallery-thumb {
  aspect-ratio:1/1; border-radius:var(--r-md);
  border:2px solid var(--border); overflow:hidden;
  background:var(--img-well); cursor:pointer; transition:border-color .2s;
}
.gallery-thumb:hover  { border-color:#fde047; }
.gallery-thumb.active { border-color:var(--yellow); box-shadow:var(--shadow-md); }
.gallery-thumb img { width:100%; height:100%; object-fit:contain; padding:.375rem; mix-blend-mode:multiply; }
/* Detail info */
.detail-title { font-size:1.5rem; font-weight:700; color:var(--text); margin-bottom:.75rem; }
@media(min-width:640px){ .detail-title { font-size:2.25rem; } }
.detail-code { font-size:.875rem; font-weight:600; color:var(--text-sec); margin:-.25rem 0 1rem; }
.detail-price {
  font-size:1.875rem; font-weight:900; color:var(--gold); margin-bottom:.375rem;
  display:flex; align-items:baseline; gap:.375rem; flex-wrap:wrap;
}
.detail-price-note { font-size:.875rem; font-weight:400; color:var(--text-sec); }
.detail-stock { font-size:.875rem; font-weight:600; margin-bottom:1rem; }
.detail-stock.available { color:var(--green); }
.detail-stock.unavailable { color:var(--red); }
/* Quantity selector */
.qty-selector {
  display:flex; align-items:center;
  border:1.5px solid var(--border); border-radius:var(--r-lg);
  width:100%; height:3.5rem; overflow:hidden;
  margin-bottom:1rem;
}
@media(min-width:640px){ .qty-selector { width:9rem; height:3rem; border-radius:var(--r-md); } }
.qty-selector .qty-btn { flex:1; height:100%; font-size:1.125rem; }
.qty-selector .qty-val {
  flex:1; text-align:center; font-weight:700; font-size:1.125rem;
  color:var(--text); background:transparent; border:none; outline:none;
}
/* Detail actions */
.detail-actions { display:flex; flex-direction:column; gap:.75rem; margin-bottom:1.5rem; }
.buy-btn {
  width:100%; height:4rem; border-radius:var(--r-lg);
  font-weight:900; font-size:1.125rem;
  display:flex; align-items:center; justify-content:center; gap:.75rem;
  transition:background .2s, color .2s, border-color .2s;
}
.buy-btn {
  background:var(--black); color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}
@media(min-width:640px){ .buy-btn { height:3rem; font-size:.875rem; border-radius:var(--r-md); } }
.buy-btn:hover { background:var(--yellow); color:var(--black); }
.buy-btn:disabled { opacity:.5; cursor:not-allowed; }
.manual-btn {
  margin-top:1.25rem;
  width:100%;
  display:flex; align-items:center; gap:1rem;
  padding:1rem 1.125rem;
  border-radius:var(--r-xl);
  background:linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color:#fff;
  border:1px solid rgba(250, 204, 21, .24);
  box-shadow:0 16px 32px rgba(17, 24, 39, .18);
  overflow:hidden;
  position:relative;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.manual-btn::after {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(120deg, rgba(250, 204, 21, .14), transparent 50%);
  pointer-events:none;
}
.manual-btn:hover {
  transform:translateY(-2px);
  box-shadow:0 22px 40px rgba(17, 24, 39, .22);
  border-color:rgba(250, 204, 21, .5);
}
.manual-btn__icon {
  width:3rem; height:3rem; border-radius:9999px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(250, 204, 21, .14);
  color:var(--yellow);
  flex-shrink:0;
}
.manual-btn__text {
  display:flex; flex-direction:column; gap:.125rem;
  position:relative;
  z-index:1;
}
.manual-btn__text strong {
  font-size:1rem; font-weight:800; line-height:1.2;
}
.manual-btn__text small {
  font-size:.8125rem; color:rgba(255,255,255,.74);
}
.product-description { margin-top:1.5rem; padding-top:1.5rem; border-top:1px solid var(--border); }
@media(min-width:640px){
  .manual-btn { padding:1.125rem 1.25rem; }
  .manual-btn__text strong { font-size:1.0625rem; }
}
/* Freight calc */
.freight-section { margin-top:1.25rem; }
.freight-title {
  display:flex; align-items:center; gap:.5rem;
  font-size:1.125rem; font-weight:600; margin-bottom:.25rem;
}
.freight-note { font-size:.75rem; color:var(--text-muted); margin-bottom:.75rem; }
.freight-input-row { display:flex; gap:.5rem; margin-bottom:.75rem; }
.freight-input-row input { flex:1; }
.freight-calc-btn {
  background:var(--yellow); color:var(--black);
  font-weight:600; padding:.75rem 1.25rem; border-radius:var(--r-md);
  white-space:nowrap; transition:background .2s;
}
.freight-calc-btn:hover { background:var(--yellow-hover); }
.freight-calc-btn:disabled { opacity:.5; cursor:not-allowed; }
.freight-result { display:flex; flex-direction:column; gap:.5rem; }
.freight-option {
  display:flex; justify-content:space-between; align-items:center;
  padding:1rem; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); box-shadow:var(--shadow-sm);
}
.freight-option-name { font-weight:700; font-size:.875rem; color:var(--text); }
.freight-option-days { font-size:.75rem; color:var(--text-sec); }
.freight-option-val { font-weight:700; font-size:1.125rem; }
/* Specs */
.specs-box {
  margin-top:2rem; background:var(--bg); padding:1.25rem; border-radius:var(--r-lg);
}
.specs-title {
  display:flex; align-items:center; gap:.5rem; margin-bottom:.875rem;
  font-size:.875rem; font-weight:700; color:var(--text);
  text-transform:uppercase; letter-spacing:.05em;
}
.spec-item { display:flex; align-items:center; gap:.5rem; margin-bottom:.5rem; }
.spec-item svg { color:var(--gold); flex-shrink:0; }
.spec-label { font-weight:600; }
/* Description */
.product-description h2 { font-size:1.5rem; font-weight:700; margin-bottom:1.5rem; }
.product-description p { color:var(--text-sec); line-height:1.75; white-space:pre-wrap; }
/* Breadcrumb */
.breadcrumb {
  display:none; align-items:center; gap:.375rem;
  font-size:.875rem; color:var(--text-muted); margin-bottom:2rem;
  flex-wrap:wrap;
}
@media(min-width:640px){ .breadcrumb { display:flex; } }
.breadcrumb a:hover { color:var(--gold); }
.breadcrumb-sep { color:var(--text-muted); }
.breadcrumb-current { color:var(--text); font-weight:500; max-width:18rem; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }

/* ─── CHECKOUT ──────────────────────────────────────────── */
.checkout-layout { display:flex; flex-direction:column; gap:2rem; }
@media(min-width:1024px){ .checkout-layout { flex-direction:row; } }
.checkout-main { flex:1; }
.checkout-summary { width:100%; flex-shrink:0; }
@media(min-width:1024px){ .checkout-summary { width:20rem; } }
.address-card {
  padding:1.25rem; border-radius:var(--r-lg);
  border:2px solid var(--border); background:var(--surface);
  cursor:pointer; transition:border-color .2s, background .2s;
  margin-bottom:.75rem;
}
.address-card:hover { border-color:#fde047; }
.address-card.selected { border-color:var(--yellow); background:rgba(254,252,232,.4); }
.address-card-header { display:flex; align-items:center; gap:.75rem; margin-bottom:.5rem; }
.address-radio {
  width:1.25rem; height:1.25rem; border-radius:50%;
  border:2px solid var(--border); flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  transition:border-color .2s;
}
.address-card.selected .address-radio { border-color:var(--yellow); }
.address-radio-dot {
  width:.5rem; height:.5rem; border-radius:50%;
  background:var(--yellow); opacity:0; transition:opacity .2s;
}
.address-card.selected .address-radio-dot { opacity:1; }
.add-address-btn {
  width:100%; border:2px dashed var(--border); border-radius:var(--r-lg);
  padding:1rem; display:flex; align-items:center; justify-content:center; gap:.5rem;
  color:var(--text-sec); font-size:.875rem; font-weight:500;
  transition:border-color .2s, color .2s; margin-top:.75rem;
}
.add-address-btn:hover { border-color:var(--yellow); color:var(--gold); }
.checkout-form { background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); padding:1.5rem; margin-top:.75rem; }
.checkout-form-title { font-size:1.125rem; font-weight:700; margin-bottom:1.25rem; }
.form-grid { display:grid; grid-template-columns:1fr; gap:1rem; }
@media(min-width:640px){ .form-grid { grid-template-columns:1fr 1fr; } }
.form-field { display:flex; flex-direction:column; gap:.375rem; }
.form-label { font-size:.8125rem; font-weight:600; color:var(--text-sec); }
.col-span-2 { grid-column: span 2; }
.summary-card {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:1.5rem;
}
@media(min-width:1024px){ .summary-card { position:sticky; top:7rem; } }
.summary-items { max-height:13rem; overflow-y:auto; margin-bottom:1rem; }
.summary-item { display:flex; justify-content:space-between; align-items:start; padding:.375rem 0; font-size:.875rem; }
.summary-item-name { color:var(--text-sec); flex:1; margin-right:.75rem; }
.summary-item-val { font-weight:500; white-space:nowrap; }
.summary-total { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--border); padding-top:.75rem; margin-bottom:1rem; }
.summary-total-label { font-weight:600; }
.summary-total-val { font-size:1.25rem; font-weight:700; color:var(--gold); }
.summary-address-box {
  background:var(--bg); border-radius:var(--r-md); padding:.75rem;
  border:1px solid var(--border); font-size:.75rem; margin-bottom:1rem;
  display:flex; gap:.5rem;
}
.continue-btn {
  width:100%; background:var(--black); color:#fff;
  font-weight:700; padding:.875rem; border-radius:var(--r-md);
  transition:background .2s, color .2s;
}
.continue-btn:hover { background:var(--yellow); color:var(--black); }
.continue-btn:disabled { opacity:.5; cursor:not-allowed; }

/* ─── LOGIN PAGE ────────────────────────────────────────── */
.auth-page {
  min-height:100vh; background:var(--bg);
  display:flex; align-items:center; justify-content:center; padding:1rem;
}
.auth-card {
  width:100%; max-width:28rem;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-xl); box-shadow:var(--shadow-xl); padding:2rem;
}
.auth-logo { width:7.5rem; height:7.5rem; object-fit:contain; margin:0 auto 1rem; display:block; }
.auth-tabs { display:flex; border-bottom:1px solid var(--border); margin-bottom:1.5rem; position:relative; }
.auth-tab {
  flex:1; padding:.75rem; text-align:center; font-size:.875rem;
  color:var(--text-sec); font-weight:500; cursor:pointer; transition:color .2s;
}
.auth-tab.active { color:var(--text); font-weight:600; }
.auth-tab-indicator {
  position:absolute; bottom:0; left:0; height:2px;
  background:var(--yellow); transition:left .2s ease;
  width:50%;
}
.auth-form { display:none; flex-direction:column; gap:1rem; }
.auth-form.active { display:flex; }
.auth-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.auth-error {
  background:#fee2e2; color:var(--red-dark); padding:.75rem 1rem;
  border-radius:var(--r-md); font-size:.875rem; font-weight:500; text-align:center;
}
.auth-success-screen {
  display:none; flex-direction:column; align-items:center; gap:1rem; padding:1.5rem 0;
}
.auth-success-screen.active { display:flex; }
.auth-success-icon {
  width:4rem; height:4rem; background:var(--yellow-light); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
}
.auth-back-link {
  display:block; text-align:center; margin-top:1rem;
  font-size:.875rem; color:var(--text-sec); font-weight:500;
  transition:color .2s;
}
.auth-back-link:hover { color:var(--gold); }

/* ─── MY ACCOUNT ────────────────────────────────────────── */
.account-layout { display:flex; flex-direction:column; gap:2rem; }
@media(min-width:768px){ .account-layout { flex-direction:row; align-items:flex-start; } }
.account-sidebar {
  width:100%; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--r-lg);
  overflow:hidden; box-shadow:var(--shadow-sm);
}
@media(min-width:768px){ .account-sidebar { width:16rem; flex-shrink:0; } }
.account-nav-item {
  display:flex; align-items:center; gap:.75rem;
  padding:1rem 1.25rem; font-size:.875rem; color:var(--text-sec);
  transition:background .2s, color .2s; cursor:pointer;
}
.account-nav-item:hover { background:var(--bg); }
.account-nav-item.active { background:var(--yellow-50); color:var(--gold-deep); font-weight:600; border-right:3px solid var(--yellow); }
.account-nav-item.danger { color:var(--red); }
.account-nav-item.danger:hover { background:#fee2e2; }
.account-nav-item.admin-link { color:var(--blue); }
.account-nav-item.admin-link:hover { background:#eff6ff; }
.account-main { flex:1; }
.account-section { display:none; }
.account-section.active { display:block; }
.profile-grid { display:grid; grid-template-columns:1fr; gap:.75rem; margin-bottom:1.25rem; }
@media(min-width:640px){ .profile-grid { grid-template-columns:1fr 1fr; } }
.profile-field {
  display:flex; align-items:flex-start; gap:.75rem;
  padding:1rem; background:var(--bg); border-radius:var(--r-lg);
  border:1px solid var(--border);
}
.profile-field-icon { color:var(--gold); flex-shrink:0; margin-top:.1rem; }
.profile-field-label { font-size:.75rem; color:var(--text-muted); }
.profile-field-val { font-weight:600; color:var(--text); font-size:.875rem; }
/* Address cards in account */
.addr-card {
  padding:1.25rem; border-radius:var(--r-lg);
  border:2px solid var(--border); background:var(--surface);
  margin-bottom:.75rem; position:relative;
  transition:border-color .2s;
}
.addr-card.default { border-color:var(--yellow); background:rgba(254,252,232,.3); }
.addr-card-actions { display:flex; gap:.5rem; }
.addr-action-btn {
  padding:.375rem; border-radius:var(--r-md); color:var(--text-muted);
  transition:background .2s, color .2s;
}
.addr-action-btn.star:hover  { color:var(--gold); background:var(--yellow-50); }
.addr-action-btn.edit:hover  { color:var(--blue); background:#eff6ff; }
.addr-action-btn.trash:hover { color:var(--red); background:#fee2e2; }
.addr-delete-confirm {
  display:none; border-top:1px solid #fee2e2;
  margin-top:1rem; padding-top:1rem;
}
.addr-delete-confirm.show { display:flex; align-items:center; justify-content:space-between; }
.addr-empty {
  display:flex; flex-direction:column; align-items:center;
  padding:3rem 1rem; color:var(--text-muted); gap:.75rem; text-align:center;
}

/* ─── ADMIN ─────────────────────────────────────────────── */
.admin-layout { display:flex; min-height:100vh; }
.admin-sidebar {
  width:16rem; flex-shrink:0; background:var(--black);
  display:flex; flex-direction:column; padding:1.5rem 0;
}
.admin-logo { padding:0 1.25rem 1.5rem; border-bottom:1px solid #1f2937; }
.admin-logo img { width:10rem; object-fit:contain; }
.admin-nav { flex:1; padding:1rem 0; }
.admin-nav-item {
  display:flex; align-items:center; gap:.75rem;
  padding:.75rem 1.25rem; font-size:.875rem; color:#9ca3af;
  transition:background .2s, color .2s;
}
.admin-nav-item:hover { background:#1f2937; color:#fff; }
.admin-nav-item.active { background:#facc15; color:#000; font-weight:600; }
.admin-content { flex:1; overflow:auto; background:var(--bg); }
.admin-topbar {
  background:var(--surface); border-bottom:1px solid var(--border);
  padding:1rem 1.5rem; display:flex; align-items:center;
  justify-content:space-between;
}
.admin-page-title { font-size:1.25rem; font-weight:700; }
.admin-body { padding:1.5rem; }
.admin-table-wrap { overflow-x:auto; background:var(--surface); border-radius:var(--r-lg); border:1px solid var(--border); }
.admin-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.admin-table thead tr { border-bottom:1px solid var(--border); }
.admin-table th {
  padding:.875rem 1rem; text-align:left; font-weight:600;
  color:var(--text-sec); white-space:nowrap; cursor:pointer;
  user-select:none; transition:color .2s;
}
.admin-table th:hover { color:var(--text); }
.admin-table td { padding:.75rem 1rem; border-bottom:1px solid var(--border); vertical-align:middle; }
.admin-table tbody tr:last-child td { border-bottom:none; }
.admin-table tbody tr:hover { background:var(--bg); }
.admin-search {
  padding:.625rem 1rem; border:1.5px solid var(--border);
  border-radius:var(--r-md); font-size:.875rem; outline:none;
  transition:border-color .2s; width:18rem;
}
.admin-search:focus { border-color:var(--yellow); }
.admin-filter-btn {
  padding:.5rem 1rem; border-radius:var(--r-md);
  font-size:.8125rem; font-weight:600;
  border:1.5px solid var(--border); background:var(--surface);
  color:var(--text-sec); transition:all .2s;
}
.admin-filter-btn.active { background:var(--yellow); color:var(--black); border-color:var(--yellow); }
.admin-filter-btn:hover:not(.active) { border-color:var(--yellow); color:var(--gold); }
.admin-thumb { width:3rem; height:3rem; object-fit:contain; border-radius:var(--r-md); background:var(--img-well); padding:.25rem; }
.admin-edit-input { width:100%; padding:.375rem .625rem; border:1.5px solid var(--yellow); border-radius:var(--r-md); font-size:.8125rem; outline:none; }
.admin-toggle {
  width:2.75rem; height:1.5rem; border-radius:var(--r-full);
  background:var(--border); position:relative; cursor:pointer;
  transition:background .2s; flex-shrink:0;
}
.admin-toggle.on { background:#22c55e; }
.admin-toggle::after {
  content:''; position:absolute; top:3px; left:3px;
  width:1.125rem; height:1.125rem; border-radius:50%;
  background:#fff; transition:left .2s;
  box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.admin-toggle.on::after { left:calc(100% - 1.125rem - 3px); }
.admin-access-denied {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; min-height:100vh; gap:1rem; color:var(--text-sec);
}
.pagination {
  display:flex; align-items:center; justify-content:center; gap:.5rem;
  padding:1rem;
}
.pagination a {
  width:2rem; height:2rem; border-radius:var(--r-md);
  display:flex; align-items:center; justify-content:center;
  font-size:.875rem; font-weight:500; color:var(--text-sec);
  border:1px solid var(--border); transition:all .2s;
}
.pagination a:hover { border-color:var(--yellow); color:var(--gold); }
.pagination a.current { background:var(--yellow); color:var(--black); border-color:var(--yellow); font-weight:700; }

/* ─── MOBILE HERO ───────────────────────────────────────── */
.mobile-hero {
  background:
    radial-gradient(640px 260px at 50% -40px, rgba(250,204,21,.16), transparent 65%),
    linear-gradient(to bottom, #0b0f1a, var(--black));
  padding:2rem 1.25rem 2.25rem;
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:.875rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media(min-width:640px){ .mobile-hero { display:none; } }
.mobile-hero-logo { width:10rem; height:auto; }
.mobile-hero-title { color:#fff; font-size:1.625rem; font-weight:800; line-height:1.12; letter-spacing:-.02em; }
.mobile-hero-title span { color:var(--yellow); }
.mobile-hero-sub { color:rgba(255,255,255,.72); font-size:.9rem; }
.mobile-hero-cta {
  background:var(--yellow); color:var(--black);
  font-weight:800; padding:.85rem 1.75rem; border-radius:var(--r-full);
  min-height:44px; display:inline-flex; align-items:center; gap:.5rem;
  margin-top:.25rem;
  box-shadow: 0 10px 24px rgba(250,204,21,.22);
  transition:background .2s, transform .2s, box-shadow .2s;
}
.mobile-hero-cta:hover { background:var(--yellow-hover); transform:translateY(-2px); }
.mobile-hero-cta:active { transform: scale(.97); }

/* ─── MISC / UTILITY ────────────────────────────────────── */
.section-padding { padding:2.5rem 0; }
@media(min-width:640px){ .section-padding { padding:4rem 0; } }
.no-products {
  text-align:center; padding:4rem 1rem; color:var(--text-sec);
}
.no-products a { color:var(--gold); font-weight:600; }
.alert { padding:.875rem 1rem; border-radius:var(--r-md); font-size:.875rem; font-weight:500; margin-bottom:1rem; }
.alert-error  { background:#fee2e2; color:#991b1b; border:1px solid #fca5a5; }
.alert-success{ background:#dcfce7; color:#166534; border:1px solid #86efac; }
.alert-info   { background:#dbeafe; color:#1e40af; border:1px solid #93c5fd; }

/* ─── INSTITUCIONAL ─────────────────────────────────────── */
.institutional-wrap { max-width: 1000px; }
.institutional-hero {
  background: linear-gradient(135deg, #0f172a, #1f2937);
  color: #fff;
  padding: 2rem;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
}
.institutional-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  font-size: .75rem;
  padding: .25rem .65rem;
  border-radius: var(--r-full);
  margin-bottom: .75rem;
}
.institutional-hero h1 { font-size: 1.75rem; margin-bottom: .75rem; }
.institutional-hero p { color: rgba(255,255,255,.84); max-width: 48rem; }
.institutional-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.institutional-section h2 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  border-left: 4px solid var(--yellow);
  padding-left: .65rem;
}
.institutional-section p { color: var(--text-sec); }
.institutional-grid,
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: 1rem;
}
@media(min-width:768px){
  .institutional-grid { grid-template-columns: repeat(3, 1fr); }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}
.institutional-card,
.support-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  background: var(--surface);
}
.institutional-card h3,
.support-card h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
}
.institutional-lead { margin-top: .25rem; }
.ticket-box {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  padding: 1rem;
}
.ticket-box h3 { margin-bottom: .35rem; }
.ticket-box > p { color: var(--text-sec); font-size: .875rem; margin-bottom: .85rem; }
.ticket-form { display: flex; flex-direction: column; gap: .85rem; }
.ticket-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media(min-width:640px){ .ticket-row { grid-template-columns: repeat(2, 1fr); } }

/* ─── SOBRE NOS ─────────────────────────────────────────── */
.about-wrap { max-width: 1100px; }
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: linear-gradient(130deg, #0b1220, #1f2937);
  color: #fff;
  box-shadow: var(--shadow-xl);
  margin-bottom: 1.25rem;
}
@media(min-width:900px){ .about-hero { grid-template-columns: 1.05fr .95fr; } }
.about-hero__content { padding: 2rem; }
.about-hero__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.about-btn-light {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.about-btn-light:hover {
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}
.about-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--black);
  font-size: .75rem;
  font-weight: 800;
  border-radius: var(--r-full);
  padding: .25rem .7rem;
  margin-bottom: .8rem;
}
.about-hero__content h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; margin-bottom: .75rem; }
.about-hero__content p { color: rgba(255,255,255,.85); max-width: 36rem; }
.about-hero__image { min-height: 240px; background: #111827; }
.about-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.about-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin-bottom: 1rem;
}
@media(min-width:900px){ .about-metrics { grid-template-columns: repeat(4, 1fr); } }
.about-metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.about-metric-card strong {
  font-size: 1.35rem;
  color: var(--gold-deep);
}
.about-metric-card span {
  color: var(--text-sec);
  font-size: .85rem;
}
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.about-section h2 {
  font-size: 1.25rem;
  margin-bottom: .75rem;
  border-left: 4px solid var(--yellow);
  padding-left: .65rem;
}
.about-section p { color: var(--text-sec); line-height: 1.7; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-top: .5rem;
}
@media(min-width:768px){ .about-grid { grid-template-columns: repeat(3, 1fr); } }
.about-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem;
  background: var(--surface);
}
.about-card h3 { margin-bottom: .45rem; font-size: 1rem; }
.about-card p { color: var(--text-sec); font-size: .93rem; }
.about-card--highlight {
  border-color: #fcd34d;
  background: linear-gradient(180deg, #fffbeb, #fff);
}
.about-gallery {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.about-gallery h2 {
  font-size: 1.25rem;
  margin-bottom: .85rem;
  border-left: 4px solid var(--yellow);
  padding-left: .65rem;
}
.about-gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}
@media(min-width:768px){ .about-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
.about-gallery__item {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 180px;
}
.about-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.about-gallery__item:hover img { transform: scale(1.04); }
.about-cta {
  margin-top: 1rem;
  background: linear-gradient(140deg, #111827, #1f2937);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
@media(min-width:900px){
  .about-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem;
  }
}
.about-cta__content h2 {
  font-size: 1.45rem;
  margin-bottom: .4rem;
}
.about-cta__content p {
  color: rgba(255,255,255,.82);
  max-width: 40rem;
}
.about-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.about-cta .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.about-cta .btn-outline:hover {
  color: var(--black);
  border-color: var(--yellow);
  background: var(--yellow);
}

/* ─── LOAD MORE BUTTON ──────────────────────────────────── */
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 2rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: .9375rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn-load-more:hover  { opacity: .88; }
.btn-load-more:active { transform: scale(.97); }
.btn-load-more:disabled { opacity: .55; cursor: default; }

/* ─── PAGE WRAPPER ──────────────────────────────────────── */
.page-content {
  min-height: calc(100vh - 6rem - 4rem); /* minus header and approx footer */
  padding-bottom: 5rem; /* mobile bottom bar */
}
@media(min-width:640px){ .page-content { padding-bottom: 0; } }

/* ─── COMING SOON GATE ──────────────────────────────────── */
body.coming-soon-locked {
  overflow: hidden;
}
body.coming-soon-locked .site-header,
body.coming-soon-locked .page-content,
body.coming-soon-locked .site-footer,
body.coming-soon-locked .mobile-bar {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}
.coming-soon-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.coming-soon-gate[hidden],
body.coming-soon-unlocked .coming-soon-gate {
  display: none;
}
.coming-soon-gate__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(250, 204, 21, .16), transparent 60%),
    radial-gradient(700px 350px at 85% 10%, rgba(17, 24, 39, .2), transparent 55%),
    rgba(7, 10, 16, .76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.coming-soon-gate__card {
  position: relative;
  width: min(100%, 34rem);
  padding: 2rem;
  border: 1px solid rgba(250, 204, 21, .24);
  border-radius: 1.5rem;
  background: rgba(17, 24, 39, .92);
  color: #f8fafc;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  text-align: center;
}
.coming-soon-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(250, 204, 21, .14);
  color: #facc15;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.coming-soon-gate__title {
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: .95;
  letter-spacing: -.04em;
}
.coming-soon-gate__text {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: rgba(248, 250, 252, .82);
  font-size: 1rem;
}
.coming-soon-gate__progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 1.5rem;
  padding: .75rem 1rem;
  min-width: 8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #facc15;
  font-size: .95rem;
  font-weight: 700;
}
@media(min-width:640px) {
  .coming-soon-gate__card {
    padding: 2.75rem;
  }
  .coming-soon-gate__text {
    font-size: 1.05rem;
  }
}

/* ─── THEME TOGGLE (sun/moon) ───────────────────────────── */
.theme-toggle-icon {
  position: relative;
  width: 24px; height: 24px;
  display: block; flex-shrink: 0;
}
.theme-toggle-icon svg {
  position: absolute; inset: 0;
  transition: opacity .3s ease, transform .45s cubic-bezier(.4, 0, .2, 1);
}
.theme-toggle-icon .icon-sun  { opacity: 0; transform: rotate(-90deg) scale(.55); }
.theme-toggle-icon .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="dark"] .theme-toggle-icon .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="dark"] .theme-toggle-icon .icon-moon { opacity: 0; transform: rotate(90deg) scale(.55); }
.theme-toggle-icon--sm { width: 22px; height: 22px; }
.admin-theme-btn {
  display: flex; align-items: center; justify-content: center;
  padding: .5rem; border-radius: var(--r-md);
  color: var(--text-sec);
  transition: background .2s, color .2s;
}
.admin-theme-btn:hover { background: var(--bg); color: var(--text); }

/* ============================================================
   DARK MODE — activated via html[data-theme="dark"]
   (set pre-paint by an inline script in <head>; toggled in JS)
   ============================================================ */
html[data-theme="dark"] {
  color-scheme: dark;

  --yellow-light: rgba(250, 204, 21, .16);
  --yellow-50:    rgba(250, 204, 21, .08);
  --gold:         #fbbf24;
  --gold-strong:  #fcd34d;
  --gold-deep:    #fbbf24;
  --bg:           #0b0f17;
  --surface:      #131a26;
  --img-well:     #eef1f5;
  --text:         #f1f5f9;
  --text-sec:     #94a3b8;
  --text-muted:   #64748b;
  --footer-text:  #cbd5e1;
  --border:       #243044;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.35);
  --shadow-md:  0 4px 6px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.35);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.5), 0 4px 6px rgba(0,0,0,.35);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.55), 0 8px 10px rgba(0,0,0,.35);
  --shadow-2xl: 0 25px 50px rgba(0,0,0,.6);
  --shadow-btn: 0 4px 14px rgba(0,0,0,.5);
}

/* Ambient page glow: subdued warm accent over deep slate */
html[data-theme="dark"] body {
  background-image:
    radial-gradient(900px 400px at 20% 0%, rgba(250, 204, 21, .06), transparent 60%),
    radial-gradient(700px 350px at 85% 10%, rgba(59, 130, 246, .05), transparent 55%),
    linear-gradient(to bottom, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
}

/* Surfaces with hardcoded light borders/glass backgrounds */
html[data-theme="dark"] .card,
html[data-theme="dark"] .product-card { border-color: var(--border); }
html[data-theme="dark"] .product-card__body {
  background: linear-gradient(to bottom, rgba(19, 26, 38, .55), var(--surface));
}
html[data-theme="dark"] .site-header.scrolled { background: rgba(19, 26, 38, .88); }
html[data-theme="dark"] .site-header.scrolled::after {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .35), transparent);
}
html[data-theme="dark"] .mobile-bar {
  background: rgba(15, 21, 31, .92);
  border-top-color: rgba(36, 48, 68, .85);
}
html[data-theme="dark"] .sidebar {
  border-left-color: var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
html[data-theme="dark"] .sidebar-footer { background: rgba(15, 21, 31, .92); }
html[data-theme="dark"] .sidebar-overlay { background: rgba(0, 0, 0, .68); }
html[data-theme="dark"] .site-footer { border-top: 1px solid #1a2333; }
html[data-theme="dark"] .cta-strip {
  background:
    radial-gradient(700px 220px at 50% 0%, rgba(250, 204, 21, .07), transparent 65%),
    #0e131c;
  border-top-color: rgba(255, 255, 255, .04);
  border-bottom-color: rgba(255, 255, 255, .04);
}

/* Primary CTAs: black-on-light inverts to brand yellow for contrast */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .buy-btn,
html[data-theme="dark"] .cart-checkout-btn,
html[data-theme="dark"] .search-submit-btn,
html[data-theme="dark"] .continue-btn {
  background: var(--yellow); color: #111827;
  box-shadow: 0 10px 28px rgba(250, 204, 21, .15);
}
html[data-theme="dark"] .manual-btn {
  background: linear-gradient(135deg, #0f172a 0%, #172033 100%);
  color: #fff;
  border-color: rgba(250, 204, 21, .34);
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .buy-btn:hover,
html[data-theme="dark"] .cart-checkout-btn:hover,
html[data-theme="dark"] .search-submit-btn:hover,
html[data-theme="dark"] .continue-btn:hover {
  background: var(--yellow-hover); color: #111827;
}
html[data-theme="dark"] .manual-btn:hover {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  border-color: rgba(250, 204, 21, .6);
}
html[data-theme="dark"] .manual-btn__icon {
  background: rgba(250, 204, 21, .18);
}
html[data-theme="dark"] .manual-btn__text small {
  color: rgba(255,255,255,.78);
}
html[data-theme="dark"] .product-card__btn {
  background: linear-gradient(180deg, #1c2533, #151c29);
  color: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .22), 0 10px 24px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .product-card__btn:hover {
  background: var(--yellow); color: #111827;
  box-shadow: 0 14px 34px rgba(250, 204, 21, .16);
}
html[data-theme="dark"] .product-card__btn:disabled,
html[data-theme="dark"] .product-card__btn--disabled {
  background: #374151;
  color: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
html[data-theme="dark"] .product-card__btn:disabled:hover,
html[data-theme="dark"] .product-card__btn--disabled:hover {
  background: #374151;
  color: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* Status hues: translucent fills + lightened text for dark surfaces */
html[data-theme="dark"] .badge-green  { background: rgba(34, 197, 94, .15);  color: #4ade80; }
html[data-theme="dark"] .badge-red    { background: rgba(239, 68, 68, .15);  color: #f87171; }
html[data-theme="dark"] .badge-orange { background: rgba(249, 115, 22, .15); color: #fb923c; }
html[data-theme="dark"] .alert-error   { background: rgba(239, 68, 68, .12);  color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
html[data-theme="dark"] .alert-success { background: rgba(34, 197, 94, .12);  color: #86efac; border-color: rgba(34, 197, 94, .35); }
html[data-theme="dark"] .alert-info    { background: rgba(59, 130, 246, .12); color: #93c5fd; border-color: rgba(59, 130, 246, .35); }
html[data-theme="dark"] .auth-error { background: rgba(239, 68, 68, .12); color: #fca5a5; }
html[data-theme="dark"] .detail-stock.available   { color: #4ade80; }
html[data-theme="dark"] .detail-stock.unavailable { color: #f87171; }

/* Account / address accents */
html[data-theme="dark"] .address-card.selected,
html[data-theme="dark"] .addr-card.default { background: rgba(250, 204, 21, .07); }
html[data-theme="dark"] .account-nav-item.danger:hover     { background: rgba(239, 68, 68, .12); }
html[data-theme="dark"] .account-nav-item.admin-link:hover { background: rgba(59, 130, 246, .12); }
html[data-theme="dark"] .addr-action-btn.edit:hover  { background: rgba(59, 130, 246, .15); }
html[data-theme="dark"] .addr-action-btn.trash:hover { background: rgba(239, 68, 68, .15); }
html[data-theme="dark"] .addr-delete-confirm { border-top-color: rgba(239, 68, 68, .3); }

/* Institutional / about pages */
html[data-theme="dark"] .about-card--highlight {
  border-color: rgba(250, 204, 21, .4);
  background: linear-gradient(180deg, rgba(250, 204, 21, .08), var(--surface));
}

/* Small fixed-color details */
html[data-theme="dark"] .cart-empty svg { color: #334155; }
html[data-theme="dark"] .gallery-dot { background: #334155; }
html[data-theme="dark"] .admin-search,
html[data-theme="dark"] .admin-edit-input { background: var(--surface); color: var(--text); }
