/*  Storefront design system — cottagecore archetype default
 *  ----------------------------------------------------------
 *  Variables sit at :root so operator overrides drop in through
 *  Brand.Identity.ColourPalette without touching this file.
 *  Mobile-first; container max-width 1180px.
 */

:root {
  --c-bg:        #faf7f2;
  --c-bg-soft:   #f1ebe0;
  --c-surface:   #ffffff;
  --c-ink:       #1f1b17;
  --c-ink-soft:  #5b554d;
  --c-line:      #e8dfd1;
  --c-accent:    #3d5a40;
  --c-accent-2:  #a45a3f;
  --c-accent-3:  #c97b3c;
  --c-success:   #5a8a3d;
  --c-discount-bg: #fef2f2;
  --c-discount-fg: #b91c1c;

  --f-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --f-accent:  "Caveat", "Brush Script MT", cursive;

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --radius-1: 4px; --radius-2: 8px; --radius-3: 14px;

  --shadow-1: 0 1px 2px rgba(31,27,23,0.05);
  --shadow-2: 0 4px 16px rgba(31,27,23,0.08);
  --shadow-3: 0 12px 40px rgba(31,27,23,0.16);

  --container: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color 0.15s ease, opacity 0.15s ease; }
a:hover { color: var(--c-accent-2); }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }

h1,h2,h3,h4 { font-family: var(--f-heading); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 var(--space-4); color: var(--c-ink); }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
p  { margin: 0 0 var(--space-4); }
.lede { font-size: 18px; color: var(--c-ink-soft); line-height: 1.6; }

button { font-family: var(--f-body); cursor: pointer; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

/* HEADER + NAV */
.announcement { background: var(--c-accent); color: #fff; text-align: center; font-size: 13px; letter-spacing: 0.04em; padding: 8px var(--space-4); }
.announcement strong { font-weight: 600; }

.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: var(--space-5); padding-top: var(--space-4); padding-bottom: var(--space-4); }
.brand-logo { font-family: var(--f-heading); font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--c-ink); }
.brand-logo:hover { color: var(--c-ink); opacity: 0.85; }
.brand-logo img { height: 38px; }
.site-nav { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.site-nav a { color: var(--c-ink); font-size: 14px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--c-accent); border-bottom-color: var(--c-accent); }

/* HERO */
.hero { position: relative; background: linear-gradient(140deg, var(--c-bg-soft) 0%, var(--c-bg) 100%); padding: var(--space-9) 0 var(--space-8); overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -120px; right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(196,123,60,0.18), transparent 70%); pointer-events: none; }
.hero::after  { content: ""; position: absolute; bottom: -100px; left: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(61,90,64,0.12), transparent 70%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-7); align-items: center; }
.hero-text h1 { margin: 0 0 var(--space-4); }
.hero-tagline { font-family: var(--f-accent); font-size: 28px; color: var(--c-accent-2); margin-bottom: var(--space-5); }
.hero-lede { font-size: 18px; color: var(--c-ink-soft); margin-bottom: var(--space-6); max-width: 480px; }
.hero-ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-img-wrap { position: relative; border-radius: var(--radius-3); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(135deg, #d4c8b5, #e8dfd1); box-shadow: var(--shadow-3); }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; bottom: var(--space-5); left: var(--space-5); background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); padding: var(--space-3) var(--space-4); border-radius: var(--radius-3); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-ink); font-weight: 500; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; font-size: 15px; font-weight: 500; letter-spacing: 0.03em; text-decoration: none; border-radius: var(--radius-1); border: 1px solid transparent; background: var(--c-ink); color: #fff; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-2); background: var(--c-accent); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { color: var(--c-ink); background: var(--c-surface); border-color: var(--c-ink); }
.btn--accent { background: var(--c-accent); }
.btn--accent:hover { background: var(--c-accent-2); }
.btn--block { display: flex; width: 100%; justify-content: center; padding: 16px 26px; font-size: 16px; }
.btn:disabled, .btn[disabled] { background: #aaa9a3; cursor: not-allowed; transform: none; box-shadow: none; }

/* TRUST BAR */
.trust-bar { background: var(--c-surface); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.trust-bar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4); padding-top: var(--space-5); padding-bottom: var(--space-5); }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--c-ink-soft); }
.trust-icon { width: 32px; height: 32px; background: var(--c-bg-soft); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--c-accent); flex-shrink: 0; }

/* SECTION HEADS */
.section { padding: var(--space-8) 0; }
.section--soft { background: var(--c-bg-soft); }
.section-eyebrow { font-family: var(--f-accent); font-size: 22px; color: var(--c-accent-2); display: block; margin-bottom: var(--space-2); }
.section-head { text-align: center; margin-bottom: var(--space-7); }
.section-head h2 { margin: 0 0 var(--space-3); }
.section-head p { color: var(--c-ink-soft); max-width: 580px; margin: 0 auto; }

