/* kakamugs shop front.
   Palette taken from the Kaká Mugs logo: cream paper, blush pink,
   warm cocoa brown. Every colour is a variable, so the whole site
   can be reshaded from this block alone. */

:root {
  --cream:     #FBF3EA;   /* page */
  --paper:     #FFFFFF;   /* cards */
  --sand:      #F6E7D4;   /* soft panels */
  --blush:     #E9C4B1;   /* logo blob pink */
  --rose:      #CBA592;   /* hearts */
  --cocoa:     #5C2C18;   /* script brown, headings */
  --bark:      #7A4230;   /* buttons, links */
  --clay:      #A9705A;   /* secondary text */
  --muted:     #97776A;
  --line:      #EADBCC;
  --on-bark:   #FFF8F1;

  --gutter:    clamp(1.25rem, 5vw, 4rem);
  --maxw:      1180px;
  --radius:    14px;
  --shadow:    0 10px 30px rgba(92, 44, 24, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: "Karla", ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Soft blush wash behind the top of the page, echoing the logo corner */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  background: radial-gradient(circle at 20% 15%, var(--blush), transparent 68%);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cocoa);
}

a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--bark);
  outline-offset: 3px;
}

/* ---- Header ---- */
.site-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.85rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: block; line-height: 0; }
.brand img {
  display: block;
  height: 62px;
  width: auto;
  mix-blend-mode: multiply;   /* melts the logo's cream into the page */
}

.cats { display: flex; gap: 1.5rem; margin-right: auto; flex-wrap: wrap; }
.cats a {
  color: var(--clay);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}
.cats a:hover { color: var(--cocoa); border-bottom-color: var(--rose); }

.lang { margin: 0; display: flex; gap: 0.35rem; font-size: 0.8rem; }
.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
}
.lang a[aria-current] { color: var(--cocoa); border-color: var(--line); background: var(--paper); }

/* ---- Hero ---- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3.5rem) var(--gutter) clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

.hero-words { min-width: 0; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  max-width: 15ch;
}
.hero .lead {
  color: var(--clay);
  font-size: 1.06rem;
  margin: 0 0 1.25rem;
  max-width: 40ch;
}
.hero .collect {
  display: inline-block;
  margin: 0;
  color: var(--bark);
  background: var(--paper);
  border: 1px solid var(--blush);
  border-radius: 999px;
  padding: 0.3rem 0.95rem;
  font-size: 0.9rem;
}
.hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--bark);
  color: var(--on-bark);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  box-shadow: var(--shadow);
}
.hero-cta:hover { background: var(--cocoa); }

/* ---- Carousel ---- */
.carousel {
  position: relative;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow);
}

.frames { position: relative; aspect-ratio: 3 / 2; }

.frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 450ms ease;
}
.frame.on { opacity: 1; visibility: visible; }

.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.35rem 1.1rem;
  font-size: 0.95rem;
  color: var(--cocoa);
  background: linear-gradient(to top, rgba(251, 243, 234, 0.96) 35%, rgba(251, 243, 234, 0));
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--cocoa);
  cursor: pointer;
}
.arrow:hover { background: var(--bark); color: var(--on-bark); border-color: var(--bark); }
.arrow svg { width: 19px; height: 19px; }
.arrow.prev { left: 0.85rem; }
.arrow.next { right: 0.85rem; }

.dots { position: absolute; bottom: 1rem; right: 1.2rem; display: flex; gap: 0.45rem; }
.dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: var(--rose); opacity: 0.45; cursor: pointer;
}
.dot.on { background: var(--bark); opacity: 1; }

/* ---- Categories ---- */
.cat { padding: 2.5rem var(--gutter); max-width: var(--maxw); margin: 0 auto; }
.cat h2 { font-size: 1.65rem; margin: 0 0 0.35rem; }
.cat-blurb { color: var(--clay); margin: 0 0 1.75rem; max-width: 34rem; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
}

