:root {
  color-scheme: light;
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #f2f5f8;
  --ink: #0f172a;
  --muted: #5f6b7a;
  --accent: #1fa3a6;
  --accent-dark: #0b6f72;
  --accent-2: #f97316;
  --border: #d7e0ea;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f3f6f9;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  padding: 22px clamp(16px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2fr) minmax(200px, 1fr);
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-logo {
  width: 120px;
  height: auto;
}

.brand h1 {
  font-size: clamp(20px, 2.2vw, 30px);
  margin: 0;
}

.brand span {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 14px;
}

.header-search {
  display: flex;
  justify-content: center;
}

.search-box {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  width: min(680px, 100%);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.search-box select,
.search-box input {
  border: none;
  padding: 12px 16px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 14px;
}

.search-box input {
  background: var(--surface);
}

.search-box button {
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.hotline {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.hotline strong {
  font-size: 16px;
  color: var(--ink);
}

.cart-link {
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  font-weight: 600;
}

.admin-link {
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--accent-dark);
  text-decoration: none;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.admin-link:hover {
  background: var(--accent);
  color: #fff;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
}

.category-bar {
  display: flex;
  gap: 12px;
  padding: 14px clamp(16px, 4vw, 52px);
  background: var(--accent);
  color: white;
  overflow-x: auto;
}

.category-pill {
  background: transparent;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

/* Active state on teal desktop bar */
.category-bar .category-pill.active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  opacity: 1;
}

main {
  padding: 22px clamp(16px, 4vw, 52px) 90px;
}

.catalog {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 24px;
}

.filters {
  position: sticky;
  top: 18px;
  align-self: start;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow);
}

.filters-collapsible {
  border: none;
}

.filters-collapsible summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  font-weight: 600;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.filters-collapsible summary::-webkit-details-marker {
  display: none;
}

.filters-body {
  margin-top: 12px;
}

.filters h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-group label {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 14px;
  background: #f8fafc;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.button-row button {
  flex: 1;
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 12px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
}
.button-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(31, 163, 166, 0.35);
}
.button-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.button-ghost {
  background: #e2e8f0;
  color: #1e293b;
}

.button-secondary {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
}
.button-secondary:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent-dark);
  transform: translateY(-2px);
}
.button-secondary:active {
  transform: translateY(0);
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-header h3 {
  margin: 0;
  font-size: 20px;
}

.catalog-header span {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  content-visibility: auto;
  /* Approximate card height so browser reserves correct space off-screen */
  contain-intrinsic-size: 0 420px;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.image-wrap {
  background: var(--surface-2);
  position: relative;
  overflow: hidden;
  /* Reserve exact space before image loads → zero CLS */
  aspect-ratio: 1 / 1;
}

.image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

.image-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-2);
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 12px;
}

