/* =========================================================
   KHAGAN — PRODUCTS PREMIUM V1
   Requires: style.css + khagan-core.css
   ========================================================= */

.page-products-premium{
  --khp-bg:#fff;
  --khp-paper:#efeee9;
  --khp-paper-2:#f6f5f2;
  --khp-line:#d9d9d4;
  --khp-text:#111;
  --khp-muted:#6f6f6a;
  --khp-gold:#f0b400;
}

.page-products-premium .khp-wrap{
  width:min(calc(100% - var(--khx-side)*2),var(--khx-max));
  margin:0 auto;
}

/* Hero */
.page-products-premium .khp-hero{
  background:#f4f3ef;
  border-bottom:1px solid var(--khp-line);
}
.page-products-premium .khp-hero-grid{
  min-height:430px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.72fr);
  align-items:end;
  gap:clamp(54px,8vw,150px);
  padding-top:88px;
  padding-bottom:72px;
}
.page-products-premium .khp-hero h1{
  margin:20px 0 0;
  font-size:clamp(58px,7.8vw,122px);
  line-height:.82;
  letter-spacing:-.07em;
  font-weight:800;
}
.page-products-premium .khp-hero-copy{
  padding-bottom:8px;
}
.page-products-premium .khp-hero-copy>p{
  max-width:590px;
  margin:0;
  color:#53534f;
  font-family:Tahoma,Arial,sans-serif;
  font-size:16px;
  line-height:1.8;
}
.page-products-premium .khp-hero-facts{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:44px;
}
.page-products-premium .khp-hero-facts div{
  padding-top:15px;
  border-top:1px solid #c9c9c3;
}
.page-products-premium .khp-hero-facts strong{
  display:block;
  font-size:28px;
  line-height:1;
  letter-spacing:-.045em;
}
.page-products-premium .khp-hero-facts span{
  display:block;
  margin-top:8px;
  color:#777;
  font-size:9px;
  font-weight:800;
  letter-spacing:.14em;
}

