/* Dhan Shan Traders — industrial theme: safety yellow + black on light grey */
:root {
  --bg: #F6F6F4;
  --bg-2: #EDEDEA;
  --bg-3: #E2E2DE;
  --surface: #FFFFFF;
  --border: rgba(17, 18, 20, 0.11);
  --border-strong: rgba(17, 18, 20, 0.2);
  --text: #111214;
  --text-muted: #56575C;
  --primary: #F5B800;
  --on-primary: #111214;
  --primary-dark: #8A5A00;
  --secondary: #77787C;
  --accent-soft: rgba(245, 184, 0, 0.16);
  --steel: #77787C;
  --ink: #111214;
  --tag: #F3E6C4;
  --shadow: 220deg 8% 16%;
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #111214;
  --bg-2: #18191B;
  --bg-3: #222326;
  --surface: #1C1D20;
  --border: rgba(238, 236, 232, 0.09);
  --border-strong: rgba(238, 236, 232, 0.17);
  --text: #F0F0EE;
  --text-muted: #A4A5A9;
  --primary: #FFC21A;
  --on-primary: #111214;
  --primary-dark: #FFC21A;
  --secondary: #A4A5A9;
  --accent-soft: rgba(255, 194, 26, 0.12);
  --steel: #8D8E92;
  --ink: #0B0C0D;
  --shadow: 220deg 10% 2%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: 64px; height: 64px;
  object-fit: contain;
  animation: loader-pulse 1.1s ease-in-out infinite;
}
@keyframes loader-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}
html[data-theme="dark"] #site-header { background: rgba(16,22,15,0.82); }
.nav { display: flex; align-items: center; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--primary-dark); color: var(--primary-dark); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.brand-mark {
  width: 40px; height: 40px;
  object-fit: contain;
  flex: none;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text); }
.owner-btn {
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.owner-btn:hover { border-color: var(--primary-dark); color: var(--primary-dark); transform: translateY(-1px); }

/* ---------- Public navigation ---------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 18px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--primary-dark); }

.brand-highlight { color: var(--primary-dark); }

@media (max-width: 760px) {
  .site-nav { display: none; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 14px 28px -14px rgba(245,184,0,0.35);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(245,184,0,0.45); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary-dark); color: var(--primary-dark); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.95rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}
.section-head p { color: var(--text-muted); margin: 0; }

/* ---------- Elevated cards ---------- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow:
    0 1px 1px hsl(var(--shadow) / 0.04),
    0 18px 36px -24px hsl(var(--shadow) / 0.28);
  transform-style: preserve-3d;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, background 0.25s ease;
}
.glass-card:hover {
  border-color: rgba(245,184,0,0.35);
  box-shadow:
    0 1px 1px hsl(var(--shadow) / 0.05),
    0 26px 48px -24px hsl(var(--shadow) / 0.34);
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.product-card { padding: 0; overflow: hidden; position: relative; }
.product-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.product-media svg { opacity: 0.9; }
.wishlist-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}
html[data-theme="dark"] .wishlist-btn { background: rgba(23,30,25,0.85); }
.wishlist-btn:hover { transform: scale(1.08); }
.wishlist-btn.is-active { animation: heart-pop 0.35s ease; }
.wishlist-btn svg { transition: fill 0.2s ease, stroke 0.2s ease; }
.wishlist-btn.is-active svg { fill: #FF3020; stroke: #FF3020; }
@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.product-body { padding: 20px 22px 22px; }
.product-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; margin: 0 0 8px; color: var(--text); }
.product-body p { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 16px; }
.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--primary-dark);
}
.product-price.is-negotiable { color: var(--steel); font-size: 0.82rem; font-weight: 500; }

/* ---------- Store info ---------- */
.store-info { background: var(--bg-2); }
.store-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) { .store-grid { grid-template-columns: 1fr; } }
.store-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.85rem; letter-spacing: -0.01em; margin: 0 0 16px; color: var(--text); }
.store-copy p { color: var(--text-muted); max-width: 58ch; margin: 0 0 26px; }
.store-facts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.store-fact { display: flex; flex-direction: column; gap: 3px; }
.store-fact-label { font-family: var(--font-display); font-weight: 600; font-size: 0.75rem; color: var(--steel); text-transform: uppercase; letter-spacing: 0.05em; }
.store-fact a { text-decoration: none; color: var(--text); font-weight: 500; }
.store-fact a:hover { color: var(--primary-dark); }
.store-map-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 18px 40px -28px hsl(var(--shadow) / 0.35);
}
.store-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
}
.store-card-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--primary-dark);
  display: inline-block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.store-map-head h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}
