/* =========================================================
   LAKPRO — Preview stylesheet
   Mobile-first, BEM-ish naming, design tokens in :root
   ========================================================= */

:root {
  /* Colors */
  --ink-1000: #0F1115;
  --ink-800:  #1B1E25;
  --ink-600:  #4A4E58;
  --ink-400:  #8B909B;
  --line-200: #E5E7EB;
  --line-100: #F3F4F6;
  --surface:  #FAFAFA;
  --white:    #FFFFFF;
  --red-600:  #E11D2A;
  --red-700:  #C8101D;
  --red-50:   #FEEAEC;
  --success:  #18A957;
  --warning:  #E89B19;
  --error:    #DC2626;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-24: 96px;

  /* Radius */
  --r-input: 6px;
  --r-btn:   10px;
  --r-card:  14px;
  --r-pill:  999px;

  /* Shadows */
  --shadow-card:  0 1px 2px rgba(15,17,21,.04), 0 1px 3px rgba(15,17,21,.06);
  --shadow-hover: 0 8px 24px rgba(15,17,21,.08);
  --shadow-modal: 0 20px 60px rgba(15,17,21,.18);

  /* Layout */
  --container: 1280px;
  --header-h: 72px;
  --topbar-h: 36px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-1000);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: var(--s-12) 0; }
@media (min-width: 768px) { .section { padding: var(--s-16) 0; } }
.section--tight { padding: var(--s-8) 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-6); }
.section-head__title { font-size: 24px; }
@media (min-width: 768px) { .section-head__title { font-size: 28px; } }
.section-head__link { font-size: 14px; font-weight: 600; color: var(--ink-1000); display: inline-flex; align-items: center; gap: 6px; }
.section-head__link:hover { color: var(--red-600); }

/* ===== Topbar ===== */
.topbar {
  background: var(--ink-1000);
  color: var(--white);
  font-size: 13px;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); width: 100%; }
.topbar__usps { display: none; gap: var(--s-6); }
@media (min-width: 768px) { .topbar__usps { display: flex; } }
.topbar__usp { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); }
.topbar__usp svg { width: 14px; height: 14px; color: var(--red-600); }
.topbar__right { display: flex; gap: var(--s-4); }
.topbar__link { color: rgba(255,255,255,.85); }
.topbar__link:hover { color: var(--white); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line-200);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  height: var(--header-h);
}
@media (min-width: 1024px) {
  .header__inner { grid-template-columns: auto 1fr auto auto; gap: var(--s-6); }
}
.header__brand { font-weight: 800; font-size: 22px; letter-spacing: 0.02em; }
.header__brand span { color: var(--red-600); }
.header__nav { display: none; }
@media (min-width: 1024px) { .header__nav { display: flex; gap: var(--s-6); } }
.header__nav a {
  font-size: 14px; font-weight: 500; color: var(--ink-800);
  padding: 8px 0; position: relative;
}
.header__nav a:hover { color: var(--red-600); }
.header__search {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 0 12px;
  height: 42px;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  max-width: 460px;
  flex: 1;
}
@media (min-width: 1024px) { .header__search { display: flex; } }
.header__search input { border: 0; background: transparent; flex: 1; outline: none; }
.header__search svg { color: var(--ink-400); width: 18px; height: 18px; }
.header__actions { display: flex; gap: var(--s-3); align-items: center; }
.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-input);
  position: relative;
  color: var(--ink-1000);
  transition: background .18s ease;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn__badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--red-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header__mobile-search {
  display: flex; align-items: center; gap: 8px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 0 12px;
  margin: 0 0 var(--s-3);
}
@media (min-width: 1024px) { .header__mobile-search { display: none; } }
.header__mobile-search input { border: 0; background: transparent; flex: 1; outline: none; }
.header__mobile-search svg { color: var(--ink-400); width: 18px; height: 18px; }

.header__menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .header__menu-toggle { display: none; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red-600); color: var(--white); }
.btn--primary:hover { background: var(--red-700); }
.btn--dark { background: var(--ink-1000); color: var(--white); }
.btn--dark:hover { background: var(--ink-800); }
.btn--outline { background: transparent; color: var(--ink-1000); border: 1px solid var(--line-200); }
.btn--outline:hover { border-color: var(--ink-1000); }
.btn--ghost { background: transparent; color: var(--ink-1000); }
.btn--ghost:hover { background: var(--surface); }
.btn--block { width: 100%; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 15px; }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn svg { width: 18px; height: 18px; }

/* ===== USP bar ===== */
.usp-bar {
  background: var(--surface);
  border-top: 1px solid var(--line-200);
  border-bottom: 1px solid var(--line-200);
}
.usp-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  padding: var(--s-5) 0;
}
@media (min-width: 768px) { .usp-bar__grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); } }
.usp {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.usp__icon {
  width: 36px; height: 36px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--red-600);
  flex-shrink: 0;
}
.usp__icon svg { width: 18px; height: 18px; }
.usp__title { font-weight: 600; color: var(--ink-1000); line-height: 1.2; }
.usp__sub { color: var(--ink-600); font-size: 12px; line-height: 1.3; }

/* ===== Hero ===== */
.hero { padding: var(--s-8) 0 var(--s-12); }
@media (min-width: 768px) { .hero { padding: var(--s-12) 0 var(--s-16); } }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--s-12); }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
}
.hero__title { font-size: 36px; }
@media (min-width: 768px) { .hero__title { font-size: 52px; } }
@media (min-width: 1280px) { .hero__title { font-size: 60px; } }
.hero__title em { font-style: normal; color: var(--red-600); }
.hero__sub {
  color: var(--ink-600);
  font-size: 17px;
  margin-top: var(--s-4);
  max-width: 520px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__meta { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-6); color: var(--ink-600); font-size: 13px; }
