@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #f7f3ea;
  --cream-alt: #efe8d8;
  --sage: #4f6b4c;
  --sage-dark: #3b5139;
  --clay: #c97b4a;
  --clay-dark: #a9603a;
  --moss: #233021;
  --line: rgba(35, 48, 33, 0.14);
  --paper: #fffdf7;
  --radius: 3px;
  --maxw: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--moss);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--moss);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.7rem;
  color: var(--sage);
  white-space: nowrap;
}

.logo em {
  font-style: italic;
  color: var(--clay);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Cart button lives as a floating pill, not in the topbar (see .cart-fab) */
.cart-btn {
  display: none;
}

.cart-count {
  background: var(--clay);
  color: var(--cream);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--moss);
}

.nav-close {
  display: none;
  position: fixed;
  top: 20px;
  right: calc(min(300px, 80vw) - 44px);
  z-index: 86;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--sage);
  cursor: pointer;
}

.nav-close.open {
  display: block;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 48, 33, 0.4);
  z-index: 84;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero (full-bleed, not split) ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 48, 33, 0.05) 30%, rgba(35, 48, 33, 0.72) 100%);
}

.hero-text {
  position: relative;
  z-index: 1;
  padding: 48px 40px 56px;
  max-width: 680px;
  color: var(--cream);
}

.hero-kicker {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-alt);
  font-size: 0.82rem;
  margin-bottom: 18px;
  display: inline-block;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  margin-bottom: 20px;
  color: var(--cream);
}

.hero-text h1 .accent {
  font-style: italic;
  color: #e3c98f;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--cream-alt);
  max-width: 48ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid var(--sage);
  cursor: pointer;
  background: none;
  font-family: 'Manrope', sans-serif;
}

.btn-primary {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}

.btn-ghost {
  color: var(--moss);
  border-color: var(--moss);
}

.hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(247, 243, 234, 0.7);
}

.btn-ghost:hover {
  background: rgba(35, 48, 33, 0.08);
}

.hero .btn-ghost:hover {
  background: rgba(247, 243, 234, 0.15);
}

/* ---------- Month set banner ---------- */
.month-banner {
  background: var(--moss);
  color: var(--cream);
}

.month-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.month-label {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #e3c98f;
}

.month-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.95rem;
}

.month-price-old {
  text-decoration: line-through;
  opacity: 0.55;
}

.month-price-new {
  font-weight: 800;
  color: var(--cream);
}

.month-inner a.btn {
  border-color: var(--cream);
  color: var(--cream);
  padding: 9px 18px;
}

/* ---------- Sections ---------- */
section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}

.section-head p {
  color: #4b5a46;
  max-width: 50ch;
}

/* ---------- Category accordion (home) ---------- */
.cat-accordion {
  border-top: 1px solid var(--line);
}

.cat-row {
  border-bottom: 1px solid var(--line);
}

.cat-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 24px 4px;
  cursor: pointer;
  text-align: left;
  font-family: 'Manrope', sans-serif;
  gap: 20px;
}

.cat-row-head .num {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  color: var(--clay);
  font-size: 1rem;
  margin-right: 18px;
}

.cat-row-head h3 {
  font-size: 1.3rem;
  flex: 1;
  display: flex;
  align-items: baseline;
}

.cat-row-head .count {
  font-size: 0.82rem;
  color: #6b7a66;
  font-weight: 600;
  margin-right: 18px;
}

.cat-row-head .chevron {
  font-size: 1.3rem;
  color: var(--sage);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.cat-row.open .cat-row-head .chevron {
  transform: rotate(45deg);
}

.cat-row-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.cat-row.open .cat-row-panel {
  max-height: 900px;
}

.cat-row-panel-inner {
  padding: 0 4px 32px 4px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- Product grid (quilt rhythm) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.tile {
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tile.wide {
  grid-column: span 2;
  flex-direction: row;
}

.tile.wide .tile-img {
  width: 44%;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--line);
}

.tile.wide .tile-body {
  flex: 1;
}

.tile-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.tile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile:hover .tile-img img {
  transform: scale(1.04);
}

.tile-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 1;
}

.badge {
  background: var(--cream);
  border: 1px solid var(--sage);
  color: var(--sage-dark);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.01em;
}

.badge-promo {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--cream);
}

