/* ============================================================
   Rösterei Gutbrand Bremen — Demo Stylesheet
   Deep espresso / warm caramel / cream palette
   Self-contained shop — no inheritance from main site
   ============================================================ */

/* ---- Variables -------------------------------------------------- */
:root {
  --espresso:     #2d1f14;
  --espresso-80:  #3d2c1f;
  --espresso-60:  #5a4030;
  --caramel:      #c48a5c;
  --caramel-light:#d9a87e;
  --caramel-dark: #9e6d44;
  --cream:        #f6f0e8;
  --cream-dark:   #ebe0d4;
  --white:        #ffffff;
  --text:         #2d1f14;
  --text-light:   #7a6b5e;
  --text-on-dark: #e6ddd4;
  --border:       #d6ccc2;
  --shadow:       0 2px 12px rgba(45,31,20,.1);
  --shadow-lg:    0 8px 30px rgba(45,31,20,.15);
  --font:         'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-mono:    'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;
  --radius:       8px;
  --radius-lg:    12px;
  --max-width:    1200px;
  --nav-height:   64px;
}

/* ---- Reset minimal --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--caramel); text-decoration: none; transition: color .15s; }
a:hover { color: var(--caramel-dark); }
ul { list-style: none; }

/* ---- Utility --------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font); font-size: 1rem; font-weight: 600;
  padding: .75rem 1.75rem; border-radius: var(--radius);
  cursor: pointer; transition: all .2s; border: 2px solid transparent;
  text-align: center; line-height: 1.2; white-space: nowrap;
}
.btn--primary {
  background: var(--espresso); color: var(--white); border-color: var(--espresso);
}
.btn--primary:hover { background: var(--espresso-80); border-color: var(--espresso-80); color: var(--white); }
.btn--secondary {
  background: var(--caramel); color: var(--white); border-color: var(--caramel);
}
.btn--secondary:hover { background: var(--caramel-dark); border-color: var(--caramel-dark); color: var(--white); }
.btn--ghost {
  background: transparent; color: var(--caramel); border-color: var(--caramel);
}
.btn--ghost:hover { background: var(--caramel); color: var(--white); }
.btn--outline {
  background: transparent; color: var(--espresso); border-color: var(--espresso-60);
}
.btn--outline:hover { background: var(--cream); border-color: var(--espresso); }
.btn--sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- Demo-Notice Banner ---------------------------------------- */
.demo-notice {
  background: var(--caramel); color: var(--white); text-align: center;
  padding: .5rem 1.25rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; position: relative; z-index: 2000; line-height: 1.4;
}
.demo-notice a { color: var(--white); text-decoration: underline; }
.demo-notice a:hover { color: var(--cream); }

/* ---- Navigation ------------------------------------------------ */
.site-nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white); height: var(--nav-height);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav__logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.15rem; font-weight: 700; color: var(--espresso) !important;
  letter-spacing: -.02em;
}
.nav__logo-mark { color: var(--caramel); flex-shrink: 0; }
.nav__logo:hover .nav__logo-mark { color: var(--caramel-dark); }

.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links a {
  color: var(--text-light); font-size: .9rem; font-weight: 500;
  padding: .4rem .8rem; border-radius: 4px; transition: all .15s;
}
.nav__links a:hover { color: var(--espresso); background: var(--cream); }
.nav__links a.active { color: var(--espresso); background: var(--cream); font-weight: 600; }

/* Cart link in nav */
.nav__cart-link {
  display: flex; align-items: center; gap: .35rem;
  margin-left: .5rem;
  position: relative;
}
.nav__cart-icon { color: var(--caramel); }
.nav__cart-link:hover .nav__cart-icon { color: var(--caramel-dark); }
.nav__cart-label { composes: nav-links a; }
.nav__cart-badge {
  position: absolute; top: -4px; right: -6px;
  min-width: 18px; height: 18px;
  background: var(--caramel); color: var(--white);
  font-size: .65rem; font-weight: 700;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; line-height: 1;
}