.hero__meta svg { width: 16px; height: 16px; color: var(--success); }

.hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #f7f7f8 0%, #ececef 100%);
  border-radius: var(--r-card);
  border: 1px solid var(--line-200);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero__visual::after {
  content: ""; position: absolute; inset: auto -20% -30% auto;
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225,29,42,.18), transparent 70%);
}
.hero__visual-svg { width: 75%; max-width: 480px; position: relative; z-index: 1; }
.hero__pill {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__pill svg { width: 14px; height: 14px; color: var(--red-600); }
.hero__pill--tl { top: 24px; left: 24px; }
.hero__pill--br { bottom: 24px; right: 24px; }

/* ===== Category cards ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); } }
.cat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  overflow: hidden;
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 180px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { border-color: var(--ink-1000); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cat-card__visual {
  width: 64px; height: 64px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--red-600);
}
.cat-card__visual svg { width: 32px; height: 32px; }
.cat-card__title { font-size: 16px; font-weight: 700; }
.cat-card__sub { font-size: 13px; color: var(--ink-600); }
.cat-card__more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-1000);
  display: inline-flex; align-items: center; gap: 4px;
}
.cat-card__more::after { content: "→"; transition: transform .18s ease; }
.cat-card:hover .cat-card__more { color: var(--red-600); }
.cat-card:hover .cat-card__more::after { transform: translateX(3px); }

/* ===== Product cards — desktop grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-3);
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Default card layout: desktop card style at 640px+ */
.product-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (min-width: 640px) {
  .product-card { flex-direction: column; }
}
.product-card:hover { border-color: var(--ink-1000); box-shadow: var(--shadow-hover); }

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex: 0 0 112px;
}
@media (min-width: 640px) { .product-card__media { flex: 1; } }
.product-card__media svg { width: 60%; max-width: 200px; }
.product-card__badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--ink-1000);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-pill);
}
.product-card__badge--red { background: var(--red-600); }
.product-card__wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  color: var(--ink-600);
  transition: color .18s ease, border-color .18s ease;
}
@media (min-width: 640px) { .product-card__wishlist { display: inline-flex; } }
.product-card__wishlist:hover { color: var(--red-600); border-color: var(--red-600); }
.product-card__wishlist svg { width: 16px; height: 16px; }

.product-card__body {
  padding: 14px;
  display: flex; flex-direction: column;
  flex: 1;
  gap: 6px;
  min-width: 0;
}
@media (min-width: 640px) { .product-card__body { padding: var(--s-4) var(--s-4) var(--s-5); gap: 8px; } }
.product-card__brand { font-size: 11px; font-weight: 600; color: var(--ink-400); letter-spacing: 0.06em; text-transform: uppercase; }
.product-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1000);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
@media (min-width: 640px) { .product-card__title { font-size: 15px; } }
.product-card__meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-600);
}
.product-card__stock { display: inline-flex; align-items: center; gap: 4px; }
.product-card__stock::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success);
}
.product-card__stock--low::before { background: var(--warning); }
.product-card__price-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
@media (min-width: 640px) { .product-card__price-row { padding-top: 8px; } }
.product-card__price { font-size: 16px; font-weight: 700; color: var(--ink-1000); }
.product-card__price-sub { font-size: 11px; color: var(--ink-600); display: block; font-weight: 400; }
.product-card__cta {
  width: 38px; height: 38px;
  background: var(--red-600);
  color: var(--white);
  border-radius: var(--r-input);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .18s ease;
  flex-shrink: 0;
}
.product-card__cta:hover { background: var(--red-700); }
.product-card__cta svg { width: 18px; height: 18px; }
.product-card__cta--variable { width: auto; padding: 0 14px; gap: 6px; font-size: 13px; font-weight: 600; }
.product-card__cta--variable svg { width: 14px; height: 14px; }

/* ===== Breadcrumbs ===== */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px;
  color: var(--ink-600);
  padding: var(--s-4) 0;
}
.crumbs a:hover { color: var(--red-600); }
.crumbs__sep { color: var(--ink-400); }
.crumbs__current { color: var(--ink-1000); font-weight: 500; }

/* ===== Category / shop page ===== */
.shop-header { padding: var(--s-4) 0 var(--s-6); }
.shop-header__title { font-size: 28px; }
@media (min-width: 768px) { .shop-header__title { font-size: 36px; } }
.shop-header__desc { color: var(--ink-600); margin-top: var(--s-3); max-width: 720px; }

.shop-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .shop-layout { grid-template-columns: 264px 1fr; gap: var(--s-8); }
}

/* Sidebar (filters) */
.filters { display: none; }
@media (min-width: 1024px) { .filters { display: block; } }
.filters__group { border-bottom: 1px solid var(--line-200); padding: var(--s-5) 0; }
.filters__group:first-child { padding-top: 0; }
.filters__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: var(--s-3);
  display: flex; justify-content: space-between; align-items: center;
}
.filters__title button { font-size: 12px; color: var(--ink-600); font-weight: 500; }
.filters__list { display: flex; flex-direction: column; gap: 10px; }
.filter-opt {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--ink-800);
  cursor: pointer;
}
.filter-opt input { accent-color: var(--red-600); width: 16px; height: 16px; }
.filter-opt__count { margin-left: auto; color: var(--ink-400); font-size: 12px; }
.filter-opt:hover { color: var(--red-600); }

.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-200);
  cursor: pointer;
  position: relative;
  transition: transform .18s ease;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch[data-checked] { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink-1000); }

