/* ALFIA — storefront styles. Same look as the original theme (Poppins + Dancing Script,
   rose-gold accents), rebuilt clean: no frameworks, mobile-first. */

/* Self-hosted fonts (no Google Fonts request — the site depends on nothing but itself) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/poppins-light.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/poppins-regular.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/poppins-medium.woff') format('woff'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600 700; font-display: swap; src: url('../fonts/poppins-semibold.woff') format('woff'); }
@font-face { font-family: 'Dancing Script'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/dancing-script.woff') format('woff'); }

:root {
  --ink: #1d1b1a;
  --text: #55504d;
  --muted: #8b8480;
  --line: #ece5e1;
  --bg: #ffffff;
  --cream: #faf6f3;
  --blush: #f5ebe6;
  --rose: #d4ab98;          /* original theme accent */
  --rose-deep: #a8735c;     /* prices, links (readable on white) */
  --brown: #906957;         /* original sale badge / primary buttons */
  --brown-dark: #74523f;
  --green: #4f8a3c;
  --danger: #b4402f;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(60, 40, 30, .08);
  --shadow-lg: 0 24px 60px rgba(60, 40, 30, .16);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Dancing Script', 'Brush Script MT', cursive;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 500; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.script { font-family: var(--script); font-weight: 700; letter-spacing: .2px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--rose-deep); font-weight: 500; margin: 0 0 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--ink); position: relative; }
.icon-btn:hover { background: var(--cream); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #f3ebe6; font-size: 12.5px; letter-spacing: .04em; }
.announce__track { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 9px 16px; flex-wrap: wrap; text-align: center; }
.announce a strong { color: var(--rose); font-weight: 600; }
.announce a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .announce__track > :not(:first-child) { display: none; }
}

.header { background: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 84px; }
.logo { grid-column: 2; display: block; }
.logo img { height: 58px; width: auto; }
.header__actions { grid-column: 3; display: flex; justify-content: flex-end; }
.header__burger { display: none; }
.search { grid-column: 1; display: flex; align-items: center; max-width: 260px; border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 16px; height: 42px; background: #fff; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 13px; background: none; }
.search button { border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; color: var(--muted); }
.search:focus-within { border-color: var(--rose); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brown); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.nav ul { display: flex; justify-content: center; gap: 4px 34px; flex-wrap: wrap; list-style: none; margin: 0 auto; padding: 0 16px 14px; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--rose); transform: scaleX(0); transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

@media (max-width: 900px) {
  .header__inner { height: 68px; }
  .logo img { height: 46px; }
  .header__burger { display: inline-grid; grid-column: 1; justify-self: start; grid-row: 1; }
  .header .search { display: none; }
  .nav { display: none; }
}

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: rgba(20, 15, 12, .4); }
.mobile-nav__panel { background: #fff; width: min(86vw, 360px); height: 100%; padding: 16px 22px; overflow-y: auto; animation: slideL .25s ease-out; }
@keyframes slideL { from { transform: translateX(-100%); } }
.mobile-nav__close { margin-left: -10px; }
.mobile-nav ul { list-style: none; margin: 14px 0 0; padding: 0; }
.mobile-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.search--mobile { display: flex; max-width: none; margin-top: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--cream); }
.hero__slides { position: relative; aspect-ratio: 1903 / 809; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); transition: width .3s, background .3s; }
.hero__dots button.is-active { width: 28px; border-radius: 6px; background: var(--brown); }


/* ---------- Sections ---------- */
.section { padding: 64px 16px; }
.section.wrap { padding-left: 16px; padding-right: 16px; }
@media (min-width: 768px) { .section.wrap { padding-left: 28px; padding-right: 28px; } }
.section--tight { padding-top: 28px; }
.section__head { text-align: center; margin-bottom: 26px; }
.section__head h2 { font-size: clamp(34px, 5vw, 48px); margin: 0; }
@media (max-width: 600px) { .section { padding-top: 44px; padding-bottom: 44px; } }

