/* =========================================================
   Shop Design System — Atelier Catalog
   Graphite chrome + paper surfaces + signal orange
   Radical structure (not a skin of the previous theme)
   ========================================================= */

:root {
  --s-ink: #121212;
  --s-ink-2: #2a2a2a;
  --s-mute: #6b6b6b;
  --s-line: #e6e6e6;
  --s-line-2: #d4d4d4;
  --s-paper: #f6f6f4;
  --s-surface: #ffffff;
  --s-chrome: #141414;
  --s-chrome-2: #1f1f1f;
  --s-accent: #ff5a1f;
  --s-accent-hover: #e64a12;
  --s-accent-soft: rgba(255, 90, 31, 0.12);
  --s-ok: #14804a;
  --s-ok-soft: #e8f6ef;
  --s-danger: #c62828;
  --s-danger-soft: #fdecec;
  --s-info: #1a5f7a;
  --s-info-soft: #e8f3f7;
  --s-warn: #9a5b00;
  --s-warn-soft: #fff4e5;
  --s-radius: 4px;
  --s-radius-md: 8px;
  --s-space-1: 0.25rem;
  --s-space-2: 0.5rem;
  --s-space-3: 0.75rem;
  --s-space-4: 1rem;
  --s-space-5: 1.5rem;
  --s-space-6: 2rem;
  --s-space-7: 3rem;
  --s-space-8: 4.5rem;
  --s-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --s-font: "Noto Sans Arabic", system-ui, sans-serif;
  --s-display: "Changa", "Noto Sans Arabic", sans-serif;
  --s-max: 1120px;
  --s-masthead-h: 118px;
  --s-dock-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.shop-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--s-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--s-ink);
  background: var(--s-paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.shop-container {
  width: min(var(--s-max), calc(100% - 2rem));
  margin-inline: auto;
}

.shop-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shop-main {
  flex: 1;
  padding-bottom: 2rem;
}

/* ========== Masthead (replaces topbar+header) ========== */
.shop-masthead {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--s-chrome);
  color: #f5f5f5;
  border-bottom: 1px solid #2a2a2a;
}

.shop-masthead-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 72px;
  padding-block: 0.65rem;
}

.shop-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  min-width: max-content;
}

.shop-brand:hover { color: #fff; }

.shop-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: var(--s-radius);
  overflow: hidden;
  background: #fff;
  flex: 0 0 44px;
}

.shop-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.shop-brand-text strong {
  font-family: var(--s-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shop-brand-text span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  height: 46px;
  padding: 0 0.9rem;
  background: var(--s-chrome-2);
  border: 1px solid #333;
  border-radius: 999px;
  transition: border-color .15s ease, background .15s ease;
}

.shop-search:focus-within {
  border-color: var(--s-accent);
  background: #222;
}

.shop-search i { color: rgba(255, 255, 255, 0.45); }
.shop-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}

.shop-search input::placeholder { color: rgba(255, 255, 255, 0.4); }

.shop-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.shop-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.shop-icon-btn:hover {
  background: #222;
  border-color: #555;
  color: #fff;
}

.shop-icon-btn .shop-cart-count {
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--s-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}

.shop-header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 42px;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #1f8f52;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.shop-header-whatsapp:hover { color: #fff; filter: brightness(1.06); }

.shop-menu-toggle { display: none; }

.shop-masthead-nav {
  border-top: 1px solid #2a2a2a;
}

.shop-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.shop-nav::-webkit-scrollbar { display: none; }

.shop-nav > a,
.shop-nav .shop-nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.shop-nav > a:hover,
.shop-nav > a.active,
.shop-nav .shop-nav-dropdown-trigger:hover {
  color: #fff;
  border-bottom-color: var(--s-accent);
}

.shop-nav-dropdown { position: relative; }

.shop-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline-start: 0;
  z-index: 1200;
  width: 220px;
  padding: 0.4rem;
  background: #fff;
  color: var(--s-ink);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  box-shadow: var(--s-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: .15s ease;
}