/* Toolbar */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin-bottom: var(--s-5);
  flex-wrap: wrap;
}
.shop-toolbar__count { font-size: 13px; color: var(--ink-600); }
.shop-toolbar__right { display: flex; gap: var(--s-3); align-items: center; }
.shop-toolbar__sort {
  height: 40px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230F1115' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 12px center;
  font-size: 14px;
  appearance: none;
  cursor: pointer;
}
.shop-toolbar__filter-mobile {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  font-size: 14px; font-weight: 600;
}
@media (min-width: 1024px) { .shop-toolbar__filter-mobile { display: none; } }
.shop-toolbar__filter-mobile svg { width: 16px; height: 16px; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: var(--s-10); }
.pagination button, .pagination span {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: var(--white);
}
.pagination [aria-current="page"] { background: var(--ink-1000); color: var(--white); border-color: var(--ink-1000); }
.pagination button:hover { border-color: var(--ink-1000); }

/* ===== Filter drawer (mobile) ===== */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,17,21,.45);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0;
  z-index: 70;
  background: var(--white);
  width: min(420px, 92vw);
  box-shadow: var(--shadow-modal);
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.drawer--left { left: 0; transform: translateX(-105%); }
.drawer--left.is-open { transform: translateX(0); }
.drawer--right { right: 0; width: min(440px, 100vw); transform: translateX(105%); }
.drawer--right.is-open { transform: translateX(0); }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-200);
}
.drawer__title { font-size: 16px; font-weight: 700; }
.drawer__close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-input);
}
.drawer__close:hover { background: var(--surface); }
.drawer__close svg { width: 18px; height: 18px; }
.drawer__body { padding: var(--s-5); overflow-y: auto; flex: 1; }
.drawer__footer {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line-200);
  display: flex; gap: var(--s-3);
}

/* ===== Product detail page ===== */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-top: var(--s-3);
}
@media (min-width: 1024px) {
  .product { grid-template-columns: 1.1fr 1fr; gap: var(--s-12); padding-top: var(--s-5); }
}

.product__gallery { display: flex; flex-direction: column; gap: var(--s-3); }
.product__main-image {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.product__main-image svg { width: 60%; max-width: 380px; }
.product__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.product__thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .18s ease;
}
.product__thumb svg { width: 60%; }
.product__thumb[aria-current="true"] { border-color: var(--ink-1000); }
.product__thumb:hover { border-color: var(--ink-600); }

.product__info { display: flex; flex-direction: column; }
.product__brand { font-size: 12px; font-weight: 600; color: var(--ink-400); letter-spacing: 0.08em; text-transform: uppercase; }
.product__title { font-size: 28px; margin-top: 8px; }
@media (min-width: 768px) { .product__title { font-size: 36px; } }
.product__meta-row { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-3); font-size: 13px; color: var(--ink-600); flex-wrap: wrap; }
.product__rating { display: inline-flex; align-items: center; gap: 6px; }
.product__rating-stars { color: var(--warning); letter-spacing: 1px; }
.product__sku { color: var(--ink-600); }

.product__price-block { margin-top: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); }
.product__price { font-size: 32px; font-weight: 700; }
.product__price-tax { display: block; font-size: 13px; color: var(--ink-600); font-weight: 400; margin-top: 4px; }
.product__price-ex { color: var(--ink-600); font-size: 14px; margin-left: 8px; font-weight: 500; }
.product__stock-row { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); margin-top: var(--s-3); font-weight: 600; }
.product__stock-row svg { width: 16px; height: 16px; }

.product__short { color: var(--ink-600); margin-top: var(--s-5); line-height: 1.65; }

.product__variants { margin-top: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.variant-group__label {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600; margin-bottom: 8px;
}
.variant-group__label span:last-child { color: var(--ink-600); font-weight: 400; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-opt {
  min-width: 64px; height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.variant-opt:hover { border-color: var(--ink-1000); }
.variant-opt[aria-pressed="true"] { border-color: var(--ink-1000); background: var(--ink-1000); color: var(--white); }
.variant-opt[disabled] { color: var(--ink-400); text-decoration: line-through; cursor: not-allowed; opacity: .6; }

.product__buy-row { display: flex; gap: var(--s-3); margin-top: var(--s-6); align-items: stretch; }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-200);
  border-radius: var(--r-btn);
  height: 54px;
  overflow: hidden;
}
.qty button { width: 44px; height: 100%; font-size: 18px; color: var(--ink-1000); }
.qty button:hover { background: var(--surface); }
.qty input {
  width: 44px; height: 100%;
  border: 0; outline: 0; text-align: center;
  font-size: 15px; font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.product__usps {
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.product__usp {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  background: var(--white);
}
.product__usp svg { width: 16px; height: 16px; color: var(--red-600); }

.product__msds {
  margin-top: var(--s-4);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--line-200);
  border-radius: var(--r-input);
  font-size: 13px;
}
.product__msds svg { width: 20px; height: 20px; color: var(--ink-1000); }
.product__msds a { font-weight: 600; color: var(--ink-1000); margin-left: auto; }
.product__msds a:hover { color: var(--red-600); }

.product__payment-icons { display: flex; gap: 8px; margin-top: var(--s-4); align-items: center; }
.pay-icon {
  height: 28px; padding: 0 10px;
  background: var(--white); border: 1px solid var(--line-200); border-radius: 6px;
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--ink-600);
  letter-spacing: 0.04em;
}

/* Tabs */
.tabs { margin-top: var(--s-12); }
.tabs__nav {
  display: flex; gap: var(--s-2);
  border-bottom: 1px solid var(--line-200);
  overflow-x: auto;
}
.tabs__btn {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-600);
  position: relative;
  white-space: nowrap;
}
.tabs__btn[aria-selected="true"] { color: var(--ink-1000); }
.tabs__btn[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--red-600);
}
.tabs__panel { padding: var(--s-6) 0; display: none; }
.tabs__panel.is-active { display: block; }
.tabs__panel p { color: var(--ink-600); line-height: 1.7; max-width: 760px; }