/* PRODUCT GRID */
.product-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); }
.product-card { background: var(--c-surface); border-radius: var(--radius-2); overflow: hidden; border: 1px solid var(--c-line); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; position: relative; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--c-ink-soft); }
.product-card a { display: block; color: var(--c-ink); height: 100%; }
.product-card a:hover { color: var(--c-ink); }
.product-card-img {
  aspect-ratio: 4/5; position: relative; overflow: hidden;
  background:
    linear-gradient(135deg, #e8dfd1 0%, #f1ebe0 50%, #d4c8b5 100%);
}
.product-card-img::after {
  content: "✿";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: rgba(164, 90, 63, 0.22);
  pointer-events: none; z-index: 0;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; position: relative; z-index: 1; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.product-card h3 { font-family: var(--f-body); font-size: 15px; font-weight: 500; margin: 0 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .product-price { font-family: var(--f-heading); font-size: 18px; font-weight: 600; margin: 0; color: var(--c-ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.product-card .price-was { text-decoration: line-through; color: var(--c-ink-soft); font-size: 14px; font-weight: 400; }
.product-card-badge { position: absolute; top: var(--space-3); left: var(--space-3); background: var(--c-accent-2); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; z-index: 2; }

/* PRODUCT DETAIL */
.breadcrumbs { font-size: 13px; color: var(--c-ink-soft); padding: var(--space-4) 0; }
.breadcrumbs a { color: var(--c-ink-soft); }
.breadcrumbs a:hover { color: var(--c-accent); }

article.product-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-7); padding-top: var(--space-5); padding-bottom: var(--space-8); }
.product-images { display: flex; flex-direction: column; gap: var(--space-3); }
.product-images img:first-child { border-radius: var(--radius-2); aspect-ratio: 4/5; object-fit: cover; background: var(--c-bg-soft); }
.product-images img:not(:first-child) { border-radius: var(--radius-1); aspect-ratio: 1; object-fit: cover; background: var(--c-bg-soft); }
.product-images-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.product-video { grid-column: 1 / -1; }
.product-video video { width: 100%; max-height: 70vh; background: #000; border-radius: var(--radius-2); }

.product-info h1 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 var(--space-3); }
.product-rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-ink-soft); margin-bottom: var(--space-4); }
.product-rating .stars { color: #e9b945; letter-spacing: 1px; }

.product-price { font-family: var(--f-heading); font-size: 30px; font-weight: 600; margin: 0 0 var(--space-2); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-was { text-decoration: line-through; color: var(--c-ink-soft); font-size: 22px; font-weight: 400; }
.price-discount { background: var(--c-discount-bg); color: var(--c-discount-fg); padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.product-summary { color: var(--c-ink-soft); font-size: 16px; margin: var(--space-3) 0 var(--space-5); }
.product-bullets { padding-left: 0; list-style: none; margin: 0 0 var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.product-bullets li { padding-left: 24px; position: relative; font-size: 15px; color: var(--c-ink); }
.product-bullets li::before { content: "✓"; color: var(--c-accent); position: absolute; left: 0; font-weight: 600; }

.product-variants { margin: var(--space-5) 0; }
.product-variants label { display: block; font-size: 13px; color: var(--c-ink-soft); margin-bottom: 6px; }
.product-variants select { padding: 12px 14px; font-size: 15px; border: 1px solid var(--c-line); border-radius: var(--radius-1); width: 100%; background: var(--c-surface); cursor: pointer; }

.product-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin: var(--space-5) 0; padding-top: var(--space-5); border-top: 1px solid var(--c-line); }
.product-trust div { font-size: 13px; color: var(--c-ink-soft); display: flex; align-items: center; gap: 8px; }
.product-trust span { color: var(--c-accent); font-size: 16px; }

.product-description { margin-top: var(--space-7); padding-top: var(--space-7); border-top: 1px solid var(--c-line); }
.product-description h2 { font-size: 20px; margin-bottom: var(--space-3); }

/* ABOUT PAGE */
.about-page { max-width: 760px; margin: 0 auto; padding-top: var(--space-7); padding-bottom: var(--space-8); }
.about-page h1 { text-align: center; margin-bottom: var(--space-5); }
.about-page .founder-photo { margin: var(--space-7) 0; }
.about-page .founder-photo img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-2); }
.about-page .founder-story { font-size: 17px; line-height: 1.8; color: var(--c-ink); }
.about-page .founder-story p { margin-bottom: var(--space-4); }
.values { margin: var(--space-7) 0; padding: var(--space-6); background: var(--c-surface); border-radius: var(--radius-2); border: 1px solid var(--c-line); }
.values h2 { font-size: 22px; margin-bottom: var(--space-4); text-align: center; }
.values ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.values li { padding-left: 28px; position: relative; }
.values li::before { content: "❋"; color: var(--c-accent-2); position: absolute; left: 0; }

/* FOOTER */
.site-footer { background: var(--c-ink); color: #b8aea0; padding: var(--space-8) 0 var(--space-5); margin-top: var(--space-9); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-7); margin-bottom: var(--space-7); }
.footer-grid h4 { color: #fff; font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 var(--space-4); }
.footer-grid a { color: #b8aea0; display: block; padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand-logo { color: #fff; font-size: 22px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin: var(--space-3) 0; max-width: 320px; }
.newsletter-form { display: flex; gap: 8px; margin-top: var(--space-3); }
.newsletter-form input { flex: 1; padding: 11px 14px; font-size: 14px; border: 1px solid #3a342d; background: #2a2620; color: #fff; border-radius: var(--radius-1); }
.newsletter-form input::placeholder { color: #7d7466; }
.newsletter-form button { padding: 11px 18px; font-size: 13px; font-weight: 500; background: var(--c-accent-2); color: #fff; border: 0; border-radius: var(--radius-1); cursor: pointer; }
.newsletter-form button:hover { background: var(--c-accent-3); }
.footer-bottom { padding-top: var(--space-5); border-top: 1px solid #2a2620; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); font-size: 13px; }
.footer-bottom p { margin: 0; }
.footer-bottom .payment-icons { display: flex; gap: 6px; }
.footer-bottom .payment-icons span { background: #2a2620; padding: 4px 10px; border-radius: 4px; font-size: 11px; color: #d4c8b5; letter-spacing: 0.04em; }

/* COOKIE BANNER — bottom-left corner, compact pill */
.cookie-banner { position: fixed; bottom: var(--space-4); left: var(--space-4); right: auto; max-width: 380px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-2); padding: var(--space-3) var(--space-4); box-shadow: var(--shadow-3); z-index: 200; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1 1 100%; font-size: 12px; color: var(--c-ink-soft); line-height: 1.4; }
.cookie-banner button { padding: 6px 12px; font-size: 12px; border: 1px solid var(--c-line); background: var(--c-surface); border-radius: var(--radius-1); cursor: pointer; font-weight: 500; }
.cookie-banner button[data-cookie-action="accept-all"] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.cookie-banner button:hover { opacity: 0.85; }
@media (max-width: 560px) {
  .cookie-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); max-width: none; }
}

/* IMAGE PLACEHOLDER FALLBACK — when a real image isn't loaded
 * yet (or is a 1×1 dev placeholder), the wrapping element shows
 * a branded gradient + soft pattern instead of an empty box.
 * Real images cover this with object-fit: cover; transparent
 * placeholders let it show through. */
.product-card-img,
.hero-img-wrap,
.about-page .founder-photo {
  background-image:
    linear-gradient(135deg, #e8dfd1 0%, #f1ebe0 50%, #e8dfd1 100%),
    radial-gradient(circle at 30% 30%, rgba(196,123,60,0.08), transparent 60%);
  background-size: cover;
  background-blend-mode: normal;
}
/* Soft "image coming" affordance only for the hero (largest) */
.hero-img-wrap::after {
  content: "✿";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: rgba(164, 90, 63, 0.25);
  pointer-events: none;
  z-index: 0;
}
.hero-img-wrap img { position: relative; z-index: 1; }
/* Hide the affordance once a real image loads (object-fit:cover with
 * non-transparent pixels covers the ::after anyway) */

/* CTA STRIP */
.cta-strip { background: var(--c-accent); color: #fff; padding: var(--space-7) 0; text-align: center; }
.cta-strip h2 { color: #fff; margin: 0 0 var(--space-3); }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0 auto var(--space-5); }
.cta-strip .btn { background: #fff; color: var(--c-ink); }
.cta-strip .btn:hover { background: var(--c-bg-soft); color: var(--c-ink); }

/* POPUP — overrides the inline styles on #kx-popup with brand fonts */
#kx-popup { font-family: var(--f-body) !important; }
#kx-popup > div { border-radius: var(--radius-2) !important; box-shadow: var(--shadow-3) !important; font-family: var(--f-body) !important; }
#kx-popup h2 { font-family: var(--f-heading) !important; font-size: 24px !important; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { padding: var(--space-7) 0 var(--space-7); }
  .hero .container { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-img-wrap { aspect-ratio: 16/10; }
  article.product-detail { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-header .container { padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .site-nav { gap: var(--space-3); }
  .site-nav a { font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .product-card-body { padding: var(--space-3); }
  .product-card h3 { font-size: 13px; }
  .product-card .product-price { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