.map-open-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.map-open-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(245,184,0,.65);
}
.store-map-frame {
  position: relative;
  width: 100%;
  height: 360px;
  background: var(--bg-3);
}
.store-map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
@media (max-width: 640px) {
  .store-map-head { align-items: flex-start; flex-direction: column; }
  .map-open-btn { width: 100%; justify-content: center; }
  .store-map-frame { height: 300px; }
}

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 28px -10px hsl(var(--shadow) / 0.4);
  z-index: 60;
  transition: transform 0.2s ease;
}
.whatsapp-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: #25D366; opacity: 0.45;
  animation: fab-pulse 2.6s ease-out infinite;
  z-index: -1;
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); }
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (max-width: 640px) { .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}
.modal-backdrop.is-open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
}
.modal-backdrop.is-open .modal { transform: translateY(0); }
.modal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0 0 10px; color: var(--text); }
.modal-note { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 20px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
}
.modal-error { color: #D91E0F; font-size: 0.84rem; margin: 10px 0 0; display: none; }
.modal-error.is-visible { display: block; }
.modal-wide { max-width: 480px; }
.field-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-two-col .field-label { margin-top: 14px; }
select.field-input { appearance: none; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.db-actions-cell { display: flex; align-items: center; gap: 8px; }
.db-action-edit { border-color: rgba(82,107,90,0.3); background: rgba(82,107,90,0.08); color: var(--primary-dark); }
.db-action-edit:hover { background: rgba(82,107,90,0.16); }

/* ---------- Role picker modal ---------- */
.role-options { display: flex; flex-direction: column; gap: 12px; }
.role-option {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.role-option:hover { border-color: var(--primary-dark); background: var(--accent-soft); }
.role-option-title { font-weight: 600; font-size: 0.96rem; }
.role-option-desc { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Image upload ---------- */
.image-upload {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.image-upload-preview { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.image-upload-placeholder { font-size: 0.82rem; color: var(--text-muted); }
.link-btn {
  background: none; border: none;
  color: var(--primary-dark);
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  padding: 6px 0 0;
}
.link-btn:hover { text-decoration: underline; }
.product-media img.product-media-img { width: 100%; height: 100%; object-fit: cover; }
.db-item-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.db-item-cell { display: flex; align-items: center; gap: 12px; }

/* ---------- Form fields ---------- */
.field-label { display: block; font-size: 0.82rem; color: var(--text-muted); margin: 14px 0 6px; }
.field-label:first-of-type { margin-top: 0; }
.field-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
  resize: vertical;
}
.field-input:focus { outline: none; border-color: var(--primary-dark); background: var(--surface); }
.field-row { margin-top: 16px; }
.price-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }

/* ---------- Owner dashboard ---------- */
.dashboard {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg-2);
  display: flex;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}
.dashboard.is-open { transform: translateY(0); }

.db-sidebar {
  width: 232px;
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow-y: auto;
}
.db-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.db-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; line-height: 1.2; color: var(--text); }
.db-nav { display: flex; flex-direction: column; gap: 4px; }
.db-nav-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 16px 6px 6px;
}
.db-nav-label:first-child { margin-top: 0; }
.db-nav-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.db-nav-btn:hover { background: var(--bg-2); color: var(--text); }
.db-nav-btn.is-active { background: var(--accent-soft); border-color: rgba(82,107,90,0.3); color: var(--primary-dark); }

.db-main { flex: 1; overflow-y: auto; padding: 40px 36px 70px; }
.db-view[hidden] { display: none; }

.db-panel-head { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 18px; }
.db-panel-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin: 0; color: var(--text); }

.db-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 820px) { .db-stats { grid-template-columns: repeat(2, 1fr); } }
.db-stat { padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.db-stat-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--primary-dark); }
.db-stat-label { font-size: 0.82rem; color: var(--text-muted); }