.specs { display: grid; grid-template-columns: 1fr 2fr; gap: 1px; background: var(--line-200); border: 1px solid var(--line-200); border-radius: 10px; overflow: hidden; max-width: 760px; }
.specs dt, .specs dd { padding: 12px 16px; background: var(--white); font-size: 14px; margin: 0; }
.specs dt { color: var(--ink-600); }
.specs dd { font-weight: 500; }

/* ===== Cart sidebar ===== */
.cart-sidebar__head { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line-200); display: flex; justify-content: space-between; align-items: center; }
.cart-sidebar__body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-100);
  align-items: flex-start;
}
.cart-line__image {
  width: 72px; height: 72px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.cart-line__image svg { width: 65%; }
.cart-line__title { font-size: 13px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.cart-line__variant { font-size: 12px; color: var(--ink-600); margin-bottom: 8px; }
.cart-line__qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-200); border-radius: var(--r-input); height: 30px;
}
.cart-line__qty button { width: 28px; height: 100%; font-size: 14px; }
.cart-line__qty input { width: 32px; text-align: center; border: 0; background: transparent; height: 100%; font-size: 13px; font-weight: 600; }
.cart-line__price { font-weight: 700; font-size: 14px; text-align: right; }
.cart-line__remove { display: inline-flex; margin-top: 6px; font-size: 11px; color: var(--ink-600); }
.cart-line__remove:hover { color: var(--red-600); }
.cart-line__col-right { text-align: right; }

.cart-sidebar__foot { border-top: 1px solid var(--line-200); padding: var(--s-4) var(--s-5); background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.cart-sidebar__row { display: flex; justify-content: space-between; align-items: center; }
.cart-sidebar__sub { font-size: 13px; color: var(--ink-600); }
.cart-sidebar__total { font-size: 18px; font-weight: 700; }
.cart-sidebar__buttons { display: flex; gap: 10px; }
.cart-sidebar__note { font-size: 11px; color: var(--ink-600); text-align: center; }

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: 14px;
  box-shadow: var(--shadow-modal);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  z-index: 100;
  max-width: 92vw;
  width: 380px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { .toast { left: auto; right: 24px; transform: translate(0, 30px); } }
.toast.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
@media (min-width: 768px) { .toast.is-open { transform: translate(0, 0); } }
.toast__icon {
  width: 36px; height: 36px;
  background: var(--red-50);
  color: var(--red-600);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-size: 13px; font-weight: 700; }
.toast__sub { font-size: 12px; color: var(--ink-600); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.toast__actions { display: flex; gap: 6px; flex-shrink: 0; }
.toast__actions .btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }

/* ===== Cart page ===== */
.cart-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .cart-page { grid-template-columns: 1fr 380px; gap: var(--s-8); align-items: flex-start; }
}

.cart-list { display: flex; flex-direction: column; }
.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: var(--s-4);
  padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line-200);
  align-items: center;
}
.cart-row:first-child { border-top: 1px solid var(--line-200); }
@media (min-width: 768px) {
  .cart-row { grid-template-columns: 120px 1fr 120px 130px 130px 32px; }
}
.cart-row__image {
  width: 96px; height: 96px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .cart-row__image { width: 120px; height: 120px; } }
.cart-row__image svg { width: 65%; }
.cart-row__title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-row__brand { font-size: 12px; color: var(--ink-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.cart-row__variant { font-size: 13px; color: var(--ink-600); }
.cart-row__price-mobile { display: block; font-size: 14px; color: var(--ink-600); margin-top: 8px; }
@media (min-width: 768px) { .cart-row__price-mobile { display: none; } }
.cart-row__unit-price { display: none; font-size: 14px; }
@media (min-width: 768px) { .cart-row__unit-price { display: block; } }
.cart-row__qty-cell {
  display: flex; justify-content: flex-end;
}
@media (min-width: 768px) {
  .cart-row__qty-cell { justify-content: flex-start; }
  .cart-row .qty { height: 44px; }
}
.cart-row__sub { display: none; font-size: 16px; font-weight: 700; }
@media (min-width: 768px) { .cart-row__sub { display: block; } }
.cart-row__remove {
  grid-column: 3; grid-row: 1;
  align-self: flex-start;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-600);
  border-radius: var(--r-input);
}
@media (min-width: 768px) { .cart-row__remove { grid-column: auto; grid-row: auto; align-self: center; } }
.cart-row__remove:hover { color: var(--red-600); background: var(--surface); }

.cart-foot {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding-top: var(--s-5);
}
@media (min-width: 768px) { .cart-foot { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.cart-coupon { display: flex; gap: 8px; max-width: 360px; }
.cart-coupon input {
  flex: 1;
  height: 46px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 0 14px;
  outline: none;
}
.cart-coupon input:focus { border-color: var(--ink-1000); }

.cart-summary {
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  padding: var(--s-5);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.cart-summary__title { font-size: 18px; margin-bottom: var(--s-4); }
.cart-summary__row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 14px; color: var(--ink-800); }
.cart-summary__row--total { border-top: 1px solid var(--line-200); padding-top: 16px; margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--ink-1000); }
.cart-summary__total-tax { font-size: 11px; font-weight: 400; color: var(--ink-600); display: block; }
.cart-summary__cta { margin-top: var(--s-4); }
.cart-summary__trust { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-4); font-size: 12px; color: var(--ink-600); }
.cart-summary__trust div { display: flex; align-items: center; gap: 8px; }
.cart-summary__trust svg { width: 14px; height: 14px; color: var(--success); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-4);
}
.empty-state__icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--s-5);
  background: var(--surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-600);
}
.empty-state__icon svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: 24px; }
.empty-state p { color: var(--ink-600); margin-top: var(--s-3); max-width: 460px; margin-left: auto; margin-right: auto; }
.empty-state__ctas { margin-top: var(--s-5); display: inline-flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
.empty-state__suggestions { margin-top: var(--s-8); }
.empty-state__suggestions h3 { font-size: 14px; color: var(--ink-600); font-weight: 500; margin-bottom: var(--s-3); }
.empty-state__chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-800);
  background: var(--white);
}
.chip:hover { border-color: var(--ink-1000); }

