/* theme.css — the "modern minimal" re-skin, modelled on the reference board:
   a muted sage page, soft cream panels that float on it, white product cards,
   terracotta-orange as the single action colour, deep forest green for the
   feature bands, and a rounded display face for every heading.

   This file loads LAST (after shopkit.css) so it is the final word on colour
   and shape. It changes no markup and removes no feature — it only restyles.
   To revert the whole look, drop the <link> for this file. */

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap");

:root {
  /* page + surfaces */
  --page: #9db398;          /* the sage everything sits on */
  --page-2: #b3c6ac;        /* lighter sage for washes */
  --panel: #f2eee1;         /* cream section panel */
  --panel-sage: #dde8d4;    /* light sage panel */
  --panel-clay: #f1ddcb;    /* warm clay panel (discounted goods) */
  --bg: #ffffff;            /* card / sheet surface */
  --bg-soft: #f2eee1;       /* nested cream surface */
  --bg-deep: #234b3b;       /* deep forest green band */

  /* ink — kept deliberately dark: the old #55604e / #7f8a77 pair washed out
     against the cream panels and the sage page, so secondary copy was barely
     legible. These sit at 8.7:1 and 5.1:1 on the cream panel. */
  --ink: #232a20;
  --ink-2: #3b4434;
  --muted: #5c6755;
  --line: #e7e0cf;
  --line-2: #efe9db;
  --bone: #f2eee1;

  /* action + status */
  --accent: #e8823c;        /* terracotta (also set live from Settings.theme_accent) */
  --accent-dark: #cf6d29;
  /* The terracotta is a fill colour, not a text colour: as type on cream it only
     reaches 2.3:1. Anything that sets the accent as *text* on a light surface
     uses this darker cousin instead (4.7:1). */
  --accent-ink: #a8501a;
  --accent-soft: #f6e3d2;
  --brass: #d98a3f;         /* warm gold used on the hero eyebrow / dots */
  --sale: #d1542e;
  --ok: #2f7d5b;
  --star: #eaa63a;

  /* shape */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 34px;
  --shadow: 0 2px 8px rgba(35, 42, 32, .05), 0 14px 34px rgba(35, 42, 32, .09);
  --shadow-lg: 0 30px 60px rgba(35, 42, 32, .18);

  /* headings become the rounded display face */
  --serif: "Fredoka", "Baloo 2", ui-rounded, "Segoe UI", system-ui, sans-serif;
}

/* ------------------------------------------------------------------ canvas */

body {
  background-color: var(--page);
  background-image:
    radial-gradient(58% 40% at 8% 4%, rgba(242, 238, 225, .6), transparent 60%),
    radial-gradient(46% 38% at 94% 12%, rgba(242, 238, 225, .42), transparent 60%),
    radial-gradient(72% 46% at 50% 110%, rgba(242, 238, 225, .4), transparent 62%);
  background-attachment: fixed;
  color: var(--ink);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; }
.section__head h2 { font-weight: 600; }

/* --------------------------------------------------------------- top chrome */