.db-table-wrap { overflow-x: auto; padding: 6px; }
.db-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.db-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.db-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.db-table tr:last-child td { border-bottom: none; }
.db-item-name { font-weight: 500; color: var(--text); }
.db-item-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-badge-category {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-2);
}
.db-price { font-family: var(--font-display); font-weight: 600; color: var(--primary-dark); }
.db-price.is-negotiable { color: var(--steel); font-size: 0.8rem; font-family: var(--font-body); font-weight: 400; }
.db-visibility-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid;
}
.db-visibility-btn.is-shown { color: var(--primary-dark); border-color: rgba(245,184,0,0.35); background: rgba(245,184,0,0.10); }
.db-visibility-btn.is-hidden { color: var(--steel); border-color: var(--border-strong); background: transparent; }
.db-action-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(198,67,47,0.28);
  background: rgba(198,67,47,0.08);
  color: #D91E0F;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
}
.db-action-btn:hover { background: rgba(198,67,47,0.16); }

.product-form { display: flex; flex-direction: column; padding: 26px; max-width: 480px; }
.dashboard-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 22px; border-top: 1px solid var(--border); padding-top: 18px; }

@media (max-width: 720px) {
  .dashboard { flex-direction: column; }
  .db-sidebar { width: 100%; flex-direction: row; align-items: center; overflow-x: auto; gap: 16px; padding: 14px 16px; }
  .db-nav { flex-direction: row; overflow-x: auto; }
  .db-nav-label { display: none; }
  .db-nav-btn { white-space: nowrap; }
  .db-main { padding: 26px 18px 60px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* =====================================================================
   v3 additions: multi-page nav, categories, brands, store page,
   owner search + filters
   ===================================================================== */

/* ---------- Header: brand link, active link, mobile menu ---------- */
a.brand { text-decoration: none; color: inherit; }
a.owner-btn { text-decoration: none; display: inline-block; }
.site-nav a.is-active { color: var(--primary-dark); }
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  align-items: center; justify-content: center;
  flex: none;
}
.nav-burger:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    margin: 0;
    padding: 8px 28px 16px;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -20px hsl(var(--shadow) / 0.3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; width: 100%; font-size: 0.98rem; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: none; }
}
@media (max-width: 440px) { .brand-name { display: none; } }

/* ---------- Section head with link ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }
.text-link { color: var(--primary-dark); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section-alt { background: var(--bg-2); }

/* ---------- Store page ---------- */
.page-head { padding: 54px 0 6px; }
.page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.2vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 10px; color: var(--text); }
.page-head p { color: var(--text-muted); margin: 0; max-width: 60ch; }
.store-tools { padding: 26px 0 0; }
.search-field { position: relative; display: block; flex: 1; min-width: 0; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--steel); pointer-events: none; }
.search-field input {
  width: 100%;
  padding: 13px 18px 13px 46px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.search-field input:focus { outline: none; border-color: var(--primary-dark); }
.filter-group { margin-top: 20px; }
.filter-label { font-family: var(--font-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel); margin: 0 0 9px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.chip:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.chip small { opacity: 0.7; margin-left: 5px; font-size: 0.8em; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 28px 0 18px; color: var(--text-muted); font-size: 0.9rem; }
.results-bar .link-btn { padding: 0; font-size: 0.88rem; }
.store-section { padding: 0 0 80px; }
.store-note { color: var(--text-muted); font-size: 0.84rem; margin: 26px 0 0; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
  font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.tag:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.tag-brand { background: var(--accent-soft); color: var(--primary-dark); border-color: rgba(245,184,0,0.18); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--text); margin-bottom: 6px; }
.empty-state a, .empty-state button { color: var(--primary-dark); font-weight: 600; }

/* ---------- Owner dashboard: search, filters, grouping ---------- */
.db-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.db-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.db-toolbar .field-input { width: 210px; flex: none; border-radius: 999px; padding: 12px 18px; background: var(--surface); }
.db-toolbar .search-field input { padding-top: 12px; padding-bottom: 12px; }
#db-cat-chips { margin-bottom: 18px; }
.db-group td {
  background: var(--bg-2);
  font-family: var(--font-display); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--steel);
  padding: 9px 16px !important;
}
.db-group td span { margin-left: 8px; font-weight: 500; opacity: 0.8; }
.db-badge-brand {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245,184,0,0.18);
  color: var(--primary-dark);
  background: var(--accent-soft);
}
.db-badge-brand.is-none { color: var(--text-muted); background: var(--bg-2); border-color: var(--border); font-weight: 500; }
.db-empty { text-align: center; color: var(--text-muted); padding: 36px 16px !important; }
.db-table { min-width: 760px; }

