/* ═══════════════════════════════════════════════════════════
   Hyndan – lädervax
   Gråskala + mahogny. Lugnt, stramt, gediget. Mobile first.
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ink:        #1C1C1C;
  --ink-soft:   #3A3A3A;
  --muted:      #5F5B55;
  --paper:      #F4F1EA;
  --paper-2:    #EAE5DA;
  --white:      #FFFFFF;
  --border:     #D8D1C3;
  --mahogany:   #2E1D14;
  --mahogany-2: #3E281C;
  --brass:      #9C7A4A;
  --brass-lt:   #C2A06B;

  --radius:     3px;
  --shadow:     0 1px 2px rgba(28,28,28,.06), 0 8px 24px rgba(28,28,28,.06);

  /* namn som sitoor-mallarna (kassa m.fl.) förväntar sig */
  --primary:         var(--ink);
  --secondary:       var(--ink-soft);
  --accent:          var(--brass);
  --bg:              var(--paper);
  --text:            var(--ink);
  --light:           var(--paper-2);
  --dark:            var(--mahogany);
  --color-primary:   var(--ink);
  --color-secondary: var(--ink-soft);
  --color-accent:    var(--brass);
  --color-bg:        var(--paper);
  --color-text:      var(--ink);
  --color-muted:     var(--muted);
  --color-border:    var(--border);
  --color-surface:   var(--white);
  --font-heading:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:       'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Grund ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brass); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; letter-spacing: .01em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Rubrik med liten mässingslinje ovanför */