/* Tabs */
.tabs { display: flex; justify-content: center; gap: 8px; margin: 0 0 30px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 22px; font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: all .2s; }
.tabs button:hover { color: var(--ink); border-color: var(--rose); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 22px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

.card { display: flex; flex-direction: column; text-align: center; }
.card__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: #f7f3f0; aspect-ratio: 481 / 582; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s ease; }
.card__alt { opacity: 0; }
.card:hover .card__media img { transform: scale(1.04); }
.card:hover .card__alt { opacity: 1; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--brown); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.badge--lg { font-size: 14px; padding: 6px 14px; top: 16px; left: 16px; }
.card__body { padding: 14px 4px 0; display: flex; flex-direction: column; align-items: center; flex: 1; }
.card__title { font-size: 15px; font-weight: 500; margin: 0 0 2px; }
.card__title a:hover { color: var(--rose-deep); }
.card__sub { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.card__add { margin-top: auto; }
.card .price { margin-bottom: 12px; }

.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.price__now { color: var(--rose-deep); font-weight: 600; font-size: 16px; }
.price__old { color: var(--muted); font-size: 14px; }
.price--lg { justify-content: flex-start; }
.price--lg .price__now { font-size: 28px; color: var(--ink); }
.price--lg .price__old { font-size: 17px; }
.save { background: var(--blush); color: var(--brown-dark); font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

@media (max-width: 760px) {
  .card__title { font-size: 14px; }
  .card__sub { display: none; }
  .card .btn--sm { min-height: 38px; padding: 0 12px; font-size: 11px; letter-spacing: .06em; }
}

/* ---------- Two offer banners ---------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 64px; }
.banners__item { border-radius: var(--radius); overflow: hidden; display: block; box-shadow: var(--shadow); }
.banners__item img { width: 100%; transition: transform .5s ease; }
.banners__item:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .banners { grid-template-columns: 1fr; gap: 14px; padding-bottom: 44px; } }

/* ---------- Promo band ---------- */
.promo { background: linear-gradient(120deg, var(--cream), var(--blush)); }
.promo__inner { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.promo__media img { width: auto; height: auto; max-width: 100%; max-height: 460px; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.promo h2 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 12px; }
.promo .price { margin: 18px 0 24px; }
@media (max-width: 800px) { .promo__inner { grid-template-columns: 1fr; text-align: center; gap: 16px; } .promo .price, .promo .btn-row { justify-content: center; } .promo__media img { max-height: 340px; } }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.cat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 14px 22px; border-radius: var(--radius); background: var(--cream); transition: transform .25s, box-shadow .25s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat__img { width: 100%; max-width: 170px; aspect-ratio: 481 / 582; border-radius: var(--radius-sm); overflow: hidden; background: #fff; margin-bottom: 14px; box-shadow: 0 4px 14px rgba(60, 40, 30, .06); }
.cat__img img { width: 100%; height: 100%; object-fit: contain; }
.cat__name { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .04em; }
.cat__blurb { font-size: 12.5px; color: var(--muted); }

/* ---------- Story ---------- */
.story { background: var(--cream); }
.story__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.story h2 { font-size: clamp(36px, 5vw, 50px); }
.story img { width: auto; height: auto; max-width: 100%; max-height: 460px; border-radius: var(--radius); margin: 0 auto; box-shadow: var(--shadow); }
@media (max-width: 800px) { .story__inner { grid-template-columns: 1fr; gap: 26px; } .story img { max-height: 360px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--blush) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2L11.5 5.7' fill='none' stroke='%23906957' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.ticks--cols { columns: 2; column-gap: 32px; margin-top: 14px; }
.ticks--cols li { break-inside: avoid; }
@media (max-width: 600px) { .ticks--cols { columns: 1; } }

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line); background: #fff; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.trust__item { display: flex; gap: 14px; align-items: center; }
.trust__item svg { width: 36px; height: 36px; color: var(--brown); flex: none; }
.trust__item strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.trust__item span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trust__item { flex-direction: column; text-align: center; gap: 6px; } }

/* ---------- Footer ---------- */
.footer { background: #ededed; color: #6f6a67; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 7px 0; }
.footer a:hover { color: var(--brown); }
.footer__brand img { height: 48px; width: auto; margin-bottom: 14px; }
.footer__brand p { max-width: 320px; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-icons span { background: #fff; border-radius: 6px; padding: 3px 9px; font-size: 11.5px; font-weight: 500; color: var(--ink); }
.footer__legal { border-top: 1px solid #dcdcdc; padding-top: 20px; padding-bottom: 28px; font-size: 12.5px; }
.fda { color: #8a8582; max-width: 900px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Page heads, breadcrumbs ---------- */
.page-head { background: var(--cream); padding: 30px 0 34px; text-align: center; }
.page-head h1 { font-size: clamp(38px, 6vw, 54px); margin: 6px 0 0; }
.page-head__sub { color: var(--muted); margin: 6px 0 0; }
.crumbs { font-size: 12.5px; color: var(--muted); }
.crumbs a:hover { color: var(--brown); }
.crumbs span[aria-current] { color: var(--ink); }
.crumbs--product { padding: 20px 0 4px; }

/* ---------- Shop toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 13px; transition: all .2s; }
.chip:hover { border-color: var(--rose); color: var(--ink); }
.chip[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 34px 8px 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center/10px no-repeat; appearance: none; }
.count { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.empty { text-align: center; padding: 60px 0; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 20px; padding-bottom: 40px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 28px; } }
.gallery { position: sticky; top: 140px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: #f7f3f0; aspect-ratio: 481 / 582; width: 100%; max-width: 530px; margin: 0 auto; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; justify-content: center; }
.gallery__thumbs button { width: 78px; aspect-ratio: 481 / 582; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; padding: 0; background: #f7f3f0; opacity: .7; transition: all .2s; }
.gallery__thumbs button.is-active, .gallery__thumbs button:hover { border-color: var(--rose); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__title { font-size: clamp(28px, 4vw, 38px); font-weight: 500; margin-bottom: 4px; }
.pdp__sub { color: var(--muted); margin-bottom: 18px; }
.pdp__short { font-size: 15.5px; margin: 18px 0 24px; }
.stock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--green); margin: 12px 0 0; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(79, 138, 60, .15); }
.buy { display: flex; flex-wrap: wrap; gap: 12px; padding: 20px; border-radius: var(--radius); background: var(--cream); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; height: 48px; }
.qty button { width: 42px; height: 100%; border: 0; background: none; font-size: 18px; color: var(--ink); border-radius: 999px; }
.qty button:hover { color: var(--brown); }
.qty input { width: 38px; border: 0; text-align: center; font-weight: 600; outline: 0; -moz-appearance: textfield; background: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.assure { list-style: none; padding: 0; margin: 22px 0 0; font-size: 13.5px; }
.assure li { padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--line); position: relative; }
.assure li::before { content: '✓'; position: absolute; left: 4px; color: var(--brown); font-weight: 600; }
.assure a { color: var(--rose-deep); text-decoration: underline; }

.details { max-width: 900px; padding-bottom: 10px; }
.details details { border-bottom: 1px solid var(--line); }
.details details:first-child { border-top: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: .06em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--brown); transition: transform .2s; }
.details details[open] summary::after { transform: rotate(45deg); }
.details__body { padding: 0 0 22px; }
.details__body a { color: var(--rose-deep); text-decoration: underline; }
.facts { width: 100%; max-width: 620px; border-collapse: collapse; font-size: 14px; border: 2px solid var(--ink); }
.facts th, .facts td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { font-weight: 400; color: var(--ink); }
.facts td { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.facts tr:first-child th, .facts tr:first-child td { border-bottom: 6px solid var(--ink); }

.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.sticky-buy__info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.sticky-buy__info strong { color: var(--ink); font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__info span { color: var(--rose-deep); font-weight: 600; font-size: 14px; }
@media (min-width: 901px) { .sticky-buy { display: none !important; } }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(20, 15, 12, .42); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(100%, 420px); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideR .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideR { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 17px; margin: 0; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.drawer__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.drawer__total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink); }
.drawer__total strong { font-size: 20px; font-weight: 600; }
.drawer__note { font-size: 12.5px; color: var(--muted); margin: 4px 0 14px; }
.drawer__stripe { font-size: 11.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.checkout-error { color: var(--danger); font-size: 13px; margin: 10px 0 0; width: 100%; }

.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 92px; object-fit: cover; border-radius: var(--radius-sm); background: #f7f3f0; }
.line__name { color: var(--ink); font-weight: 500; font-size: 14px; display: block; margin-bottom: 2px; }
.line__price { font-size: 13px; color: var(--muted); }
.line .qty { height: 36px; margin-top: 8px; }
.line .qty button { width: 32px; font-size: 16px; }
.line .qty input { width: 30px; font-size: 13px; }
.line__right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.line__total { font-weight: 600; color: var(--ink); font-size: 14px; }
.line__remove { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; padding: 0; }
.line__remove:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 48px 0; }
.cart-empty p { color: var(--muted); }

.cart-page { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.cart-page__summary { background: var(--cream); border-radius: var(--radius); padding: 24px; position: sticky; top: 140px; }
.cart-page__summary h2 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 860px) { .cart-page { grid-template-columns: 1fr; } .cart-page__summary { position: static; } }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 13.5px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; animation: toastIn .3s; max-width: calc(100% - 32px); }
.toast button { background: none; border: 0; color: var(--rose); font-weight: 600; text-decoration: underline; padding: 0; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
.page-product .toast { bottom: 84px; }
@media (min-width: 901px) { .page-product .toast { bottom: 24px; } }

/* ---------- Thank you / receipt ---------- */
.thanks { text-align: center; max-width: 640px; }
.thanks h1 { font-size: clamp(40px, 6vw, 56px); }
.thanks__icon { color: var(--green); display: flex; justify-content: center; margin-bottom: 8px; }
.receipt { text-align: left; background: var(--cream); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0; }
.receipt__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipt__total { border: 0; font-weight: 600; color: var(--ink); font-size: 16px; }

/* ---------- Prose / forms ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 19px; font-weight: 500; margin-top: 1.8em; }
.prose a { color: var(--rose-deep); text-decoration: underline; }
.prose ul { padding-left: 20px; }

.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 26px; } }
.contact__mail { font-size: 18px; color: var(--rose-deep); font-weight: 500; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink); }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 400; background: #fff; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(212, 171, 152, .25); }
.form .btn { justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; }
.notice--ok { background: #eef6ea; color: #2f5a22; }
.notice--err { background: #fbeceb; color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Policy agreement checkbox ---------- */
.agree { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 12px; transition: border-color .2s, box-shadow .2s; }
.buy .agree { margin: 0; }
.agree__label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--ink); }
.agree__label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.agree__box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid #b9aea8; border-radius: 5px; background: #fff; display: grid; place-items: center; transition: all .15s; }
.agree__label input:checked + .agree__box { background: var(--brown); border-color: var(--brown); }
.agree__label input:checked + .agree__box::after { content: ''; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.agree__label input:focus-visible + .agree__box { outline: 2px solid var(--brown); outline-offset: 2px; }
.agree a { color: var(--rose-deep); text-decoration: underline; text-underline-offset: 2px; }
.agree__hint { margin: 6px 0 0 30px; font-size: 12px; color: var(--muted); }
.agree__error { margin: 6px 0 0 30px; font-size: 12.5px; color: var(--danger); font-weight: 500; }
.agree.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 64, 47, .12); }
.agree.is-invalid .agree__box { border-color: var(--danger); }

/* ---------- Policy pages ---------- */
.policy { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 36px; padding-bottom: 64px; align-items: start; }
.policy__nav { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 4px; }
.policy__nav a { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--text); }
.policy__nav a:hover { background: var(--cream); color: var(--ink); }
.policy__nav a[aria-current] { background: var(--cream); color: var(--ink); font-weight: 500; box-shadow: inset 3px 0 0 var(--brown); }
.policy .prose h2 { font-size: 17px; margin-top: 1.9em; }
.glance { background: var(--cream); border-radius: var(--radius); padding: 20px 24px; }
.glance h2 { margin: 0 0 10px !important; font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-deep); }
.glance ul { list-style: none; padding: 0; margin: 0; }
.glance li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.glance li:last-child { border-bottom: 0; }
@media (max-width: 860px) {
  .policy { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .policy__nav { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .policy__nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; }
  .policy__nav a[aria-current] { box-shadow: none; background: var(--ink); color: #fff; border-color: var(--ink); }
}
.contact__list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact__list li { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact__list span { width: 60px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact__list a { color: var(--rose-deep); font-weight: 500; font-size: 16px; }
.muted a { color: var(--rose-deep); text-decoration: underline; }


/* =====================================================================
   Device tuning — every screen from a 320px iPhone SE to a 5K iMac
   ===================================================================== */
body { overflow-x: clip; }

/* Notch / Dynamic Island / rounded corners (iPhone X → 17, Android cutouts) */
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 768px) { .wrap { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); } }
.drawer__panel { height: 100dvh; padding-right: env(safe-area-inset-right); }
.mobile-nav__panel { height: 100dvh; padding-left: max(22px, env(safe-area-inset-left)); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }

/* Touch screens: no "stuck" hover effects, comfortable 44px+ targets, no iOS zoom on inputs */
@media (hover: none) {
  .card:hover .card__media img { transform: none; }
  .card:hover .card__alt { opacity: 0; }
  .cat:hover { transform: none; box-shadow: none; }
  .banners__item:hover img { transform: none; }
}
@media (pointer: coarse) {
  .chip { padding: 10px 16px; }
  .line__remove { padding: 8px 0; }
  .footer li a { display: inline-block; padding: 4px 0; }
}
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }   /* iOS Safari zooms on anything smaller */
}

/* Small phones: iPhone SE / mini, compact Androids (≤ 374px) */
@media (max-width: 374px) {
  body { font-size: 14px; }
  .logo img { height: 40px; }
  .header__inner { gap: 6px; }
  .grid { gap: 18px 10px; }
  .card .btn--sm { padding: 0 8px; font-size: 10.5px; letter-spacing: .04em; }
  .price__now { font-size: 15px; }
  .price__old { font-size: 12.5px; }
  .buy { padding: 14px; }
  .btn { padding: 0 18px; }
  .drawer__head, .drawer__body, .drawer__foot { padding-left: 16px; padding-right: 16px; }
  .line { grid-template-columns: 60px 1fr auto; gap: 10px; }
  .line img { width: 60px; height: 74px; }
  .trust__grid { gap: 16px 10px; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* Phones in landscape & short screens: keep the header from eating the screen */
@media (max-height: 500px) and (orientation: landscape) {
  .header { position: relative; }
  .hero__slides { aspect-ratio: 1903 / 809; }
}

/* Tablets — iPad mini 744, iPad 810/820, iPad Air, Android tablets */
@media (min-width: 640px) and (max-width: 900px) {
  .gallery { max-width: 520px; margin: 0 auto; }
  .pdp__info { max-width: 640px; margin: 0 auto; width: 100%; }
  .cats { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .cat { padding: 14px 8px 18px; }
  .cat__blurb { display: none; }
  .hero__slides { aspect-ratio: 1903 / 809; }
}
@media (min-width: 901px) and (max-width: 1180px) {   /* iPad landscape / iPad Pro 11 / small laptops */
  .nav ul { gap: 4px 22px; }
  .pdp { gap: 36px; }
  .story__inner, .promo__inner { gap: 32px; }
}

/* Large desktops & 4K/5K (MacBook Pro, iMac, Studio Display, wide PC monitors) */
@media (min-width: 1600px) {
  :root { --wrap: 1440px; }
  body { font-size: 16px; }
  .grid { gap: 36px 28px; }
  .section { padding-top: 84px; padding-bottom: 84px; }
}
@media (min-width: 2200px) {
  :root { --wrap: 1680px; }
  html { font-size: 112.5%; }
  body { font-size: 17px; }
  .card__title { font-size: 17px; }
  .price__now { font-size: 18px; }
}

/* Print: clean product/policy printouts */
@media print {
  .announce, .header, .nav, .trust, .footer, .drawer, .toast, .sticky-buy, .buy, .policy__nav, .tabs, .toolbar { display: none !important; }
  body { color: #000; font-size: 12pt; }
  a { text-decoration: underline; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (pointer: coarse) {
  .agree__box { width: 24px; height: 24px; margin-top: -2px; }
  .agree__label { padding: 4px 0; }
  .agree__hint, .agree__error { margin-left: 34px; }
}

/* Phone landscape: product page side-by-side so the photo fits the screen */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 1000px) {
  .pdp { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; max-width: none; }
  .gallery__main { width: min(100%, calc(78vh * 481 / 582)); }
  .gallery__thumbs button { width: 54px; }
}
/* Announcement bar: one message on phones & small tablets, all three on wide screens */
@media (max-width: 1023px) { .announce__track > :not(:first-child) { display: none; } }

/* Photos keep their own proportions everywhere: never stretched, never squashed */
.gallery__main img, .card__media img, .cat__img img, .line img, .gallery__thumbs img { object-position: center; }

/* =====================================================================
   "Living water" buttons — red & blue from the ALFIA "US Certified" seal.
   Three styles, chosen in includes/config.php → BUTTON_STYLE:
     aqua  — glassy red→blue water that flows, with a wave and a silver shimmer (default)
     glass — clear tinted glass, frosted, with a red-blue rim and shimmer
     drops — deep water blue with rising bubbles and a splash on tap
   ===================================================================== */
:root {
  --seal-red: #d62839;
  --seal-red-deep: #a4161a;
  --seal-blue: #1f5fbf;
  --seal-blue-bright: #1a8fe3;
  --seal-navy: #123c7c;
  --silver: rgba(255, 255, 255, .85);
}

.btn--primary {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff; border: 0;
  text-shadow: 0 1px 2px rgba(10, 25, 60, .35);
  background:
    linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.10) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(105deg, #c8102e 0%, #e23744 16%, #8e1f4f 34%, #2148a6 52%, #1f74d8 70%, #3fa9f5 86%, #1f5fbf 100%);
  background-size: 100% 100%, 170% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -6px 14px rgba(8, 20, 60, .28),
    0 10px 24px -8px rgba(31, 95, 191, .55),
    0 4px 10px -4px rgba(214, 40, 57, .45);
  animation: water-flow 9s ease-in-out infinite alternate;
  transition: transform .2s, box-shadow .25s, filter .25s;
}
/* moving wave along the bottom */
.btn--primary::before {
  content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: -1px; height: 42%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12 Q15 2 30 12 T60 12 T90 12 T120 12 V24 H0Z' fill='%23ffffff' fill-opacity='.16'/%3E%3Cpath d='M0 16 Q15 8 30 16 T60 16 T90 16 T120 16 V24 H0Z' fill='%23ffffff' fill-opacity='.10'/%3E%3C/svg%3E") repeat-x 0 100% / 90px 100%;
  animation: wave-move 3.2s linear infinite;
  pointer-events: none;
}
/* silver light sweeping across */
.btn--primary::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0) 43%, rgba(235,242,255,.55) 50%, rgba(255,255,255,0) 57%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  animation: shimmer 4.2s ease-in-out infinite;
  mix-blend-mode: screen; pointer-events: none;
}
.btn--primary:hover { transform: translateY(-1px); filter: saturate(1.15) brightness(1.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -6px 14px rgba(8,20,60,.25), 0 14px 30px -8px rgba(31,95,191,.65), 0 6px 14px -4px rgba(214,40,57,.55); }
.btn--primary:active { transform: translateY(1px) scale(.985); }
.btn--primary svg { filter: drop-shadow(0 1px 1px rgba(10,25,60,.35)); }

@keyframes water-flow { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 100% 50%; } }
@keyframes wave-move { to { background-position: -90px 100%; } }
@keyframes shimmer { 0%, 35% { background-position: 160% 0; } 75%, 100% { background-position: -60% 0; } }

/* Secondary (Add to cart, Learn more…): clear glass with a red-blue rim */
.btn--outline, .btn--ghost {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--seal-navy); border: 1.5px solid transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,247,255,.85)) padding-box,
    linear-gradient(120deg, var(--seal-red), var(--seal-blue) 55%, var(--seal-blue-bright)) border-box;
  box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(31,95,191,.35);
}
.btn--outline::after, .btn--ghost::after {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(26,143,227,.18) 50%, transparent 60%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; transition: background-position .8s ease;
}
.btn--outline:hover, .btn--ghost:hover { color: #fff; border-color: transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 55%) padding-box,
    linear-gradient(120deg, var(--seal-red), var(--seal-navy) 50%, var(--seal-blue-bright)) border-box; }
.btn--outline:hover::after, .btn--ghost:hover::after { background-position: -60% 0; }

/* Tap ripple (all styles) and splash drops (drops style) */
.btn .ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; transform: scale(0);
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,.25) 40%, rgba(255,255,255,0) 70%);
  animation: ripple .7s ease-out forwards; }
.btn--outline .ripple, .btn--ghost .ripple { background: radial-gradient(circle, rgba(26,143,227,.35), rgba(26,143,227,0) 70%); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
.splash-drop { position: fixed; z-index: 90; width: 8px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--seal-blue-bright) 45%, var(--seal-blue) 100%); pointer-events: none;
  animation: splash .65s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes splash { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

/* ---------- Style: glass ---------- */
[data-btn="glass"] .btn--primary {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,0) 52%),
    linear-gradient(110deg, rgba(200,16,46,.93), rgba(130,30,90,.88) 36%, rgba(31,80,180,.92) 60%, rgba(30,140,232,.93));
  background-size: 100% 100%, 200% 100%;
  -webkit-backdrop-filter: blur(10px) saturate(170%); backdrop-filter: blur(10px) saturate(170%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55), inset 0 1px 0 #fff, inset 0 -10px 18px rgba(255,255,255,.12),
              0 10px 26px -10px rgba(31,95,191,.6), 0 2px 6px rgba(214,40,57,.25);
}
[data-btn="glass"] .btn--primary::before { opacity: .55; }