/* ---------- Mobile header alignment fix ----------
   Keeps logo, theme toggle, Owner login and menu button inside the screen
   with even side margins (logo nudged right, menu button nudged left). */
@media (max-width: 760px) {
  #site-header .wrap.nav { padding-left: 18px; padding-right: 18px; gap: 8px; }
  #site-header .brand { min-width: 0; padding-left: 6px; flex: none; }
  #site-header .nav-actions { gap: 8px; min-width: 0; padding-right: 6px; }
  #site-header .owner-btn { padding: 9px 14px; font-size: 0.82rem; white-space: nowrap; }
  #site-header .theme-toggle,
  #site-header .nav-burger { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  #site-header .wrap.nav { padding-left: 14px; padding-right: 14px; }
  #site-header .nav-actions { gap: 6px; }
  #site-header .owner-btn { padding: 8px 11px; font-size: 0.78rem; }
}

/* ---------- Mobile: products two per row ---------- */
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 16px; }
  .product-media { aspect-ratio: 1 / 1; }
  .wishlist-btn { top: 8px; right: 8px; width: 30px; height: 30px; }
  .wishlist-btn svg { width: 15px; height: 15px; }
  .product-body { padding: 11px 12px 14px; }
  .product-meta { gap: 4px; margin-bottom: 7px; }
  .tag { font-size: 0.64rem; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-body h3 { font-size: 0.9rem; line-height: 1.25; margin: 0 0 5px; overflow-wrap: anywhere; }
  .product-body p {
    font-size: 0.76rem; line-height: 1.4; margin: 0 0 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .product-price { font-size: 0.92rem; }
  .product-price.is-negotiable { font-size: 0.72rem; line-height: 1.3; display: block; }
  .store-section { padding-bottom: 56px; }
}
@media (max-width: 360px) {
  .product-grid { gap: 10px; }
  .product-body { padding: 10px 10px 12px; }
  .product-body h3 { font-size: 0.85rem; }
}

/* =====================================================================
   v4: trade-counter redesign (home page)
   ===================================================================== */
.wrap { max-width: 1200px; }
body { font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 52px 0 0; color: var(--text-muted); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 14px 0 0; max-width: 38ch; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col a { color: var(--text-muted); text-decoration: none; width: fit-content; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--primary-dark); }
.footer-label {
  margin: 0 0 6px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
}
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 18px; padding-bottom: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Top bar: hours + phone ---------- */
.topbar { background: var(--ink); color: #D6D3CD; font-size: 0.84rem; }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar-phone {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.82rem;
  color: #FFFFFF; text-decoration: none;
}
.topbar-phone:hover { color: #FFC21A; }
.topbar .open-status { color: #F1EFEB; }
@media (max-width: 640px) {
  .topbar-addr { display: none; }
}

/* Live open / closed status (filled in by script.js) */
.open-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.open-status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--steel);
}
.open-status.is-open::before { background: #2FB463; box-shadow: 0 0 0 3px rgba(47, 180, 99, 0.22); }
.open-status.is-closed::before { background: #D9822B; }
.open-status:empty { display: none; }

/* ---------- Header ---------- */
#site-header,
html[data-theme="dark"] #site-header { background: color-mix(in srgb, var(--bg) 86%, transparent); }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
}
.site-nav a { font-size: 0.96rem; }
.owner-btn, .theme-toggle, .nav-burger { border-radius: 10px; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
  padding: 15px 24px;
  font-size: 1rem;
  gap: 10px;
}
.btn-primary { box-shadow: 0 14px 26px -14px rgba(17, 18, 20, 0.35); }
.btn-whatsapp { background: var(--ink); color: #FFFFFF; }
.btn-whatsapp svg { color: #25D366; }
.btn-whatsapp:hover { background: #000000; transform: translateY(-2px); }
html[data-theme="dark"] .btn-whatsapp { background: #2A2C30; }
html[data-theme="dark"] .btn-whatsapp:hover { background: #34363B; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible, .peg-tag:focus-visible, .cat-card:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px;
}

/* ---------- Headings ---------- */
.section-kicker, .hero-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-dark);
}
.section-head h2, .store-copy h2, .trade-copy h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 0.95; letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.page-head h1 { text-transform: uppercase; font-weight: 800; letter-spacing: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 0; overflow-x: clip; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--text-muted); }
.hero-kicker::before {
  content: ""; width: 34px; height: 12px; flex: none;
  background: repeating-linear-gradient(-55deg, var(--primary) 0 3px, transparent 3px 7px);
}
.hero h1 {
  margin: 14px 0 22px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.9; letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--text);
  text-wrap: balance;
}
.hero h1 span { display: block; color: var(--primary-dark); }
.hero-sub { margin: 0 0 30px; max-width: 46ch; font-size: 1.14rem; line-height: 1.6; color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 24px 0 0; font-size: 0.95rem; color: var(--text); }

/* Pegboard: the hero visual, with hanging shop tags that link into the store */
.pegboard {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1 / 0.9;
  padding: 7% 7% 9%;
  border-radius: 14px;
  background:
    radial-gradient(circle, #121315 0 2.4px, rgba(255,255,255,0.07) 2.9px, transparent 3.6px) 13px 13px / 26px 26px,
    linear-gradient(160deg, #34363A, #232427);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 2px 0 rgba(255,255,255,0.06),
    0 44px 70px -44px rgba(30, 20, 10, 0.65);
}
.pegboard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at 18px 18px, #9A9CA0 0 4px, #5B5D61 4.5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 18px) 18px, #9A9CA0 0 4px, #5B5D61 4.5px, transparent 5.5px),
    radial-gradient(circle at 18px calc(100% - 18px), #9A9CA0 0 4px, #5B5D61 4.5px, transparent 5.5px),
    radial-gradient(circle at calc(100% - 18px) calc(100% - 18px), #9A9CA0 0 4px, #5B5D61 4.5px, transparent 5.5px);
}
.pegboard-img {
  position: relative; z-index: 1;
  width: 100%; max-width: 540px; height: auto;
  filter: drop-shadow(0 26px 26px rgba(0,0,0,0.5));
}
.peg-tag {
  --r: 0deg;
  position: absolute; z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  padding: 9px 16px 10px 30px;
  border-radius: 4px 9px 9px 4px;
  background: var(--tag);
  color: #26221B;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05;
  text-decoration: none;
  box-shadow: 0 10px 18px -8px rgba(0,0,0,0.55);
  transform: rotate(var(--r));
  transform-origin: 14px 50%;
  transition: transform 0.55s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease;
}
.peg-tag::before {
  content: ""; position: absolute; left: 11px; top: 50%;
  width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: #2B2C30; box-shadow: 0 0 0 2px #C9BB95;
}
.peg-tag-code { font-family: var(--font-mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.04em; color: #8A5A00; }
.peg-tag:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 16px 24px -10px rgba(0,0,0,0.6); }
.peg-tag--1 { --r: -7deg; top: 9%; left: -5%; }
.peg-tag--2 { --r: 5deg; top: 38%; right: -6%; }
.peg-tag--3 { --r: -4deg; bottom: 7%; right: 6%; }
.peg-tag--4 { --r: 6deg; bottom: 16%; left: -4%; }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .pegboard { max-width: 560px; width: 100%; margin: 8px auto 0; }
  .peg-tag--1 { left: 3%; }
  .peg-tag--2 { right: 2%; }
  .peg-tag--4 { left: 2%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .peg-tag { font-size: 0.82rem; padding: 7px 11px 8px 24px; }
  .peg-tag::before { left: 9px; width: 7px; height: 7px; }
  .peg-tag--3 { display: none; }
}

/* ---------- Category cards: photo + real item names ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--primary-dark); box-shadow: 0 24px 40px -28px hsl(var(--shadow) / 0.6); }
.cat-media {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--bg-3);
}
.cat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.cat-card:hover .cat-media img { transform: scale(1.05); }
.cat-ph svg { width: 52px; height: 52px; color: var(--primary-dark); opacity: 0.7; }
.cat-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem;
  text-transform: uppercase; line-height: 1; color: var(--text);
}
.cat-count { flex: none; font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel); }
.cat-items { list-style: none; margin: 12px 0 14px; padding: 0; display: grid; gap: 5px; font-size: 0.9rem; line-height: 1.35; color: var(--text-muted); }
.cat-items li { display: flex; gap: 9px; }
.cat-items li::before { content: ""; width: 5px; height: 5px; margin-top: 0.5em; flex: none; background: var(--primary); }
.cat-items .cat-items-more { color: var(--steel); }
.cat-items .cat-items-more::before { background: transparent; }
.cat-more { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--primary-dark); }
.cat-card:hover .cat-more { text-decoration: underline; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-body { padding: 12px 12px 14px; }
  .cat-name { font-size: 1.15rem; }
  .cat-items { font-size: 0.8rem; margin: 8px 0 10px; }
  .cat-top { flex-direction: column; gap: 3px; }
}

/* ---------- Trade panel: bulk orders + how ordering works ---------- */
.trade-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 16px;
  background: var(--ink); color: #EEECE8;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.trade-panel::before {
  content: ""; position: absolute; top: 0; right: 0; width: 220px; height: 220px; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(245,184,0,0.55) 0 6px, transparent 6px 16px);
  -webkit-mask-image: radial-gradient(circle at top right, #000, transparent 70%);
  mask-image: radial-gradient(circle at top right, #000, transparent 70%);
}
.trade-copy { position: relative; }
.trade-copy .section-kicker { color: #FFC21A; }
.trade-copy h2 { color: #FFFFFF; }
.trade-copy p { color: #B8B5AF; max-width: 44ch; margin: 0 0 26px; }
.trade-panel .btn-whatsapp, html[data-theme="dark"] .trade-panel .btn-whatsapp { background: #25D366; color: #08240F; }
.trade-panel .btn-whatsapp svg { color: #08240F; }
.trade-panel .btn-whatsapp:hover, html[data-theme="dark"] .trade-panel .btn-whatsapp:hover { background: #3BE07A; }
.trade-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.trade-steps li {
  display: grid; grid-template-columns: 56px 1fr; column-gap: 12px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trade-steps li:first-child { border-top: 0; padding-top: 4px; }
.trade-step-n { grid-row: span 2; font-family: var(--font-mono); font-size: 0.85rem; color: #FFC21A; padding-top: 4px; }
.trade-steps strong { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.01em; color: #FFFFFF; }
.trade-steps li > span:last-child { color: #A9A6A0; font-size: 0.94rem; }
@media (max-width: 860px) { .trade-panel { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Visit section ---------- */
.store-copy h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); }
.store-fact-label { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.08em; }
.store-fact-label .open-status { font-size: 0.85rem; color: var(--text); }
.hours-table { border-collapse: collapse; width: 100%; max-width: 380px; font-size: 0.95rem; }
.hours-table th, .hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--border-strong); text-align: left; font-weight: 400; color: var(--text); }
.hours-table td { text-align: right; font-family: var(--font-mono); font-size: 0.85rem; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--primary-dark); font-weight: 600; }
.store-map-card { border-radius: 14px; }
.map-open-btn { border-radius: 10px; }
.footer-base { position: relative; border-top: 0; }
.footer-base::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 1px; background: var(--border); }
@media (max-width: 560px) { .footer-base::before { left: 18px; right: 18px; } }
#categories { padding-top: 28px; }

/* ---------- Brand coverflow ---------- */
.brand-stage { --bf-size: clamp(190px, 27vw, 320px); outline: none; }
.bf-track {
  position: relative;
  height: calc(var(--bf-size) + 84px);
  perspective: 1400px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  user-select: none;
}
.bf-track.is-dragging { cursor: grabbing; }
.bf-card {
  position: absolute; top: 24px; left: 50%;
  width: var(--bf-size); margin-left: calc(var(--bf-size) / -2);
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  border-radius: 22px;
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 28px 40px -24px rgba(0,0,0,0.5);
  overflow: hidden;
  text-decoration: none; color: #171717;
  transition: transform 0.75s cubic-bezier(0.22, 0.8, 0.24, 1), opacity 0.5s ease, filter 0.5s ease;
  -webkit-user-drag: none;
}
.bf-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.bf-ph { font-family: var(--font-display); font-weight: 700; font-size: calc(var(--bf-size) * 0.26); letter-spacing: 0.02em; color: #171717; }
.bf-ph svg { width: calc(var(--bf-size) * 0.3); height: calc(var(--bf-size) * 0.3); color: #666; }
.bf-logo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 4%;
  pointer-events: none; -webkit-user-drag: none;
}
.bf-card.has-logo .bf-ph { visibility: hidden; }
.bf-caption { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; text-align: center; }
.bf-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.bf-title:hover { color: var(--primary-dark); }
.bf-sub { font-size: 0.9rem; color: var(--text-muted); }
.bf-caption.is-swap { animation: bf-caption-in 0.45s ease both; }
@keyframes bf-caption-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bf-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.bf-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.bf-btn:hover { border-color: var(--primary-dark); color: var(--primary-dark); }
.bf-btn:active { transform: scale(0.94); }
.bf-dots { display: flex; gap: 8px; }
.bf-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--border-strong); cursor: pointer; transition: width 0.3s ease, background 0.3s ease; }
.bf-dot[aria-current="true"] { width: 24px; background: var(--primary); }
@media (max-width: 640px) { .brand-stage { --bf-size: clamp(160px, 50vw, 240px); } }
.grid-empty { grid-column: 1 / -1; color: var(--text-muted); }
.hero { padding-bottom: 72px; }

/* ---------- Industrial theme: yellow is a fill, never text on white ---------- */
.btn-primary { background: var(--ink); color: var(--primary); box-shadow: 0 14px 26px -14px rgba(17, 18, 20, 0.45); }
.btn-primary:hover { background: var(--primary); color: var(--on-primary); box-shadow: 0 18px 30px -14px rgba(245, 184, 0, 0.55); }
html[data-theme="dark"] .btn-primary { background: var(--primary); color: var(--on-primary); }
html[data-theme="dark"] .btn-primary:hover { background: #FFD24D; }
.btn-whatsapp { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-whatsapp:hover { background: var(--surface); border-color: var(--text); }
html[data-theme="dark"] .btn-whatsapp, html[data-theme="dark"] .btn-whatsapp:hover { background: #222326; color: var(--text); }
.map-open-btn { background: var(--primary); color: var(--on-primary); }
.map-open-btn:hover { background: #FFCB2E; box-shadow: 0 10px 22px -12px rgba(245, 184, 0, 0.7); }
.btn:focus-visible, .peg-tag:focus-visible, .cat-card:focus-visible, .bf-card:focus-visible { outline-color: var(--text); }

.hero h1 span { display: inline-block; margin-top: 0.1em; padding: 0.06em 0.14em 0.02em; line-height: 0.95; color: var(--on-primary); background: var(--primary); }
.hero-kicker::before { background: repeating-linear-gradient(-55deg, var(--primary) 0 4px, var(--ink) 4px 8px); }
html[data-theme="dark"] .hero-kicker::before { background: repeating-linear-gradient(-55deg, var(--primary) 0 4px, transparent 4px 8px); }
.cat-items li::before { background: var(--ink); box-shadow: 2px 2px 0 var(--primary); }
html[data-theme="dark"] .cat-items li::before { background: var(--primary); box-shadow: none; }
.cat-ph svg { color: var(--steel); }
.topbar { box-shadow: inset 0 -3px 0 var(--primary); }
.trade-panel::before { background: repeating-linear-gradient(-55deg, rgba(245, 184, 0, 0.55) 0 10px, transparent 10px 22px); }
.topbar-phone { display: inline-flex; align-items: center; gap: 8px; }
.topbar-phone svg { color: var(--primary); flex: none; }

/* Category image placeholder (shown until images/categories/<slug>.jpg is added) */
.cat-media {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(17, 18, 20, 0.035) 14px 28px),
    var(--bg-3);
}
html[data-theme="dark"] .cat-media {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 28px),
    var(--bg-3);
}
.cat-ph { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cat-ph svg { width: 44px; height: 44px; color: var(--text-muted); opacity: 0.8; }
.cat-ph-label {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--steel);
  padding: 3px 8px; border: 1px dashed var(--border-strong); border-radius: 4px;
}

/* Product image placeholder (shown until images/products/<id>.jpg is added) */
.product-media {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(17, 18, 20, 0.035) 14px 28px),
    var(--bg-3);
}
html[data-theme="dark"] .product-media {
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 28px),
    var(--bg-3);
}
.product-ph { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-muted); }
.product-ph svg { width: 40px; height: 40px; opacity: 0.8; }
.product-media img.product-media-img { position: absolute; inset: 0; }
.wishlist-btn { z-index: 1; }
@media (max-width: 640px) { .product-ph .cat-ph-label { font-size: 0.58rem; } .product-ph svg { width: 30px; height: 30px; } }