/* ===== Checkout ===== */
.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .checkout { grid-template-columns: 1fr 400px; gap: var(--s-10); align-items: flex-start; }
}

.checkout__main { display: flex; flex-direction: column; gap: var(--s-6); }
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  padding: var(--s-5);
}
@media (min-width: 768px) { .checkout-card { padding: var(--s-6) var(--s-6); } }
.checkout-card__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: var(--s-4);
}
.checkout-card__num {
  width: 28px; height: 28px;
  background: var(--ink-1000);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.checkout-card__title { font-size: 18px; }

.cust-type {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-btn);
  margin-bottom: var(--s-5);
}
.cust-type__btn {
  height: 44px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ink-600);
  transition: background .18s ease, color .18s ease;
}
.cust-type__btn.is-active { background: var(--white); color: var(--ink-1000); box-shadow: var(--shadow-card); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid--full > * { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-800); }
.field label .optional { color: var(--ink-400); font-weight: 400; }
.field input, .field select, .field textarea {
  height: 46px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 0 14px;
  outline: none;
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field select { appearance: none; background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230F1115' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(225,29,42,.2);
}
.field--error input, .field--error select { border-color: var(--error); }
.field__error { font-size: 12px; color: var(--error); }
.field__hint { font-size: 12px; color: var(--ink-600); }

.payment-list { display: flex; flex-direction: column; gap: 8px; }
.payment-opt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.payment-opt:hover { border-color: var(--ink-1000); }
.payment-opt input { accent-color: var(--red-600); }
.payment-opt[data-checked="true"] { border-color: var(--ink-1000); background: var(--surface); }
.payment-opt__name { font-weight: 600; font-size: 14px; flex: 1; }
.payment-opt__logo {
  height: 26px;
  min-width: 40px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  color: var(--ink-600);
  padding: 0 8px;
}

.shipping-list { display: flex; flex-direction: column; gap: 8px; }

.checkout-summary {
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.checkout-summary__head { padding: var(--s-5); border-bottom: 1px solid var(--line-200); display: flex; justify-content: space-between; align-items: center; background: var(--white); }
.checkout-summary__head h3 { font-size: 16px; }
.checkout-summary__head a { font-size: 13px; font-weight: 600; color: var(--ink-1000); }
.checkout-summary__head a:hover { color: var(--red-600); }
.checkout-summary__lines { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); background: var(--white); border-bottom: 1px solid var(--line-200); max-height: 320px; overflow-y: auto; }
.summary-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.summary-line__img {
  width: 56px; height: 56px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line-200);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.summary-line__img svg { width: 60%; }
.summary-line__img::after {
  content: attr(data-qty);
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--ink-1000);
  color: var(--white);
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.summary-line__title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.summary-line__sub { font-size: 12px; color: var(--ink-600); margin-top: 2px; }
.summary-line__price { font-size: 13px; font-weight: 600; }

.checkout-summary__totals { padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: 8px; background: var(--white); }
.checkout-summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-800); }
.checkout-summary__row--total { padding-top: 12px; border-top: 1px solid var(--line-200); margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--ink-1000); }
.checkout-summary__row--total small { display: block; font-size: 11px; font-weight: 400; color: var(--ink-600); }

.checkout-place { padding: var(--s-5); background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.checkout-place__terms { font-size: 12px; color: var(--ink-600); display: flex; gap: 10px; align-items: flex-start; }
.checkout-place__terms input { accent-color: var(--red-600); margin-top: 3px; }

/* ===== Footer ===== */
.cta-band {
  background: var(--ink-1000);
  color: var(--white);
  padding: var(--s-12) 0;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 768px) { .cta-band__inner { grid-template-columns: 1.2fr 1fr; gap: var(--s-10); } }
.cta-band__eyebrow { color: var(--red-600); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 12px; }
.cta-band__title { font-size: 28px; }
@media (min-width: 768px) { .cta-band__title { font-size: 36px; } }
.cta-band__sub { color: rgba(255,255,255,.7); margin-top: 12px; max-width: 480px; }
.cta-band__form { display: flex; gap: 8px; max-width: 460px; }
.cta-band__form input {
  flex: 1;
  height: 54px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-btn);
  background: rgba(255,255,255,.06);
  color: var(--white);
  padding: 0 16px;
  outline: none;
}
.cta-band__form input::placeholder { color: rgba(255,255,255,.5); }
.cta-band__form input:focus { border-color: var(--red-600); background: rgba(255,255,255,.1); }

.footer { background: #0A0C10; color: rgba(255,255,255,.75); padding: var(--s-12) 0 var(--s-6); }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
}
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s-8); } }
.footer__brand { color: var(--white); font-weight: 800; font-size: 22px; margin-bottom: 12px; letter-spacing: 0.02em; }
.footer__brand span { color: var(--red-600); }
.footer__about { font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer__col h4 { color: var(--white); font-size: 14px; margin-bottom: var(--s-3); }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer__col a:hover { color: var(--red-600); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: var(--s-10);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,.45);
}

/* ===== Search bar (search page) ===== */
.search-page-bar {
  display: flex; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  padding: 10px;
  margin: var(--s-4) 0 var(--s-6);
}
.search-page-bar input {
  flex: 1;
  height: 46px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  font-size: 15px;
  background: transparent;
}

/* ===== Helpers ===== */
.is-hidden { display: none !important; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }

/* ===== Sliding panels behavior controlled by JS via .is-open ===== */
body.no-scroll { overflow: hidden; }

/* =========================================================
   WooCommerce default elements — restyle to match design system
   ========================================================= */