/* ---------- Style: drops ---------- */
[data-btn="drops"] .btn--primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.08) 45%, rgba(255,255,255,0) 52%),
    linear-gradient(180deg, var(--seal-blue-bright) 0%, var(--seal-blue) 45%, var(--seal-navy) 80%, var(--seal-red-deep) 135%);
  background-size: 100% 100%, 100% 100%; animation: none;
}
[data-btn="drops"] .btn--primary::before {
  height: 100%; bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,.55) 0 1.3px, transparent 2px) 0 0 / 37px 29px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.32) 0 2.4px, transparent 3.2px) 11px 7px / 53px 41px,
    radial-gradient(circle at 45% 20%, rgba(255,150,160,.42) 0 1.6px, transparent 2.4px) 23px 15px / 71px 47px,
    radial-gradient(circle at 80% 80%, rgba(255,255,255,.25) 0 3px, transparent 3.8px) 5px 21px / 97px 59px;
  animation: bubbles 7s linear infinite;
}
@keyframes bubbles { to { background-position: 0 -58px, 11px -116px, 23px -141px, 5px -98px; } }

@media (prefers-reduced-motion: reduce) {
  .btn--primary, .btn--primary::before, .btn--primary::after { animation: none !important; }
}
.btn.is-loading::after, .btn.btn--primary.is-loading::after {
  content: ''; position: relative; inset: auto; z-index: auto; mix-blend-mode: normal; background: none;
  width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.agree__label input:checked + .agree__box { background: var(--seal-blue); border-color: var(--seal-blue); }

/* =====================================================================
   Style: droplet — one button look for the whole site.
   Soft water-blue (a shade lighter and gentler than before), refined
   Apple-like shape: gently rounded corners instead of a capsule.
   Pressed → turns light water-blue. No outline, no outer shadow.
   ===================================================================== */
:root {
  --b-top: #33c9fb; --b-mid: #12acf7; --b-bot: #1590ee; --b-edge: rgba(18, 128, 228, .55); --b-hi: #a6e6ff;
  --l-top: #8eeaff; --l-mid: #74ddfd; --l-bot: #66d3fb; --l-edge: rgba(86, 183, 243, .5); --l-text: #05539a;
  --btn-radius: 12px;
}

[data-btn="droplet"] .btn {
  border-radius: var(--btn-radius);
  letter-spacing: .07em; font-weight: 600;
}
[data-btn="droplet"] .btn--sm { border-radius: 10px; }

[data-btn="droplet"] .btn--primary,
[data-btn="droplet"] .btn--outline,
[data-btn="droplet"] .btn--ghost {
  position: relative; overflow: hidden; isolation: isolate; border: 0;
  color: #fff;
  text-shadow: 0 1px 1.5px rgba(4, 70, 150, .45);
  background:
    linear-gradient(180deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 45%, rgba(255,255,255,0) 50%),
    radial-gradient(ellipse 60% 90% at 70% 78%, rgba(166,230,255,.45) 0%, rgba(166,230,255,0) 70%),
    linear-gradient(180deg, var(--b-top) 0%, var(--b-mid) 52%, var(--b-bot) 100%);
  background-size: 100% 100%, 160% 100%, 100% 100%;
  box-shadow: inset 0 0 8px 0 var(--b-edge), inset 0 1px 0 rgba(255,255,255,.35);
  animation: drop-sway 7s ease-in-out infinite alternate;
  transition: transform .16s ease, filter .2s ease, color .15s ease;
}

/* nothing drawn on top of the glass */
[data-btn="droplet"] .btn::before { content: none !important; }

/* the soft running wave of light */
[data-btn="droplet"] .btn--primary::after,
[data-btn="droplet"] .btn--outline::after,
[data-btn="droplet"] .btn--ghost::after {
  content: ''; position: absolute; z-index: -1; inset: -10% 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255,255,255,0) 41%, rgba(225,250,255,.40) 49%, rgba(255,255,255,.55) 50%, rgba(225,250,255,.40) 51%, rgba(255,255,255,0) 59%, transparent 68%) no-repeat;
  background-size: 240% 100%; background-position: 170% 0;
  filter: blur(2.5px); mix-blend-mode: normal; transition: none;
  animation: glass-glint 5s cubic-bezier(.45, .05, .35, 1) infinite;
  pointer-events: none;
}
[data-btn="droplet"] .btn--outline::after, [data-btn="droplet"] .btn--ghost::after { animation-delay: 1.6s; }