section h2 {
  font-size: clamp(2rem, 6vw, 2.9rem);
  text-align: center;
  margin-bottom: .75rem;
}
section h2::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--brass);
  margin: 0 auto 1.25rem;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,241,234,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  padding: .7rem 0;
}
header .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; }
header nav { display: flex; align-items: center; gap: 1.75rem; }
header nav a {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
header nav a:hover { color: var(--ink); }
/* Inga konton behövs för att handla – håll det enkelt */
#nav-login-link, #nav-profile-link { display: none !important; }
.cart-link {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  padding: .45rem .9rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.cart-link:hover { background: var(--ink); color: var(--paper) !important; }
.cart-badge {
  background: var(--ink); color: var(--paper);
  min-width: 1.3rem; height: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: 0;
}
.cart-link:hover .cart-badge { background: var(--paper); color: var(--ink); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  background-color: var(--mahogany);
  background-size: cover;
  background-position: 72% center;
  color: var(--white);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,12,8,.15) 0%, rgba(20,12,8,.55) 55%, rgba(20,12,8,.88) 100%);
}
.hero-wave { display: none; }
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 4rem; padding-bottom: 3.5rem; }
.hero-eyebrow {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass-lt);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 500;
  color: var(--white);
  max-width: 12ch;
  margin-bottom: 1.1rem;
}
.hero-lead {
  font-size: 1.02rem;
  color: rgba(255,255,255,.85);
  max-width: 30rem;
  margin-bottom: 2rem;
}
.btn-hero, .contact-email {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.btn-hero:hover { background: var(--white); color: var(--ink); }
.trust-strip { display: none; }

/* ── Produkter ───────────────────────────────────────────── */
.product-grid { padding: 5rem 0 4.5rem; background: var(--paper); }
.product-grid-subtitle { text-align: center; color: var(--muted); margin-bottom: 2.75rem; }
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: box-shadow .25s;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-card-link { color: inherit; display: flex; flex-direction: column; flex: 1; }
.product-card-img-wrap { overflow: hidden; background: var(--paper-2); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s ease; }
.product-card:hover img { transform: scale(1.03); }
.product-card .info { padding: 1.4rem 1.4rem .9rem; flex: 1; }
.product-card h3 { font-size: 1.45rem; margin-bottom: .2rem; }
.product-card .price { font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: .6rem; letter-spacing: .02em; }
.product-card .description { color: var(--muted); font-size: .92rem; }
.product-card-actions { padding: 0 1.4rem 1.4rem; }
.btn-buy, .btn {
  display: block; width: 100%;
  padding: .95rem 1rem;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-buy:hover, .btn:hover { background: var(--paper); color: var(--ink); }
.btn-buy:disabled, .btn:disabled { opacity: .4; cursor: default; }

/* ── Egna sektioner (receptet, användning) ───────────────── */
.custom-section { padding: 5rem 0; }
.custom-section .container { max-width: 900px; }
.custom-lead { text-align: center; color: var(--muted); max-width: 36rem; margin: 0 auto 2.5rem; }
.custom-receptet { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.recipe-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.recipe-table th {
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-align: left;
  padding: 0 .75rem .75rem 0;
  border-bottom: 1px solid var(--ink);
}
.recipe-table td { padding: 1rem .75rem 1rem 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.recipe-table td:first-child { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.recipe-table .num { text-align: right; white-space: nowrap; }
.recipe-table td.why { color: var(--muted); font-size: .92rem; padding-left: 1.5rem; }
.recipe-table tfoot td { border-bottom: none; border-top: 1px solid var(--ink); font-weight: 600; }
.recipe-table tfoot td:first-child { font-size: 1.1rem; }
.recipe-note { margin-top: 2rem; text-align: center; color: var(--muted); font-style: italic; font-family: var(--font-heading); font-size: 1.25rem; max-width: 38rem; margin-left: auto; margin-right: auto; }

.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2.5rem; }
.steps li { text-align: center; }
.step-no { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--brass); margin-bottom: .35rem; }
.steps h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.steps p { color: var(--muted); font-size: .95rem; max-width: 22rem; margin: 0 auto; }
.steps-note { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 2.75rem; letter-spacing: .02em; }

/* ── Om ──────────────────────────────────────────────────── */
.about-section { background: var(--mahogany); color: var(--paper); }
.about-section .about-simple { padding: 5.5rem 1.25rem; text-align: center; max-width: 760px; }
.about-section h2 { color: var(--paper); }
.about-section p { color: rgba(244,241,234,.8); font-size: 1.05rem; line-height: 1.85; margin: 0 auto; }
.about-layout { display: grid; grid-template-columns: 1fr; }
.about-text { padding: 4rem 1.25rem; }
.about-image { width: 100%; height: 100%; object-fit: cover; }

/* ── Kontakt ─────────────────────────────────────────────── */
.contact { padding: 5rem 0; background: var(--paper); text-align: center; }
.contact p { color: var(--muted); max-width: 32rem; margin: 0 auto 1.75rem; }
.contact-email { background: var(--ink); color: var(--paper); letter-spacing: .08em; text-transform: none; font-size: .95rem; font-weight: 500; }
.contact-email:hover { background: var(--mahogany); color: var(--paper); }

/* ── Sidfot ──────────────────────────────────────────────── */
footer { background: #171310; color: rgba(244,241,234,.55); padding: 3.5rem 0 2rem; font-size: .88rem; }
.footer-top {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(244,241,234,.1);
}
.footer-brand strong { font-family: var(--font-heading); font-size: 1.6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); font-weight: 500; display: block; margin-bottom: .35rem; }
.footer-brand p { font-style: italic; font-family: var(--font-heading); font-size: 1.05rem; }
.footer-col-heading { font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(244,241,234,.35); margin-bottom: .8rem; }
.footer-nav nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a, .footer-contact a { color: rgba(244,241,234,.7); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--brass-lt); }
.footer-trust { text-align: center; padding-bottom: 1.5rem; margin-bottom: 1.25rem; border-bottom: 1px solid rgba(244,241,234,.1); }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; filter: grayscale(1); opacity: .7; }
.trust-badge { width: 42px; height: auto; }
.footer-bottom { text-align: center; font-size: .75rem; color: rgba(244,241,234,.3); letter-spacing: .08em; }

/* ── Produktsida ─────────────────────────────────────────── */
.product-detail { padding: 2.5rem 0 4rem; }
.product-detail .layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.product-detail img:not(.gallery-thumb), .gallery-main img {
  width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover;
  border-radius: var(--radius); background: var(--paper-2);
}
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gallery-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); cursor: pointer; border: 1px solid transparent; opacity: .6; }
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--ink); }
.product-detail h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: .5rem; }
.product-detail .price { font-size: 1.4rem; font-weight: 500; margin-bottom: 1.25rem; }
.product-detail p { color: var(--muted); margin-bottom: 1.75rem; }
.product-detail .btn-buy { display: inline-block; width: auto; padding: 1rem 2.6rem; }
.product-details-section { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.product-details-section h2 { font-family: var(--font-body); text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.product-details-section h2::before { display: none; }
.product-details-body { color: var(--muted); white-space: pre-wrap; font-size: .95rem; }

/* ── Mobil ───────────────────────────────────────────────── */
@media (max-width: 699px) {
  header nav a:not(.cart-link) { display: none; }
  .logo-img { height: 30px; }
  .cart-link { font-size: .68rem; padding: .4rem .7rem; }
  .hero { min-height: 0; background-size: 230% auto; background-position: 68% 0; background-repeat: no-repeat; }
  .hero-overlay { background: linear-gradient(180deg, rgba(46,29,20,0) 0%, rgba(46,29,20,.25) 40%, rgba(46,29,20,.92) 68%, var(--mahogany) 82%); }
  .hero-content { padding-top: 23.5rem; }

  /* Recepttabellen: "varför" på egen rad under varje ingrediens */
  .recipe-table thead { display: none; }
  .recipe-table tr { display: grid; grid-template-columns: 1fr auto auto; column-gap: 1rem; border-bottom: 1px solid var(--border); padding: .9rem 0; }
  .recipe-table td { border: none; padding: 0; }
  .recipe-table td.why { grid-column: 1 / -1; padding: .25rem 0 0; }
  .recipe-table tfoot tr { border-bottom: none; border-top: 1px solid var(--ink); }
  .recipe-table tfoot td { border: none; }
  .recipe-table tfoot td.why { display: none; }
}

/* ── Surfplatta och uppåt ────────────────────────────────── */
@media (min-width: 700px) {
  .container { padding: 0 2rem; }
  .logo-img { height: 42px; }
  .hero { align-items: center; min-height: 82vh; background-position: center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20,12,8,.88) 0%, rgba(20,12,8,.6) 38%, rgba(20,12,8,0) 65%); }
  .hero-content { padding-top: 5rem; padding-bottom: 5rem; }
  .products { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
  .product-detail { padding: 4.5rem 0; }
  .product-detail .layout { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (min-width: 1000px) {
  .custom-section, .product-grid, .contact { padding: 6.5rem 0; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

/* ── Kassa: varumärkesanpassning av mallens inline-stilar ─── */
body .checkout { padding: 2.5rem 0 4rem; }
body .checkout th { font-size: .68rem; letter-spacing: .16em; font-weight: 600; color: var(--muted); }
body .checkout th, body .checkout td { border-bottom-color: var(--border); }
body .steps-indicator { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; gap: 0; color: var(--muted); border-bottom: 1px solid var(--border); justify-content: flex-start; }
body .steps-indicator span { background: none; border-radius: 0; padding: .6rem 1rem .6rem 0; margin-right: 1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
body .steps-indicator .active { background: none; color: var(--ink); border-bottom-color: var(--brass); }
body .free-shipping-progress, body .free-shipping-banner { background: var(--paper); border: 1px solid var(--border); border-left: 3px solid var(--brass); border-radius: 0; color: var(--ink); }
body .shipping-option, body .payment-method-btn { border-radius: var(--radius); border-color: var(--border); }
body .shipping-option:has(input:checked) { border-color: var(--ink); background: var(--white); }
body .shipping-option-cost, body .payment-status { color: var(--ink); }
body .confirmation h2 { color: var(--ink); }
@media (max-width: 699px) {
  body .steps-indicator span { padding-right: 0; margin-right: .9rem; font-size: .62rem; }
  body .checkout th, body .checkout td { padding: .6rem .35rem; }
  body .checkout td { font-size: .9rem; }
  body .checkout th:nth-child(3), body .checkout td:nth-child(3) { display: none; }
}