.sold-out {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #111827;
  color: white;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 12px;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.brand-link {
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.product-body h4 {
  font-size: 15px;
  margin: 0;
  line-height: 1.3;
}

.product-category {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.product-price del {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: #9aa5b1;
  font-weight: 400;
}

.product-desc {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.empty-state {
  padding: 36px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  text-align: center;
  background: #f8fafc;
  color: var(--muted);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.site-footer {
  padding: 30px clamp(16px, 4vw, 52px);
  border-top: 1px solid var(--border);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--muted);
  background: var(--surface);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  transform: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  height: 72px;
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 10;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px 10px;
  height: 100%;
  font-weight: 700;
  font-size: 12px;
  color: #ffffff;
}

.bottom-nav .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav svg {
  width: 18px;
  height: 18px;
}

.nav-call { background: #e53935; }
.nav-whatsapp { background: #10b981; }
.nav-sms { background: #1d4ed8; }
.nav-messenger { background: #7c3aed; }
.nav-map { background: #0f9d58; }

.bottom-nav a svg,
.bottom-nav a span {
  opacity: 1;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ── Product page image — always square, never stretches ─────────────────── */
.product-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-2);
}

.product-img-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 0;
}

.product-info h2 {
  margin-top: 0;
}

.product-meta {
  display: grid;
  gap: 12px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--muted);
}

.product-meta strong {
  color: var(--ink);
  font-size: 22px;
}

.product-meta del:empty {
  display: none;
}

.product-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.quantity {
  width: 70px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.related-card {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
}

/* Square image in related cards */
.related-card picture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
}

.related-card picture img,
.related-card > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cart-page {
  background: var(--surface);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.cart-item img {
  border-radius: 10px;
  background: var(--surface-2);
  padding: 6px;
  object-fit: cover;
  width: 80px;
  height: 60px;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cart-item-name  { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cart-item-price { font-size: 13px; color: var(--muted); }

.cart-line-total { font-weight: 700; white-space: nowrap; font-size: 15px; }

/* Quantity stepper */
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px 8px;
}
.cart-qty-btn {
  width: 26px; height: 26px;
  border: none;
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  line-height: 1;
  flex-shrink: 0;
}
.cart-qty-btn:hover  { background: var(--accent); color: #fff; transform: scale(1.1); }
.cart-qty-btn:active { transform: scale(0.95); }
.cart-qty-num {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

/* Remove button */
.cart-remove-btn {
  width: 30px; height: 30px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.cart-remove-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: scale(1.1);
}

.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
  font-size: 15px;
}
.cart-empty a { color: var(--accent); text-decoration: none; font-weight: 600; }
.cart-empty a:hover { text-decoration: underline; }

.cart-summary {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 18px;
  border-top: 2px solid var(--border);
}

/* Cart responsive — stack on narrow screens */
@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 70px 1fr auto;
    grid-template-rows: auto auto;
  }
  .cart-item img         { grid-row: 1 / 3; width: 70px; height: 52px; }
  .cart-item-info        { grid-column: 2; }
  .cart-qty-ctrl         { grid-column: 2; grid-row: 2; justify-self: start; }
  .cart-line-total       { grid-row: 1; grid-column: 3; align-self: start; font-size: 13px; }
  .cart-remove-btn       { grid-row: 2; grid-column: 3; align-self: end; justify-self: end; }
}

/* ── MOBILE QUICK NAV (hidden on desktop) ────────────────────────────────── */
.mobile-quick-nav {
  display: none;
}

.mobile-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-phone-btn:hover { background: var(--accent-dark); }

.mobile-cat-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mobile-cat-nav .category-pill {
  width: 100%;
  text-align: center;
  font-size: 12px;
  padding: 8px 6px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mobile-cat-nav .category-pill:hover,
.mobile-cat-nav .category-pill:active,
.mobile-cat-nav .category-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── BANNER CAROUSEL ─────────────────────────────────────────────────────── */
.banner-section {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.banner-slides {
  width: 100%;
}

.banner-slide {
  display: none;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.banner-slide.active {
  display: block;
}

.banner-slide img,
.banner-slide picture img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  padding: 32px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.banner-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-price {
  font-size: 14px;
  font-weight: 600;
  color: #7fffd4;
}

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, width 0.2s;
}
.banner-dot.active {
  background: #fff;
  width: 20px;
  border-radius: 4px;
}

.banner-prev,
.banner-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--ink);
  transition: background 0.15s, transform 0.15s;
}
.banner-prev { left: 12px; }
.banner-next { right: 12px; }
.banner-prev:hover,
.banner-next:hover { background: #fff; transform: translateY(-50%) scale(1.08); }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────────────────────────── */

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .product-page {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* ── Compact 2-col mobile header: logo | cart ── */
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    padding: 10px 14px;
    gap: 8px;
  }

  .brand {
    grid-column: 1;
    gap: 10px;
  }

  .brand-logo {
    width: 70px;
  }

  .brand h1 {
    font-size: 14px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
  }

  /* Hide search + hotline — mobile-quick-nav replaces them */
  .header-search {
    display: none;
  }

  .hotline {
    display: none;
  }

  /* Hide admin link */
  .admin-link {
    display: none;
  }

  /* Cart link — more prominent on mobile */
  .cart-link {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    background: var(--surface-2);
    border-radius: 999px;
    border: 1px solid var(--border);
  }

  /* Show mobile quick nav */
  .mobile-quick-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }

  /* Hide desktop category bar — mobile-quick-nav replaces it */
  .category-bar {
    display: none;
  }

  /* ── Hide Add to cart on product listing cards ── */
  .card-actions .add-to-cart {
    display: none;
  }

  /* View details takes full width since Add to cart is hidden */
  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions .button-secondary {
    font-size: 11px;
    padding: 6px 6px;
    width: 100%;
    display: block;
  }

  .search-box {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .search-box select,
  .search-box input,
  .search-box button {
    width: 100%;
  }

  .catalog {
    grid-template-columns: 1fr;
  }

  /* Hide filter panel entirely on mobile — category pills replace it */
  .filters {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;            /* was 20px — halve the gutter */
    align-items: start;  /* cards size to content, no blank-space stretching */
  }

  /* Kill the equal-height stretching that creates blank space */
  .product-card {
    min-height: unset;
    contain-intrinsic-size: 0 240px;
  }

  .product-body {
    flex: none;          /* don't grow — content dictates height */
  }

  .filters-collapsible[open] .filters-body {
    padding-bottom: 6px;
  }

  .filters {
    padding: 12px;
  }

  /* Shrink banner on mobile */
  .banner-slide img,
  .banner-slide picture img {
    height: 200px;
  }

  .banner-prev,
  .banner-next {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  /* ── Compact product cards on mobile ── */
  /* Hide everything except name, price, button */
  .product-desc,
  .product-category,
  .product-card .brand-link {
    display: none;
  }

  .product-body {
    padding: 6px 8px 8px;
    gap: 3px;
  }

  /* Hard-clamp name to 2 lines, tight line-height */
  .product-body h4 {
    font-size: 11px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
  }

  .product-price {
    font-size: 12px;
    gap: 3px;
    flex-wrap: wrap;
  }

  .product-price del {
    font-size: 10px;
  }

  .card-actions {
    margin-top: 3px;
  }

  .card-actions .button-secondary {
    font-size: 11px;
    padding: 6px 6px;
  }

  /* ── Compact product page on mobile ── */
  .product-page {
    padding: 14px;
    gap: 16px;
  }

  /* Product image: slightly smaller on narrow phones */
  .product-img-wrap {
    border-radius: 12px;
  }

  /* Stack product info tighter */
  .product-info h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .product-meta {
    gap: 6px;
    font-size: 14px;
  }

  .product-meta strong {
    font-size: 18px;
  }

  .product-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Related products — 2 per row, compact */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .related-card {
    padding: 8px;
    gap: 5px;
    font-size: 11px;
  }
}

/* Single column only on truly tiny screens (< 300px — very rare) */
@media (max-width: 300px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