.shop-nav-dropdown:hover .shop-nav-dropdown-menu,
.shop-nav-dropdown.is-open .shop-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shop-nav-dropdown-menu a,
.shop-nav-dropdown-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  border-radius: var(--s-radius);
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--s-ink-2);
}

.shop-nav-dropdown-menu a:hover {
  background: var(--s-accent-soft);
  color: var(--s-accent);
}

/* ========== Mobile dock ========== */
.shop-dock {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1150;
  height: var(--s-dock-h);
  background: #fff;
  border-top: 1px solid var(--s-line);
  grid-template-columns: repeat(5, 1fr);
  padding: 0 0.25rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.shop-dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: var(--s-mute);
  font-size: 0.65rem;
  font-weight: 700;
  position: relative;
}

.shop-dock a i { font-size: 1.2rem; }
.shop-dock a.active { color: var(--s-accent); }

.shop-dock .shop-cart-count {
  position: absolute;
  top: 6px;
  inset-inline-end: calc(50% - 18px);
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--s-accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
}

/* ========== Buttons ========== */
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--s-ink);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.shop-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.shop-btn-lg { min-height: 50px; padding-inline: 1.4rem; font-size: 0.95rem; }
.shop-btn-sm, .shop-btn.btn-sm { min-height: 36px; padding-inline: 0.85rem; font-size: 0.8rem; }

.shop-btn-primary {
  background: var(--s-accent);
  border-color: var(--s-accent);
  color: #fff;
}

.shop-btn-primary:hover {
  background: var(--s-accent-hover);
  border-color: var(--s-accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.shop-btn-outline {
  background: transparent;
  border-color: var(--s-line-2);
  color: var(--s-ink);
}

.shop-btn-outline:hover {
  border-color: var(--s-ink);
  color: var(--s-ink);
}

.shop-btn-dark {
  background: var(--s-chrome);
  border-color: var(--s-chrome);
  color: #fff;
}

.shop-btn-dark:hover { background: #000; color: #fff; }

.shop-btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.shop-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.shop-btn-whatsapp {
  background: #1f8f52;
  border-color: #1f8f52;
  color: #fff;
}

.shop-btn-whatsapp:hover { filter: brightness(1.05); color: #fff; }

.shop-btn-warm {
  background: var(--s-accent);
  border-color: var(--s-accent);
  color: #fff;
}

.shop-btn-warm:hover {
  background: var(--s-accent-hover);
  color: #fff;
}

/* ========== Page chrome ========== */
.shop-page {
  padding: var(--s-space-6) 0 var(--s-space-7);
}

.shop-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--s-space-5);
  padding-bottom: var(--s-space-4);
  border-bottom: 1px solid var(--s-line);
}

.shop-page-head h1,
.shop-page-head h2 {
  margin: 0;
  font-family: var(--s-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.shop-page-head p {
  margin: 0.35rem 0 0;
  color: var(--s-mute);
  font-size: 0.92rem;
}

.shop-page-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--s-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-section {
  padding: var(--s-space-7) 0;
}

.shop-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--s-space-5);
}

.shop-section-head h2 {
  margin: 0;
  font-family: var(--s-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shop-section-head p {
  margin: 0.3rem 0 0;
  color: var(--s-mute);
}

.shop-section-kicker {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--s-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop-link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--s-ink);
  border-bottom: 1px solid var(--s-ink);
  padding-bottom: 1px;
}

.shop-link-more:hover { color: var(--s-accent); border-color: var(--s-accent); }

/* ========== Surfaces ========== */
.shop-panel {
  background: var(--s-surface);
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  padding: 1.35rem;
}

.shop-form-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--s-line);
}

.shop-form-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.shop-form-section h3,
.shop-form-section h4 {
  margin: 0 0 1rem;
  font-family: var(--s-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-summary-list {
  display: grid;
  gap: 0.7rem;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.92rem;
}

.shop-summary-row.is-total {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--s-line);
  font-size: 1.05rem;
  font-weight: 800;
}

.shop-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--s-surface);
  border: 1px dashed var(--s-line-2);
  border-radius: var(--s-radius-md);
}

.shop-empty i {
  font-size: 2.2rem;
  color: var(--s-mute);
  display: block;
  margin-bottom: 0.75rem;
}

