/* ==========================================================================
   Ninja Pro — v31 product page: "the slip, clamped on the dock".
   Loaded by web/product.html only, after theme-v30.css, so every token
   (--ground, --slip, --accent, --rule, the type scale) is inherited from the
   homepage skin instead of being re-declared. Nothing here touches the Mini
   App: every rule is scoped to html[data-storefront-surface="website"].
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page frame — a crumb, a supplier line, no card, no pill
   -------------------------------------------------------------------------- */
html[data-storefront-surface="website"] .product-detail-page{
  padding-top:0;
  padding-bottom:clamp(36px,5vw,64px);
}
html[data-storefront-surface="website"] .back-to-catalog{
  display:inline-flex;align-items:center;gap:9px;
  min-height:44px;margin:10px 0 0;padding:0;
  color:var(--navy-2);font-size:var(--t-meta);font-weight:700;letter-spacing:.01em;
}
html[data-storefront-surface="website"] .back-to-catalog:before{
  content:"";width:14px;height:1px;background:currentColor;opacity:.7;
}
html[data-storefront-surface="website"] .back-to-catalog:hover{color:#fff}

html[data-storefront-surface="website"] .product-detail-page>.supplier-notice{
  justify-content:flex-start;margin:0 0 6px;padding:0;gap:8px;
  color:var(--navy-3);font-size:var(--t-micro);line-height:1.6;text-align:start;
}
html[data-storefront-surface="website"] .product-detail-page>.supplier-notice svg{
  width:14px;height:14px;flex:0 0 14px;stroke:currentColor;stroke-width:1.3;
}

/* --------------------------------------------------------------------------
   2. The two columns
   -------------------------------------------------------------------------- */
html[data-storefront-surface="website"] .product-layout{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);
  gap:clamp(24px,4vw,60px);
  align-items:start;
  padding-top:clamp(14px,2vw,24px);
}
html[data-storefront-surface="website"] .product-layout .product-detail-copy{
  grid-column:1;grid-row:1;min-width:0;display:block;
}
html[data-storefront-surface="website"] .product-buy-box{grid-column:2;grid-row:1 / span 2}
html[data-storefront-surface="website"] .product-information{grid-column:1;grid-row:2;max-width:62ch}

/* --------------------------------------------------------------------------
   3. The copy column — identity, name, description, activity
   -------------------------------------------------------------------------- */
html[data-storefront-surface="website"] .product-identity{gap:14px}
html[data-storefront-surface="website"] .product-identity .product-symbol{
  width:52px;height:52px;border-radius:4px;border:1px solid #0b1524;
  background:#0b1524;color:var(--slip);
  display:grid;place-items:center;overflow:hidden;flex:none;
  font-family:ManropeWebsite,Manrope,system-ui,sans-serif;
  font-size:1.5rem;font-weight:800;line-height:1;letter-spacing:-.03em;
}
html[data-storefront-surface="website"] .product-identity .product-symbol img{
  width:30px;height:30px;object-fit:contain;display:block;
}
html[data-storefront-surface="website"] .product-identity .eyebrow{
  margin:0;color:var(--navy-2);font-size:var(--t-micro);font-weight:800;
  letter-spacing:.14em;text-transform:uppercase;
}

html[data-storefront-surface="website"] .detail-badges{margin:16px 0 0;gap:10px}
html[data-storefront-surface="website"] .detail-badges .supplier-badge,
html[data-storefront-surface="website"] .detail-badges .shop-pick-badge{
  display:inline-flex;align-items:center;gap:6px;padding:0;border:0;border-radius:0;
  background:none;color:var(--navy-3);font-size:var(--t-micro);font-weight:700;line-height:1.5;
}
html[data-storefront-surface="website"] .detail-badges .supplier-badge:before{
  content:"";width:5px;height:5px;border-radius:50%;background:#3d8f6a;flex:none;
}
html[data-storefront-surface="website"] .detail-badges .shop-pick-badge{
  color:#0b1524;background:#e6dc9f;padding:2px 7px;border-radius:2px;
  font-weight:800;letter-spacing:.07em;text-transform:uppercase;
}

