/* SKN & GLO — base styles for the standalone (non-Shopify) site.
   Colours and type mirror the Horizon theme settings (scheme-1, Raleway). */

:root {
  --font-body-family: 'Raleway', sans-serif;
  --font-heading-family: 'Raleway', sans-serif;
  --ink: #1e1a14;
  --ink-soft: rgba(30, 26, 20, 0.81);
  --moss: #2a3d2e;
  --moss-dark: #1f2e22;
  --cream: #f4efe6;
  --sand: #ece5d8;
  --line: #d9d2c0;
  --bg: #ffffff;
  --page: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body-family);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-heading-family); font-weight: 400; line-height: 1.15; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.page-width { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px;
}
.site-header__logo {
  grid-column: 2;
  text-decoration: none; color: var(--ink);
  font-size: 18px; letter-spacing: 0.32em; text-transform: uppercase;
  padding-left: 0.32em;
}
.site-header__shop {
  grid-column: 3; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
}
.site-header__shop svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .site-header__logo { font-size: 15px; letter-spacing: 0.24em; }
  .site-header__shop span { display: none; }
}
/* The homepage hero carries the logo, so the header is hidden there (as on Shopify). */
.template-index .skn-page-nav { display: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skn-page-nav__cart svg { width: 22px; height: 22px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px;
  border-radius: 100px; border: 2px solid var(--moss);
  background: var(--moss); color: var(--cream);
  font: inherit; font-size: 15px; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.button:hover { background: var(--moss-dark); border-color: var(--moss-dark); }
.button--block { width: 100%; }
.button--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button--ghost:hover { background: var(--sand); border-color: var(--moss); }

/* Product page */
.product { padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(48px, 8vw, 96px); }
.product__grid { display: grid; gap: clamp(24px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 990px) {
  .product__grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .product__details { position: sticky; top: 96px; }
}
.gallery__main { background: #fafaf8; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery__thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--line); background: #fafaf8; cursor: pointer; }
.gallery__thumb[aria-current="true"] { border-color: var(--moss); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }

.product__title { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
.product__price { font-size: 18px; color: var(--ink); margin: 0 0 24px; }
.product__bullets { list-style: none; padding: 24px 0; margin: 0 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product__bullets li { padding: 2px 0; }
.product__bullets li::before { content: "✔ "; color: var(--moss); }
.product__note { font-size: 13px; text-align: center; margin: 12px 0 0; }
.product__description { margin-top: 32px; }
.product__description h2 { font-size: 20px; margin: 28px 0 8px; }
.product__description p { margin: 0 0 12px; }

.accordion { border-top: 1px solid var(--line); margin-top: 32px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 0; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion__body { padding: 0 0 20px; }
.accordion__body p { margin: 0 0 8px; }

/* Reviews */
.stars { color: var(--moss); letter-spacing: 2px; }
.product__rating { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; text-decoration: none; margin: -12px 0 20px; }
.reviews { padding-bottom: clamp(48px, 8vw, 96px); }
.reviews__header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.reviews__header h2 { font-size: clamp(24px, 3vw, 32px); margin: 0; }
.reviews__summary { margin: 0; color: var(--ink); }
.reviews__list { display: grid; gap: 16px; margin: 24px 0; grid-template-columns: 1fr; }
@media (min-width: 750px) { .reviews__list { grid-template-columns: 1fr 1fr; } }
.review { background: var(--cream); border-radius: 14px; padding: 24px; }
.review__head { display: flex; justify-content: space-between; font-size: 13px; }
.review__body { color: var(--ink); margin: 12px 0; }
.review__author { font-size: 13px; margin: 0; }
.review__verified { color: var(--moss); }
.reviews__write > summary { list-style: none; display: inline-flex; }
.reviews__write > summary::-webkit-details-marker { display: none; }
.reviews__write[open] > summary { margin-bottom: 24px; }
.rating-input { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.rating-input legend { color: var(--ink); margin-bottom: 6px; letter-spacing: 0.04em; }
.rating-input label { display: inline-flex; align-items: center; gap: 4px; }
.form .rating-input input { width: auto; }

/* Content pages (About, FAQ, policies) */
.content-page { padding: clamp(40px, 7vw, 96px) 0; }
.content-page .rte { max-width: 720px; margin: 0 auto; }
.content-page h1 { font-size: clamp(32px, 4.5vw, 52px); margin: 0 0 32px; }
.rte h2 { font-size: 24px; margin: 40px 0 12px; }
.rte h3 { font-size: 19px; margin: 28px 0 8px; }
.rte hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.rte ul { padding-left: 20px; }
.rte p:empty { display: none; }

/* Forms */
.form { display: grid; gap: 14px; max-width: 560px; }
.form label { font-size: 13px; letter-spacing: 0.04em; color: var(--ink); display: grid; gap: 6px; }
.form input, .form textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
.hidden-field { display: none; }

/* Footer */
.site-footer { background: #f3efe8; color: #111; padding: 56px 0 24px; margin-top: 0; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 750px) { .site-footer__grid { grid-template-columns: 1fr 1.4fr; } }
.site-footer__logo img { width: 140px; mix-blend-mode: multiply; }
.site-footer h4 { font-size: 15px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.newsletter h2 { font-size: 22px; margin: 0 0 16px; }
.newsletter__row { display: flex; border-bottom: 1px solid var(--ink); }
.newsletter__row input { flex: 1; border: 0; background: transparent; font: inherit; padding: 10px 0; color: var(--ink); min-width: 0; }
.newsletter__row input:focus { outline: none; }
.newsletter__row button { border: 0; background: none; font: inherit; cursor: pointer; color: var(--ink); padding: 0 4px; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: 12px;
}
.site-footer__social { display: flex; gap: 16px; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 520px; margin: 0 auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 10px 30px rgba(30, 26, 20, 0.12); font-size: 13px;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner .button { min-height: 40px; padding: 0 20px; font-size: 13px; flex: 1; }

/* ── Basket ─────────────────────────────────────────────────────────── */
.skn-page-nav__cart { position: relative; }
.cart-count {
  position: absolute; top: -6px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--moss); color: var(--cream);
  font: 600 11px/18px var(--font-body-family); text-align: center;
}
.cart-count[hidden] { display: none; }

.buy-row { display: flex; gap: 12px; align-items: stretch; }
.buy-row__add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; background: #fff; }
.qty button { width: 40px; height: 50px; border: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; }
.qty button:disabled { opacity: .3; cursor: default; }
.qty input { width: 32px; border: 0; text-align: center; font: inherit; color: var(--ink); background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--small button { width: 32px; height: 34px; font-size: 16px; }
.qty--small input { width: 26px; font-size: 14px; }
@media (max-width: 400px) { .buy-row { flex-direction: column; } .buy-row .qty { align-self: flex-start; } }

html.cart-open { overflow: hidden; }
.cart-drawer { position: fixed; inset: 0; z-index: 300; }
.cart-drawer__overlay { position: absolute; inset: 0; background: rgba(30, 26, 20, .4); opacity: 0; transition: opacity .25s; }
.cart-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: #fff; color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; outline: none;
}
.cart-drawer.is-open .cart-drawer__overlay { opacity: 1; }
.cart-drawer.is-open .cart-drawer__panel { transform: none; }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { font-size: 20px; margin: 0; }
.cart-drawer__x { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 4px; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-drawer__foot { border-top: 1px solid var(--line); padding: 18px 24px 22px; display: grid; gap: 8px; background: var(--cream); }
.cart-drawer__foot[hidden] { display: none; }
.cart-drawer__row { display: flex; justify-content: space-between; }
.cart-drawer__muted { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.cart-drawer__note { font-size: 12px; text-align: center; margin: 4px 0 0; color: var(--ink-soft); }
.cart-drawer__error { font-size: 13px; color: #9b2c1f; margin: 4px 0 0; text-align: center; }
.cart-drawer__error[hidden] { display: none; }
.cart-drawer .button:disabled { opacity: .7; cursor: progress; }
.cart-empty { text-align: center; padding: 48px 0; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line__img img { width: 80px; height: 80px; object-fit: contain; background: #fafaf8; }
.cart-line__name { text-decoration: none; font-size: 14px; line-height: 1.35; display: block; }
.cart-line__meta { font-size: 13px; color: var(--ink-soft); margin: 4px 0 10px; }
.cart-line__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cart-line__remove { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; text-decoration: underline; color: var(--ink-soft); cursor: pointer; }
.cart-line__total { font-weight: 500; font-size: 14px; }

.cart-fab {
  position: fixed; top: 16px; right: 16px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(30, 26, 20, .15);
  display: none; align-items: center; justify-content: center; cursor: pointer;
}
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab .cart-count { top: 2px; right: 2px; }
.template-index .cart-fab.is-visible { display: inline-flex; }
.form__error { color: #9b2c1f; font-size: 13px; margin: 4px 0 0; }
.form__error:empty { display: none; }
.newsletter .form__error { flex-basis: 100%; }