.shop-empty h3,
.shop-empty h4 {
  margin: 0 0 0.4rem;
  font-family: var(--s-display);
}

.shop-empty p { color: var(--s-mute); margin: 0 0 1.25rem; }

/* ========== Alerts / badges ========== */
.shop-alert {
  padding: 0.85rem 1rem;
  border-radius: var(--s-radius);
  margin-bottom: 1rem;
  font-weight: 650;
  border: 1px solid transparent;
  border-inline-start-width: 3px;
}

.shop-alert-success { background: var(--s-ok-soft); color: var(--s-ok); border-color: #b7e0c8; }
.shop-alert-error { background: var(--s-danger-soft); color: var(--s-danger); border-color: #f0c0c0; }
.shop-alert-info { background: var(--s-info-soft); color: var(--s-info); border-color: #b9d7e3; }
.shop-alert-warning { background: var(--s-warn-soft); color: var(--s-warn); border-color: #f0d4a8; }

.shop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.shop-badge-sale { background: var(--s-accent); color: #fff; }
.shop-badge-stock { background: var(--s-ok-soft); color: var(--s-ok); }
.shop-badge-out { background: var(--s-danger-soft); color: var(--s-danger); }

/* ========== Forms ========== */
.form-label {
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
  color: var(--s-ink-2);
}

.form-control,
.form-select,
.shop-panel .form-control,
.shop-panel .form-select {
  border-radius: var(--s-radius);
  border-color: var(--s-line-2);
  padding: 0.7rem 0.85rem;
  min-height: 44px;
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--s-accent);
  box-shadow: 0 0 0 3px var(--s-accent-soft);
}

.form-check-input:checked {
  background-color: var(--s-accent);
  border-color: var(--s-accent);
}

/* ========== Tables ========== */
.shop-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-table th,
.shop-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--s-line);
  vertical-align: middle;
  text-align: start;
}

.shop-table th {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--s-mute);
  background: #fafafa;
}

.shop-table tbody tr:hover { background: #fafafa; }

.shop-cart-lines {
  display: grid;
  gap: 0.85rem;
}

.shop-cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
}

.shop-cart-line img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--s-radius);
  background: #f0f0f0;
}

.shop-cart-line-meta { min-width: 0; }
.shop-cart-line-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.shop-cart-line-price {
  font-family: var(--s-display);
  font-weight: 700;
  font-size: 1rem;
}

/* ========== Filters toolbar ========== */
.shop-filters {
  display: grid;
  gap: 1.25rem;
}

.shop-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
  align-items: end;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
}

.shop-filter-bar .shop-filter-actions {
  display: flex;
  gap: 0.4rem;
  align-items: end;
}

.shop-filter-bar .shop-filter-actions .shop-btn { width: 100%; }

.shop-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--s-mute);
  font-size: 0.86rem;
  font-weight: 650;
}

/* ========== Product grids / cards ========== */
.shop-grid {
  display: grid;
  gap: 1rem;
}

.shop-grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-grid-features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-grid-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.shop-product-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--s-line);
  border-radius: 0;
  overflow: hidden;
  transition: opacity .2s ease;
}

.shop-product-card:hover { opacity: 0.92; }

.shop-product-media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  background: #ececec;
  text-decoration: none;
}

.shop-product-media img,
.shop-product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .2s ease;
}

.shop-product-badges {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}

.shop-product-favorite { display: none; }

.shop-product-quick {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  background: rgba(20, 20, 20, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity .2s ease;
}

.shop-product-card:hover .shop-product-quick { opacity: 1; }

.shop-product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.15rem 1.1rem;
  flex: 1;
}