/* Burger toggle — hidden on desktop */
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* ---- Hero ------------------------------------------------------ */
.hero {
  background: var(--espresso);
  color: var(--text-on-dark);
  padding: 6rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 60%, rgba(196,138,92,.12) 0%, transparent 60%),
    radial-gradient(ellipse 400px 600px at 90% 30%, rgba(196,138,92,.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--caramel); margin-bottom: .75rem;
}
.hero__title {
  font-size: 3rem; font-weight: 400; line-height: 1.1;
  max-width: 700px; margin-bottom: 1rem; font-family: var(--font-heading);
}
.hero__text { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 560px; margin-bottom: 2rem; line-height: 1.7; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- Hero compact (inner pages) ---- */
.hero--compact { padding: 4rem 0 3rem; }
.hero--compact .hero__title { font-size: 2.2rem; }

/* ---- Sections -------------------------------------------------- */
.section { padding: 4rem 0; }
.section--cream { background: var(--cream); }
.section--sm { padding: 2.5rem 0; }
.section__title { font-size: 2rem; font-weight: 400; margin-bottom: .5rem; font-family: var(--font-heading); }
.section__subtitle { color: var(--text-light); font-size: 1rem; margin-bottom: 2.5rem; max-width: 600px; }
.section__eyebrow {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--caramel); margin-bottom: .5rem;
}

/* ---- Product Grid ---------------------------------------------- */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card__image {
  aspect-ratio: 4 / 3; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-card__image-bg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 300; color: rgba(45,31,20,.08);
  font-family: var(--font-heading);
}
.product-card__badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--caramel); color: var(--white);
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; padding: .25rem .65rem;
  border-radius: 4px;
}
.product-card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.product-card__cat {
  font-size: .75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--caramel); margin-bottom: .3rem;
}
.product-card__title {
  font-size: 1.1rem; font-weight: 400; font-family: var(--font-heading);
  margin-bottom: .4rem;
}
.product-card__desc { font-size: .85rem; color: var(--text-light); line-height: 1.5; margin-bottom: .75rem; flex: 1; }
.product-card__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; border-top: 1px solid var(--cream-dark);
}
.product-card__price {
  font-size: 1.15rem; font-weight: 700; color: var(--espresso);
  font-family: var(--font-mono);
}
.product-card__price-unit { font-size: .8rem; font-weight: 400; color: var(--text-light); }

/* ---- Product Detail Page --------------------------------------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: start;
}
.product-detail__image {
  aspect-ratio: 1 / 1; background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-detail__image-bg {
  position: absolute;
  font-size: 5rem; font-weight: 300; color: rgba(45,31,20,.06);
  font-family: var(--font-heading);
}
.product-detail__info h1 {
  font-size: 2rem; margin-bottom: .25rem;
}
.product-detail__cat {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; color: var(--caramel); margin-bottom: 1rem;
  display: block;
}
.product-detail__price {
  font-size: 1.5rem; font-weight: 700; color: var(--espresso);
  font-family: var(--font-mono); margin: 1rem 0;
}
.product-detail__desc { color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.product-detail__meta { font-size: .85rem; color: var(--text-light); margin-bottom: 1.5rem; }
.product-detail__meta dt { font-weight: 600; color: var(--text); margin-top: .75rem; }
.product-detail__meta dd { margin-left: 0; line-height: 1.5; }
.product-detail__actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.qty-selector {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.qty-selector__btn {
  width: 36px; height: 36px; border: none; background: var(--cream);
  font-size: 1.1rem; cursor: pointer; color: var(--text);
  transition: background .15s; font-family: var(--font);
}
.qty-selector__btn:hover { background: var(--cream-dark); }
.qty-selector__input {
  width: 48px; height: 36px; border: none; border-left: 1px solid var(--border);
  border-right: 1px solid var(--border); text-align: center;
  font-size: .95rem; font-weight: 600; font-family: var(--font); color: var(--text);
  -moz-appearance: textfield;
}
.qty-selector__input::-webkit-inner-spin-button,
.qty-selector__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* ---- Category Filter ------------------------------------------- */
.filter-bar {
  display: flex; gap: .5rem; margin-bottom: 2rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--white);
  font-family: var(--font); font-size: .85rem; font-weight: 500;
  color: var(--text-light); cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--caramel); color: var(--caramel); }