/* --- Notices --- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-NoticeGroup {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: var(--r-input);
  font-size: 14px;
  border-left: 3px solid var(--ink-1000);
  background: var(--surface);
}
.woocommerce-error { border-left-color: var(--error); background: #FEEAEC; color: #7A0F1A; }
.woocommerce-message { border-left-color: var(--success); background: #E6F6EC; color: #0F5F33; }
.woocommerce-info { border-left-color: var(--ink-1000); }
.woocommerce-message .button,
.woocommerce-error .button,
.woocommerce-info .button { display: none; }

/* --- Form rows (used in checkout & account) --- */
.woocommerce form .form-row,
.woocommerce-page form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 var(--s-4);
  padding: 0;
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
  font-size: 13px; font-weight: 600; color: var(--ink-800);
}
.woocommerce form .form-row label .optional { color: var(--ink-400); font-weight: 400; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row select,
.woocommerce-page form .form-row textarea {
  height: 46px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 0 14px;
  outline: none;
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease;
  width: 100%;
}
.woocommerce form .form-row textarea,
.woocommerce-page form .form-row textarea {
  height: auto; min-height: 96px; padding: 12px 14px;
}
.woocommerce form .form-row select { appearance: none; padding-right: 38px; background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230F1115' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 14px center; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(225,29,42,.2); }

/* Field validation states */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select { border-color: var(--error); }
.woocommerce form .form-row.woocommerce-validated input.input-text { border-color: var(--success); }

/* Form-row grid layout in checkout */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr 1fr; }
  .woocommerce-billing-fields__field-wrapper .form-row-wide,
  .woocommerce-shipping-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
  .woocommerce-billing-fields__field-wrapper .form-row-first { grid-column: 1 / 2; }
  .woocommerce-billing-fields__field-wrapper .form-row-last  { grid-column: 2 / 3; }
}

/* Country/state dropdowns from Select2 */
.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1px solid var(--line-200) !important;
  border-radius: var(--r-input) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px !important;
  padding-left: 14px !important;
  color: var(--ink-1000);
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
}

/* --- Quantity input (default WC) --- */
.woocommerce .quantity {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-200);
  border-radius: var(--r-btn);
  height: 44px;
  overflow: hidden;
}
.woocommerce .quantity input.qty {
  width: 44px; height: 100%;
  border: 0; outline: 0; text-align: center;
  font-size: 15px; font-weight: 600;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0;
}
.woocommerce .quantity input.qty::-webkit-outer-spin-button,
.woocommerce .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce .quantity button[data-qty-minus],
.woocommerce .quantity button[data-qty-plus] {
  width: 40px; height: 100%; font-size: 18px; color: var(--ink-1000);
  border: 0; background: transparent; cursor: pointer;
}
.woocommerce .quantity button:hover { background: var(--surface); }

/* --- Variations form on single product --- */
.variations_form { margin-top: var(--s-5); }
.variations { width: 100%; border-collapse: collapse; }
.variations tr { display: block; margin-bottom: var(--s-4); }
.variations th, .variations td { display: block; text-align: left; padding: 0; }
.variations th { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.variations td.value { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.variations select {
  height: 46px;
  border: 1px solid var(--line-200);
  border-radius: var(--r-input);
  padding: 0 38px 0 14px;
  font-size: 14px;
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5L6 6.5L11 1.5' stroke='%230F1115' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") no-repeat right 14px center;
  appearance: none;
  min-width: 180px;
  cursor: pointer;
}
.variations select:focus { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(225,29,42,.2); outline: none; }
.reset_variations { font-size: 12px; color: var(--ink-600); margin-left: 8px; }
.reset_variations:hover { color: var(--red-600); }

.single_variation_wrap { margin-top: var(--s-5); }
.single_variation .price { font-size: 24px; font-weight: 700; }
.woocommerce-variation-add-to-cart {
  display: flex; gap: var(--s-3); margin-top: var(--s-5); align-items: stretch;
}
.woocommerce-variation-add-to-cart .quantity { height: 54px; }
.single_add_to_cart_button {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--r-btn);
  font-size: 15px;
  font-weight: 600;
  background: var(--red-600);
  color: var(--white);
  border: 0;
  cursor: pointer;
  transition: background .18s ease;
}
.single_add_to_cart_button:hover { background: var(--red-700); }
.single_add_to_cart_button.disabled { background: var(--ink-400); cursor: not-allowed; }
.single_add_to_cart_button.loading { opacity: 0.7; }

/* Hide WC default reset link inline */
.variations_form .reset_variations { display: inline-block; }

/* --- WC default tabs hidden (we render our own) --- */
.woocommerce-tabs .tabs.wc-tabs { display: none; }
.woocommerce-tabs .panel { padding: var(--s-6) 0; }

/* --- Pagination --- */
.woocommerce-pagination ul.page-numbers {
  display: flex; gap: 4px; justify-content: center; margin: var(--s-10) 0 0;
  padding: 0; list-style: none; border: 0;
}
.woocommerce-pagination ul.page-numbers li { display: inline-block; border: 0; }
.woocommerce-pagination .page-numbers {
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  background: var(--white);
  color: var(--ink-1000);
}
.woocommerce-pagination .page-numbers.current { background: var(--ink-1000); color: var(--white); border-color: var(--ink-1000); }
.woocommerce-pagination .page-numbers:hover { border-color: var(--ink-1000); }

/* --- Remove icon (default cart line) --- */
.remove_from_cart_button { font-size: 11px; color: var(--ink-600); }
.remove_from_cart_button:hover { color: var(--red-600); }

/* --- Result count label --- */
.woocommerce-result-count { margin: 0; font-size: 13px; color: var(--ink-600); }

/* --- Login / Register forms --- */
.woocommerce-form-login, .woocommerce-form-register {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
}
.woocommerce-form-login__submit, .woocommerce-form-register__submit, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px;
  border-radius: var(--r-btn);
  font-size: 14px; font-weight: 600;
  background: var(--ink-1000);
  color: var(--white);
  border: 0;
  cursor: pointer;
  transition: background .18s ease;
}
.button.alt, button.single_add_to_cart_button { background: var(--red-600); }
.button:hover { background: var(--ink-800); }
.button.alt:hover { background: var(--red-700); }