.shop-product-meta {
  color: var(--s-mute);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-product-title {
  display: -webkit-box;
  min-height: 2.6em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--s-ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.shop-product-title:hover { color: var(--s-accent); }

.shop-product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.shop-product-price-current {
  font-family: var(--s-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-product-price-old {
  color: var(--s-mute);
  font-size: 0.8rem;
  text-decoration: line-through;
}

.shop-product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 0.4rem;
  margin-top: auto;
}

.shop-product-actions form { min-width: 0; }

.shop-product-add,
.shop-product-details-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--s-ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  transition: .15s ease;
}

.shop-product-add {
  width: 100%;
  background: var(--s-ink);
  color: #fff;
}

.shop-product-add:hover { background: var(--s-accent); border-color: var(--s-accent); color: #fff; }
.shop-product-add:disabled {
  background: #ddd;
  border-color: #ddd;
  color: #888;
  cursor: not-allowed;
}

.shop-product-details-btn {
  background: #fff;
  color: var(--s-ink);
}

.shop-product-details-btn:hover {
  border-color: var(--s-accent);
  color: var(--s-accent);
}

.shop-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.shop-price .current {
  font-family: var(--s-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--s-ink);
}

.shop-price .old {
  color: var(--s-mute);
  text-decoration: line-through;
}

.shop-product-display-name { line-height: 1.4; }
.shop-product-display-color {
  display: block;
  margin-top: 0.1rem;
  color: var(--s-mute);
  font-size: 0.85em;
  font-weight: 600;
}

/* ========== Home — editorial composition ========== */
.shop-announce {
  background: #fff;
  border-bottom: 1px solid var(--s-line);
  padding: 0.7rem 0;
  font-size: 0.86rem;
  font-weight: 650;
  text-align: center;
}

.shop-announce strong { color: var(--s-accent); }

.shop-spotlight {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 520px;
  background: #fff;
  border-bottom: 1px solid var(--s-line);
}

.shop-spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, #fff 0%, #f9f9f7 100%);
}

.shop-spotlight-brand {
  margin: 0 0 0.75rem;
  font-family: var(--s-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 10ch;
}

.shop-spotlight-title {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.45;
  max-width: 22ch;
}

.shop-spotlight-text {
  margin: 1rem 0 0;
  color: var(--s-mute);
  max-width: 34rem;
  line-height: 1.8;
}

.shop-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.shop-spotlight-media {
  position: relative;
  min-height: 420px;
  background: #1a1a1a center / cover no-repeat;
}

.shop-spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.15), transparent 40%);
}

.shop-chip-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  scrollbar-width: none;
}

.shop-chip-rail::-webkit-scrollbar { display: none; }

.shop-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 1px solid var(--s-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--s-ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  transition: .15s ease;
}

.shop-chip:hover,
.shop-chip.active {
  background: var(--s-chrome);
  border-color: var(--s-chrome);
  color: #fff;
}

.shop-h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shop-h-scroll > * { scroll-snap-align: start; }

.shop-faq {
  display: grid;
  gap: 0;
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: var(--s-radius-md);
  overflow: hidden;
}

.shop-faq details {
  border-bottom: 1px solid var(--s-line);
  padding: 0;
}

.shop-faq details:last-child { border-bottom: 0; }

.shop-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.shop-faq summary::-webkit-details-marker { display: none; }
.shop-faq summary::after { content: "+"; font-size: 1.2rem; color: var(--s-mute); }
.shop-faq details[open] summary::after { content: "−"; }
.shop-faq details p {
  margin: 0;
  padding: 0 1.2rem 1.1rem;
  color: var(--s-mute);
  line-height: 1.8;
}

.shop-cta-strip {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.75rem 2rem;
  background: var(--s-chrome);
  color: #fff;
  border-radius: var(--s-radius-md);
}

.shop-cta-strip h2 {
  margin: 0;
  font-family: var(--s-display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
}

.shop-cta-strip p {
  margin: 0.4rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.shop-home-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--s-mute);
  border: 1px dashed var(--s-line-2);
  background: #fff;
}

/* ========== PDP ========== */
.shop-pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  overflow: hidden;
}

.shop-pdp-gallery {
  background: #ececec;
  padding: 1rem;
  border-inline-end: 1px solid var(--s-line);
}

.shop-pdp-buy {
  padding: 1.5rem 1.35rem 1.75rem;
}

.shop-main-image-wrap {
  position: relative;
  background: #ececec;
}

.shop-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.shop-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--s-ink);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--s-shadow);
}

.shop-gallery-prev { inset-inline-start: 10px; }
.shop-gallery-next { inset-inline-end: 10px; }

