/* ============================================================
   PRODUCT CATALOGUE AND PRODUCT DETAIL
   ============================================================ */

.products-archive,
.product-detail { background:#fff; }

/* Product pages use the available desktop width so the catalogue stays
 * readable when the browser is zoomed out, instead of collapsing into a
 * narrow 1200px island with large empty margins. */
.products-archive .container,
.product-detail .container {
  max-width:none;
  padding-left:clamp(24px,3vw,64px);
  padding-right:clamp(24px,3vw,64px);
}

.products-archive__hero,
.product-detail__top { padding-top:calc(var(--header-h) + 54px); }

.products-archive__hero {
  padding-bottom:64px;
  background:#f5f3f0;
  border-bottom:1px solid var(--clr-line);
}

.products-archive__hero h1 {
  font-family:var(--ff-display);
  font-size:clamp(48px,6vw,64px);
  font-weight:800;
  letter-spacing:-.045em;
  line-height:1.02;
  color:var(--clr-dark);
  margin-bottom:20px;
}

.product-detail__summary h1 {
  font-family:var(--ff-display);
  font-size:clamp(42px,7vw,82px);
  font-weight:900;
  letter-spacing:-.055em;
  line-height:.95;
  color:var(--clr-dark);
}

.products-archive__intro {
  max-width:680px;
  width:100%;
  overflow-wrap:anywhere;
  margin-top:20px;
  color:var(--clr-text-secondary);
  font-size:17px;
  line-height:1.65;
  font-weight:400;
}

.products-breadcrumb {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:42px;
  color:#777;
  font-size:12px;
}

.products-breadcrumb a:hover,
.products-breadcrumb a:focus-visible { color:var(--clr-red); }

.products-eyebrow {
  margin-bottom:18px;
  color:var(--clr-brand-primary);
  font-family:var(--ff-display);
  font-size:13px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  opacity:.92;
}

.products-controls {
  position:sticky;
  top:var(--header-h);
  z-index:20;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--clr-line);
  backdrop-filter:blur(14px);
}

body.admin-bar .products-controls { top:calc(var(--header-h) + 32px); }
@media(max-width:782px) {
  body.admin-bar .products-controls { top:calc(var(--header-h) + 46px); }
}

.products-controls__inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:14px;
  padding-bottom:14px;
}

.products-search {
  position:relative;
  display:flex;
  align-items:center;
  flex:1 1 360px;
  max-width:520px;
  order:2;
}

.products-search__icon {
  position:absolute;
  left:14px;
  color:#777;
  font-size:20px;
  line-height:1;
  pointer-events:none;
}

.products-search input {
  width:100%;
  min-height:42px;
  padding:10px 92px 10px 40px;
  border:1px solid var(--clr-line);
  border-radius:999px;
  background:#fff;
  color:var(--clr-dark);
  font:inherit;
  font-size:13px;
}

.products-search input:focus { border-color:var(--clr-dark); outline:2px solid rgba(204,31,43,.14); outline-offset:1px; }
.products-search__submit {
  position:absolute;
  right:4px;
  min-height:34px;
  padding:0 15px;
  border:0;
  border-radius:999px;
  background:var(--clr-dark);
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}