/* Category index */
.page-products-premium .khp-categories{
  background:#0a0a0a;
  color:#fff;
}
.page-products-premium .khp-category-grid{
  width:min(100%,var(--khx-max));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.page-products-premium .khp-category-grid>a{
  position:relative;
  min-height:220px;
  padding:28px 30px 26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  color:#fff;
  text-decoration:none;
  border-right:1px solid #282828;
  overflow:hidden;
  transition:background .25s ease,color .25s ease;
}
.page-products-premium .khp-category-grid>a:first-child{border-left:1px solid #282828}
.page-products-premium .khp-category-grid>a::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 78% 14%,rgba(255,255,255,.13),transparent 27%),linear-gradient(145deg,rgba(255,255,255,.025),transparent 55%);
  transform:scale(1);
  transition:transform .35s ease;
}
.page-products-premium .khp-category-grid>a:hover::before,
.page-products-premium .khp-category-grid>a.is-active::before{transform:scale(1.08)}
.page-products-premium .khp-category-grid>a:hover,
.page-products-premium .khp-category-grid>a.is-active{background:#f0b400;color:#111}
.page-products-premium .khp-category-no{
  position:absolute;
  top:24px;
  left:28px;
  z-index:1;
  color:#727272;
  font-size:10px;
  font-weight:800;
  letter-spacing:.14em;
}
.page-products-premium .khp-category-grid>a:hover .khp-category-no,
.page-products-premium .khp-category-grid>a.is-active .khp-category-no{color:#6a5200}
.page-products-premium .khp-category-grid small,
.page-products-premium .khp-category-grid strong,
.page-products-premium .khp-category-grid i{position:relative;z-index:1}
.page-products-premium .khp-category-grid small{font-size:9px;font-weight:800;letter-spacing:.16em;color:#888}
.page-products-premium .khp-category-grid>a:hover small,
.page-products-premium .khp-category-grid>a.is-active small{color:#655000}
.page-products-premium .khp-category-grid strong{margin-top:7px;font-size:clamp(21px,2vw,30px);line-height:1;letter-spacing:-.04em}
.page-products-premium .khp-category-grid i{position:absolute;right:28px;bottom:27px;font-style:normal;font-size:18px;transition:transform .2s ease}
.page-products-premium .khp-category-grid>a:hover i{transform:translate(4px,4px)}

/* Catalog header */
.page-products-premium .khp-catalog{padding:90px 0 110px;background:#fff}
.page-products-premium .khp-catalog-head{
  display:grid;
  grid-template-columns:1fr minmax(340px,.7fr);
  gap:60px;
  align-items:end;
  padding-bottom:42px;
}
.page-products-premium .khp-catalog-head h2{
  margin:14px 0 0;
  font-size:clamp(42px,5.2vw,76px);
  line-height:.9;
  letter-spacing:-.055em;
}
.page-products-premium .khp-catalog-head>p{
  max-width:520px;
  margin:0;
  color:#666;
  font-family:Tahoma,Arial,sans-serif;
  font-size:14px;
  line-height:1.75;
}

/* Toolbar */
.page-products-premium .khp-toolbar{
  position:sticky;
  top:var(--khx-header);
  z-index:80;
  background:rgba(255,255,255,.97);
  border-top:1px solid var(--khp-line);
  border-bottom:1px solid var(--khp-line);
  backdrop-filter:blur(12px);
}
.page-products-premium .khp-toolbar-inner{
  width:min(calc(100% - var(--khx-side)*2),var(--khx-max));
  min-height:62px;
  margin:0 auto;
  display:grid;
  grid-template-columns:150px 1fr auto;
  align-items:center;
  gap:20px;
}
.page-products-premium .khp-count{color:#777;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.page-products-premium .khp-filter-scroll{display:flex;align-items:stretch;justify-content:center;gap:0;min-width:0;height:61px}
.page-products-premium .khp-filter{
  position:relative;
  min-width:0;
  padding:0 18px;
  border:0;
  background:transparent;
  color:#555;
  font-size:10px;
  font-weight:800;
  letter-spacing:.09em;
  cursor:pointer;
  white-space:nowrap;
}
.page-products-premium .khp-filter span{margin-left:5px;color:#a3a39f;font-size:8px}
.page-products-premium .khp-filter::after{content:"";position:absolute;left:18px;right:18px;bottom:-1px;height:2px;background:#111;transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.page-products-premium .khp-filter:hover,.page-products-premium .khp-filter.is-active{color:#111}
.page-products-premium .khp-filter.is-active::after{transform:scaleX(1)}
.page-products-premium .khp-sort{display:flex;align-items:center;gap:10px;color:#777;font-size:9px;font-weight:800;letter-spacing:.11em;white-space:nowrap}
.page-products-premium .khp-sort select{height:38px;padding:0 32px 0 10px;border:0;border-left:1px solid #ddd;background:#fff;color:#111;font-size:10px;font-weight:700;outline:none;cursor:pointer}

/* Grid */
.page-products-premium .khp-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:60px 18px;
  padding-top:42px;
}
.page-products-premium .khp-product[hidden]{display:none!important}
.page-products-premium .khp-product{min-width:0;text-align:center}
.page-products-premium .khp-media{
  position:relative;
  aspect-ratio:3/4;
  display:block;
  overflow:hidden;
  background:var(--khp-paper);
  color:#111;
  text-decoration:none;
}
.page-products-premium .khp-media::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.86),rgba(255,255,255,.16) 36%,rgba(0,0,0,.035) 78%),linear-gradient(165deg,#f4f3ef,#deddd8);
  transition:transform .5s cubic-bezier(.2,.65,.25,1);
}
.page-products-premium .khp-product:nth-child(4n+2) .khp-media::before{background:radial-gradient(circle at 50% 36%,#faf9f5,rgba(255,255,255,.2) 38%,rgba(0,0,0,.06) 80%),linear-gradient(160deg,#eeeae3,#d4d1ca)}
.page-products-premium .khp-product:nth-child(4n+3) .khp-media::before{background:radial-gradient(circle at 48% 35%,#f7f7f5,rgba(255,255,255,.2) 38%,rgba(0,0,0,.065) 80%),linear-gradient(160deg,#eceeea,#d1d4cf)}
.page-products-premium .khp-product:nth-child(4n+4) .khp-media::before{background:radial-gradient(circle at 52% 38%,#f5f3ed,rgba(255,255,255,.18) 38%,rgba(0,0,0,.06) 80%),linear-gradient(160deg,#ece8df,#d2ccc0)}
.page-products-premium .khp-product:hover .khp-media::before{transform:scale(1.035)}
.page-products-premium .khp-media img{position:relative;z-index:1;width:100%;height:100%;display:block;object-fit:contain;padding:4%;transition:transform .4s ease}
.page-products-premium .khp-product:hover .khp-media img{transform:scale(1.025)}
.page-products-premium .khp-media-placeholder{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:28px;
  text-align:center;
}
.page-products-premium .khp-media-placeholder::after{
  content:"KHAGAN";
  position:absolute;
  bottom:8%;
  left:0;
  right:0;
  color:rgba(0,0,0,.04);
  font-size:clamp(42px,4.5vw,72px);
  font-weight:800;
  letter-spacing:-.06em;
  pointer-events:none;
}
.page-products-premium .khp-media-placeholder span{color:#898984;font-size:8px;font-weight:800;letter-spacing:.16em}
.page-products-premium .khp-media-placeholder strong{margin-top:16px;color:rgba(17,17,17,.19);font-size:clamp(27px,2.4vw,42px);line-height:.9;letter-spacing:-.06em}
.page-products-premium .khp-badge{
  position:absolute;
  left:50%;
  bottom:0;
  z-index:3;
  transform:translateX(-50%);
  min-width:72px;
  padding:8px 11px;
  background:#111;
  color:#fff;
  font-size:8px;
  font-weight:800;
  letter-spacing:.12em;
  text-align:center;
  white-space:nowrap;
}
.page-products-premium .khp-badge--gold{background:var(--khp-gold);color:#111}
.page-products-premium .khp-info{padding:16px 8px 0}
.page-products-premium .khp-meta{color:#888;font-size:8px;font-weight:800;letter-spacing:.14em}
.page-products-premium .khp-info h3{margin:8px 0 5px;font-size:14px;line-height:1.35;font-weight:700}
.page-products-premium .khp-info h3 a{text-decoration:none}
.page-products-premium .khp-info h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.page-products-premium .khp-info p{min-height:38px;margin:0;color:#74746f;font-family:Tahoma,Arial,sans-serif;font-size:11px;line-height:1.55}
.page-products-premium .khp-price{display:block;margin-top:8px;font-size:12px;font-weight:800}

/* Empty */
.page-products-premium .khp-empty{width:min(calc(100% - var(--khx-side)*2),var(--khx-max));margin:0 auto;padding:90px 0 0;text-align:center;border-top:1px solid var(--khp-line)}
.page-products-premium .khp-empty[hidden]{display:none}
.page-products-premium .khp-empty span{color:#999;font-size:9px;font-weight:800;letter-spacing:.18em}
.page-products-premium .khp-empty h3{margin:14px 0 8px;font-size:28px;letter-spacing:-.03em}
.page-products-premium .khp-empty p{margin:0;color:#777;font-family:Tahoma,Arial,sans-serif;font-size:13px}

/* Statement */
.page-products-premium .khp-statement{background:#090909;color:#fff}
.page-products-premium .khp-statement-grid{
  min-height:480px;
  display:grid;
  grid-template-columns:1fr minmax(340px,.72fr);
  gap:clamp(60px,10vw,170px);
  align-items:end;
  padding-top:90px;
  padding-bottom:86px;
}
.page-products-premium .khp-statement h2{margin:18px 0 0;font-size:clamp(50px,7.2vw,106px);line-height:.85;letter-spacing:-.065em}
.page-products-premium .khp-statement-grid>div:last-child{padding-bottom:8px}
.page-products-premium .khp-statement-grid>div:last-child>p{max-width:520px;margin:0 0 30px;color:#a4a4a0;font-family:Tahoma,Arial,sans-serif;font-size:15px;line-height:1.8}

@media (max-width:1180px){
  .page-products-premium .khp-hero-grid{grid-template-columns:1fr .72fr;gap:56px}
  .page-products-premium .khp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:50px 16px}
  .page-products-premium .khp-toolbar-inner{grid-template-columns:120px 1fr auto}
  .page-products-premium .khp-filter{padding:0 12px}
  .page-products-premium .khp-filter::after{left:12px;right:12px}
}

@media (max-width:900px){
  .page-products-premium .khp-hero-grid{min-height:0;grid-template-columns:1fr;gap:34px;padding-top:72px;padding-bottom:54px}
  .page-products-premium .khp-hero-copy{max-width:680px}
  .page-products-premium .khp-categories{overflow:hidden}
  .page-products-premium .khp-category-grid{width:max-content;min-width:100%;grid-template-columns:repeat(4,220px);overflow-x:auto}
  .page-products-premium .khp-category-grid>a{min-height:170px;padding:22px 22px 20px}
  .page-products-premium .khp-category-no{top:20px;left:22px}
  .page-products-premium .khp-category-grid i{right:20px;bottom:20px}
  .page-products-premium .khp-catalog{padding:70px 0 90px}
  .page-products-premium .khp-catalog-head{grid-template-columns:1fr;gap:20px;padding-bottom:34px}
  .page-products-premium .khp-toolbar-inner{width:100%;grid-template-columns:auto 1fr auto;gap:10px;padding-left:18px}
  .page-products-premium .khp-filter-scroll{justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .page-products-premium .khp-filter-scroll::-webkit-scrollbar{display:none}
  .page-products-premium .khp-filter{padding:0 14px}
  .page-products-premium .khp-count{display:none}
  .page-products-premium .khp-toolbar-inner{grid-template-columns:1fr auto}
  .page-products-premium .khp-sort span{display:none}
  .page-products-premium .khp-sort select{border-left:1px solid #ddd}
  .page-products-premium .khp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:42px 14px;padding-top:30px}
  .page-products-premium .khp-statement-grid{min-height:420px;grid-template-columns:1fr;gap:46px;padding-top:72px;padding-bottom:68px}
}

@media (max-width:560px){
  .page-products-premium .khp-hero h1{font-size:clamp(48px,17vw,72px)}
  .page-products-premium .khp-hero-copy>p{font-size:14px}
  .page-products-premium .khp-hero-facts{margin-top:30px}
  .page-products-premium .khp-category-grid{grid-template-columns:repeat(4,185px)}
  .page-products-premium .khp-category-grid>a{min-height:150px}
  .page-products-premium .khp-toolbar{top:var(--khx-header)}
  .page-products-premium .khp-toolbar-inner{padding-left:8px}
  .page-products-premium .khp-filter{padding:0 11px;font-size:9px}
  .page-products-premium .khp-sort select{max-width:104px;padding-left:8px;font-size:9px}
  .page-products-premium .khp-grid{gap:34px 10px}
  .page-products-premium .khp-info{padding:12px 3px 0}
  .page-products-premium .khp-info h3{font-size:12px}
  .page-products-premium .khp-info p{min-height:36px;font-size:10px}
  .page-products-premium .khp-price{font-size:11px}
  .page-products-premium .khp-media-placeholder{padding:16px}
  .page-products-premium .khp-media-placeholder span{font-size:7px}
  .page-products-premium .khp-media-placeholder strong{font-size:clamp(21px,7vw,30px)}
  .page-products-premium .khp-statement h2{font-size:clamp(46px,15vw,72px)}
}

@media (prefers-reduced-motion:reduce){
  .page-products-premium .khp-media::before,
  .page-products-premium .khp-media img,
  .page-products-premium .khp-category-grid>a::before,
  .page-products-premium .khp-category-grid i{transition:none!important}
}
/* =========================================================
   KHAGAN — PRODUCT DETAIL ENHANCEMENTS
   Scope: luminous / product detail page only
   Purpose:
   - preserve existing KHAGAN global/header/footer styling
   - non-cropped product gallery
   - horizontal size stock scrolling
   - mobile finger swipe
   - vertical stock scrolling with normal page scroll chaining
   - technical feature icons
   ========================================================= */

/* ---------- Product detail layout ---------- */

main.page > .product-grid{
  --khd-text:#111;
  --khd-muted:#777;
  --khd-line:#e7e7e7;
  --khd-dark:#262b2f;
  --khd-green:#22a447;
  --khd-sold:#e94343;

  width:min(calc(100% - var(--khx-side)*2),var(--khx-max));
  margin:0 auto;
  padding-top:32px;
  padding-bottom:40px;

  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(480px,.95fr);
  gap:clamp(28px,3vw,46px);
  align-items:start;
}

/* ---------- Gallery ---------- */

main.page > .product-grid .gallery-wrap{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:14px;
  min-width:0;
}

main.page > .product-grid .thumbs{
  display:flex;
  flex-direction:column;
  gap:10px;
}

main.page > .product-grid .thumb{
  width:90px;
  height:94px;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  border:1px solid transparent;
  background:#f4f4f4;
}

main.page > .product-grid .thumb.active{
  border-color:#111;
}

main.page > .product-grid .thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/*
  Important:
  object-fit:contain prevents the large product image from being
  enlarged/cropped inside the gallery.
*/
main.page > .product-grid .hero{
  position:relative;
  height:clamp(520px,46vw,640px);
  min-width:0;
  overflow:hidden;
  background:#f4f4f4;
}

main.page > .product-grid .hero img{
  width:100%;
  height:100%;
  display:block;
  padding:clamp(10px,1.3vw,18px);
  object-fit:contain;
  object-position:center;
  transition:opacity .2s ease;
}

main.page > .product-grid .hero .navbtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#111;
  font-size:30px;
  line-height:1;
  cursor:pointer;
}

main.page > .product-grid .hero .prev{left:12px}
main.page > .product-grid .hero .next{right:12px}

/* Fullscreen/expand UI intentionally disabled. */
main.page > .product-grid .hero .expand,
main.page > .product-grid #expandBtn{
  display:none!important;
}

/* ---------- Product benefits below gallery ---------- */

main.page > .product-grid .benefits{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:24px;
}

main.page > .product-grid .benefit{
  min-height:105px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  text-align:center;
  color:#545454;
  border-right:1px solid var(--khd-line);
  font-size:12px;
  line-height:1.35;
}

main.page > .product-grid .benefit:last-child{
  border-right:0;
}

main.page > .product-grid .benefit svg{
  width:42px;
  height:42px;
  margin-bottom:7px;
  color:#111;
}

/* ---------- Detail information ---------- */

main.page > .product-grid .details{
  min-width:0;
  padding-bottom:20px;
}

main.page > .product-grid .breadcrumb{
  margin:4px 0 30px;
  color:#8a8a8a;
  font-size:12px;
}

main.page > .product-grid .eyebrow{
  margin-bottom:12px;
  color:#878787;
  font-size:11px;
  letter-spacing:.22em;
}

main.page > .product-grid .title-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,250px);
  gap:28px;
  align-items:start;
}

main.page > .product-grid h1{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(44px,4vw,58px);
  font-weight:500;
  line-height:.95;
  letter-spacing:-.035em;
}

main.page > .product-grid h1 span{
  display:block;
  margin-top:6px;
  font-size:.74em;
  letter-spacing:-.025em;
}

main.page > .product-grid .description{
  margin:18px 0 0;
  color:#626262;
  font-family:Tahoma,Arial,sans-serif;
  font-size:14px;
  line-height:1.65;
}

main.page > .product-grid .price{
  margin:18px 0 30px;
  color:#111;
  font-size:30px;
  font-weight:800;
}

main.page > .product-grid .label{
  margin-bottom:12px;
  font-size:14px;
  font-weight:700;
}

main.page > .product-grid .label .muted{
  margin-left:12px;
  color:#888;
  font-weight:500;
}

main.page > .product-grid .swatches{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin-bottom:30px;
}

main.page > .product-grid .swatch{
  width:39px;
  height:39px;
  padding:4px;
  border:1px solid transparent;
  border-radius:50%;
  background:#fff;
  cursor:pointer;
}

main.page > .product-grid .swatch > span{
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
}

main.page > .product-grid .swatch.active{
  border-color:#111;
}

main.page > .product-grid .order{
  width:100%;
  min-height:58px;
  margin:0 0 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  background:var(--khd-dark);
  color:#fff;
  text-decoration:none;
  font-size:17px;
  cursor:pointer;
}

/* ---------- Stock / size availability ---------- */

main.page > .product-grid .stock-card{
  border:1px solid #ddd;
  background:#fff;
}

main.page > .product-grid .stock-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 14px 12px;
  border-bottom:1px solid #ededed;
}

main.page > .product-grid .stock-head h2{
  margin:0;
  font-size:15px;
  letter-spacing:.02em;
}

main.page > .product-grid .stock-head small{
  color:#8b8b8b;
  font-size:11px;
}

main.page > .product-grid .stock-hint-mobile{
  display:none;
}

/*
  Vertical stock viewport.
  overscroll-behavior-y:auto is intentional:
  at the top/bottom edge the user's vertical gesture can continue
  scrolling the main page instead of trapping the page.
*/
main.page > .product-grid .stock-list{
  position:relative;
  max-height:330px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#bfc1c4 transparent;
}

main.page > .product-grid .stock-list::-webkit-scrollbar{
  width:7px;
}

main.page > .product-grid .stock-list::-webkit-scrollbar-track{
  background:transparent;
}

main.page > .product-grid .stock-list::-webkit-scrollbar-thumb{
  border-radius:999px;
  background:#bfc1c4;
}

main.page > .product-grid .stock-row{
  display:grid;
  grid-template-columns:128px 24px minmax(0,1fr) 24px;
  align-items:center;
  gap:3px;
  min-height:74px;
  padding:7px 8px;
  border-bottom:1px solid #ececec;
  transition:background .22s ease,box-shadow .22s ease;
}

main.page > .product-grid .stock-row:last-child{
  border-bottom:0;
}

main.page > .product-grid .stock-row.is-active{
  background:#fafafa;
  box-shadow:inset 3px 0 0 #111;
}

main.page > .product-grid .variant{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px;
  color:#111;
  font-size:12px;
  font-weight:700;
}

main.page > .product-grid .variant img{
  width:44px;
  height:52px;
  flex:0 0 auto;
  object-fit:contain;
  background:#f2f2f2;
}

main.page > .product-grid .row-arrow{
  padding:0;
  border:0;
  background:transparent;
  color:#222;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

/*
  Horizontal size strip:
  - trackpad / wheel where supported
  - mouse drag via page JS
  - native finger swipe on mobile
*/
main.page > .product-grid .size-strip{
  min-width:0;
  display:flex;
  gap:5px;
  padding:1px 0 4px;
  overflow-x:auto;
  overflow-y:hidden;
  cursor:grab;
  scroll-behavior:smooth;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
  overscroll-behavior-y:auto;
  -webkit-overflow-scrolling:touch;
  touch-action:auto;
}

main.page > .product-grid .size-strip::-webkit-scrollbar{
  display:none;
}

main.page > .product-grid .size-strip.dragging{
  cursor:grabbing;
  user-select:none;
}

main.page > .product-grid .size-chip{
  min-width:54px;
  height:50px;
  flex:0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:1px solid #dedede;
  border-radius:6px;
  background:#fff;
  font-size:11px;
  scroll-snap-align:start;
}

main.page > .product-grid .size-chip span{
  color:#333;
  font-weight:600;
}

main.page > .product-grid .size-chip strong{
  margin-top:2px;
  color:var(--khd-green);
  font-size:11px;
  font-weight:700;
}

main.page > .product-grid .size-chip.sold{
  min-width:67px;
  border-color:#f4caca;
  background:#fff4f4;
}

main.page > .product-grid .size-chip.sold strong{
  color:var(--khd-sold);
  font-size:10px;
}

/* ---------- Product story / material features ---------- */

main.page > .lower{
  width:min(calc(100% - var(--khx-side)*2),var(--khx-max));
  margin:60px auto 0;
  padding-top:48px;
  border-top:1px solid #eee;
}

main.page > .lower .story{
  max-width:930px;
  margin:0 auto;
  text-align:center;
}

main.page > .lower .story .eyebrow{
  margin-bottom:8px;
  color:#878787;
  font-size:11px;
  letter-spacing:.22em;
}

main.page > .lower .story h3{
  margin:0 0 22px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(34px,3.5vw,42px);
  font-weight:500;
  line-height:1.05;
}

main.page > .lower .story p{
  max-width:930px;
  margin:0 auto;
  color:#5d5d5d;
  font-family:Tahoma,Arial,sans-serif;
  font-size:15px;
  line-height:1.75;
}

main.page > .lower .tech-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:46px;
  border-top:1px solid #eee;
  border-left:1px solid #eee;
}

main.page > .lower .tech{
  min-height:175px;
  padding:26px 24px;
  border-right:1px solid #eee;
  border-bottom:1px solid #eee;
}

main.page > .lower .tech-icon{
  width:38px;
  height:38px;
  margin-bottom:16px;
  color:#111;
}

main.page > .lower .tech-icon svg{
  width:100%;
  height:100%;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

main.page > .lower .tech b{
  display:block;
  margin-bottom:9px;
  font-size:15px;
  letter-spacing:.02em;
}

main.page > .lower .tech p{
  margin:0;
  color:#777;
  font-family:Tahoma,Arial,sans-serif;
  font-size:13px;
  line-height:1.55;
}

/* ---------- Product detail responsive ---------- */

@media (max-width:1180px){
  main.page > .product-grid{
    grid-template-columns:minmax(0,1fr) minmax(420px,.86fr);
    gap:28px;
  }

  main.page > .product-grid .title-row{
    grid-template-columns:1fr;
    gap:0;
  }

  main.page > .product-grid .description{
    max-width:620px;
  }
}

@media (max-width:900px){
  main.page > .product-grid{
    grid-template-columns:1fr;
    padding-top:24px;
  }

  main.page > .product-grid .hero{
    height:min(72vw,640px);
    min-height:500px;
  }

  main.page > .lower{
    margin-top:48px;
    padding-top:42px;
  }
}

@media (max-width:700px){
  main.page > .product-grid{
    width:min(calc(100% - 24px),var(--khx-max));
    padding-top:18px;
    padding-bottom:30px;
  }

  main.page > .product-grid .gallery-wrap{
    grid-template-columns:1fr;
  }

  main.page > .product-grid .thumbs{
    order:2;
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  main.page > .product-grid .thumbs::-webkit-scrollbar{
    display:none;
  }

  main.page > .product-grid .thumb{
    width:72px;
    height:76px;
    flex:0 0 72px;
  }

  main.page > .product-grid .hero{
    height:auto;
    min-height:0;
    aspect-ratio:4/5;
  }

  main.page > .product-grid .hero img{
    height:100%;
    padding:10px;
    object-fit:contain;
  }

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

  main.page > .product-grid .benefit:nth-child(2){
    border-right:0;
  }

  main.page > .product-grid .benefit:nth-child(-n+2){
    border-bottom:1px solid var(--khd-line);
  }

  main.page > .product-grid h1{
    font-size:clamp(40px,12vw,48px);
  }

  main.page > .product-grid .price{
    font-size:26px;
  }

  main.page > .product-grid .stock-head{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }

  main.page > .product-grid .stock-head small{
    display:none;
  }

  main.page > .product-grid .stock-hint-mobile{
    display:block;
    padding:8px 10px 0;
    color:#919191;
    font-size:10px;
    line-height:1.45;
  }

  main.page > .product-grid .stock-list{
    max-height:300px;
  }

  main.page > .product-grid .stock-row{
    grid-template-columns:92px minmax(0,1fr);
    gap:7px;
    min-height:68px;
    padding:6px 5px;
  }

  main.page > .product-grid .row-arrow{
    display:none;
  }

  main.page > .product-grid .variant{
    gap:5px;
    font-size:10px;
  }

  main.page > .product-grid .variant img{
    width:36px;
    height:44px;
  }

  main.page > .product-grid .size-strip{
    width:100%;
    padding-left:2px;
    padding-right:10px;
  }

  main.page > .product-grid .size-chip{
    min-width:50px;
  }

  main.page > .lower{
    width:min(calc(100% - 24px),var(--khx-max));
    margin-top:42px;
    padding-top:36px;
  }

  main.page > .lower .tech-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:480px){
  main.page > .product-grid .benefit{
    min-height:96px;
    padding:8px 10px;
    font-size:10px;
  }

  main.page > .product-grid .benefit svg{
    width:36px;
    height:36px;
  }

  main.page > .lower .tech{
    min-height:160px;
    padding:21px 16px;
  }

  main.page > .lower .tech-icon{
    width:34px;
    height:34px;
    margin-bottom:13px;
  }

  main.page > .lower .tech b{
    font-size:12px;
  }

  main.page > .lower .tech p{
    font-size:11px;
  }
}

@media (prefers-reduced-motion:reduce){
  main.page > .product-grid .hero img,
  main.page > .product-grid .stock-row,
  main.page > .product-grid .size-strip{
    scroll-behavior:auto;
    transition:none!important;
  }
}