.shop-gallery-counter {
  position: absolute;
  bottom: 10px;
  inset-inline-start: 10px;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.shop-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.shop-gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--s-radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.shop-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-gallery-thumb.is-active,
.shop-gallery-thumb:hover { border-color: var(--s-accent); }

.shop-product-page-title {
  font-family: var(--s-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.shop-product-description { line-height: 1.85; color: var(--s-mute); }

.shop-variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shop-variant-btn {
  min-height: 38px;
  padding: 0 0.85rem;
  border: 1px solid var(--s-line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--s-ink);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.shop-variant-btn:hover,
.shop-variant-btn.is-selected,
.shop-variant-btn.is-active {
  border-color: var(--s-ink);
  background: var(--s-ink);
  color: #fff;
}

.shop-qty-control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--s-line-2);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.shop-qty-btn {
  width: 40px;
  border: 0;
  background: #f4f4f4;
  color: var(--s-ink);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.shop-qty-input {
  width: 56px;
  border: 0;
  border-inline: 1px solid var(--s-line);
  text-align: center;
  font-weight: 800;
  outline: none;
}

.shop-mobile-bar {
  display: none;
  position: fixed;
  bottom: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px));
  inset-inline: 0;
  z-index: 1140;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--s-line);
  padding: 0.65rem 0.85rem;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
}

.shop-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.shop-step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--s-line);
  color: var(--s-mute);
  font-size: 0.8rem;
  font-weight: 700;
}

.shop-step.is-active {
  background: var(--s-chrome);
  border-color: var(--s-chrome);
  color: #fff;
}

.shop-step.is-done {
  border-color: var(--s-ok);
  color: var(--s-ok);
}

.shop-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.shop-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--s-line);
}

.shop-contact-item:last-child { border-bottom: 0; }

.shop-contact-item i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--s-paper);
  color: var(--s-accent);
  flex: 0 0 36px;
}

.shop-success-hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  margin-bottom: 1.25rem;
}

.shop-success-hero i {
  font-size: 2.75rem;
  color: var(--s-ok);
}

/* ========== Footer ========== */
.shop-footer {
  margin-top: auto;
  background: var(--s-chrome);
  color: rgba(255, 255, 255, 0.7);
}

.shop-footer-main { padding: 3rem 0 2rem; }

.shop-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 2rem;
}

.shop-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  color: #fff;
}

.shop-footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--s-radius);
  background: #fff;
}

.shop-footer-brand h3 {
  margin: 0;
  font-family: var(--s-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.shop-footer-brand small {
  display: block;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
}

.shop-footer-about {
  margin: 0 0 1rem;
  max-width: 340px;
  font-size: 0.86rem;
  line-height: 1.85;
}

.shop-footer h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-footer-links { display: grid; gap: 0.55rem; }

.shop-footer-links a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  width: fit-content;
}

.shop-footer-links a:hover { color: #fff; }

.shop-footer-contact { display: grid; gap: 0.7rem; }
.shop-footer-contact-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.6;
}

.shop-footer-contact-item i { color: var(--s-accent); margin-top: 0.15rem; }

.shop-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.shop-footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #333;
  border-radius: 999px;
  color: #fff;
}

.shop-footer-social a:hover {
  border-color: var(--s-accent);
  background: var(--s-accent);
}

.shop-footer-whatsapp {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: #1f8f52;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.shop-footer-whatsapp:hover { color: #fff; }

.shop-footer-bottom {
  border-top: 1px solid #2a2a2a;
}

.shop-footer-bottom-inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}