[data-btn="droplet"] .btn--primary:hover,
[data-btn="droplet"] .btn--outline:hover,
[data-btn="droplet"] .btn--ghost:hover { color: #fff; filter: brightness(1.04); transform: translateY(-1px); }

/* pressed: light water-blue */
[data-btn="droplet"] .btn--primary:active,
[data-btn="droplet"] .btn--outline:active,
[data-btn="droplet"] .btn--ghost:active,
[data-btn="droplet"] .btn.is-loading {
  color: var(--l-text); filter: none; transform: scale(.985);
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  background:
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.1) 45%, rgba(255,255,255,0) 50%),
    radial-gradient(ellipse 60% 90% at 70% 78%, rgba(200,246,255,.6) 0%, rgba(200,246,255,0) 70%),
    linear-gradient(180deg, var(--l-top) 0%, var(--l-mid) 55%, var(--l-bot) 100%);
  box-shadow: inset 0 0 8px 0 var(--l-edge), inset 0 1px 0 rgba(255,255,255,.5);
}
[data-btn="droplet"] .btn--primary svg { filter: drop-shadow(0 1px 1px rgba(4, 70, 150, .4)); }
[data-btn="droplet"] .btn:active svg { filter: none; }

@keyframes drop-sway { 0% { background-position: 0 0, 25% 0, 0 0; } 100% { background-position: 0 0, 75% 0, 0 0; } }
@keyframes glass-glint { 0%, 30% { background-position: 170% 0; } 72%, 100% { background-position: -70% 0; } }