html[data-storefront-surface="website"] .product-detail-copy h1{
  margin:14px 0 0;max-width:15ch;
  font-size:var(--t-display);line-height:1.02;letter-spacing:-.04em;font-weight:800;
  color:#fff;text-wrap:balance;
}
html[data-storefront-surface="website"] .product-detail-copy>p,
html[data-storefront-surface="website"] #detailDescription{
  margin:14px 0 0;max-width:46ch;
  color:#b7c6db;font-size:var(--t-small);line-height:1.6;
}
html[data-storefront-surface="website"] .product-detail-activity{
  margin-top:20px;padding-top:14px;border-top:1px solid var(--rule);
  font-size:var(--t-meta);color:var(--navy-3);
}
html[data-storefront-surface="website"] .product-detail-activity:empty{display:none}
html[data-storefront-surface="website"] .product-detail-copy .activity-toggle{
  min-height:32px;margin-top:2px;padding:0 9px;
  border:1px solid var(--rule);border-radius:var(--radius);
  background:transparent;color:var(--navy-3);font-size:var(--t-micro);font-weight:700;
  white-space:nowrap;
}
html[data-storefront-surface="website"] .product-detail-copy .activity-toggle:hover{
  color:#fff;border-color:#3d5372;
}

/* --------------------------------------------------------------------------
   4. The slip — the buy box printed on paper
   -------------------------------------------------------------------------- */
html[data-storefront-surface="website"] .product-buy-box{
  position:sticky;top:18px;
  background:var(--slip);color:var(--slip-ink);
  border:1px solid #0a1220;border-radius:var(--radius);
  padding:0;overflow:hidden;
  box-shadow:0 22px 50px #00000059;
  transform-style:preserve-3d;
  will-change:transform;
  transition:box-shadow .3s ease-out;
}
html[data-storefront-surface="website"] .product-buy-box.is-tilting{
  transition:transform .12s ease-out, box-shadow .2s ease-out;
}

/* the 1px marker the phone bar watches; it rides the slip's top edge */
html[data-storefront-surface="website"] .plan-sentinel{
  position:absolute;top:0;inset-inline-start:0;width:1px;height:1px;
  pointer-events:none;opacity:0;
}

/* head: the printed title + the pressed stamp */
html[data-storefront-surface="website"] .slip-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 18px;border-bottom:2px solid var(--slip-ink);background:var(--slip-2);
}
html[data-storefront-surface="website"] .slip-head .buy-kicker{
  margin:0;font-size:var(--t-micro);font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;color:var(--slip-ink);
}
html[data-storefront-surface="website"] .slip-stamp{
  flex:none;display:inline-block;
  border:2px solid #16305e;color:#16305e;border-radius:2px;
  padding:2px 7px;transform:rotate(-4deg);opacity:.92;
  font-size:var(--t-micro);font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  white-space:nowrap;
}

