/* =========================================================================
   AQUVA — shop page styles (PDP, checkout, confirmation)
   Shared chrome (globe / cart / drawer) lives in main.css.
   ========================================================================= */

.demo-banner {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 16px;
  background: var(--sky); border: 1px solid var(--sky-2); color: var(--navy); font-size: 14.5px; line-height: 1.55;
}
.demo-banner svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; }
.demo-banner strong { font-weight: 500; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--navy); }

.field-label { display: block; margin: 0 0 14px; padding: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-text); }

/* =========================================================================
   SHOP PAGE
   ========================================================================= */
.shop-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(36px, 6vw, 88px)) 0 clamp(36px, 5vw, 68px); }
.shop-hero__bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--white) 0%, var(--sky) 100%); }
.shop-hero__word {
  position: absolute; right: -2vw; bottom: -5vw; font-size: 27vw; font-weight: 500; line-height: .8; letter-spacing: .02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(11, 114, 224, .1); user-select: none;
}
.shop-hero__title { margin-top: 24px; font-size: clamp(44px, 7vw, 116px); font-weight: 500; line-height: .94; letter-spacing: -.035em; text-transform: uppercase; }
.shop-hero__title span { display: block; }
.shop-hero__sub { margin-top: 24px; max-width: 40ch; font-size: clamp(18px, 1.6vw, 23px); font-weight: 300; line-height: 1.45; color: var(--ink-soft); }
.shop-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.shop-hero__facts li + li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 18px 2px 0; border-radius: 50%; background: var(--sky-3); vertical-align: middle; }

.shop-products { padding: clamp(36px, 5vw, 72px) 0 var(--section-y); }
.shop-products__note { margin-top: clamp(36px, 5vw, 64px); max-width: 760px; }
.product--link { color: inherit; border-radius: var(--radius); }
.product--link:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }
/* Centred under the image and pinned to the card bottom so both cards line up */
.product__buyrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; margin-top: auto; padding-top: 26px; }
.product__from { font-size: 14.5px; color: var(--ink-soft); }
.product__from [data-cents] { color: var(--navy); font-weight: 500; }
@media (hover: hover) {
  .product--link:hover .product__cta::before { transform: translateY(0); }
  .product--link:hover .product__cta .btn__icon { transform: translateX(4px); }
}

/* ---------- Product detail ---------- */
.pdp { padding: calc(var(--header-h) + 36px) 0 var(--section-y); }
.pdp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--header-h) + 24px); }
.pdp .product__can { width: clamp(140px, 16.5vw, 262px); }
.pdp__name { margin-top: 16px; font-size: clamp(40px, 4.6vw, 68px); font-weight: 300; line-height: 1; letter-spacing: .01em; }
.pdp__name strong { font-weight: 500; }
.pdp .product__desc { max-width: 52ch; }

.packs { margin: 38px 0 0; padding: 0; border: 0; min-width: 0; }
.packs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 20px 16px 18px; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(10, 42, 107, .14); background: var(--white);
  transition: border-color .35s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .pack:hover { border-color: var(--sky-3); transform: translateY(-2px); } }
.pack.is-selected { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy), 0 26px 44px -30px rgba(10, 42, 107, .5); }
.pack:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.pack:not(:has(:focus-visible)):focus-within { outline: none; }
.pack__visual { height: 26px; width: auto; margin-bottom: 14px; fill: var(--sky-3); transition: fill .4s var(--ease); align-self: flex-start; }
.pack.is-selected .pack__visual { fill: var(--blue); }
.pack__name { font-size: 15.5px; font-weight: 500; line-height: 1.25; padding-right: 24px; }
.pack__qty { font-size: 13.5px; color: var(--ink-soft); }
.pack__vol { font-size: 12.5px; color: var(--ink-soft); }
.pack__price { margin-top: 12px; font-size: 20px; font-weight: 500; color: var(--navy); }
.pack__check {
  position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(10, 42, 107, .2); transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
.pack__check svg { width: 13px; height: 13px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.pack.is-selected .pack__check { background: var(--navy); border-color: var(--navy); }
.pack.is-selected .pack__check svg { opacity: 1; transform: none; }

.pdp__qty { margin-top: 32px; }
.pdp__qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.pdp__calc { font-size: 14.5px; color: var(--ink-soft); }
.pdp__buy { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.pdp__total .field-label { margin-bottom: 6px; }
.pdp__price { display: block; font-size: clamp(32px, 3vw, 42px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.pdp__add.is-done::before { transform: translateY(0); }
.pdp__switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; font-size: 14.5px; color: var(--ink-soft); }
.pdp__switch strong { color: var(--navy); font-weight: 500; }
.pdp__switch .btn__icon { width: 16px; height: 16px; }
.pdp__switch:hover .btn__icon { transform: translateX(4px); }

@media (max-width: 960px) {
  .packs__grid { grid-template-columns: 1fr 1fr; }
  .packs__grid .pack:last-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__media { position: relative; top: 0; }
  .pdp .product__stage { aspect-ratio: 4 / 3.7; }
  .pdp .product__can { width: clamp(118px, 30vw, 200px); }
}
@media (max-width: 600px) {
  .packs__grid { grid-template-columns: 1fr; gap: 10px; }
  .packs__grid .pack:last-child { grid-column: auto; }
  .pack {
    display: grid; grid-template-columns: 40px 1fr auto; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px;
    align-items: center; padding: 16px 52px 16px 16px;
  }
  .pack__visual { grid-row: 1 / 4; grid-column: 1; margin: 0; justify-self: center; align-self: center; }
  .pack__name { grid-column: 2; padding-right: 0; }
  .pack__qty { grid-column: 2; }
  .pack__vol { grid-column: 2; }
  .pack__price { grid-column: 3; grid-row: 1 / 4; margin: 0; font-size: 18px; }
  .pack__check { top: 50%; right: 16px; margin-top: -11px; }
  .pdp__buy { align-items: stretch; }
  .pdp__add { width: 100%; justify-content: center; }
}

/* ---------- Checkout ---------- */
.checkout { padding: calc(var(--header-h) + 36px) 0 var(--section-y); }
.checkout__title { margin-top: 16px; font-size: clamp(38px, 5vw, 72px); }
.checkout__head .demo-banner { margin-top: 26px; max-width: 760px; }
.checkout__grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: clamp(28px, 4vw, 72px); align-items: start; margin-top: clamp(36px, 4vw, 56px); }
.co-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.co-summary__card { padding: clamp(22px, 2.6vw, 36px); border-radius: var(--radius); background: var(--sky); border: 1px solid var(--sky-2); }
.co-summary__title { margin-bottom: 20px; font-size: 22px; font-weight: 500; }
.co-summary__edit { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--blue-text); border-bottom: 1px solid currentColor; }
.sum-lines { display: grid; gap: 16px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sum-line { display: grid; grid-template-columns: 30px 1fr auto; gap: 14px; align-items: center; }
.sum-line img { width: 30px; filter: drop-shadow(0 6px 8px rgba(10, 42, 107, .16)); }
.sum-line__name { font-size: 15px; font-weight: 500; }
.sum-line__pack, .sum-line__qty { font-size: 13px; color: var(--ink-soft); }
.sum-line__total { font-size: 15px; font-weight: 500; }

.co-form { min-width: 0; }
.co-step { margin: 0 0 clamp(32px, 4vw, 48px); padding: 0; border: 0; min-width: 0; }
.co-step legend { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 0; font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; color: var(--navy); }
.co-step__num { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--sky-3); font-size: 12px; font-weight: 500; letter-spacing: .18em; color: var(--blue-text); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--navy); }
.field__req { color: var(--blue-text); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(10, 42, 107, .2); background: var(--white);
  font: inherit; font-size: 16px; color: var(--navy); transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); opacity: .8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 114, 224, .14); }