.filter-btn--active {
  background: var(--espresso); color: var(--white);
  border-color: var(--espresso);
}
.filter-btn--active:hover { background: var(--espresso-80); color: var(--white); border-color: var(--espresso-80); }

/* ---- Cart / Warenkorb ----------------------------------------- */
.cart-empty {
  text-align: center; padding: 4rem 1.25rem;
}
.cart-empty__icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  color: var(--border);
}
.cart-empty h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.cart-empty p { color: var(--text-light); margin-bottom: 1.5rem; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; font-size: .8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-light); padding-bottom: .75rem;
  border-bottom: 2px solid var(--cream-dark);
}
.cart-table td {
  padding: 1rem 0; border-bottom: 1px solid var(--cream-dark);
  vertical-align: middle;
}
.cart-table__product { display: flex; align-items: center; gap: 1rem; }
.cart-table__thumb {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: var(--cream); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: rgba(45,31,20,.1); font-family: var(--font-heading);
}
.cart-table__info h3 { font-size: 1rem; font-family: var(--font-heading); font-weight: 400; }
.cart-table__info .cat { font-size: .75rem; color: var(--caramel); text-transform: uppercase; letter-spacing: .08em; }
.cart-table__price,
.cart-table__total { font-family: var(--font-mono); font-weight: 600; font-size: .95rem; }
.cart-table__qty { display: flex; align-items: center; gap: .5rem; }
.cart-table__qty .qty-selector { display: flex; }

.cart-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 1.1rem; padding: .25rem;
  transition: color .15s;
}
.cart-remove:hover { color: #c0392b; }

.cart-summary {
  max-width: 400px; margin-left: auto; margin-top: 2rem;
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.cart-summary h3 { font-size: 1.1rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.cart-summary__row {
  display: flex; justify-content: space-between;
  padding: .35rem 0; font-size: .9rem;
}
.cart-summary__row--total {
  font-weight: 700; font-size: 1.1rem;
  border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .5rem;
}
.cart-summary__label { color: var(--text-light); }
.cart-summary__value { font-weight: 600; }
.cart-summary .btn { margin-top: 1rem; }

/* ---- Checkout -------------------------------------------------- */
.checkout-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
  align-items: start;
}
.checkout-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: .95rem;
  margin-bottom: 1rem; transition: border-color .15s; background: var(--white);
}
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus { outline: none; border-color: var(--caramel); }
.checkout-form textarea { min-height: 80px; resize: vertical; }
.checkout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checkout-form .form-section { margin-bottom: 2rem; }
.checkout-form .form-section h3 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: .4rem; border-bottom: 2px solid var(--caramel);
}

.checkout-summary {
  background: var(--cream); border-radius: var(--radius-lg);
  padding: 1.5rem; position: sticky; top: calc(var(--nav-height) + 1.5rem);
}
.checkout-summary h3 { font-size: 1.1rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.checkout-summary__item {
  display: flex; justify-content: space-between;
  padding: .5rem 0; font-size: .9rem; border-bottom: 1px solid var(--cream-dark);
}
.checkout-summary__item-name { color: var(--text); }
.checkout-summary__item-qty { color: var(--text-light); font-size: .8rem; }
.checkout-summary__item-price { font-weight: 600; }
.checkout-summary__total {
  display: flex; justify-content: space-between;
  font-weight: 700; font-size: 1.1rem; padding-top: .75rem; margin-top: .5rem;
}

/* Confirmation overlay */
.confirm-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(45,31,20,.6); align-items: center; justify-content: center;
  padding: 1.25rem;
}
.confirm-overlay--open { display: flex; }
.confirm-overlay__card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; max-width: 460px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.confirm-overlay__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cream); display: flex;
  align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.confirm-overlay__icon svg { color: var(--caramel); }