.shop-footer-bottom-links { display: flex; gap: 1rem; }
.shop-footer-bottom-links a { color: rgba(255, 255, 255, 0.5); }
.shop-footer-bottom-links a:hover { color: #fff; }

.shop-footer a { color: rgba(255, 255, 255, 0.75); }
.shop-footer a:hover { color: #fff; }

/* ========== Toast / WhatsApp float ========== */
.shop-toast {
  position: fixed;
  bottom: calc(24px + var(--s-dock-h));
  left: 24px;
  z-index: 2000;
  display: none;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.85rem 1.05rem;
  background: var(--s-chrome);
  color: #fff;
  border-radius: var(--s-radius-md);
  border-inline-start: 3px solid var(--s-accent);
  font-weight: 700;
  box-shadow: var(--s-shadow);
}

.shop-toast.show { display: block; animation: shopRise .3s ease; }

.shop-whatsapp-float {
  position: fixed;
  bottom: calc(24px + var(--s-dock-h));
  right: 24px;
  z-index: 1500;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1f8f52;
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 10px 24px rgba(31, 143, 82, 0.35);
}

.shop-whatsapp-float:hover { color: #fff; transform: translateY(-2px); }

[data-reveal],
[data-home-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible,
[data-home-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes shopRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .shop-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .shop-footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 992px) {
  .shop-container {
    width: min(var(--s-max), calc(100% - 1.5rem));
  }

  .shop-masthead-top {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    gap: 0.65rem 0.75rem;
    min-height: 0;
    padding-block: 0.7rem;
  }

  .shop-brand { grid-area: brand; min-width: 0; }
  .shop-brand-text strong {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    font-size: 1rem;
  }
  .shop-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }

  .shop-actions { grid-area: actions; }

  .shop-search {
    grid-area: search;
    max-width: none;
    margin-inline: 0;
    height: 42px;
    width: 100%;
  }

  .shop-spotlight { grid-template-columns: 1fr; min-height: 0; }
  .shop-spotlight-media { min-height: 240px; order: -1; }
  .shop-spotlight-copy { padding: 1.5rem 1.15rem 1.75rem; }
  .shop-spotlight-brand { font-size: clamp(2rem, 10vw, 2.8rem); max-width: none; }
  .shop-spotlight-title { max-width: none; font-size: 1.05rem; }

  .shop-pdp { grid-template-columns: 1fr; }
  .shop-pdp-gallery { border-inline-end: 0; border-bottom: 1px solid var(--s-line); padding: 0.75rem; }
  .shop-pdp-buy { padding: 1.15rem 1rem 1.35rem; }

  .shop-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .shop-grid-features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-contact-grid { grid-template-columns: 1fr; }
  .shop-cta-strip {
    grid-template-columns: 1fr;
    padding: 1.25rem 1.15rem;
  }

  .shop-header-whatsapp { display: none; }
  .shop-menu-toggle { display: inline-flex; }

  .shop-masthead-nav {
    display: none;
    border-top: 0;
  }

  .shop-masthead-nav.is-open {
    display: block;
    position: absolute;
    inset-inline: 0.75rem;
    top: calc(100% + 0.35rem);
    z-index: 1200;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: var(--s-radius-md);
    box-shadow: var(--s-shadow);
    padding: 0.5rem;
    max-height: min(70vh, 420px);
    overflow-y: auto;
  }

  .shop-nav {
    display: block;
    overflow: visible;
  }

  .shop-nav > a,
  .shop-nav .shop-nav-dropdown-trigger {
    width: 100%;
    justify-content: space-between;
    border-bottom: 0;
    min-height: 44px;
    padding-inline: 0.75rem;
  }

  .shop-nav-dropdown-menu {
    position: static;
    width: 100%;
    display: none;
    margin-top: 0.25rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .shop-nav-dropdown.is-open .shop-nav-dropdown-menu { display: block; }

  .shop-section { padding: 2rem 0; }
  .shop-page { padding: 1.25rem 0 2rem; }
  .shop-page-head,
  .shop-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .shop-page-head .shop-btn,
  .shop-section-head .shop-link-more {
    align-self: stretch;
    justify-content: center;
  }

  .shop-h-scroll {
    grid-auto-columns: minmax(160px, 70vw);
    gap: 0.75rem;
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .shop-chip-rail {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
  }

  .shop-footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .shop-footer-grid > div:last-child { grid-column: auto; }
  .shop-footer-main { padding: 2.25rem 0 1.5rem; }

  .shop-shell,
  .shop-main,
  .shop-page,
  .shop-spotlight,
  .shop-pdp,
  .shop-grid,
  .shop-grid-products,
  .shop-product-card,
  .row {
    max-width: 100%;
  }

  .shop-grid-products > *,
  .shop-h-scroll > * {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  :root {
    --s-dock-h: 60px;
  }

  body.shop-body {
    padding-bottom: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px) + 8px);
  }

  .shop-main { padding-bottom: 1rem; }

  .shop-container {
    width: min(var(--s-max), calc(100% - 1.25rem));
  }

  .shop-dock {
    display: grid;
    height: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .shop-dock a {
    font-size: 0.62rem;
    gap: 0.1rem;
  }

  .shop-dock a i { font-size: 1.15rem; }

  .shop-dock .shop-cart-count {
    top: 4px;
    inset-inline-end: calc(50% - 16px);
  }

  .shop-cart-btn { display: none; }

  .shop-brand-text span { display: none; }

  .shop-brand-text strong {
    max-width: 48vw;
    font-size: 0.95rem;
  }

  .shop-icon-btn {
    width: 40px;
    height: 40px;
  }

  .shop-announce {
    padding: 0.65rem 0.85rem;
    font-size: 0.78rem;
    line-height: 1.55;
    text-align: start;
  }

  .shop-spotlight-media { min-height: 200px; }

  .shop-spotlight-actions { flex-direction: column; }
  .shop-spotlight-actions .shop-btn { width: 100%; }

  .shop-product-card-body {
    padding: 0.7rem 0.1rem 0.95rem;
    gap: 0.35rem;
  }

  .shop-product-title {
    min-height: 2.4em;
    font-size: 0.8rem;
  }

  .shop-product-price-current { font-size: 0.92rem; }

  .shop-product-actions {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 0.35rem;
  }

  .shop-product-add,
  .shop-product-details-btn {
    min-height: 36px;
    font-size: 0.72rem;
  }

  .shop-product-add span { display: none; }
  .shop-product-quick { display: none; }

  .shop-cart-line {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 0.75rem;
    gap: 0.7rem;
  }

  .shop-cart-line img {
    width: 64px;
    height: 64px;
  }

  .shop-cart-line-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
  }

  .shop-cart-line-actions form.d-flex {
    flex: 1 1 auto;
  }

  .shop-steps { gap: 0.4rem; }
  .shop-step {
    font-size: 0.72rem;
    padding-inline: 0.65rem;
  }

  .shop-panel { padding: 1rem; }

  .shop-filter-bar {
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .shop-filter-bar .shop-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .shop-results-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .shop-footer-bottom-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 0;
  }

  .shop-mobile-bar {
    display: flex;
    bottom: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px));
    padding: 0.55rem 0.75rem;
  }

  .shop-mobile-bar .shop-btn {
    min-height: 42px;
    font-size: 0.82rem;
    padding-inline: 0.7rem;
  }

  body:has(.shop-mobile-bar) {
    padding-bottom: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px) + 64px);
  }

  .shop-whatsapp-float {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    right: 12px;
    bottom: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px) + 72px);
  }

  .shop-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: calc(var(--s-dock-h) + env(safe-area-inset-bottom, 0px) + 72px);
  }

  .shop-gallery-thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .shop-gallery-thumb {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
  }

  .shop-btn-lg {
    min-height: 46px;
    width: 100%;
  }

  .shop-page-head h1,
  .shop-page-head h2 { font-size: 1.45rem; }

  .shop-section-head h2 { font-size: 1.25rem; }

  .shop-faq summary {
    padding: 0.95rem 1rem;
    font-size: 0.92rem;
  }

  .shop-faq details p { padding-inline: 1rem; }

  .shop-success-hero { padding: 1.75rem 1rem; }

  .shop-qty-control { width: 100%; max-width: 160px; }
  .shop-qty-input { flex: 1; width: auto; }
}

@media (max-width: 480px) {
  .shop-grid-products { gap: 0.55rem; }
  .shop-product-media { padding: 0.45rem; }
  .shop-h-scroll { grid-auto-columns: minmax(148px, 68vw); }
  .shop-brand-text strong { max-width: 40vw; }
  .shop-dock a span { font-size: 0.58rem; }
}