.field.is-invalid input:not([type="checkbox"]) { border-color: var(--blue); border-width: 1.5px; background: #F5F9FE; }
.field__error { display: flex; gap: 7px; align-items: flex-start; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--blue-text); font-weight: 500; }
.field__error:empty { display: none; }
.field__error::before {
  content: "!"; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-size: 11px; font-weight: 600; line-height: 1;
}

.co-info { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--sky-3); font-size: 14.5px; color: var(--ink-soft); }
.co-info svg { flex: none; width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.4; stroke-linejoin: round; }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: #FAFCFF; color: var(--ink-soft); cursor: not-allowed; }
.pay-option svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pay-option > span { flex: 1; font-size: 15px; }
.soon { padding: 5px 10px; border-radius: 999px; background: var(--sky); color: var(--blue-text); font-size: 11px; font-style: normal; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.co-hint { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.co-hint--center { text-align: center; }

.field--check { margin-bottom: 24px; }
.field--check.is-invalid .check__box { border-color: var(--blue); border-width: 1.5px; }
.co-submit { height: 62px; }

@media (max-width: 960px) {
  .checkout__grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
}

/* ---------- Confirmation & states ---------- */
.confirm { padding: calc(var(--header-h) + 56px) 0 var(--section-y); background: linear-gradient(180deg, var(--white), var(--sky)); }
.confirm__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.confirm__badge { width: 92px; height: 92px; margin-bottom: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: 0 30px 60px -30px rgba(10, 42, 107, .45); }
.confirm__badge svg { width: 46px; height: 46px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.confirm__badge path:last-child { stroke-dasharray: 24; stroke-dashoffset: 24; animation: drawCheck .8s .35s var(--ease) forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.confirm__title { max-width: 20ch; margin-top: 18px; font-size: clamp(28px, 4.2vw, 58px); font-weight: 500; line-height: 1.04; letter-spacing: -.02em; overflow-wrap: break-word; }
.confirm__text { max-width: 54ch; margin-top: 20px; font-size: clamp(17px, 1.3vw, 19px); font-weight: 300; color: var(--ink-soft); }
.confirm__ref { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--sky-2); font-size: 14px; color: var(--ink-soft); }
.confirm__ref strong { color: var(--navy); font-weight: 500; letter-spacing: .12em; }
.confirm__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; width: 100%; max-width: 1040px; margin-top: clamp(40px, 5vw, 64px); text-align: left; }
.confirm .co-summary__card { background: var(--white); }
.confirm__dl { margin: 0; }
.confirm__dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.confirm__dl dt { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-text); }
.confirm__dl dd { margin: 4px 0 0; color: var(--navy); overflow-wrap: anywhere; }
.confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
@media (max-width: 860px) { .confirm__grid { grid-template-columns: 1fr; } }

.shop-state { padding: calc(var(--header-h) + 64px) 0 var(--section-y); text-align: center; }
.shop-state__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.shop-state__inner .cart-empty__icon { margin: 0; }
.shop-state__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; letter-spacing: -.02em; }
.shop-state__text { max-width: 46ch; color: var(--ink-soft); font-weight: 300; margin-bottom: 10px; }

@media (prefers-reduced-motion: reduce) {
  .confirm__badge path:last-child { stroke-dashoffset: 0; }
}