/* plan rows: name ....... price, note under the name */
html[data-storefront-surface="website"] .detail-variants{display:block;margin:0;padding:0}
html[data-storefront-surface="website"] .detail-variant{
  position:relative;width:100%;min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"name price" "note price";
  align-items:center;column-gap:16px;row-gap:1px;
  padding:12px 18px;
  border:0;border-bottom:1px solid #d8d1c1;border-radius:0;background:transparent;
  text-align:start;color:var(--slip-ink);
  transition:background .14s linear;
}
html[data-storefront-surface="website"] .detail-variant:last-child{border-bottom:0}
html[data-storefront-surface="website"] .detail-variant:hover{background:#efe9db}
html[data-storefront-surface="website"] .detail-variant[aria-pressed="true"]{background:#efe9db}
/* website.css keeps a cyan selected state from the old skin; the slip prints a
   cream row with a cobalt edge instead, so the old border/shadow is cleared. */
html[data-storefront-surface="website"] .detail-variant.selected,
html[data-storefront-surface="website"] .detail-variant[aria-pressed="true"]{
  background:#efe9db;border-color:#d8d1c1;box-shadow:none;
}
html[data-storefront-surface="website"] .detail-variant[aria-pressed="true"]:before{
  content:"";position:absolute;inset-inline-start:0;top:0;bottom:0;width:3px;background:var(--accent);
}
html[data-storefront-surface="website"] .detail-variant:focus-visible{
  outline:2px solid var(--accent);outline-offset:-3px;
}
html[data-storefront-surface="website"] .detail-variant:disabled{opacity:.55;cursor:not-allowed}
html[data-storefront-surface="website"] .detail-variant .plan-name{
  grid-area:name;display:flex;align-items:baseline;gap:9px;min-width:0;
}
html[data-storefront-surface="website"] .detail-variant .plan-name b{
  font-size:var(--t-small);font-weight:800;letter-spacing:-.01em;white-space:nowrap;
}
html[data-storefront-surface="website"] .detail-variant .plan-leader{
  flex:1 1 auto;min-width:12px;border-bottom:1px dotted #b3ab9a;transform:translateY(-4px);
}
html[data-storefront-surface="website"] .detail-variant .plan-note{grid-area:note;min-width:0}
html[data-storefront-surface="website"] .detail-variant .plan-note small{
  display:block;margin:0;color:var(--slip-ink-2);font-size:var(--t-micro);line-height:1.4;
}
html[data-storefront-surface="website"] .detail-variant .plan-price{
  grid-area:price;align-self:center;
  display:flex;flex-direction:column;align-items:flex-end;gap:0;
  text-align:end;
}
html[data-storefront-surface="website"] .detail-variant .plan-price strong{
  font-size:1.25rem;font-weight:800;letter-spacing:-.035em;line-height:1.15;
  font-variant-numeric:tabular-nums;white-space:nowrap;
  direction:ltr;unicode-bidi:isolate;
}
html[data-storefront-surface="website"] .detail-variant .plan-price small{
  margin:0;color:var(--slip-ink-2);font-size:var(--t-micro);font-weight:700;line-height:1.4;
}

/* the perforated tear line above the total */
html[data-storefront-surface="website"] .slip-perf{
  border:0;border-top:1px dashed #b3ab9a;margin:0 18px;height:0;
}

/* total */
html[data-storefront-surface="website"] .product-buy-box .detail-total{
  margin:0;padding:14px 18px 4px;
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
}
html[data-storefront-surface="website"] .product-buy-box .detail-total>span{
  color:var(--slip-ink-2);font-size:var(--t-meta);font-weight:700;
}
html[data-storefront-surface="website"] .product-buy-box .detail-total>strong{
  font-size:2.15rem;line-height:1;font-weight:800;letter-spacing:-.045em;
  font-variant-numeric:tabular-nums;color:var(--slip-ink);
  direction:ltr;unicode-bidi:isolate;
}
html[data-storefront-surface="website"] .product-buy-box .price-equivalent{
  margin:0;padding:0 18px 2px;color:var(--slip-ink-2);font-size:var(--t-micro);font-weight:700;
}
html[data-storefront-surface="website"] .product-buy-box .billing-note{
  margin:0;padding:0 18px 14px;color:var(--slip-ink-2);font-size:var(--t-micro);line-height:1.5;
}

/* the one action: full-bleed cobalt at the foot of the slip */
html[data-storefront-surface="website"] .product-buy-box #detailCheckout{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  width:100%;min-height:56px;margin:0;padding:0 20px;
  border:1px solid var(--accent);border-radius:0;
  background:var(--accent);color:var(--accent-ink);
  font-size:var(--t-small);font-weight:800;letter-spacing:.01em;
  transition:background .14s linear,border-color .14s linear;
}
html[data-storefront-surface="website"] .product-buy-box #detailCheckout:hover:not(:disabled){
  background:var(--accent-hover);border-color:var(--accent-hover);
}
html[data-storefront-surface="website"] .product-buy-box #detailCheckout:disabled{
  background:#22364f;border-color:#22364f;color:#93a5bf;
}
html[data-storefront-surface="website"] .product-buy-box #detailCheckout:after{
  content:"";width:16px;height:16px;flex:none;
  background:currentColor;
  -webkit-mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/16px no-repeat;
  mask:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 12h16m-6-6 6 6-6 6'/%3E%3C/svg%3E") center/16px no-repeat;
}
html[data-storefront-surface="website"][dir="rtl"] .product-buy-box #detailCheckout:after{
  transform:scaleX(-1);
}
html[data-storefront-surface="website"] .product-buy-box>small{
  display:block;margin:0;padding:10px 18px 14px;text-align:center;
  color:var(--slip-ink-2);font-size:var(--t-micro);
  border-top:1px solid #d8d1c1;
}

