/* =====================================================================
   Bright Peak Optical — site styles (loaded after bootstrap.min.css)

   Layout model
   - < 992px   : mobile-first flow layout on Bootstrap's grid / navbar
                 (hamburger menu, stacked sections).
   - >= 992px  : the exact 1440px Figma canvas. Every element tagged
                 `.ab` is placed at its Figma coordinates, which live on
                 the element as inline custom properties:
                   --x / --y  left / top (px, relative to its section)
                   --w / --h  width / height (optional)
                 992–1439px shows that same canvas scaled down (js/main.js
                 sets `zoom` on .ps-canvas), so desktop is pixel-identical
                 at every width.
   ===================================================================== */

/* ---------- Fonts ---------------------------------------------------- */
/* Inter — downloaded from Google Fonts (variable woff2, all weights) */
@font-face {
  font-family: "Inter";
  src: url("../font/Inter/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../font/Inter/Inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Display";
  src: url("../font/InterDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Display";
  src: url("../font/InterDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
/* the variable Mona Sans (v1.001) matches Figma's glyph advances; the
   static v2.000 Bold drifts up to 2px per line */
@font-face {
  font-family: "Mona Sans";
  src: url("../font/mona-sans/Mona-Sans.ttf") format("truetype");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../font/Manrope/Manrope-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* ---------- Tokens --------------------------------------------------- */
:root {
  --ps-brand: #94da00;       /* buttons, accents */
  --ps-brand-dark: #84c400;  /* hover */
  --ps-on-brand: #17110f;    /* button labels sit dark on the lime */
  --ps-brand-text: #4f7a00;  /* lime is too light for text: hovers use this */
  --ps-panel: #fafff5;       /* product panels (#a4ff5b @ 6%) */
  --ps-ink: #17110f;         /* body copy */
  --ps-grey: #464646;        /* nav, names, prices, sub copy */
  --ps-rule: #eceae6;        /* full-width hairlines */
  --ps-black: #000000;
  --ps-cvv: #dd528b;

  --bs-body-font-family: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--ps-ink);
  --bs-body-bg: #ffffff;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ps-ink);
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ---------- Type styles (from Figma) --------------------------------- */
.t-hero    { font: 700 36px/44px "Mona Sans", sans-serif; letter-spacing: .01em; color: var(--ps-black); }
.t-h48     { font: 700 30px/40px "Mona Sans", sans-serif; letter-spacing: .01em; color: var(--ps-black); }
.t-h80     { font: 700 44px/54px "Mona Sans", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.t-h40     { font: 700 28px/36px "Mona Sans", sans-serif; letter-spacing: .01em; color: var(--ps-brand); }
.t-body18  { font: 400 16px/1.4 "Inter Display", sans-serif; letter-spacing: .01em; }
.t-body16  { font: 400 15px/22px "Inter Display", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.c-grey    { color: var(--ps-grey); }
.c-ink     { color: var(--ps-ink); }
.c-black   { color: #000000; }

/* ---------- Buttons --------------------------------------------------- */
.ps-btn {
  --bs-btn-padding-x: 24px;
  --bs-btn-padding-y: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 0;
  border-radius: 50px;
  background: var(--ps-brand);
  color: var(--ps-on-brand);
  font: 700 18px/1 "Manrope", sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.ps-btn:hover, .ps-btn:focus-visible { background: var(--ps-brand-dark); color: var(--ps-on-brand); }
.ps-btn:active { transform: translateY(1px); background: var(--ps-brand-dark); color: var(--ps-on-brand); }
.ps-btn:focus-visible { outline: 3px solid rgba(148, 218, 0, .35); outline-offset: 2px; box-shadow: none; }

/* ---------- Canvas / sections ---------------------------------------- */
.ps-canvas { position: relative; width: 100%; background: #ffffff; }
.ps-rule { height: 1px; background: var(--ps-rule); border: 0; margin: 0; opacity: 1; }
.ps-sec { position: relative; }

/* =====================================================================
   HEADER  (Bootstrap navbar + custom hamburger)
   ===================================================================== */
.ps-header { position: relative; background: #ffffff; border-bottom: 1px solid var(--ps-rule); z-index: 20; }
.ps-navbar { padding: 14px 20px; flex-wrap: wrap; }
.ps-logo { padding: 0; margin: 0; }
.ps-logo img { width: min(171px, calc(100vw - 168px)); height: auto; }  /* logo + cart + burger fit at 320 */
.ps-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.ps-cart { display: inline-block; line-height: 0; }
.ps-cart img { width: 54px; height: 41px; }

/* hamburger: three bars that fold into an X when the menu is open */
.ps-burger {
  position: relative;
  width: 44px;
  height: 41px;
  padding: 0;
  border: 0;
  border-radius: 80px;
  background: #eceae6;
  box-shadow: none !important;
}
.ps-burger span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #292d32;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.ps-burger span:nth-child(1) { top: 13px; }
.ps-burger span:nth-child(2) { top: 19.5px; }
.ps-burger span:nth-child(3) { top: 26px; }
.ps-burger:not(.collapsed) span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.ps-burger:not(.collapsed) span:nth-child(2) { opacity: 0; }
.ps-burger:not(.collapsed) span:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }
.ps-burger:focus-visible { outline: 3px solid rgba(148, 218, 0, .35); outline-offset: 2px; }

.ps-nav { padding: 10px 0 4px; }
.ps-nav .nav-link {
  padding: 14px 2px;
  font: 700 16px/1.2 "Inter", sans-serif;
  letter-spacing: .01em;
  color: var(--ps-grey);
  border-top: 1px solid var(--ps-rule);
}
.ps-header .ps-nav .nav-link:hover, .ps-header .ps-nav .nav-link:focus-visible { color: var(--ps-brand-text); }

/* =====================================================================
   PRODUCT CARDS  (landing + products pages)
   ===================================================================== */
.pgrid { --bs-gutter-x: 20px; --bs-gutter-y: 36px; }
.pc-inner { display: flex; flex-direction: column; height: 100%; }
.pc-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 375 / 376;
  border-radius: 31px;
  background: var(--ps-panel);
  overflow: hidden;
}
.pc-media img { width: 80%; transition: transform .3s ease; }
.pc-media:hover img { transform: scale(1.04); }
.pc-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 6px 18px; }
.pc-name { font: 700 22px/1.3 "Manrope", sans-serif; letter-spacing: 0; color: var(--ps-grey); }
.pc-name a { text-decoration: none; }
.pc-price { font: 400 20px/1.2 "Inter Display", sans-serif; letter-spacing: .01em; color: var(--ps-grey); white-space: nowrap; }
.pc-btn { width: 100%; height: 56px; font-size: 18px; margin-top: auto; }
.pc-btn.is-added, .ps-btn.is-added { background: var(--ps-brand-dark); }
.ps-btn:disabled, .ps-btn.disabled { background: var(--ps-brand); color: var(--ps-on-brand, #ffffff); border: 0; opacity: .5; }
.qty-btn:disabled { opacity: .35; cursor: default; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.ps-footer { padding: 40px 20px 48px; border-top: 1px solid var(--ps-rule); }
.ft-addr, .ft-email, .ft-phone, .ft-note, .ft-copy { font: 400 15px/22px "Inter Display", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.ft-email { display: inline-block; margin-top: 14px; text-decoration: underline; text-underline-offset: 2px; }
.ft-email:hover { color: var(--ps-brand-text); }
.ft-email-part { text-decoration: none; }
.ft-email-part .u { text-decoration: underline; }
.ft-phone { margin-top: 14px; }
.ft-phone a { text-decoration: none; }
.ft-note { margin-top: 24px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; padding: 0; list-style: none; }
.ft-link { font: 600 15px/1.2 "Inter", sans-serif; letter-spacing: .01em; color: var(--ps-grey); text-decoration: none; }
.ft-link:hover { color: var(--ps-brand-text); }
.ft-rule { height: 1px; margin: 24px 0; background: rgba(0, 0, 0, .13); }

/* =====================================================================
   PAGE: LANDING
   ===================================================================== */
.hero { padding: 32px 20px 44px; }
.hero-text { margin-top: 16px; color: var(--ps-grey); }
.hero-btn { margin-top: 28px; width: 100%; max-width: 336px; }
.hero-img { margin-top: 32px; width: 100%; border-radius: 20px; }
.hero-mirror .hero-img { border-radius: 40px; }
.top-products { padding: 44px 20px 56px; }
.top-products .t-h48 { text-align: center; margin-bottom: 32px; }

/* =====================================================================
   PAGE: PRODUCTS
   ===================================================================== */
.catalog-head { padding: 40px 20px 36px; text-align: center; }
.catalog-head .t-body18 { margin-top: 14px; color: var(--ps-grey); }
.catalog-grid { padding: 40px 20px 56px; }

/* =====================================================================
   PAGE: CART (empty state)
   ===================================================================== */
.cart-empty { padding: 64px 20px 72px; text-align: center; }
.cart-empty .t-body18 { margin-top: 6px; }
.cart-btn { margin-top: 28px; width: 100%; max-width: 336px; height: 60px; font-size: 18px; }

/* =====================================================================
   PRODUCT BLOCK  (product details + checkout)
   ===================================================================== */
.pd { padding: 28px 20px 40px; }
.pd-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: 31px;
  background: var(--ps-panel);
}
.pd-panel img { width: 78%; }
.pd-title { margin-top: 24px; font: 700 28px/1.3 "Manrope", sans-serif; letter-spacing: 0; color: var(--ps-grey); }
.pd-desc { margin-top: 12px; }
.pd-price { margin-top: 10px; font: 600 22px/1.6 "Mona Sans", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.pd-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 14px; }
.qty { display: flex; align-items: center; gap: 14px; }
.qty-btn {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.qty-btn::before, .qty-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 3px;
  background: #000000;
  transform: translate(-50%, -50%);
}
.qty-minus::after { display: none; }
.qty-plus::after { width: 3px; height: 22px; }
.qty-btn:hover { background: rgba(148, 218, 0, .08); }
.qty-btn:focus-visible { outline: 3px solid rgba(148, 218, 0, .35); }
.qty-val { min-width: 26px; text-align: center; font: 400 38px/1.2 "Inter", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.pd-cart-btn { width: 160px; height: 60px; border-radius: 80px; }
.pd-cart-btn img { width: 28px; height: auto; }
.pd-remove-btn { height: 60px; padding: 0 22px; border-radius: 80px; font-size: 14px; }

.about { padding: 40px 20px 24px; }
.about .t-body16 { margin-top: 16px; }
.about-copy { min-width: 0; }
.about-img { margin-top: 28px; width: 100%; border-radius: 24px; }
.wide-img-wrap { padding: 16px 20px 48px; }
.wide-img { width: 100%; border-radius: 24px; }

/* =====================================================================
   PAGE: CHECKOUT
   ===================================================================== */
.co { padding: 36px 20px 48px; }
.co-sub { margin-top: 10px; margin-bottom: 24px; }
.co-form { --bs-gutter-x: 16px; --bs-gutter-y: 16px; }
.ps-field,
.ps-field.form-control,
.ps-field.form-select {
  display: block;
  width: 100%;
  height: 64px;
  padding: 0 16px 0 16px;
  border: 1px solid var(--ps-grey);
  border-radius: 32px;
  background-color: #ffffff;
  font: 400 16px/21px "Inter Display", sans-serif;
  letter-spacing: .01em;
  color: var(--ps-ink);
  box-shadow: none;
}
.ps-field::placeholder { color: var(--ps-ink); opacity: 1; }
.ps-field:focus { border-color: var(--ps-brand); box-shadow: 0 0 0 3px rgba(148, 218, 0, .15); }
.ps-field.is-cvv::placeholder { color: var(--ps-cvv); }
.ps-field.form-select { background-image: none; padding-right: 48px; cursor: pointer; }
.ps-field.form-select:invalid { color: var(--ps-ink); }
.was-validated .ps-field:invalid, .ps-field.is-invalid { border-color: #dc3545; }
.was-validated .ps-field:valid { border-color: var(--ps-grey); }
.was-validated .form-control.ps-field:invalid, .was-validated .form-control.ps-field:valid,
.was-validated .form-select.ps-field:invalid, .was-validated .form-select.ps-field:valid { background-image: none; padding-right: 12px; }
.was-validated .form-select.ps-field { padding-right: 48px; }

.ps-select-wrap { position: relative; }
.ps-select-wrap .plus { position: absolute; pointer-events: none; }
.ps-select-wrap .plus i { position: absolute; display: block; background: #000000; }
.ps-select-wrap .plus { right: 20px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; }
.ps-select-wrap .plus .h { left: 0; top: 7px; width: 16px; height: 3px; }
.ps-select-wrap .plus .v { left: 8.5px; top: 0; width: 3px; height: 17px; }

/* square checkbox, Figma: 19–20px, 1px #464646, radius 5 */
.ps-check { display: flex; align-items: flex-start; gap: var(--gap, 12px); cursor: pointer; }
.ps-check input {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  width: var(--cw, 20px);
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--ps-grey);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
}
.ps-check input:checked {
  border-color: var(--ps-brand);
  background: var(--ps-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%2317110f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ps-check input:focus-visible { outline: 3px solid rgba(148, 218, 0, .35); outline-offset: 2px; }
.was-validated .ps-check input:invalid { border-color: #dc3545; }
.ps-check-label { font: 400 15px/22px "Inter Display", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.ps-check-label a { color: inherit; text-decoration: underline; }
.ps-check-label a:hover { color: var(--ps-brand-text); }
.co-ship-check { margin: 4px 0 4px; }
.co-pay { margin-top: 40px; }
.co-pay .t-h40 { margin-bottom: 20px; }
.co-what { display: block; margin: 12px 0 0 auto; padding: 0; border: 0; background: none; font: 400 16px/21px "Inter Display", sans-serif; letter-spacing: .01em; color: var(--ps-ink); }
.co-what:hover { color: var(--ps-brand-text); text-decoration: underline; }
.co-summary { margin-top: 32px; }
.co-btn { width: 100%; height: 64px; border-radius: 38px; font-size: 20px; margin-top: 20px; }
.co-legal { margin-top: 20px; }
.co-secure { margin-top: 18px; width: 265px; }
.co-done { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 8px; background: var(--ps-panel); color: var(--ps-ink); font: 600 16px/1.4 "Inter Display", sans-serif; }
.co-done.show { display: block; }

/* ---------- Small-screen tweaks -------------------------------------- */
@media (min-width: 576px) {
  .t-hero { font-size: 44px; line-height: 54px; }
  .t-h80 { font-size: 56px; line-height: 66px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-items: center; padding: 48px 32px 56px; }
  .hero-img { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .hero > :not(.hero-img) { grid-column: 1; }
  .hero-mirror .hero-img { grid-column: 1; }
  .hero-mirror > :not(.hero-img) { grid-column: 2; }
  .top-products, .catalog-grid { padding-left: 32px; padding-right: 32px; }
  .pd { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-items: center; padding: 40px 32px 48px; }
  .pd-panel { grid-row: 1 / span 5; }
  .pd-title { margin-top: 0; }
  .about { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-items: center; padding: 48px 32px 24px; }
  .about-img { grid-column: 2; grid-row: 1; margin-top: 0; }
  .wide-img-wrap { padding: 24px 32px 56px; }
  .co { padding: 48px 32px 56px; }
  .ps-footer { padding: 48px 32px 56px; }
  .ft-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .ft-note { margin-top: 0; }
}

/* =====================================================================
   DESKTOP — exact Figma canvas (1440 wide; scaled by JS below 1440)
   ===================================================================== */
@media (min-width: 992px) {
  /* always reserve the vertical scrollbar so clientWidth (and with it the
     canvas scale) can't toggle when a scaled page crosses the fold */
  html { overflow-y: scroll; overflow-x: auto; }
  body { overflow: visible; }
  .ps-canvas { width: 1440px; margin: 0 auto; overflow: hidden; }

  /* generic placement: coordinates come from inline --x/--y/--w/--h */
  .ab {
    position: absolute;
    left: var(--x, 0);
    top: var(--y, 0);
    width: var(--w, auto);
    height: var(--h, auto);
    margin: 0 !important;  /* absolutely placed: mobile spacing must not leak in */
    padding: 0;
    max-width: none;
  }
  .nw { white-space: nowrap; }
  .ps-sec { height: var(--sec-h); padding: 0; display: flow-root; }
  .ps-sec .row { margin: 0; }
  /* flow wrappers hold only absolutely placed children on desktop */
  .pd-buy, .qty, .co-pay, .co-summary, .co-form, .ft-cols, .ft-col, .about-copy { margin: 0; padding: 0; }

  /* type at design size */
  .t-hero   { font-size: 65px; line-height: 80px; }
  .t-h48    { font-size: 48px; line-height: 80px; }
  .t-h80    { font-size: 80px; line-height: 90px; }
  .t-h40    { font-size: 40px; line-height: 90px; }
  .t-h40.lh-43 { line-height: 43px; }
  .t-body18 { font-size: 18px; line-height: 22px; }
  .t-body16 { font-size: 16px; line-height: 22px; }

  /* ---- header (frame y 0–146) ---- */
  .ps-header { height: 146px; border-bottom: 0; }
  .ps-header::after { content: ""; position: absolute; left: 0; top: 144px; width: 100%; height: 1px; background: var(--ps-rule); }
  .ps-navbar { position: static; height: 145px; padding: 0; }
  .ps-logo { position: absolute; left: 597px; top: 35px; }
  .ps-logo img { width: 288px; height: 83px; }
  .ps-header .navbar-collapse { position: static; }
  .ps-nav { position: static; padding: 0; }
  .ps-header .ps-nav .nav-link {
    position: absolute;
    padding: 0;
    border: 0;
    font-size: 18px;
    line-height: 22px;
    white-space: nowrap;
  }
  .ps-header .ps-nav .nl-products { left: 142px; top: 66px; }
  .ps-header .ps-nav .nl-contact  { left: 328px; top: 66px; }
  .ps-header .ps-nav .nl-cart     { left: 1168px; top: 66px; }
  .ps-header .ps-cart-desk { position: absolute; left: 1247px; top: 54px; }

  /* ---- buttons at design size ---- */
  /* --pl/--pr/--pt nudge the label to its Figma text-box centre */
  .ps-btn { padding: var(--pt, 0px) var(--pr, 0px) var(--pb, 0px) var(--pl, 0px); }
  .btn-79 { height: 79px; font-size: 22px; line-height: 30px; }
  .btn-66 { height: 66px; font-size: 20px; line-height: 27px; }
  .btn-73 { height: 73px; font-size: 22px; line-height: 30px; }

  /* ---- product cards ---- */
  .pgrid { display: block; }
  .pgrid > .pc { position: absolute; left: var(--x); top: var(--y); width: 375px; height: 556px; padding: 0; margin: 0; }
  .pc-inner { display: block; position: relative; height: 556px; }
  .pc-media { position: absolute; left: 0; top: 0; width: 375px; height: 376px; aspect-ratio: auto; display: block; }
  .pc-media img { position: absolute; width: auto; max-width: none; }
  .pc-meta { position: static; margin: 0; display: block; }
  .pc-name { font-size: 30px; line-height: 41px; white-space: nowrap; }
  .pc-price {  font-size: 25px; line-height: 30px; }
  .pc-btn { position: absolute; width: 336px; height: 66px; font-size: 20px; margin: 0; --pr: 13px; }
  /* column 1 — Blueray Glasses (prod1) */
  .pc-c1 .pc-media img { left: 42px; top: 70px; width: 298px; height: 242px; }
  .pc-c1 .pc-name  { left: 8px;   top: 396px; }
  .pc-c1 .pc-price { left: 283px; top: 402px; }
  .pc-c1 .pc-btn   { left: 15px;  top: 482px; }
  /* column 2 — Lens wipes (prod6) */
  .pc-c2 .pc-media img { left: 74px; top: 85px; width: 271px; height: 220px; }
  .pc-c2 .pc-name  { left: 16px;  top: 400px; }
  .pc-c2 .pc-price { left: 277px; top: 406px; }
  .pc-c2 .pc-btn   { left: 15px;  top: 486px; }
  /* column 3 — lens cleaner (prod7) */
  .pc-c3 .pc-media img { left: 44px; top: 79px; width: 309px; height: 251px; }
  .pc-c3 .pc-name  { left: 16px;  top: 400px; }
  .pc-c3 .pc-price { left: 278px; top: 410px; }
  .pc-c3 .pc-btn   { left: 27px;  top: 490px; }

  /* ---- landing ---- */
  .hero, .top-products, .catalog-head, .catalog-grid, .cart-empty, .pd, .about, .wide-img-wrap, .co { padding: 0; display: block; }
  .cart-empty, .catalog-head, .top-products .t-h48 { text-align: left; }   /* left-aligned in Figma */
  /* Chrome places these fonts' glyphs higher in the line box than Figma does;
     these nudges were measured against the Figma renders */
  .t-h48 { transform: translateY(1px); }
  .t-body18, .ft-addr, .ft-email, .ft-phone, .ft-note, .ft-copy, .ft-link,
  .ps-header .ps-nav .nav-link { transform: translateY(1px); }
  .hero-btn { max-width: none; }
  .hero-img { border-radius: 102px; }

  /* ---- product block ---- */
  .pd-panel { display: block; aspect-ratio: auto; }
  .pd-panel img { position: absolute; left: 42px; top: 70px; width: 298px; height: 242px; max-width: none; }
  .pd-title { font-size: 40px; line-height: normal; }
  .pd-price { font-size: 25px; line-height: 90px; }
  .pd-buy, .qty { display: block; }
  .qty-btn { border-radius: 0; }
  .qty-btn::before, .qty-btn::after { left: 0; top: 0; transform: none; }
  .qty-minus::before { top: 12.5px; width: 25px; height: 3px; }
  .qty-plus::before { left: 0; top: 11px; width: 25px; height: 3px; }
  .qty-plus::after  { left: 11px; top: 0; width: 3px; height: 25px; }
  .qty-val { min-width: 0; text-align: left; font-size: 45px; line-height: normal; }
  .pd-cart-btn img { position: absolute; left: 92px; top: 14.5px; width: 33px; height: 36.67px; }
  .pd-cart-btn { --pl: 0px; --pr: 0px; }
  .pd-remove-btn { font-size: 16px; line-height: 26px; }
  .about-img, .wide-img { border-radius: 31px; }

  /* ---- checkout ---- */
  .co-form { display: block; }
  .ps-field, .ps-field.form-control, .ps-field.form-select {
    height: 83px;
    font-size: 17px;
    line-height: 21px;
    /* place the 21px text line at the Figma offset (--tx, --ty) */
    padding: calc(var(--ty, 31px) - 1px) calc(var(--tx, 28px) - 1px) calc(83px - 1px - 21px - var(--ty, 31px)) calc(var(--tx, 28px) - 1px);
  }
  .ps-field, .ps-field.form-control, .ps-field.form-select { border-radius: 38px; }
  .ps-field.form-select { padding-right: 60px; }
  .ps-select-wrap .plus { right: auto; left: 548px; top: 34px; margin: 0; width: 17px; height: 17px; }
  .ps-select-wrap .plus .h { left: 0; top: 7px; width: 16px; height: 3px; }
  .ps-select-wrap .plus .v { left: 7px; top: 0; width: 3px; height: 17px; }
  .ps-check input { margin: 0; }
  .co-ship-check { margin: 0; }
  .ps-check-label a { text-underline-offset: 2px; }
  .ps-check-label { font-size: 16px; }
  .co-ship-label { font-size: 17px; line-height: 21px; transform: translateY(1px); }
  .co-what { margin: 0; font-size: 17px; line-height: 21px; }
  .co-legal { margin: 0; }
  .co-secure { margin: 0; }
  .co-btn { margin: 0; font-size: 22px; }
  .co-done { position: absolute; left: 732px; top: 2242px; width: 607px; margin: 0; }

  /* ---- footer (top = Figma address y; height per page via --ft-h) ---- */
  .ps-footer { position: relative; height: var(--ft-h); padding: 0; border: 0; }
  .ps-footer .ft-cols { display: block; }
  .ft-addr, .ft-email, .ft-phone, .ft-note, .ft-copy { font-size: 18px; line-height: 22px; }
  .ft-email { text-underline-offset: 3px; }
  .ast { font-feature-settings: "case" 1; }
  .ft-links { display: block; margin: 0; }
  .ft-link { position: absolute; font-size: 18px; line-height: 22px; white-space: nowrap; }
  .ft-rule { margin: 0; }
}

@media (min-width: 1441px) {
  html { overflow-x: hidden; }
  .ps-canvas { overflow: visible; }
  .ps-header::after, .ps-rule { box-shadow: -1440px 0 0 var(--ps-rule), 1440px 0 0 var(--ps-rule), -2880px 0 0 var(--ps-rule), 2880px 0 0 var(--ps-rule); }
}

/* =====================================================================
   PHP storefront — catalogue, cart, checkout (Bright Peak branding)
   Button and checkbox sizes stay explicit at phone and desktop widths.
   ===================================================================== */
.ps-cart { position: relative; }
.cartqty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--ps-brand);
  color: var(--ps-ink);
  font: 700 11px/20px "Manrope", sans-serif;
  text-align: center;
}
.cartqty[data-n="0"] { visibility: hidden; }

.flow-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.flow-wrap .flow-title { text-align: center; }
.flow-wrap .flow-lead { margin: 14px auto 0; max-width: 740px; text-align: center; color: var(--ps-grey); }
.catalog-head { padding-bottom: 28px; }
.catalog-grid { padding-top: 36px; }

.pgrid.pgrid-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 20px;
  width: 100%;
  height: auto;
  position: relative;
  margin: 28px 0 0;
}
.pgrid.pgrid-flow > .pc {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  max-width: 375px;
  margin: 0 auto;
}
.pgrid-flow .pc-inner { display: flex; flex-direction: column; height: 100%; position: relative; }
.pgrid-flow .pc-media { position: relative; display: flex; width: 100%; height: auto; aspect-ratio: 375 / 376; }
.pgrid-flow .pc .pc-media img {
  position: static;
  width: 80%;
  height: auto;
  max-width: 80%;
  max-height: none;
  left: auto;
  top: auto;
}
.pgrid-flow .pc-meta { position: static; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 16px 6px 18px; }
.pgrid-flow .pc-name { position: static; white-space: normal; font-size: 22px; line-height: 1.3; }
.pgrid-flow .pc-name a { color: inherit; text-decoration: none; }
.pgrid-flow .pc-price { position: static; font-size: 20px; line-height: 1.2; }
.pgrid-flow .pc-btn {
  position: static;
  width: 100%;
  height: 56px;
  font-size: 18px;
  margin: auto 0 0;
  align-self: stretch;
}

.pd-flow .pd-cart-btn { position: relative; width: 160px; height: 60px; flex: 0 0 auto; }
.pd-flow .pd-cart-btn img { position: static; width: 28px; height: auto; }
.pd-flow .qty { display: flex; align-items: center; gap: 14px; }
.pd-flow .qty-btn { width: 34px; height: 34px; border-radius: 50%; }
.pd-flow .qty-btn::before,
.pd-flow .qty-btn::after { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pd-flow .qty-minus::before,
.pd-flow .qty-plus::before { width: 22px; height: 3px; }
.pd-flow .qty-plus::after { width: 3px; height: 22px; }
.pd-flow .qty-val { position: static; min-width: 26px; text-align: center; font-size: 38px; }

.pkg-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pkg-opt {
  flex: 1 1 calc(50% - 10px);
  min-height: 64px;
  padding: 10px 14px;
  border: 1px solid var(--ps-grey);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  font: 700 15px/1.3 "Manrope", sans-serif;
  color: var(--ps-ink);
}
.pkg-opt small { display: block; margin-top: 4px; font: 400 14px/1.2 "Inter Display", sans-serif; }
.pkg-opt.is-active { border-color: var(--ps-brand); background: var(--ps-panel); box-shadow: inset 0 0 0 1px var(--ps-brand); }
.pd-points { margin: 16px 0 0; padding-left: 18px; }
.pd-points p { margin: 0; }

.cart-empty { padding: 28px 0 12px; text-align: center; }
.cart-empty .t-body18 { margin-top: 8px; }
.cart-empty-btn { width: 100%; max-width: 336px; height: 60px; margin-top: 22px; font-size: 18px; }
.cart-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid var(--ps-rule);
  border-radius: 18px;
  background: #fff;
}
.cart-line img { width: 72px; height: 72px; object-fit: contain; grid-row: 1; align-self: center; }
.cart-line-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cart-name,
.cart-alt,
.cart-price { position: static; left: auto; top: auto; width: auto; max-width: 100%; margin: 0; white-space: normal; overflow-wrap: anywhere; }
.cart-name { font: 700 18px/1.3 "Manrope", sans-serif; color: var(--ps-ink); }
.cart-alt { font: 400 15px/1.3 "Inter Display", sans-serif; color: var(--ps-grey); }
.cart-alt:empty { display: none; }
.cart-price { font: 400 16px/1.2 "Inter Display", sans-serif; color: var(--ps-grey); }
.cart-line-side { display: flex; align-items: center; justify-content: space-between; gap: 16px; grid-column: 1 / -1; min-width: 0; margin-top: 4px; }
.cart-line .qty { display: flex; align-items: center; gap: 8px; }
.cart-line .qty-btn { width: 34px; height: 34px; border-radius: 50%; }
.cart-line .qty-btn::before,
.cart-line .qty-btn::after { left: 50%; top: 50%; width: 16px; height: 2px; transform: translate(-50%, -50%); }
.cart-line .qty-plus::after { width: 2px; height: 16px; }
.cart-line .qty-val { position: static; min-width: 18px; font-size: 18px; line-height: 1; text-align: center; }
.cart-line-total { margin: 0 0 0 auto; font: 700 18px/1 "Manrope", sans-serif; white-space: nowrap; }
.cart-remove { margin-top: 6px; padding: 0; border: 0; background: none; color: #a33; font: 600 14px/1.2 "Inter", sans-serif; text-decoration: underline; }
.cart-totals { margin: 8px 0 18px; text-align: right; }
.cart-totals p { margin: 6px 0; }
.cart-grand { font-weight: 700; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.cart-actions .ps-btn { width: 100%; height: 56px; font-size: 18px; }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 50px;
  background: #eceae6;
  color: var(--ps-ink);
  font: 700 16px/1 "Manrope", sans-serif;
  text-decoration: none;
}

.upsells { display: grid; gap: 16px; margin-top: 22px; }
.upsell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--ps-rule);
  border-radius: 18px;
  background: var(--ps-panel);
}
.upsell img { width: 70px; height: 70px; object-fit: contain; flex: 0 0 70px; }
.upsell .ps-check-label { display: block; }
.upsell-kicker, .upsell-price, .upsell-state { display: block; }
.upsell-kicker { margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #888; }
.upsell-price { margin-top: 4px; }
.upsell-state { margin-top: 6px; font-weight: 700; }
.upsell input, .flow-checkout .ps-check input, .checkout-panel .ps-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.checkout-panel { display: none; margin-top: 36px; }
.checkout-panel.is-on { display: block; }
.flow-form.co-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
.flow-form .w-2, .flow-form .w-3, .flow-form .w-6 { min-width: 0; }
.flow-form .co-sub { margin: 8px 0 0; }
.flow-form > .billing-block { grid-column: 1 / -1; }
.billing-block { display: none; }
.billing-block.is-on { display: grid; grid-template-columns: 1fr; gap: 16px; }
.checkout-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.co-bottom { display: grid; gap: 28px; }
.co-pay-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.co-pay .t-h40 { margin: 0 0 16px; line-height: 1.2; }
.co-pay .co-what { margin-left: auto; }
.pg-cart .cart-line .cart-name,
.pg-cart .cart-line .cart-price { position: static; white-space: normal; }
.checkout-panel .co-btn { width: 100%; max-width: none; height: 64px; margin: 0; font-size: 20px; }
.checkout-panel .co-legal { margin: 0; }
.ps-check.is-error input, .ck-agree-row.is-error input { border-color: #dc3545; }
.field-msg { min-height: 0; margin: 6px 0 0 16px; color: #dc3545; font: 600 13px/1.3 "Inter Display", sans-serif; }
.field-msg:empty { display: none; }
textarea.contact-note.ps-field { height: 140px; padding: 18px 16px; border-radius: 24px; resize: vertical; }
.contact-form { margin-top: 28px; }
.legal h2, .thanks h2 { margin: 22px 0 8px; font: 700 22px/1.3 "Mona Sans", sans-serif; }
.legal p, .thanks p { margin-top: 12px; }
.legal a, .thanks a { text-decoration: underline; }
.thanks-list { margin: 18px 0; padding-left: 18px; }
.thanks .cart-empty-btn { display: inline-flex; }

@media (min-width: 576px) {
  .pgrid.pgrid-flow { grid-template-columns: 1fr 1fr; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .cart-line img { grid-row: auto; }
  .cart-line-side { grid-column: 3; grid-row: 1; margin-top: 0; padding-left: 28px; }
  .cart-actions .ps-btn, .btn-quiet { width: auto; min-width: 180px; }
  .pkg-opt { flex: 0 1 160px; }
}
@media (min-width: 768px) {
  .pd-flow {
    display: grid;
    grid-template-columns: minmax(240px, 375px) minmax(0, 1fr);
    column-gap: 36px;
    align-items: center;
  }
  .pd-flow .pd-panel { grid-row: 1 / span 6; }
  .pd-flow .pd-title { margin-top: 0; }
  .about { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; align-items: center; }
  .about-img { margin-top: 0; }
  .flow-form.co-form, .billing-block.is-on { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .co-bottom { grid-column: 1 / -1; }
  .co-pay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .co-pay-grid .pay-full { grid-column: 1 / -1; }
  .flow-form .w-6, .billing-block .w-6 { grid-column: 1 / -1; }
  .flow-form .w-3, .billing-block .w-3 { grid-column: span 3; }
  .flow-form .w-2, .billing-block .w-2 { grid-column: span 2; }
  .upsells { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .flow-wrap { width: min(1200px, calc(100% - 80px)); padding: 56px 0 80px; }
  .flow-title.t-h48 { font-size: 48px; line-height: 1.15; }
  .flow-title.t-h80 { font-size: 80px; line-height: 1.05; }
  .pgrid.pgrid-flow {
    grid-template-columns: repeat(3, 375px);
    justify-content: center;
    gap: 56px 44px;
  }
  .pgrid.pgrid-flow > .pc { width: 375px; max-width: none; }
  .pgrid-flow .pc-media { width: 375px; height: 376px; aspect-ratio: auto; }
  .pgrid-flow .pc .pc-media img {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    max-width: 78%;
    max-height: 68%;
    transform: translate(-50%, -50%);
  }
  .pgrid-flow .pc-media:hover img { transform: translate(-50%, -50%) scale(1.04); }
  .pgrid-flow .pc-name { font-size: 26px; line-height: 34px; }
  .pgrid-flow .pc-price { font-size: 22px; line-height: 30px; }
  .pgrid-flow .pc-btn { width: 336px; height: 66px; font-size: 20px; align-self: center; }
  .cart-empty-btn { width: 336px; height: 66px; font-size: 20px; }
  .cart-actions .ps-btn, .btn-quiet { height: 66px; font-size: 18px; }
  .pd-flow .pd-title { font-size: 40px; }
  .pd-flow .pd-price { font-size: 25px; }
  .pd-flow .pd-cart-btn { width: 219px; height: 69px; }
  .pd-flow .pd-cart-btn img { width: 33px; height: 37px; }
  .pd-flow .qty-btn { width: 25px; height: 25px; }
  .pd-flow .qty-val { font-size: 45px; }
  .checkout-panel .ps-check input,
  .upsell input {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }
  .checkout-panel .co-btn { max-width: 597px; height: 73px; font-size: 22px; }
  .pg-cart .co-bottom {
    grid-template-columns: minmax(0, 592px) minmax(280px, 1fr);
    column-gap: 64px;
    align-items: start;
  }
  .pg-cart .cart-line .cart-name { font-size: 22px; line-height: 1.3; }
  .pg-cart .cart-line .cart-price { font-size: 18px; line-height: 1.2; }
  .pg-cart .checkout-panel .t-h40 { font-size: 40px; line-height: 1.15; }
  .pg-cart .flow-form .ps-field,
  .pg-cart .flow-form .ps-field.form-control,
  .pg-cart .flow-form .ps-field.form-select {
    height: 83px;
    padding: 0 28px;
    line-height: normal;
  }
  .pg-cart .flow-form .ps-field.form-select { padding-right: 60px; }
  .pg-cart .co-summary { margin-top: 52px; }
  textarea.contact-note.ps-field { height: 160px; padding: 20px 22px; }
  .flow-form .ps-select-wrap .plus { left: auto; right: 22px; top: 50%; margin-top: -8.5px; }
  .ps-header .ps-cart-desk { position: absolute; }
  .ps-footer .ft-links {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    left: 204px;
    top: 210px;
    width: 1080px;
    margin: 0;
    gap: 10px 28px;
  }
  .ps-footer .ft-links .ft-link {
    position: static;
    font-size: 18px;
    line-height: 22px;
    white-space: nowrap;
  }
}

.legal h1,
.legal .legal-h {
  margin: 0 0 18px;
  font: 700 40px/1.15 "Mona Sans", sans-serif;
  color: var(--ps-ink);
  text-align: left;
}
.legal h3,
.legal h4 {
  margin: 22px 0 8px;
  font: 700 22px/1.3 "Mona Sans", sans-serif;
  color: var(--ps-ink);
}
.legal h4 { font-size: 18px; }
.legal p,
.legal li { margin-bottom: 12px; }
.legal ol,
.legal ul { margin: 8px 0 16px; padding-left: 22px; }
.legal li span { font-weight: 700; }
.legal a { text-decoration: underline; }
@media (max-width: 991.98px) {
  .legal h1,
  .legal .legal-h { font-size: 32px; line-height: 1.2; }
}