.mug {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.mug:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mug > a { text-decoration: none; }
.mug img, .mug .noimg {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; border-radius: 10px; background: var(--sand);
}
.mug h3 { font-size: 1.08rem; margin: 0.9rem 0 0.4rem; }

.price { margin: 0 0 0.2rem; }
.price .now { font-size: 1.3rem; font-weight: 700; color: var(--bark); font-family: "Fraunces", Georgia, serif; }
.price .rrp { color: var(--muted); text-decoration: line-through; margin-left: 0.45rem; font-size: 0.9rem; }
.lowest { margin: 0; font-size: 0.78rem; color: var(--muted); }

.cta {
  display: block; text-align: center;
  background: var(--bark); color: var(--on-bark);
  text-decoration: none; font-weight: 600;
  border-radius: 999px; padding: 0.6rem 1rem; margin-top: 1.1rem;
}
.cta:hover { background: var(--cocoa); }

.empty { color: var(--clay); padding: 1rem var(--gutter) 3rem; max-width: var(--maxw); margin: 0 auto; }

/* ---- Footer ---- */
.site-foot {
  border-top: 1px solid var(--line);
  margin: 3rem auto 0;
  padding: 2rem var(--gutter) 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: var(--maxw);
  text-align: center;
}
.site-foot .tag { color: var(--rose); font-family: "Fraunces", Georgia, serif; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .frame, .mug { transition: none; }
}

/* =================================================================
   Shop pages: basket link, product, basket, checkout
   ================================================================= */

.basket-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--cocoa);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}
.basket-link:hover { border-color: var(--rose); }
.basket-link .pip {
  display: inline-block;
  min-width: 20px;
  margin-left: 0.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--bark);
  color: var(--on-bark);
  font-size: 0.78rem;
  text-align: center;
}

main { display: block; }

.crumbs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.5rem var(--gutter) 0;
  font-size: 0.88rem;
  color: var(--clay);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 0.45rem; color: var(--rose); }

/* ---- Product page ---- */
.product {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
@media (max-width: 800px) { .product { grid-template-columns: minmax(0, 1fr); } }

.product-pic img, .noimg.big {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--sand);
  box-shadow: var(--shadow);
}

.preview {
  margin: 1.25rem 0 0;
  padding: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.preview figcaption { font-size: 0.82rem; color: var(--clay); margin-bottom: 0.5rem; }
.preview img { display: block; width: 100%; border-radius: 8px; max-height: 260px; object-fit: contain; background: var(--sand); }
.preview-note { margin: 0.55rem 0 0; font-size: 0.82rem; color: var(--muted); }
.preview-note.good { color: #4E7A46; }
.preview-note.soft { color: #8A6A52; }

.product-buy h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 0.6rem; }
.price.big .now { font-size: 1.85rem; }
.desc { color: var(--clay); margin: 1rem 0 1.25rem; }

.facts { list-style: none; margin: 0 0 1.75rem; padding: 0; font-size: 0.9rem; color: var(--clay); }
.facts li { padding-left: 1.4rem; position: relative; margin-bottom: 0.3rem; }
.facts li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--rose);
}

/* ---- Forms ---- */
.field { margin-bottom: 1.1rem; }
.field.narrow { max-width: 9rem; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.35rem; }
.hint { font-size: 0.82rem; color: var(--muted); margin: 0.35rem 0 0; }
.err  { font-size: 0.85rem; color: #A8422E; margin: 0.35rem 0 0; }

input[type=text], input[type=email], input[type=number], input[type=file], textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--cocoa);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
input:focus, textarea:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(203,165,146,0.25); }
textarea { resize: vertical; }

.hero-cta.wide { display: block; width: 100%; text-align: center; border: 0; font: inherit; font-weight: 600; cursor: pointer; }

fieldset { border: 0; margin: 0 0 1.75rem; padding: 0; }
legend {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  color: var(--cocoa);
  padding: 0 0 0.75rem;
}
.radio { display: block; font-weight: 400; margin-bottom: 0.6rem; }
.radio input { width: auto; margin-right: 0.5rem; }

/* ---- Basket ---- */
table.basket { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
table.basket th, table.basket td {
  text-align: left; padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--line); vertical-align: middle;
}
table.basket th { font-size: 0.8rem; color: var(--clay); font-weight: 600; }
table.basket .num, table.basket th.num { text-align: right; }
.qty-in { width: 4.2rem; text-align: right; }
.tick, .words { display: block; font-size: 0.82rem; color: var(--clay); }
.tick::before { content: "♥ "; color: var(--rose); }

.linky {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 0.88rem;
  color: var(--clay); text-decoration: underline; cursor: pointer;
}
.linky:hover { color: var(--cocoa); }

.btn-ghost {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.5rem 1.1rem;
  font: inherit; color: var(--cocoa); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--rose); }

.basket-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.basket-foot .sum { margin: 0; font-size: 1.05rem; }
.basket-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.basket-actions .hero-cta { margin-top: 0; }

/* ---- Checkout ---- */
.checkout-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .checkout-cols { grid-template-columns: minmax(0,1fr); } }

.totals {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 22rem;
}
.totals p { display: flex; justify-content: space-between; margin: 0 0 0.45rem; color: var(--clay); }
.totals .grand {
  margin: 0.75rem 0 0; padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--cocoa); font-weight: 700; font-size: 1.15rem;
}
.checkout-form .hero-cta.wide { max-width: 22rem; }