/* --- My account navigation --- */
.woocommerce-MyAccount-navigation ul {
  list-style: none; padding: 0; margin: 0 0 var(--s-6);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.woocommerce-MyAccount-navigation ul li a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-200);
  font-size: 13px; font-weight: 600;
  color: var(--ink-1000);
}
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover { background: var(--ink-1000); color: var(--white); border-color: var(--ink-1000); }

/* --- Order tables (My account, thankyou) --- */
table.shop_table, table.woocommerce-checkout-review-order-table, table.woocommerce-table {
  width: 100%;
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-200); }
table.shop_table thead th { background: var(--surface); font-weight: 700; }
table.shop_table tr:last-child td { border-bottom: 0; }

/* --- Star rating widget --- */
.star-rating { color: var(--warning); }

/* --- Layout: Single product variants — when using <select> wrap visually --- */
.variations + .single_variation_wrap .price { margin: 0; }

/* --- Search results page header form --- */
.search-page-bar { background: var(--surface); }

/* =========================================================
   FIX v1.0.1 — Header nav, dropdowns, logo safety
   ========================================================= */

/* Logo: always strict size, regardless of upload dimensions */
.header__brand-img,
.custom-logo {
  max-height: 40px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}
@media (min-width: 1024px) {
  .header__brand-img,
  .custom-logo { max-height: 44px !important; max-width: 220px !important; }
}

/* Nav list — replaces the old `.header__nav a` direct-child rule */
.header__nav-list,
.header__nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.header__nav-list li,
.header__nav > ul li {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.header__nav-list a,
.header__nav > ul a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-800);
  padding: 8px 0;
  white-space: nowrap;
  text-decoration: none;
}
.header__nav-list a:hover,
.header__nav > ul a:hover { color: var(--red-600); }

/* Sub-menu dropdowns — hidden by default, shown on hover/focus (desktop) */
.header__nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line-200);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-hover);
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 60;
}
.header__nav .sub-menu li {
  display: block;
  width: 100%;
}
.header__nav .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  white-space: normal;
}
.header__nav .sub-menu a:hover { background: var(--surface); color: var(--red-600); }

@media (min-width: 1024px) {
  .header__nav-list li:hover > .sub-menu,
  .header__nav-list li:focus-within > .sub-menu,
  .header__nav > ul li:hover > .sub-menu,
  .header__nav > ul li:focus-within > .sub-menu { display: flex; }
}

/* Caret indicator for items with submenu */
.header__nav-list .menu-item-has-children > a::after,
.header__nav > ul .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
  opacity: .6;
}

/* Make sure the header's grid does NOT push the nav off-screen on desktop */
@media (min-width: 1024px) {
  .header__inner {
    grid-template-columns: auto auto 1fr auto !important;
  }
  .header__nav { min-width: 0; overflow: visible; }
  .header__search { justify-self: end; }
}

/* Mobile menu drawer — make sure nested ULs render readable */
.lakpro-mobile-nav ul.sub-menu {
  padding-left: 16px;
  margin: 4px 0 8px;
  border-left: 2px solid var(--line-200);
}
.lakpro-mobile-nav ul.sub-menu a { font-weight: 500; font-size: 13px; padding: 8px 12px; border-bottom: 0; }

/* =========================================================
   FIX v1.0.2 — WC product loop grid + compact mobile cards
   ========================================================= */

/* WooCommerce wraps the product loop in <ul class="products columns-N">.
   Override its layout so it matches our .product-grid behaviour. */
.woocommerce ul.products,
ul.products {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: var(--s-3) !important;
}
@media (min-width: 640px) {
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: var(--s-4) !important; }
}
@media (min-width: 1024px) {
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: var(--s-5) !important; }
}
@media (min-width: 1280px) {
  .woocommerce ul.products,
  ul.products { grid-template-columns: repeat(4, 1fr) !important; }
}

/* Cancel WC's float-based columns-N styling */
.woocommerce ul.products li.product,
.woocommerce ul.products article.product-card,
ul.products article.product-card,
ul.products li.product {
  width: auto !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
}

/* =========================================================
   Compact mobile product card  (< 640px)
   ========================================================= */
@media (max-width: 639px) {
  .product-card {
    flex-direction: row !important;
    border-radius: 10px;
    min-height: 96px;
  }
  .product-card__media {
    flex: 0 0 96px !important;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    align-self: stretch;
  }
  .product-card__media img,
  .product-card__media svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
  }
  .product-card__body {
    padding: 10px 12px !important;
    gap: 2px !important;
    min-width: 0;
    justify-content: space-between;
  }
  .product-card__brand {
    font-size: 10px;
    letter-spacing: 0.05em;
    line-height: 1.2;
  }
  .product-card__title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2;
    min-height: 0 !important;
    margin: 1px 0 2px;
  }
  .product-card__meta { font-size: 11px; gap: 6px; }
  .product-card__meta span { line-height: 1.2; }
  .product-card__price-row {
    padding-top: 4px !important;
    gap: 8px;
    align-items: flex-end;
  }
  .product-card__price { font-size: 14px !important; line-height: 1; }
  .product-card__price-sub {
    font-size: 10px;
    line-height: 1.2;
    margin-top: 1px;
  }
  .product-card__cta {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px;
    flex-shrink: 0;
  }
  .product-card__cta svg { width: 16px; height: 16px; }
  .product-card__cta--variable {
    width: auto !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    height: 34px !important;
    gap: 4px;
  }
  .product-card__cta--variable svg { width: 12px; height: 12px; }
  .product-card__badge {
    font-size: 9px !important;
    padding: 3px 6px !important;
    top: 6px;
    left: 6px;
    letter-spacing: 0.04em;
  }
  /* Wishlist heart only on tablet+ — too cramped on mobile */
  .product-card__wishlist { display: none !important; }
}