.tile-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tile-cat {
  font-size: 0.72rem;
  color: var(--clay-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tile-body h3 {
  font-size: 1.12rem;
  font-weight: 400;
}

.tile-body h3 a:hover {
  color: var(--sage);
}

.tile-desc {
  font-size: 0.86rem;
  color: #4b5a46;
  flex: 1;
}

.tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.price {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--moss);
  font-size: 1.05rem;
}

.price .unit {
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  font-size: 0.74rem;
  color: #7a8a74;
}

.price .old {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  text-decoration: line-through;
  color: #9aa894;
  margin-right: 6px;
}

.add-btn {
  background: var(--sage);
  color: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
}

.add-btn:hover {
  background: var(--sage-dark);
}

/* ---------- Shop page: tabbed categories (underline, not pills) ---------- */
.tabs {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
}

.tab-btn {
  border: none;
  background: none;
  color: #6b7a66;
  padding: 10px 2px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--sage-dark);
  border-bottom-color: var(--clay);
}

.tab-btn:hover {
  color: var(--sage-dark);
}

/* ---------- Product detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 56px 0 24px;
}

.product-detail-img {
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--clay-dark);
  margin-bottom: 18px;
  font-weight: 600;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 12px;
}

.product-info .price {
  font-size: 1.7rem;
  display: block;
  margin: 18px 0 20px;
}

.product-info .desc {
  color: #4b5a46;
  margin-bottom: 28px;
  max-width: 52ch;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--sage);
  border-radius: var(--radius);
}

.stepper button {
  width: 38px;
  height: 42px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--sage);
}

.stepper button:hover {
  background: var(--cream-alt);
}

.stepper span {
  width: 36px;
  text-align: center;
  font-weight: 700;
}

/* ============================================================
   Cart: LEFT-side drawer, triggered by a floating round button
   (bottom-right), compact row list, single hero cross-sell card.
   Intentionally different composition from a right-side panel
   with a topbar trigger and card-row cross-sell carousel.
   ============================================================ */
.cart-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 70;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 10px 26px rgba(35, 48, 33, 0.3);
  font-family: 'Manrope', sans-serif;
}

.cart-fab:hover {
  background: var(--clay-dark);
}

.cart-fab .fab-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.cart-fab .fab-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--moss);
  color: var(--cream);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 48, 33, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(440px, 100vw);
  background: var(--cream);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.4rem;
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--sage);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px;
}

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-row .row-main {
  flex: 1;
  min-width: 0;
}

.cart-row .name {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-row .row-unit {
  font-size: 0.74rem;
  color: #7a8a74;
}

.cart-row .stepper button {
  width: 26px;
  height: 28px;
  font-size: 0.9rem;
}

.cart-row .stepper span {
  width: 22px;
  font-size: 0.82rem;
}

.cart-row .row-price {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
  min-width: 68px;
  text-align: right;
}

.cart-row .row-remove {
  background: none;
  border: none;
  color: #9aa894;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
}

.cart-empty {
  padding: 50px 0;
  text-align: center;
  color: #7a8a74;
}

.cross-sell {
  padding: 18px 24px 4px;
  border-top: 1px solid var(--line);
}

.cross-sell h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--clay-dark);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  margin-bottom: 12px;
}

.cross-feature {
  display: flex;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  align-items: center;
}

.cross-feature img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}

.cross-feature .cf-info {
  flex: 1;
  min-width: 0;
}

.cross-feature .cf-name {
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2px;
}

.cross-feature .cf-desc {
  font-size: 0.76rem;
  color: #6b7a66;
  display: block;
  margin-bottom: 8px;
}

.cross-feature button {
  background: var(--sage);
  color: var(--cream);
  border: none;
  border-radius: 3px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cross-feature button:hover {
  background: var(--sage-dark);
}

.cart-foot {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
  font-family: 'DM Serif Display', serif;
}

.cart-foot .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  background: var(--moss);
  color: var(--cream-alt);
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: #e3c98f;
}

.footer-grid p, .footer-grid a {
  font-size: 0.88rem;
  color: var(--cream-alt);
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 234, 0.2);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(247, 243, 234, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--moss);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 20px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Order summary (kontakt) ---------- */
.order-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  margin-bottom: 36px;
}

.order-summary .line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  border-radius: var(--radius);
}

.contact-form label {
  font-size: 0.82rem;
  color: var(--sage-dark);
  font-weight: 700;
  margin-bottom: -8px;
}

/* ---------- About (home) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid img {
  border: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid {
    grid-template-columns: 1fr !important;
  }
  .hero {
    min-height: 64vh;
  }
  .hero-text {
    padding: 40px 24px 44px;
    max-width: none;
  }
  .cat-row-panel-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tile.wide {
    grid-column: span 2;
    flex-direction: column;
  }
  .tile.wide .tile-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(300px, 80vw);
    background: var(--cream);
    flex-direction: column;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 85;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .burger {
    display: flex;
  }
  .cart-panel {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .tile.wide {
    grid-column: span 1;
  }
  .cat-row-panel-inner {
    grid-template-columns: 1fr;
  }
}