/* ---- Done ---- */
.done .ref { font-size: 1.2rem; margin: 0 0 1.25rem; }
.done .ref strong { font-family: "Fraunces", Georgia, serif; color: var(--bark); }

/* ---- Business page ---- */
.cats a.biz {
  color: var(--bark);
  font-weight: 600;
  border-bottom-color: var(--blush);
}
.business-cols {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) { .business-cols { grid-template-columns: minmax(0,1fr); } }
.business h2 { font-size: 1.2rem; margin: 0 0 0.85rem; }
.business h2 + table, .business h2 + .facts { margin-top: 0; }

table.tiers { width: 100%; border-collapse: collapse; margin-bottom: 0.75rem; max-width: 20rem; }
table.tiers th, table.tiers td {
  text-align: left; padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
}
table.tiers th { font-size: 0.8rem; color: var(--clay); font-weight: 600; }
table.tiers .num, table.tiers th.num { text-align: right; }
table.tiers tbody tr:last-child td { font-weight: 700; color: var(--bark); }

select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--cocoa);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
input[type=date] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: var(--cocoa);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ok-box {
  background: var(--paper);
  border: 1px solid var(--blush);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
}
.ok-box p { margin: 0 0 0.5rem; }
.ok-box p:last-child { margin: 0; color: var(--clay); }

/* ---- Choosing how to buy ---- */
fieldset.modes { margin-bottom: 1.5rem; }
fieldset.modes legend { padding-bottom: 0.6rem; }

.mode {
  display: block;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.6rem;
  margin-bottom: 0.65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 400;
  transition: border-color 150ms ease, background 150ms ease;
}
.mode:hover { border-color: var(--rose); }
.mode.on { border-color: var(--bark); background: #FFFCF8; box-shadow: 0 0 0 1px var(--bark) inset; }

.mode input {
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: auto;
  margin: 0;
  accent-color: var(--bark);
}
.mode-t { display: block; font-weight: 600; color: var(--cocoa); }
.mode-d { display: block; font-size: 0.86rem; color: var(--clay); margin-top: 0.15rem; }

.mode-only[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { .mode { transition: none; } }

/* Storefront refresh */
:root { --cream:#faf7f2; --cocoa:#342b27; --bark:#65473c; --clay:#705b52; --muted:#75655c; --radius:22px; }
body::before { opacity:.2; }
.site-head { padding-top:1.3rem; padding-bottom:1.3rem; border-bottom:1px solid var(--line); }
.hero { padding-top:clamp(2rem,6vw,5rem); padding-bottom:3rem; gap:3rem; }
.hero h1 { font-size:clamp(2.8rem,5.8vw,5.2rem); line-height:1.06; letter-spacing:-.055em; margin:.6rem 0 1.4rem; }
.eyebrow { text-transform:uppercase; letter-spacing:.16em; font-size:.75rem; font-weight:700; }
.hero .lead { max-width:30rem; color:var(--clay); }
.hero-cta { border-radius:999px; padding:1rem 1.8rem; }
.carousel { border-radius:28px; box-shadow:0 20px 60px #65473c14; }
.story-strip { max-width:var(--maxw); margin:0 auto 3rem; padding:2rem var(--gutter); display:grid; grid-template-columns:repeat(3,1fr); gap:2rem; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.story-strip span { font-size:.75rem; color:var(--clay); letter-spacing:.1em; }
.story-strip h2 { font-size:1.3rem; margin:.4rem 0; }
.story-strip p { color:var(--clay); font-size:.95rem; margin:.4rem 0; }
.mug { border:1px solid var(--line); box-shadow:none; transition:transform .2s,box-shadow .2s; }
.mug:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.mug img { border-radius:16px; }
.checkout-form fieldset { border-radius:18px; background:var(--paper); padding:1.5rem; }
.checkout-form input,.checkout-form textarea { border-radius:10px; }
.checkout-form .totals { background:var(--sand); padding:1.5rem; border-radius:18px; }
.payment-note { background:var(--sand); padding:1rem; border-radius:12px; }
button:disabled { opacity:.6; cursor:wait; }
input:focus-visible,textarea:focus-visible,select:focus-visible { outline:2px solid var(--bark); outline-offset:2px; }
.skip-link { position:absolute; left:1rem; top:-5rem; padding:.5rem 1rem; background:white; z-index:10; }
.skip-link:focus { top:1rem; }
@media(max-width:680px) { .story-strip { grid-template-columns:1fr; gap:1rem; } .hero { gap:1.5rem; } .site-head { gap:1rem; } .cats { order:4; width:100%; gap:1rem; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }

.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery-thumb { width: 72px; height: 72px; padding: 0; border: 1px solid #d8c9b8; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.on { outline: 2px solid #6b4a3a; }