/* Tablet (640-767) — make sure cards revert to vertical layout */
@media (min-width: 640px) {
  .product-card {
    flex-direction: column !important;
  }
  .product-card__media {
    flex: 1 !important;
    width: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .product-card__media img,
  .product-card__media svg {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    padding: 0;
  }
}

/* WC's standard product image stretching → keep contained */
.product-card__media img.attachment-woocommerce_thumbnail {
  width: auto !important;
  height: auto !important;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
@media (max-width: 639px) {
  .product-card__media img.attachment-woocommerce_thumbnail {
    max-width: 100%;
    max-height: 100%;
    padding: 6px;
  }
}

/* =========================================================
   FIX v1.0.3 — Z-index above Elementor (9998)
   ========================================================= */
.drawer-overlay { z-index: 99998 !important; }
.drawer         { z-index: 99999 !important; }
.toast          { z-index: 99999 !important; }
.header         { z-index: 9999 !important; }

/* Force visibility when open (defensive — overrides any Elementor sticky-bar) */
.drawer.is-open { transform: translateX(0) !important; visibility: visible !important; }
.drawer-overlay.is-open { opacity: 1 !important; pointer-events: auto !important; }

/* =========================================================
   FIX v1.0.4 — Force image sizing in cart/checkout containers
   (My CSS only sized inline <svg> — but WC uses <img> uploads)
   ========================================================= */

/* Checkout summary line — small 56×56 thumb */
.summary-line__img {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
}
.summary-line__img img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 4px;
  display: block;
}

/* Mini cart (cart sidebar) line images */
.cart-line__image {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
  overflow: hidden;
}
.cart-line__image img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 6px;
  display: block;
}

/* Cart page row images */
.cart-row__image {
  width: 96px !important;
  height: 96px !important;
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .cart-row__image { width: 120px !important; height: 120px !important; }
}
.cart-row__image img,
.cart-row__image a img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  padding: 8px;
  display: block;
}

/* Cart-row remove anchor (×) — keep it inline */
.cart-row__image a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Product detail main image */
.product__main-image {
  overflow: hidden;
}
.product__main-image img,
.product__main-image .woocommerce-product-gallery__image img,
.product__main-image .woocommerce-product-gallery__image a img {
  width: 100% !important;
  height: 100% !important;
  max-width: 90% !important;
  max-height: 90% !important;
  object-fit: contain !important;
  margin: auto;
  display: block;
}

/* Product thumbnails */
.product__thumb {
  overflow: hidden;
}
.product__thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 80% !important;
  max-height: 80% !important;
  object-fit: contain !important;
  margin: auto;
  display: block;
}

/* Category card visuals — in case admin uploads a thumbnail */
.cat-card__visual img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
}

/* Quantity badge dot stays at -6 -6 of the inner box */
.summary-line__img::after {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  width: 20px !important;
  height: 20px !important;
  z-index: 2;
}

/* Product card media — when an actual <img> is used (not svg) */
.product-card__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 85% !important;
  max-height: 85% !important;
  object-fit: contain !important;
  padding: 8px;
}
@media (max-width: 639px) {
  .product-card__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: 92% !important;
    max-height: 92% !important;
    padding: 6px;
  }
}

/* WooCommerce product gallery shenanigans — keep contained */
.woocommerce-product-gallery,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image {
  width: 100%;
  max-width: 100%;
}

/* =========================================================
   FIX v1.0.5 — NUCLEAR override against plugin CSS conflicts
   (Berocket Ajax Filters, PWB Brands, ReviewX, etc.)
   ========================================================= */

/* DESKTOP: force vertical product cards no matter what */
@media (min-width: 640px) {
  body .product-card,
  body article.product-card,
  body ul.products .product-card,
  body ul.products article.product-card,
  body ul.products li.product-card,
  body .woocommerce ul.products .product-card,
  body .woocommerce ul.products article.product-card,
  html body .product-card {
    display: flex !important;
    flex-direction: column !important;
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
  }

  body .product-card .product-card__media,
  body article.product-card .product-card__media,
  body ul.products .product-card .product-card__media {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  body .product-card .product-card__body,
  body article.product-card .product-card__body {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 16px 16px 20px !important;
  }
}

/* MOBILE: force horizontal compact cards */
@media (max-width: 639px) {
  body .product-card,
  body article.product-card,
  body ul.products .product-card,
  body ul.products article.product-card,
  html body .product-card {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    min-height: 96px !important;
  }
  body .product-card .product-card__media,
  body article.product-card .product-card__media {
    flex: 0 0 96px !important;
    width: 96px !important;
    height: 96px !important;
    aspect-ratio: 1 / 1 !important;
  }
}

/* PRODUCT GRID — force grid no matter what plugin says */
body ul.products,
body .woocommerce ul.products,
html body ul.products {
  display: grid !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
@media (max-width: 639px) {
  body ul.products,
  body .woocommerce ul.products { grid-template-columns: 1fr !important; gap: 12px !important; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  body ul.products,
  body .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  body ul.products,
  body .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; }
}
@media (min-width: 1280px) {
  body ul.products,
  body .woocommerce ul.products { grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; }
}

/* Reset any plugin floats/width overrides on product cards */
body .woocommerce ul.products li.product,
body .woocommerce-page ul.products li.product,
body ul.products li.product,
body ul.products article.product {
  width: auto !important;
  margin-right: 0 !important;
  float: none !important;
}