.products-filter-bar { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px; order:1; margin-left:auto; }
.products-filter { position:relative; }
.products-filter summary,
.products-filter-reset {
  display:flex;
  align-items:center;
  gap:24px;
  min-height:42px;
  padding:10px 14px;
  border:1px solid #cfcfcf;
  background:#fff;
  color:var(--clr-dark);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  list-style:none;
}
.products-filter summary::-webkit-details-marker { display:none; }
.products-filter summary span:last-child { color:#777; font-size:16px; transition:transform .2s; }
.products-filter[open] summary { border-color:var(--clr-dark); }
.products-filter[open] summary span:last-child { transform:rotate(180deg); }
.products-filter__menu {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:4;
  min-width:230px;
  padding:8px;
  border:1px solid #222;
  background:#fff;
  box-shadow:0 16px 32px rgba(0,0,0,.12);
}
.products-filter__menu a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:11px 10px;
  color:var(--clr-dark);
  font-size:13px;
}
.products-filter__menu a:hover,
.products-filter__menu a.is-active { background:#f3f2f0; }
.products-filter__menu small { color:#888; font-size:11px; }
.products-filter-reset { color:var(--clr-red); text-decoration:none; }
.products-filter-reset:hover { border-color:var(--clr-red); }

.products-listing { padding:72px 0 104px; }
.products-listing__header { margin-bottom:24px; color:var(--clr-muted); font-size:13px; }

.products-catalog-layout {
  display:grid;
  grid-template-columns:minmax(210px,250px) minmax(0,1fr);
  gap:38px;
  align-items:start;
}

.products-sidebar {
  position:sticky;
  top:calc(var(--header-h) + 92px);
  overflow:hidden;
  border:1px solid #e3e1de;
  background:#f4f3f1;
}
.products-sidebar h2 {
  margin:0;
  padding:20px 20px 18px;
  border-top:3px solid var(--clr-red);
  border-bottom:1px solid #e3e1de;
  background:#fff;
  color:var(--clr-red);
  font-family:var(--ff-display);
  font-size:20px;
  letter-spacing:-.02em;
}
.products-sidebar nav { display:flex; flex-direction:column; }
.products-sidebar__group { border-top:1px solid #e3e1de; }
.products-sidebar__group > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:48px;
  padding:12px 20px;
  color:#454545;
  cursor:pointer;
  font-size:13px;
  line-height:1.3;
  list-style:none;
}
.products-sidebar__group > summary::-webkit-details-marker { display:none; }
.products-sidebar__group > summary::after { content:'+'; margin-left:auto; color:var(--clr-red); font-size:18px; font-weight:400; line-height:1; }
.products-sidebar__group[open] > summary::after { content:'−'; }
.products-sidebar__group > summary:hover,
.products-sidebar__group > summary:focus-visible { background:#fff; color:var(--clr-red); }
.products-sidebar__group > summary small { color:#999; font-size:11px; }
.products-sidebar__group-links { padding-bottom:6px; background:rgba(255,255,255,.35); }
.products-sidebar nav a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:48px;
  padding:12px 20px;
  border-top:1px solid #e3e1de;
  color:#454545;
  font-size:13px;
  line-height:1.3;
  text-decoration:none;
}
.products-sidebar nav a:hover,
.products-sidebar nav a:focus-visible,
.products-sidebar nav a.is-active { background:#fff; color:var(--clr-red); }
.products-sidebar nav small { color:#999; font-size:11px; }
.products-sidebar nav a.products-sidebar__child { min-height:38px; padding:9px 20px 9px 34px; background:rgba(255,255,255,.35); color:#686868; font-size:12px; }
.products-sidebar nav a.products-sidebar__child:hover,
.products-sidebar nav a.products-sidebar__child.is-active { background:#fff; color:var(--clr-red); }
.products-sidebar nav a.products-sidebar__parent-link { min-height:36px; padding:9px 20px 9px 28px; color:#686868; font-size:12px; }
.products-sidebar nav a.products-sidebar__parent-link:hover,
.products-sidebar nav a.products-sidebar__parent-link.is-active { background:#fff; color:var(--clr-red); }
.products-sidebar__tags { padding:18px 20px 20px; border-top:1px solid #e3e1de; background:#fff; }
.products-sidebar__tags h3 { margin:0 0 10px; color:#555; font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.products-sidebar__tags > div { display:flex; flex-wrap:wrap; gap:6px; }
.products-sidebar__tags a { display:inline-flex; align-items:center; min-height:27px; padding:4px 8px; border:1px solid #d7d4cf; border-radius:3px; color:#555; font-size:11px; line-height:1.1; text-decoration:none; }
.products-sidebar__tags a:hover,
.products-sidebar__tags a.is-active { border-color:var(--clr-red); background:var(--clr-red); color:#fff; }
.products-results { min-width:0; }

.product-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:28px;
  align-items:stretch;
}

.product-card {
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  height:100%;
  overflow:hidden;
  border:1px solid var(--clr-border-subtle);
  border-radius:16px;
  background:var(--clr-surface-primary);
  transition:
    transform .4s cubic-bezier(.16,1,.3,1),
    box-shadow .4s cubic-bezier(.16,1,.3,1),
    border-color .3s;
}

.product-card:hover,
.product-card:focus-within {
  transform:translateY(-6px);
  border-color:rgba(204,31,43,.2);
  box-shadow:
    0 24px 48px rgba(0,0,0,.08),
    0 8px 16px rgba(0,0,0,.04);
}

.product-card__link { display:flex; flex-direction:column; height:100%; }

.product-card__media {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:clamp(220px,18vw,270px);
  overflow:hidden;
  background:linear-gradient(135deg,#FAFAFA 0%,#F5F5F5 100%);
  border-bottom:1px solid rgba(0,0,0,.05);
}

.product-card__media img {
  width:100%;
  height:100%;
  padding:20px;
  object-fit:contain;
  transition:
    transform .5s cubic-bezier(.16,1,.3,1),
    filter .3s;
  filter:contrast(.96) saturate(.92);
}

.product-card:hover .product-card__media img {
  transform:scale(1.05);
  filter:contrast(1) saturate(1);
}
.product-card__placeholder { max-width:180px; color:#8a8a8a; text-align:center; font-size:13px; }
.product-card__body { display:flex; flex:1; flex-direction:column; min-height:142px; padding:14px 16px 16px; }
.product-card__category { margin-bottom:6px; color:var(--clr-brand-primary); font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; opacity:.88; }
.product-card__title-row { display:flex; justify-content:space-between; gap:18px; }
.product-card__title-row h2 {
  display:-webkit-box;
  min-height:57px;
  max-height:57px;
  margin-bottom:6px;
  overflow:hidden;
  font-family:var(--ff-display);
  font-size:15px;
  font-weight:700;
  letter-spacing:-.015em;
  line-height:1.27;
  color:var(--clr-dark);
  text-overflow:ellipsis;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  transition:color .2s;
}
.product-card:hover .product-card__title-row h2 { color:var(--clr-brand-primary); }
.product-card__title-row span { display:flex; flex:0 0 32px; align-items:center; justify-content:center; width:32px; height:32px; border-radius:50%; background:var(--clr-brand-primary-pale); color:var(--clr-brand-primary); font-size:16px; transition:all .3s; }
.product-card:hover .product-card__title-row span { background:var(--clr-brand-primary); color:#fff; transform:translateX(3px); }
.product-card__sku { min-height:14px; margin-top:6px; color:#8a8a8a; font-size:11px; font-weight:600; letter-spacing:.08em; }
.product-card__tagline { margin-top:6px; color:#666; font-size:12px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.products-empty {
  max-width:720px;
  padding:54px;
  border:1px solid var(--clr-line);
  border-radius:20px;
  background:#f7f6f4;
}
.products-empty h2 { margin-bottom:14px; font-family:var(--ff-display); font-size:36px; }
.products-empty > p:not(.products-eyebrow) { margin-bottom:26px; color:var(--clr-muted); line-height:1.7; }
.products-pagination { margin-top:48px; }
.products-pagination .nav-links { display:flex; justify-content:center; gap:8px; }
.products-pagination .page-numbers { min-width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--clr-line); border-radius:8px; }
.products-pagination .page-numbers.current { background:var(--clr-red); border-color:var(--clr-red); color:#fff; }

/* Single product */
.product-detail__top { padding-bottom:88px; }
.product-detail__hero { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); gap:48px; align-items:start; }
.product-detail__summary { position:sticky; top:calc(var(--header-h) + 28px); padding-top:8px; }
.product-detail__summary h1 {
  max-width:560px;
  font-size:clamp(30px,2.6vw,42px);
  line-height:1.04;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
.product-detail__sku { margin-top:12px; color:#888; font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.product-detail__tagline { margin:18px 0 22px; color:var(--clr-muted); font-size:15px; line-height:1.6; }
.product-detail__quote-note { margin-top:12px; color:#7a7a7a; font-size:12px; line-height:1.55; }

.product-gallery__stage {
  display:grid;
  place-items:center;
  min-height:clamp(440px,42vw,620px);
  padding:24px;
  overflow:hidden;
  border-radius:18px;
  background:#f5f4f2;
}
.product-gallery__main { width:100%; height:100%; max-height:620px; object-fit:contain; transition:opacity .16s; }
.product-gallery__main.is-changing { opacity:.25; }
.product-gallery__empty { max-width:260px; color:#858585; text-align:center; line-height:1.6; }
.product-gallery__thumbs { display:flex; gap:8px; margin-top:12px; overflow-x:auto; padding-bottom:4px; }
.product-gallery__thumb { flex:0 0 72px; width:72px; height:72px; display:grid; place-items:center; padding:5px; overflow:hidden; border:1px solid var(--clr-line); border-radius:9px; background:#f7f6f4; }
.product-gallery__thumb img { width:100%; height:100%; object-fit:contain; }
.product-gallery__thumb.is-active { border-color:var(--clr-red); box-shadow:0 0 0 1px var(--clr-red); }

.product-specs { margin:0 0 26px; border-top:1px solid var(--clr-line); }
.product-specs__row { display:grid; grid-template-columns:132px 1fr; gap:16px; padding:10px 0; border-bottom:1px solid var(--clr-line); font-size:12px; line-height:1.45; }
.product-specs dt { color:#777; }
.product-specs dd { color:var(--clr-dark); font-weight:600; }
.product-reference-price { margin:-4px 0 24px; padding:16px 18px; border-left:3px solid var(--clr-red); background:#f7f7f7; }
.product-reference-price span,
.product-reference-price small { display:block; color:#777; font-size:11px; line-height:1.5; }
.product-reference-price strong { display:block; margin:5px 0; color:var(--clr-dark); font-size:14px; line-height:1.55; }

.product-options { margin:26px 0; }
.product-options h2 { margin-bottom:12px; font-family:var(--ff-display); font-size:16px; }
.product-options ul { display:flex; flex-wrap:wrap; gap:8px; }
.product-options li { padding:7px 11px; border:1px solid var(--clr-line); border-radius:999px; color:#555; font-size:11px; }

.product-section { padding:92px 0; border-top:1px solid var(--clr-line); }
.product-section__narrow { max-width:920px; }
.product-section h2 { margin-bottom:22px; font-family:var(--ff-display); font-size:clamp(34px,5vw,58px); line-height:1; letter-spacing:-.04em; }
.product-section p { color:var(--clr-muted); line-height:1.75; }
.product-prose > * + * { margin-top:18px; }
.product-prose ul { margin-left:20px; list-style:disc; }
.product-section__split { display:grid; grid-template-columns:.8fr 1.2fr; gap:88px; align-items:start; }
.product-section--customization { background:var(--clr-dark); color:#fff; }
.product-section--customization p { color:rgba(255,255,255,.66); }
.product-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.product-methods li { padding:16px 18px; border:1px solid rgba(255,255,255,.14); border-radius:10px; color:rgba(255,255,255,.86); font-size:13px; }
.product-print-area { margin-top:28px; padding-top:24px; border-top:1px solid rgba(255,255,255,.14); }
.product-print-area h3 { margin-bottom:10px; font-family:var(--ff-display); font-size:20px; }
.product-section--packaging { background:#f6f5f3; }
.product-section--cta { padding:68px 0; background:#fdf0f0; }
.product-cta { display:flex; align-items:center; justify-content:space-between; gap:48px; }
.product-cta > div { max-width:760px; }
.product-cta h2 { margin-bottom:14px; }
.product-cta .btn { flex:0 0 auto; }
.product-section--related h2 { margin-bottom:36px; }

/* Product pages always start with a light header. */
body.single-aimich_product .site-header,
body.post-type-archive-aimich_product .site-header,
body.tax-aimich_product_cat .site-header {
  background:rgba(255,255,255,.97);
  box-shadow:0 1px 0 rgba(0,0,0,.08);
  backdrop-filter:blur(18px) saturate(1.6);
}
body.single-aimich_product .site-header:not(.scrolled) .nav-link,
body.post-type-archive-aimich_product .site-header:not(.scrolled) .nav-link,
body.tax-aimich_product_cat .site-header:not(.scrolled) .nav-link { color:var(--clr-text); }
body.single-aimich_product .site-header:not(.scrolled) .nav-link:hover,
body.single-aimich_product .site-header:not(.scrolled) .nav-link.active,
body.post-type-archive-aimich_product .site-header:not(.scrolled) .nav-link:hover,
body.post-type-archive-aimich_product .site-header:not(.scrolled) .nav-link.active,
body.tax-aimich_product_cat .site-header:not(.scrolled) .nav-link:hover,
body.tax-aimich_product_cat .site-header:not(.scrolled) .nav-link.active { color:var(--clr-red); }
body.single-aimich_product .site-header:not(.scrolled) .hamburger span,
body.post-type-archive-aimich_product .site-header:not(.scrolled) .hamburger span,
body.tax-aimich_product_cat .site-header:not(.scrolled) .hamburger span { background:var(--clr-dark); }
body.single-aimich_product .site-header:not(.scrolled) .header-cta .btn--outline,
body.post-type-archive-aimich_product .site-header:not(.scrolled) .header-cta .btn--outline,
body.tax-aimich_product_cat .site-header:not(.scrolled) .header-cta .btn--outline { color:var(--clr-red); border-color:var(--clr-red); }

@media(max-width:980px) {
  .products-controls__inner { align-items:stretch; flex-direction:column; }
  .products-search { max-width:none; }
  .products-filter-bar { justify-content:flex-start; }
  .products-catalog-layout { grid-template-columns:1fr; gap:28px; }
  .products-sidebar { position:static; }
  .products-sidebar nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .product-detail__hero { grid-template-columns:1fr; gap:42px; }
  .product-detail__summary { position:static; }
  .product-gallery__stage { min-height:480px; }
  .product-section__split { grid-template-columns:1fr; gap:38px; }
}

@media(max-width:620px) {
  .products-archive__hero,
  .product-detail__top { padding-top:calc(var(--header-h) + 34px); }
  .products-archive__hero { padding-bottom:44px; }
  .products-breadcrumb { margin-bottom:30px; }
  .products-listing,
  .product-section { padding:60px 0; }
  .products-filter__menu { left:0; right:auto; }
  .products-filter summary,
  .products-filter-reset { gap:14px; padding-left:12px; padding-right:12px; }
  .products-sidebar nav { grid-template-columns:1fr; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; }
  .product-card__media { padding:0; }
  .product-card__body { padding:17px 16px 20px; }
  .product-card__title-row h2 { font-size:15px; line-height:1.27; }
  .products-empty { padding:34px 24px; }
  .product-detail__top { padding-bottom:64px; }
  .product-gallery__stage { min-height:auto; aspect-ratio:1; padding:20px; border-radius:16px; }
  .product-gallery__thumb { flex-basis:68px; width:68px; height:68px; }
  .product-specs__row { grid-template-columns:115px 1fr; }
  .product-methods { grid-template-columns:1fr; }
  .product-cta { align-items:flex-start; flex-direction:column; gap:28px; }
  .product-cta .btn { width:100%; }
}

@media(max-width:420px) {
  .product-grid { grid-template-columns:1fr; }
}

@media(prefers-reduced-motion:reduce) {
  .product-card,
  .product-card__media img,
  .product-gallery__main { transition:none; }
}

/* Alibaba-style category browser: hover a parent, then hover a child. */
.products-sidebar { overflow:visible; z-index:20; }
.products-sidebar nav { position:relative; }
.products-sidebar__group { position:relative; border-top:1px solid #e3e1de; }
.products-sidebar__category {
  display:flex;
  width:100%;
  align-items:center;
  gap:12px;
  min-height:48px;
  padding:12px 20px;
  border:0;
  color:#454545;
  background:transparent;
  cursor:pointer;
  font:inherit;
  font-size:13px;
  line-height:1.3;
  text-align:left;
}
.products-sidebar__category span { min-width:0; }
.products-sidebar__category small { margin-left:auto; color:#999; font-size:11px; }
.products-sidebar__category b { color:#777; font-size:20px; font-weight:400; line-height:1; }
.products-sidebar__category:hover,
.products-sidebar__category:focus-visible,
.products-sidebar__group.is-active-parent > .products-sidebar__category { background:#fff; color:var(--clr-red); outline:0; }
.products-sidebar__group-links {
  position:fixed;
  z-index:50;
  top:var(--flyout-top,16px);
  left:var(--flyout-left,16px);
  width:252px;
  /* Keep long category lists inside the viewport instead of covering the
     product grid. The flyout itself is the scroll container. */
  max-height:min(calc(100vh - 32px),620px);
  overflow-y:auto;
  overflow-x:visible;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c8c5c0 transparent;
  padding:7px;
  border:1px solid #dedbd6;
  border-radius:6px;
  background:#fff;
  box-shadow:0 14px 34px rgba(20,20,20,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-6px);
  transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s;
}
.products-sidebar__group-links::before,
.products-sidebar__grandchildren::before { content:""; position:absolute; top:0; bottom:0; left:-10px; width:10px; }
.products-sidebar__group.is-open > .products-sidebar__group-links {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(0);
  transition-delay:0s;
}
.products-sidebar__group-links > a,
.products-sidebar__group-links .products-sidebar__child {
  min-height:38px;
  padding:9px 12px;
  border-top:0;
  border-radius:3px;
  background:#fff;
  color:#454545;
  font-size:13px;
}
.products-sidebar__group-links > a:hover,
.products-sidebar__group-links > a:focus-visible,
.products-sidebar__group-links .products-sidebar__child:hover,
.products-sidebar__group-links .products-sidebar__child:focus-visible,
.products-sidebar__group-links .products-sidebar__child.is-active { background:#f3f4f6; color:var(--clr-red); outline:0; }
.products-sidebar__group-links .products-sidebar__parent-link { border-bottom:1px solid #eceae7; margin-bottom:4px; color:#555; font-size:12px; }
.products-sidebar__child-item { position:relative; }
.products-sidebar__group-links .products-sidebar__child { justify-content:flex-start; gap:10px; }
.products-sidebar__group-links .products-sidebar__child small { margin-left:auto; }
.products-sidebar__group-links .products-sidebar__child b { margin-left:auto; color:#777; font-size:18px; font-weight:400; line-height:1; }
.products-sidebar__grandchildren {
  position:absolute;
  z-index:60;
  top:-7px;
  left:calc(100% + 8px);
  width:228px;
  max-height:min(calc(100vh - 32px),620px);
  overflow-y:auto;
  padding:7px;
  border:1px solid #dedbd6;
  border-radius:6px;
  background:#fff;
  box-shadow:0 14px 34px rgba(20,20,20,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-6px);
  transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s;
}
.products-sidebar__child-item:hover > .products-sidebar__grandchildren,
.products-sidebar__child-item:focus-within > .products-sidebar__grandchildren { opacity:1; visibility:visible; pointer-events:auto; transform:translateX(0); transition-delay:0s; }
.products-sidebar__grandchild { min-height:36px !important; padding:9px 12px !important; border-top:0 !important; border-radius:3px; background:#fff; color:#454545 !important; font-size:12px !important; }
.products-sidebar__grandchild:hover,
.products-sidebar__grandchild:focus-visible,
.products-sidebar__grandchild.is-active { background:#f3f4f6 !important; color:var(--clr-red) !important; outline:0; }

@media(max-width:980px) {
  .products-sidebar { overflow:hidden; }
  .products-sidebar__category { min-height:48px; }
  .products-sidebar__category b { transform:rotate(90deg); }
  .products-sidebar__group.is-open > .products-sidebar__category b { transform:rotate(-90deg); }
  .products-sidebar__group-links,
  .products-sidebar__group:hover > .products-sidebar__group-links,
  .products-sidebar__group:focus-within > .products-sidebar__group-links {
    position:static;
    top:auto;
    left:auto;
    display:none;
    width:auto;
    max-height:none;
    overflow:visible;
    padding:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
  .products-sidebar__group.is-open > .products-sidebar__group-links { display:block; }
  .products-sidebar__group-links .products-sidebar__parent-link,
  .products-sidebar__group-links .products-sidebar__child { border-top:1px solid #e3e1de; border-radius:0; }
  .products-sidebar__grandchildren,
  .products-sidebar__child-item:hover > .products-sidebar__grandchildren,
  .products-sidebar__child-item:focus-within > .products-sidebar__grandchildren {
    position:static;
    display:block;
    width:auto;
    max-height:none;
    padding:0;
    border:0;
    border-radius:0;
    box-shadow:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
  .products-sidebar__grandchild { padding-left:48px !important; border-top:1px solid #e3e1de !important; border-radius:0; }
}

/* Commerce refresh: let the product photo carry the card. */
.products-sidebar__grandchildren { background:#f8f8f8; border-top:1px solid #e3e1de; }
.products-sidebar nav a.products-sidebar__grandchild { min-height:32px; padding:7px 20px 7px 48px; color:#777; font-size:11px; }
.products-sidebar nav a.products-sidebar__grandchild:hover,
.products-sidebar nav a.products-sidebar__grandchild.is-active { color:var(--clr-red); background:#fff; }
.product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.product-card { border-radius:12px; box-shadow:0 8px 24px rgba(20,20,20,.05); }
.product-card__media { height:clamp(270px,25vw,360px); background:#f7f7f7; }
.product-card__media img { padding:10px; }
.product-card__badge { position:absolute; z-index:2; top:14px; left:14px; padding:5px 8px; background:var(--clr-red); color:#fff; font-size:10px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.product-card__body { min-height:174px; padding:16px 18px 18px; }
.product-card__category { color:#777; letter-spacing:.1em; }
.product-card__title-row h2 { min-height:48px; max-height:48px; font-size:17px; -webkit-line-clamp:2; }
.product-card__commercial { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-top:12px; padding-top:10px; border-top:1px solid #eceae7; }
.product-card__commercial strong { color:#161616; font-size:22px; letter-spacing:-.03em; }
.product-card__commercial span { color:#777; font-size:11px; text-align:right; }
.product-card__inquiry { display:flex; align-items:center; justify-content:space-between; margin-top:auto; padding-top:12px; color:var(--clr-red); font-size:12px; font-weight:800; }
.product-card__inquiry b { font-size:18px; transition:transform .2s; }
.product-card:hover .product-card__inquiry b { transform:translateX(4px); }

/* Alibaba-inspired decision panel on the detail page. */
.product-detail__hero { grid-template-columns:minmax(0,1.02fr) minmax(0,1.08fr) minmax(240px,.56fr); gap:28px; }
.product-detail__summary { position:static; padding:24px 0 0; }
.product-detail__summary h1 { font-size:clamp(30px,2.35vw,46px); }
.product-detail__inquiry-panel { position:sticky; top:calc(var(--header-h) + 28px); padding:24px; border:1px solid #e7e5e2; border-radius:14px; background:#fff; box-shadow:0 12px 32px rgba(20,20,20,.06); }
.product-detail__inquiry-panel h2 { margin:0 0 10px; font-family:var(--ff-display); font-size:22px; }
.product-detail__inquiry-panel p { color:#666; font-size:13px; line-height:1.55; }
.product-detail__inquiry-panel .btn { width:100%; margin-top:16px; }
.product-detail__trust-list { display:grid; gap:10px; margin:20px 0 0; padding-top:18px; border-top:1px solid #eceae7; }
.product-detail__trust-list li { color:#555; font-size:12px; }
.product-detail__trust-list li::before { content:'✓'; margin-right:8px; color:var(--clr-red); font-weight:800; }
.product-price-tiers { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin:18px 0 24px; }
.product-price-tier { padding:13px; border:1px solid #e9e6e2; background:#faf9f7; }
.product-price-tier strong { display:block; font-size:22px; }
.product-price-tier span { color:#777; font-size:11px; }
@media(max-width:980px) {
  .product-detail__hero { grid-template-columns:1fr 1fr; }
  .product-detail__inquiry-panel { grid-column:1 / -1; position:static; }
}
@media(max-width:620px) { .product-detail__hero { grid-template-columns:1fr; } }