.announce { background: var(--bg-deep); color: #f2eee1; letter-spacing: .01em; }

.header {
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { border-top: 1px solid var(--line); }
.mega { background: var(--panel); border-color: var(--line); }
.search input { background: #fff; border-color: var(--line); }
.search input:focus { background: #fff; }

/* ------------------------------------------------------------------ buttons */

.btn { border-radius: 999px; }
.btn:hover { box-shadow: 0 12px 26px rgba(232, 130, 60, .34); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* --------------------------------------------------- sections as cream bands */

.section { padding: 18px 0; }
.section--soft { background: none; }
.section > .wrap {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}

/* adaptable per-section colour — the point of the whole re-skin */
#saleSection > .wrap { background: var(--panel-clay); }
#saleSection .section__head h2 { color: var(--sale); }
#collectionsSection > .wrap { background: var(--panel-sage); }
#reviewsSection > .wrap { background: var(--panel-sage); }
#brandListSection > .wrap { background: var(--panel-sage); }

/* deep-green feature bands with light type */
#offerSection > .wrap,
#countersSection > .wrap {
  background: var(--bg-deep);
  color: #f2eee1;
}
#offerSection .section__head h2,
#countersSection .section__head h2 { color: #fff; }
#offerSection .section__head p,
#countersSection .section__head p { color: rgba(242, 238, 225, .74); }
#offerSection .section__link,
#countersSection .section__link { color: var(--brass); border-color: var(--brass); }

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 10px 14px;
  box-shadow: 0 10px 26px rgba(35, 42, 32, .07);
}
.card__media { border-radius: var(--radius); overflow: hidden; }
.card__quick { background: var(--bg-deep); }
.card__title { font-family: var(--serif); font-weight: 500; }

.badge--sale { background: var(--sale); }
.badge--new { background: var(--ok); }
.price--off { color: var(--sale); }

/* -------------------------------------------------------------------- hero */

.lead3d { background: linear-gradient(142deg, #2c5a48 0%, #16301f 60%, #1d3d2b 100%); }
.lead3d__art::after {
  background: linear-gradient(100deg,
    rgba(19, 38, 28, .84) 0%, rgba(19, 38, 28, .56) 34%,
    rgba(19, 38, 28, .22) 62%, rgba(19, 38, 28, .04) 86%, rgba(19, 38, 28, 0) 100%);
}
.lead3d__eyebrow { color: var(--brass); }
.lead3d__dot.is-active { background: var(--brass); }

/* ------------------------------------------------- shopkit greens -> orange */

.shipbar__fill { background: linear-gradient(90deg, var(--accent), #f0a35f); }
.chip.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ------------------------------------------------------------------ footer */

.footer {
  background: var(--bg-deep);
  color: rgba(242, 238, 225, .78);
  border-top: 0;
}
.footer h4 { color: #fff; }
.footer a { color: rgba(242, 238, 225, .74); }
.footer a:hover { color: var(--brass); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer .logo__text, .footer .logo__brand { color: #fff; }

/* ------------------------------------------- inner pages get a surface

   The homepage floats every band on a cream panel; the inner pages put their
   copy straight onto the sage, which is a dark background (L≈0.42). No shade of
   "muted" is both legible on sage and still distinguishable from the primary
   ink — secondary text there was never going to work. So the inner pages get
   the same panel the homepage bands sit on, and the ink values below are then
   measured against cream everywhere on the site.                              */

main.wrap,
main > .pkghead + .wrap {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 30px 26px 44px;
  margin-top: 18px;
  margin-bottom: 30px;
}

/* Sign in / sign up are a narrow column rather than a full-width page, so the
   panel follows the column instead of the viewport. */
main.auth {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 44px 30px 48px;
  margin: 40px auto 56px;
}

@media (max-width: 760px) {
  main.wrap,
  main > .pkghead + .wrap {
    border-radius: 22px;
    padding: 22px 16px 32px;
    margin-top: 10px;
  }
  main.auth { border-radius: 22px; padding: 32px 20px 36px; margin: 20px auto 32px; }
}

/* ------------------------------------------------- legibility corrections

   Two long-standing problems, fixed in one place because this file is the last
   word on colour:

     1. Accent-coloured *text*. The terracotta is a fill, and as type on a cream
        or white panel it sits at 2.3:1 — readable as decoration, not as words.
        Everything that paints the accent onto light copy switches to
        --accent-ink. Backgrounds are untouched, so nothing changes shape.

     2. Type on the deep-green bands and in the footer ran at .74-.78 alpha,
        which on #234b3b is dimmer than the surrounding furniture. Raised to a
        flat, legible value.                                                    */

.section__head p,
.card__brand,
.counter__label,
.promise__item p,
.brandpill__count,
.catrail__label { color: var(--ink-2); }

.eyebrow,
.section__link,
.section__link:hover,
.hero__eyebrow,
.mega__heading,
.acc__group,
.logo__kicker,
.pd__brand,
.catrail__item:hover .catrail__label,
.catrail__disc svg,
.brandpill:hover,
.brand-chip:hover,
.deal__title a:hover,
.feature__icon,
.promise__item svg,
.shipbar__label svg,
.whyus__disc svg,
.counter__value sup,
.story__mark strong,
.plaque__line span,
.pkgdial__value,
.cart-row__variant,
.pkgline__variant,
.auth__alt a,
.pager button:hover:not(:disabled),
.btn--link:hover,
.crumbs a:hover,
.mega__links a:hover,
.studio-hero h1 em,
.plate__disc svg,
.plate__link,
.nav__item:hover > .nav__link { color: var(--accent-ink); }

/* …except inside the footer, which is deep green: there the warm gold reads. */
.footer .logo__kicker,
.footer .social a:hover { color: var(--brass); }

.section__link { border-bottom-color: var(--accent-ink); }

/* The dark bands and the footer. */
#offerSection .section__head p,
#countersSection .section__head p { color: rgba(242, 238, 225, .92); }

/* style.css wrote the footer for a pale background; this file moved it onto the
   deep green and a few pieces kept their dark ink, which left them all but
   invisible down there. Every one of them is relit here. */
.footer { color: rgba(242, 238, 225, .92); }
.footer a { color: rgba(242, 238, 225, .9); }
.footer p,
.footer li,
.footer address,
.footer__about p,
.footer__contact,
.footer__bottom { color: rgba(242, 238, 225, .9); }
.footer__contact strong { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .18); }

/* The social circles were white discs carrying a near-white icon. */
.footer .social a {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .34);
  color: rgba(242, 238, 225, .92);
}
.footer .social a:hover { background: rgba(255, 255, 255, .2); border-color: var(--brass); }

/* The payment pills are white chips inside that now-light-on-dark bottom row,
   so they take their ink back. */
.footer .pay span { color: var(--ink-2); border-color: var(--line); }

/* ---------------------------------------------------------- hover states

   Hovering used to drop a near-black fill on a handful of controls, which read
   as "the button vanished" against the dark hero art and the dark quick-add
   panel. Everything that hovered to --ink now hovers to the accent, which is
   the one colour that stays visible on every surface this shop uses.          */

.btn--ghost:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.railbtn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* shopkit.css gives these controls a second paint layer that slides up from the
   bottom on hover (`::after` on buttons, `::before` on chips). Those layers were
   filled with --ink, so hovering turned the control into a solid near-black pill
   — and in two cases the label was the same colour as the fill, so the button
   read as empty. The layers now carry the accent, and every label that sits on
   one is white. */
.btn--ghost::after { background: var(--accent-dark); }

.chip::before { background: var(--accent); }
.chip:hover,
.chip:focus-visible { color: #fff; border-color: var(--accent); }
.chip.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip.is-on:hover { color: #fff; }
.chip svg { color: inherit; }

/* The quick-view button sits on the dark panel over a product picture, so it
   keeps white type throughout — it used to swap to --ink on hover (dark text on
   a dark panel) with a solid white sweep behind it. */
.btn--qv::after { background: rgba(255, 255, 255, .22); }
.btn--qv:hover,
.btn--qv:focus-visible { background: transparent; color: #fff; border-color: #fff; }

/* No colour wash on a picture when the pointer crosses it — only the lift and
   the small zoom the cards already do. */
.card__quick { background: rgba(23, 38, 30, .86); backdrop-filter: blur(3px); }

/* The package "+" is a fixed-width icon button, but shopkit's .btn--sm padding
   (9px 16px) landed on top of it and squeezed the icon's content box down to
   2px, so the "+" was there and invisible. Give the icon its box back. */
.btn--pkg { width: 34px; padding: 9px 0; }
.btn--pkg svg { width: 15px; height: 15px; margin: 0 auto; }
.card__quick .btn--pkg { width: 30px; padding: 6px 0; }

/* -------------------------------------------------------------- small screens */

@media (max-width: 640px) {
  .section > .wrap { padding: 26px 18px; border-radius: 26px; }
  .section { padding: 12px 0; }
}