[data-btn="droplet"] .btn .ripple { background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(200,246,255,.3) 40%, rgba(255,255,255,0) 70%); }
[data-btn="droplet"] .agree__label input:checked + .agree__box { background: var(--b-mid); border-color: var(--b-bot); }

/* tabs & category chips: same shape family; the selected one in the same blue */
[data-btn="droplet"] .tabs button, [data-btn="droplet"] .chip { border-radius: 10px; }
[data-btn="droplet"] .tabs button[aria-selected="true"], [data-btn="droplet"] .chip[aria-current] {
  color: #fff; border-color: transparent; text-shadow: 0 1px 1.5px rgba(4,70,150,.45);
  background: linear-gradient(180deg, var(--b-top), var(--b-mid) 52%, var(--b-bot));
  box-shadow: inset 0 0 8px 0 var(--b-edge);
}
[data-btn="droplet"] .qty { border-radius: var(--btn-radius); }
[data-btn="droplet"] .qty button { border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  [data-btn="droplet"] .btn, [data-btn="droplet"] .btn::before, [data-btn="droplet"] .btn::after { animation: none !important; }
}

/* Clear space between the product grid and "View all products" on every screen */
.view-all { margin: 48px 0 0; padding-top: 8px; }
@media (max-width: 639px) { .view-all { margin-top: 40px; } }
.card__add { margin-top: auto; margin-bottom: 2px; }