/* the availability line injected by product.js on the Plus path */
html[data-storefront-surface="website"] .product-buy-box #gptStock{
  margin:0;padding:0 18px 10px;color:var(--slip-ink-2);font-size:var(--t-micro);font-weight:700;
}
html[data-storefront-surface="website"] .product-buy-box .gpt-notice{
  margin:0;padding:4px 18px 12px;color:var(--slip-ink-2);font-size:var(--t-micro);line-height:1.5;
}
html[data-storefront-surface="website"] .product-buy-box #gptConfigurator{padding-top:12px}
html[data-storefront-surface="website"] .product-buy-box #gptConfigurator fieldset{
  margin:0;padding:0 18px 12px;border:0;
}
html[data-storefront-surface="website"] .product-buy-box #gptConfigurator legend{
  padding:0 0 6px;color:var(--slip-ink-2);font-size:var(--t-micro);font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;
}
html[data-storefront-surface="website"] .product-buy-box #gptConfigurator fieldset button{
  min-height:34px;margin:0 6px 6px 0;padding:0 11px;
  border:1px solid #b9b1a0;border-radius:2px;background:transparent;
  color:#3d4553;font-size:var(--t-micro);font-weight:800;
}
html[data-storefront-surface="website"] .product-buy-box #gptConfigurator fieldset button[aria-pressed="true"]{
  background:var(--slip-ink);border-color:var(--slip-ink);color:var(--slip-3);
}
html[data-storefront-surface="website"] .product-buy-box .gpt-payment{
  margin:0;padding:0 18px 12px;color:var(--slip-ink-2);font-size:var(--t-micro);font-weight:700;
}

/* --------------------------------------------------------------------------
   5. What the order does — a numbered run sheet, not three cards
   -------------------------------------------------------------------------- */