.confirm-overlay h3 { font-size: 1.3rem; margin-bottom: .5rem; font-family: var(--font-heading); }
.confirm-overlay p { color: var(--text-light); font-size: .9rem; margin-bottom: 1.5rem; }

/* ---- About / Story -------------------------------------------- */
.story-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  align-items: center;
}
.story-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.story-text p { color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.story-image {
  aspect-ratio: 4 / 3; background: var(--cream);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: rgba(45,31,20,.08);
  font-family: var(--font-heading);
}

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 1.5rem;
}
.value-card {
  text-align: center; padding: 2rem 1.5rem;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.value-card__icon {
  width: 48px; height: 48px; margin: 0 auto .75rem;
  color: var(--caramel);
}
.value-card h3 { font-size: 1.1rem; margin-bottom: .4rem; font-family: var(--font-heading); }
.value-card p { color: var(--text-light); font-size: .85rem; line-height: 1.6; }

/* ---- Contact --------------------------------------------------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
.contact-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; }
.contact-info p { color: var(--text-light); font-size: .95rem; margin-bottom: .3rem; line-height: 1.7; }
.contact-info .contact-detail { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: .95rem;
  margin-bottom: 1rem; transition: border-color .15s; background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--caramel); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---- Footer ---------------------------------------------------- */
.site-footer {
  background: var(--espresso); color: var(--text-on-dark); padding: 3rem 0 1.5rem;
}
.footer__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer__col h4 { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; color: var(--caramel-light); font-family: var(--font-heading); }
.footer__col p, .footer__col li { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.7; }
.footer__col li { margin-bottom: .2rem; }
.footer__col a { color: rgba(255,255,255,.65); }
.footer__col a:hover { color: var(--caramel-light); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem;
  text-align: center;
}
.footer__bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }
.footer__bottom a { color: rgba(255,255,255,.6); }
.footer__bottom a:hover { color: var(--caramel-light); }
.demo-marker { color: var(--caramel-light); font-weight: 600; }

/* ---- Responsive: Tablet (max-width: 768px) --------------------- */
@media (max-width: 768px) {
  /* Mobile nav */
  .nav-burger {
    display: flex; flex-direction: column; gap: 4px; cursor: pointer;
    padding: .5rem; position: fixed; top: .85rem; right: 1rem; z-index: 1001;
  }
  .nav-burger span {
    display: block; width: 24px; height: 2px; background: var(--espresso);
    border-radius: 2px; transition: all .2s;
  }
  .nav__links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column; align-items: stretch;
    padding: 5rem 1.5rem 2rem; gap: .25rem; transition: right .3s ease;
    z-index: 1000; border-left: 1px solid var(--border);
  }
  .nav__links a { padding: .75rem 1rem; font-size: 1rem; }
  .nav__cart-link { margin-left: 0; }

  #nav-toggle:checked ~ .site-nav .nav__links { right: 0; }
  #nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
  #nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  #nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

  /* Layout */
  .hero__title { font-size: 2rem; }
  .hero { padding: 5rem 0 3rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .story-content { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1rem; }
  .checkout-grid { grid-template-columns: 1fr; gap: 2rem; }
  .checkout-form .form-row { grid-template-columns: 1fr; }

  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .cart-summary { margin-left: 0; max-width: 100%; }
}

/* ---- Responsive: Phone (max-width: 480px) --------------------- */
@media (max-width: 480px) {
  .hero__title { font-size: 1.6rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .section { padding: 2.5rem 0; }
  .product-grid { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .product-detail__actions { flex-direction: column; }
  .product-detail__actions .btn { width: 100%; justify-content: center; }
}