html[data-storefront-surface="website"] .product-information{
  display:block;margin-top:clamp(26px,3.4vw,40px);max-width:62ch;counter-reset:info;
}
html[data-storefront-surface="website"] .product-information .info-block{
  display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:16px;
  padding:14px 0;border-top:1px solid var(--rule);border-bottom:0;
}
html[data-storefront-surface="website"] .product-information .info-block:before{
  counter-increment:info;content:"0" counter(info);
  grid-column:1;grid-row:1;
  color:var(--navy-3);font-size:var(--t-micro);font-weight:800;letter-spacing:.14em;
  font-variant-numeric:tabular-nums;padding-top:3px;
}
html[data-storefront-surface="website"] .product-information .info-block h2{
  grid-column:2;grid-row:1;margin:0;
  font-size:var(--t-h3);font-weight:800;letter-spacing:-.01em;color:#fff;
}
html[data-storefront-surface="website"] .product-information .info-block p{
  grid-column:2;grid-row:2;margin:3px 0 0;
  color:var(--navy-2);font-size:var(--t-small);line-height:1.6;max-width:54ch;
}
html[data-storefront-surface="website"] .product-information .info-block a{
  grid-column:2;grid-row:3;margin-top:6px;justify-self:start;
  color:#a9bdd8;font-size:var(--t-micro);font-weight:800;
  border-bottom:1px solid #33507a;padding-bottom:1px;
}
html[data-storefront-surface="website"] .product-information .info-block a:hover{color:#fff;border-color:#fff}

/* the long-form guide continues the same numbered ledger (04 …) */
html[data-storefront-surface="website"] .product-information.product-guide{
  grid-column:1;grid-row:3;counter-reset:info 3;margin-top:0;
}

/* --------------------------------------------------------------------------
   6. The cobalt bar — the plan, kept within reach on a phone
   -------------------------------------------------------------------------- */
html[data-storefront-surface="website"] .plan-bar{
  position:fixed;inset-inline:0;bottom:0;z-index:45;
  display:none;align-items:center;gap:14px;
  padding:10px clamp(16px,4vw,32px) calc(10px + env(safe-area-inset-bottom));
  background:var(--accent);color:#fff;
  border-top:1px solid #1746b8;
  visibility:hidden;pointer-events:none;
  transform:translateY(110%);
  transition:transform .26s cubic-bezier(.2,.85,.25,1),visibility 0s linear .26s;
}
html[data-storefront-surface="website"] .plan-bar.is-open{
  transform:none;visibility:visible;pointer-events:auto;
  transition:transform .26s cubic-bezier(.2,.85,.25,1),visibility 0s linear 0s;
}
html[data-storefront-surface="website"] .plan-bar .plan-bar-name{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:var(--t-meta);font-weight:800;
}
html[data-storefront-surface="website"] .plan-bar .plan-bar-total{
  margin-inline-start:auto;flex:none;
  font-size:1.25rem;font-weight:800;letter-spacing:-.03em;
  font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate;
}
html[data-storefront-surface="website"] .plan-bar .plan-bar-go{
  flex:none;min-height:44px;padding:0 16px;
  border:1px solid #fff;border-radius:2px;background:#fff;color:var(--accent);
  font-size:var(--t-meta);font-weight:800;white-space:nowrap;
}
html[data-storefront-surface="website"] .plan-bar .plan-bar-go:hover{background:#eaf0ff}

/* --------------------------------------------------------------------------
   7. Motion — the slip prints itself; the pointer gives it depth
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:no-preference){
  html[data-storefront-surface="website"] .product-buy-box{
    animation:slipIn .5s cubic-bezier(.2,.85,.25,1) both;
  }
  @keyframes slipIn{
    from{opacity:0;transform:translateY(10px)}
    to{opacity:1;transform:none}
  }
  html[data-storefront-surface="website"] .detail-variant{
    animation:planRowIn .4s cubic-bezier(.2,.8,.2,1) both;
  }
  html[data-storefront-surface="website"] .detail-variant:nth-child(1){animation-delay:.10s}
  html[data-storefront-surface="website"] .detail-variant:nth-child(2){animation-delay:.17s}
  html[data-storefront-surface="website"] .detail-variant:nth-child(3){animation-delay:.24s}
  html[data-storefront-surface="website"] .detail-variant:nth-child(4){animation-delay:.30s}
  @keyframes planRowIn{
    from{opacity:0;transform:translateX(-8px)}
    to{opacity:1;transform:none}
  }
  html[data-storefront-surface="website"][dir="rtl"] .detail-variant{animation-name:planRowInRtl}
  @keyframes planRowInRtl{
    from{opacity:0;transform:translateX(8px)}
    to{opacity:1;transform:none}
  }
  html[data-storefront-surface="website"] .slip-stamp{
    animation:stampPress .42s cubic-bezier(.2,.9,.25,1) .5s both;
  }
  @keyframes stampPress{
    0%{opacity:0;transform:rotate(-4deg) scale(1.55)}
    62%{opacity:1;transform:rotate(-4deg) scale(.95)}
    100%{opacity:.92;transform:rotate(-4deg) scale(1)}
  }
  html[data-storefront-surface="website"] .product-buy-box #detailCheckout:after{
    transition:transform .14s ease-out;
  }
  html[data-storefront-surface="website"] .product-buy-box #detailCheckout:hover:not(:disabled):after{
    transform:translateX(3px);
  }
  html[data-storefront-surface="website"][dir="rtl"] .product-buy-box #detailCheckout:hover:not(:disabled):after{
    transform:scaleX(-1) translateX(3px);
  }
}
@media (prefers-reduced-motion:reduce){
  html[data-storefront-surface="website"] .product-buy-box,
  html[data-storefront-surface="website"] .detail-variant,
  html[data-storefront-surface="website"] .slip-stamp{animation:none}
  html[data-storefront-surface="website"] .product-buy-box{transition:none}
  html[data-storefront-surface="website"] .plan-bar{transition:none}
}

/* --------------------------------------------------------------------------
   8. Responsive — the slip rises under the name, the bar takes over
   -------------------------------------------------------------------------- */
@media (max-width:900px){
  /* website.css ships a second, competing phone layout for this page
     (grid-template-columns + .product-detail-copy{display:contents}); both are
     neutralised here by repeating the class on the element. */
  html[data-storefront-surface="website"] .product-layout.product-layout{
    grid-template-columns:minmax(0,1fr);gap:22px;
  }
  html[data-storefront-surface="website"] .product-layout .product-detail-copy{
    display:block;grid-column:1;grid-row:1;
  }
  html[data-storefront-surface="website"] .product-detail-copy{grid-column:1;grid-row:1}
  html[data-storefront-surface="website"] .product-buy-box{
    grid-column:1;grid-row:2;position:static;top:auto;
  }
  html[data-storefront-surface="website"] .product-information{grid-column:1;grid-row:3}
  html[data-storefront-surface="website"] .product-information.product-guide{grid-column:1;grid-row:4}
  html[data-storefront-surface="website"] .product-detail-copy h1{max-width:none}
  html[data-storefront-surface="website"] .product-buy-box .detail-total>strong{font-size:1.9rem}
  html[data-storefront-surface="website"] .product-buy-box #detailCheckout{display:none}
  html[data-storefront-surface="website"] .product-buy-box>small{border-top:1px solid #d8d1c1}
  html[data-storefront-surface="website"] .product-detail-page{padding-bottom:84px}
  html[data-storefront-surface="website"] .plan-bar{display:flex}
}
@media (min-width:901px){
  html[data-storefront-surface="website"] .plan-bar{display:none}
}

/* the mobile dock keeps the last row clear */
html[data-storefront-surface="website"] .product-detail-page{padding-bottom:clamp(36px,5vw,64px)}
@media (max-width:900px){
  html[data-storefront-surface="website"] .product-detail-page{padding-bottom:96px}
}
