:root {
  --ink: #2B1B12;
  --parchment: #EDE4D3;
  --parchment-light: #F7F1E4;
  --rust: #A8552E;
  --olive: #6B7A5E;
  --line: rgba(43, 27, 18, 0.15);
  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment-light);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: transparent;
  z-index: 50;
  padding: 14px 20px 0;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  padding: 14px 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  border-radius: 0px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled .header-inner {
  max-width: 1080px;
  height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  background: rgba(247, 241, 228, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(43, 27, 18, 0.08);
  box-shadow: 0 18px 40px rgba(43, 27, 18, 0.14);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 42px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.main-nav a:hover { border-color: var(--rust); }

.cart-toggle {
  background: var(--ink);
  color: var(--parchment-light);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.account-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.account-link:hover { color: var(--rust); }

.account-link--secondary {
  color: var(--parchment-light);
  background: var(--rust);
  border-radius: 999px;
  padding: 9px 16px;
}

.simple-page {
  padding-top: 96px;
  padding-bottom: 120px;
}

.simple-page h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
}

.simple-page-intro {
  max-width: 52ch;
  margin: 0 0 48px;
  color: rgba(43, 27, 18, 0.7);
  font-size: 1.1rem;
}

.simple-page--narrow { max-width: 760px; }
.simple-page--narrow > p:not(.account-kicker):not(.simple-page-intro) { color: rgba(43, 27, 18, 0.75); font-size: 1.05rem; }

.simple-product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.simple-product-list article,
.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--parchment);
}

.simple-product-list article > span { color: var(--olive); font-size: 0.8rem; font-weight: 600; }
.simple-product-list h2 { margin: 20px 0 8px; font-family: var(--font-display); }
.simple-product-list p { min-height: 48px; color: rgba(43, 27, 18, 0.7); font-size: 0.9rem; }
.simple-product-list strong { font-family: var(--font-display); font-size: 1.1rem; }
.contact-page { max-width: 1120px; }
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.contact-card { padding: 28px; border: 1px solid var(--line); background: var(--parchment); box-shadow: 0 14px 30px rgba(43, 27, 18, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(43, 27, 18, 0.15); }
.contact-card-label { color: var(--olive); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-card h2 { margin: 22px 0 8px; font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.contact-card h2 a { color: var(--rust); }
.contact-card p { margin: 0; color: rgba(43, 27, 18, 0.7); }
.contact-map { height: min(58vw, 560px); min-height: 340px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); box-shadow: 0 24px 54px rgba(43, 27, 18, 0.18); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.contact-map:hover { transform: translateY(-4px); box-shadow: 0 30px 64px rgba(43, 27, 18, 0.24); }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: sepia(0.18) saturate(0.82); }
.contact-marquee { overflow: hidden; padding: 30px 0; background: var(--ink); color: var(--parchment-light); box-shadow: 0 -14px 36px rgba(43, 27, 18, 0.22), inset 0 1px 0 rgba(247, 241, 228, 0.12); }
.contact-marquee-track { display: flex; width: max-content; align-items: center; gap: 32px; animation: marquee 22s linear infinite, marqueeGlow 3.5s ease-in-out infinite; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 2rem); text-shadow: 0 4px 18px rgba(247, 241, 228, 0.16); }
.contact-marquee b { color: var(--rust); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-25%); } }
@keyframes marqueeGlow { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }

/* Story page */
.story-page { overflow: hidden; }
.story-page-body .site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  transition: background 0.45s ease, box-shadow 0.45s ease, color 0.45s ease;
}
.story-page-body .site-header .header-inner {
  max-width: 1080px;
  height: 60px;
  padding: 0 32px;
  border-radius: 999px;
  background: rgba(247, 241, 228, 0.96);
  border-color: rgba(43, 27, 18, 0.08);
  box-shadow: 0 18px 40px rgba(43, 27, 18, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.story-page-body .site-header .brand,
.story-page-body .site-header .main-nav a,
.story-page-body .site-header .account-link { color: inherit; }
.story-page-body .site-header .account-link--secondary {
  background: var(--rust);
  color: white;
}
.story-page-body .site-header.scrolled {
  position: fixed;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.story-page-body .site-header.scrolled .header-inner {
  transform: none;
}
.story-hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; background: var(--ink); color: var(--parchment-light); overflow: hidden; }
.story-hero--fullscreen { min-height: 100svh; margin-top: 0; padding-top: 90px; }
.story-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.story-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,27,18,0.8), rgba(43,27,18,0.18) 75%), linear-gradient(0deg, rgba(43,27,18,0.82), transparent 60%); }
.story-hero-content { position: relative; z-index: 1; padding-bottom: 100px; }
.story-hero .account-kicker { color: #df946e; }
.story-hero h1 { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(4rem, 10vw, 8.5rem); line-height: 0.9; letter-spacing: -0.04em; }
.story-hero-content > p:last-child { max-width: 38ch; margin: 0; color: rgba(247,241,228,0.8); font-size: 1.1rem; }
.story-scroll-note { position: absolute; right: 32px; bottom: 36px; z-index: 1; color: rgba(247,241,228,0.65); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; writing-mode: vertical-rl; }
.story-hero--fullscreen .story-hero-video { opacity: 0.86; filter: contrast(1.08) saturate(1.08); }
.story-hero--fullscreen::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; box-shadow: inset 0 0 120px rgba(20, 10, 5, 0.42); }
.story-reveal { opacity: 0; transform: translateY(42px); transition: opacity 0.8s ease, transform 0.8s ease; }
.story-reveal.is-visible { opacity: 1; transform: translateY(0); }
.story-intro { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 64px; padding-top: 140px; padding-bottom: 140px; }
.story-number { color: var(--rust); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.story-intro h2, .story-split-copy h2, .story-values h2 { max-width: 15ch; margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 0.98; }
.story-intro p, .story-split-copy p { max-width: 56ch; color: rgba(43,27,18,0.72); font-size: 1.05rem; }
.story-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--parchment); }
.story-split-visual { position: relative; min-height: 620px; overflow: hidden; background: var(--ink); }
.story-split-visual video { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.18) saturate(0.9); }
.story-split-visual span { position: absolute; bottom: 28px; left: 28px; color: var(--parchment-light); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.story-split-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(28px, 8vw, 120px); }
.story-split-copy strong { display: inline-block; margin-top: 28px; color: var(--rust); font-family: var(--font-display); font-size: 1.2rem; }
.story-quote { padding: 150px 24px; background: var(--rust); color: white; text-align: center; }
.story-quote p { max-width: 18ch; margin: auto; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: 0.98; }
.story-values { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 64px; padding-top: 140px; padding-bottom: 140px; }
.story-value-list { display: grid; gap: 28px; }
.story-value-list article { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.story-value-list article > span { color: var(--rust); font-family: var(--font-display); }
.story-value-list h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.5rem; }
.story-value-list p { grid-column: 2; margin: 0; color: rgba(43,27,18,0.7); }
.story-marquee { overflow: hidden; padding: 22px 0; background: var(--ink); color: var(--parchment-light); box-shadow: 0 -16px 36px rgba(43,27,18,0.2); }
.story-marquee-track { display: flex; width: max-content; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); text-shadow: 0 4px 18px rgba(247,241,228,0.16); }
.story-marquee-group { display: flex; flex-shrink: 0; align-items: center; gap: 32px; padding-right: 32px; animation: marqueeGlow 3.5s ease-in-out infinite; }
.story-marquee-track--forward { animation: marqueeForward 24s linear infinite; }
.story-marquee-track--reverse { animation: marqueeReverse 28s linear infinite; }
.story-marquee-track--reverse .story-marquee-group { color: #df946e; }
.story-marquee b { color: var(--rust); }
@keyframes marqueeForward { to { transform: translateX(-50%); } }
@keyframes marqueeReverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* Beans shop */
.beans-page { background: var(--parchment-light); }
.beans-page-body .site-header { position: absolute; top: 0; left: 0; width: 100%; background: transparent; z-index: 50; }
.beans-page-body .site-header .header-inner { max-width: 740px; height: 60px; padding: 0 24px; border-radius: 999px; background: rgba(247, 241, 228, 0.96); border-color: rgba(43, 27, 18, 0.08); box-shadow: 0 18px 40px rgba(43, 27, 18, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.beans-page-body .site-header.scrolled { position: fixed; background: transparent; }
.beans-page-body .site-header.scrolled .header-inner { transform: scale(0.96); }
.beans-page-body .site-header .main-nav { gap: 24px; }
.beans-page-body .site-header .header-inner { max-width: 1080px; }
.beans-page-body .site-header .header-actions { flex-shrink: 0; gap: 12px; }
.beans-page-body .site-header .account-link { white-space: nowrap; }
.beans-page-body .site-header .cart-toggle { flex-shrink: 0; white-space: nowrap; }
.beans-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: var(--parchment-light); }
.beans-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beans-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,27,18,0.78), rgba(43,27,18,0.15)), linear-gradient(0deg, rgba(43,27,18,0.8), transparent 65%); }
.beans-hero-content { position: relative; z-index: 1; padding-bottom: 80px; }
.beans-hero .account-kicker { color: #df946e; }
.beans-hero h1 { margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(3.4rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.04em; }
.beans-hero-content > p:last-child { max-width: 40ch; margin: 0; color: rgba(247,241,228,0.82); font-size: 1.05rem; }
.beans-shop { padding-top: 100px; padding-bottom: 110px; }
.beans-shop .section-head { max-width: 58ch; }
.beans-shop .section-head h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.beans-product-grid { gap: 24px; }
.beans-product-grid .product-card { position: relative; min-height: 310px; overflow: hidden; background: #fffdf8; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.product-card-link { position: absolute; inset: 0; z-index: 1; }
.product-card .add-to-cart { position: relative; z-index: 2; }
.beans-product-grid .product-card::before { content: ""; display: block; height: 105px; margin: -24px -24px 12px; background: radial-gradient(circle at 35% 45%, var(--rust), transparent 38%), linear-gradient(135deg, var(--card-tone, #c28b65), var(--ink)); transition: transform 0.5s ease; }
.beans-product-grid .product-card::before { display: none; }
.product-image-wrap { height: 170px; margin: -24px -24px 12px; overflow: hidden; background: #f5f1e9; }
.product-image { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease, filter 0.5s ease; }
.beans-product-grid .product-card:hover .product-image { transform: scale(1.08); filter: contrast(1.05) saturate(1.08); }
.beans-product-grid .product-card:nth-child(2)::before { --card-tone: #8c9b72; }
.beans-product-grid .product-card:nth-child(3)::before { --card-tone: #6d4937; }
.beans-product-grid .product-card:nth-child(4)::before { --card-tone: #b36f4d; }
.beans-product-grid .product-card:nth-child(5)::before { --card-tone: #b59a69; }
.beans-product-grid .product-card:nth-child(6)::before { --card-tone: #7d6d61; }
.beans-product-grid .product-card:hover { transform: translateY(-10px) rotate(-0.5deg); box-shadow: 0 26px 50px rgba(43,27,18,0.18); }
.beans-product-grid .product-card:hover::before { transform: scale(1.08); }
.beans-product-grid .product-origin-tag { position: absolute; top: 96px; left: 24px; color: white; }
.beans-product-grid .product-origin-tag { top: 160px; color: var(--olive); background: rgba(247,241,228,0.88); padding: 3px 7px; border-radius: 4px; }
.beans-product-grid .product-footer { padding: 0; background: transparent; color: var(--ink); }
.beans-product-grid .add-to-cart { transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease; }
.beans-product-grid .add-to-cart:hover { transform: translateY(-2px); }
.beans-product-grid .product-purchase { position: relative; z-index: 2; }
.beans-info { padding: 110px 0; background: var(--ink); color: var(--parchment-light); }
.beans-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.beans-info h2 { max-width: 13ch; margin: 0; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 0.98; }
.beans-info-grid > div:last-child { align-self: end; color: rgba(247,241,228,0.72); font-size: 1.05rem; }
.beans-info-grid > div:last-child p { margin: 0 0 20px; }
.product-page { background: var(--parchment-light); }
.product-detail { padding-top: 120px; padding-bottom: 110px; }
.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 8vw, 110px); align-items: center; margin-top: 28px; }
.back-link { color: var(--rust); font-size: 0.85rem; text-decoration: none; }
.product-detail-image { min-height: 600px; display: grid; place-items: center; overflow: hidden; padding: 28px; background: #fffdf8; box-shadow: 0 24px 54px rgba(43,27,18,0.12); }
.product-detail-image img { width: 100%; height: 100%; max-height: 600px; object-fit: contain; image-rendering: auto; transform: scale(1.18); transition: transform 0.6s ease; }
.product-detail-image:hover img { transform: scale(1.25); }
.product-detail-copy { min-width: 0; }
.product-detail-copy h1 { max-width: 12ch; margin: 12px 0; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 0.98; }
.product-detail-price { margin: 0 0 24px; font-family: var(--font-display); font-size: 1.5rem; }
.product-price-highlight { display: flex; align-items: center; gap: 14px; }
.product-price-highlight .product-detail-price { margin-bottom: 0; }
.product-price-highlight > span { padding: 5px 10px; border-radius: 999px; background: var(--rust); color: white; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; animation: priceBadgePulse 1.8s ease-in-out infinite; }
.price-promo { max-width: 440px; margin: 12px 0 24px; overflow: hidden; border-top: 1px solid rgba(168,85,46,0.28); border-bottom: 1px solid rgba(168,85,46,0.28); color: var(--rust); }
.price-promo-track { display: flex; width: max-content; align-items: center; gap: 14px; padding: 7px 0; animation: pricePromoSlide 12s linear infinite; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; white-space: nowrap; }
.price-promo-track b { color: var(--olive); }
@keyframes priceBadgePulse { 50% { transform: scale(1.06); box-shadow: 0 6px 18px rgba(168,85,46,0.22); } }
@keyframes pricePromoSlide { to { transform: translateX(-50%); } }
.product-detail-copy > p:not(.account-kicker):not(.product-detail-price) { max-width: 48ch; color: rgba(43,27,18,0.7); font-size: 1.05rem; }
.product-buy { display: flex; align-items: end; gap: 12px; margin-top: 34px; }
.product-buy label { display: grid; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.product-buy select { height: 48px; padding: 0 14px; border: 1px solid var(--line); background: white; font: inherit; }
.product-notes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 28px; color: var(--olive); font-size: 0.78rem; }
.related-products { margin-top: 120px; }
.related-products-viewport { --related-width: min(1056px, calc(100vw - 64px)); overflow: hidden; }
.related-products .simple-product-list { display: flex; width: max-content; gap: 0; animation: relatedProductsSlide 18s linear infinite; will-change: transform; }
.related-products .related-product-card { flex: 0 0 calc(var(--related-width) / 3); min-width: 0; padding: 0 10px 0 0; border: 0; background: transparent; }
.related-products .related-product-card > a { display: block; height: 100%; padding: 18px; border: 1px solid var(--line); background: var(--parchment); text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.related-products .related-product-card > a:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(43,27,18,0.14); }
.related-product-image { height: 190px; margin: -18px -18px 18px; overflow: hidden; background: #fffdf8; }
.related-product-image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform 0.5s ease; }
.related-product-card > a:hover .related-product-image img { transform: scale(1.07); }
.related-products .related-product-card > a > span { color: var(--olive); font-size: 0.8rem; font-weight: 600; }
.related-products .related-product-card h2 { margin: 14px 0 8px; font-family: var(--font-display); font-size: 1.35rem; }
.related-products .related-product-card p { min-height: 48px; color: rgba(43,27,18,0.7); font-size: 0.9rem; }
.related-products .related-product-card strong { font-family: var(--font-display); font-size: 1.1rem; }
@keyframes relatedProductsSlide { to { transform: translateX(-50%); } }
.product-footer { padding: 42px 0; background: var(--ink); color: var(--parchment-light); }
.product-footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; }
.product-footer nav { display: flex; justify-content: center; gap: 20px; }
.product-footer a { text-decoration: none; }
.product-footer p { margin: 0; color: rgba(247,241,228,0.65); text-align: right; font-size: 0.85rem; }
.beans-promo { overflow: hidden; padding: 28px 0; background: var(--rust); color: white; box-shadow: 0 -18px 40px rgba(43,27,18,0.22), inset 0 1px 0 rgba(255,255,255,0.18); }
.beans-promo-track { display: flex; width: max-content; animation: beansPromo 24s linear infinite; }
.beans-promo-group { display: flex; flex-shrink: 0; align-items: center; gap: 32px; padding-right: 32px; font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 2.1rem); white-space: nowrap; text-shadow: 0 4px 16px rgba(43,27,18,0.22); }
.beans-promo-group b { color: var(--parchment-light); font-size: 0.9rem; }
@keyframes beansPromo { to { transform: translateX(-50%); } }

.logout-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.logout-button:hover { border-color: var(--rust); color: var(--rust); }

.cart-count {
  background: var(--rust);
  color: white;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0 5px;
}

/* Hero */
/* Sayfa açılışında sırayla beliren giriş animasyonu */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker,
.hero-text h1,
.hero-body,
.hero-text .btn-primary {
  opacity: 0;
  animation: fadeUpIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-kicker { animation-delay: 0.05s; }
.hero-text h1 { animation-delay: 0.15s; }
.hero-body { animation-delay: 0.3s; }
.hero-text .btn-primary { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero-text h1, .hero-body, .hero-text .btn-primary, .float-card {
    animation: none;
    opacity: 1;
  }
}

.hero { padding: 96px 0 80px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-kicker {
  color: var(--rust);
  font-weight: 500;
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 600;
}

.hero-body {
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(43, 27, 18, 0.8);
  margin: 0 0 32px;
}

.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-block { width: 100%; text-align: center; }

.hero-visual {
  position: relative;
  height: 440px;
}

.float-card {
  position: absolute;
  opacity: 0;
  animation: fadeUpIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.float-card-inner {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 44px rgba(43, 27, 18, 0.1);
  animation: bobFloat 5s ease-in-out infinite;
}

.float-card-inner--dark {
  background: var(--ink);
  color: var(--parchment-light);
}

.float-card-inner--dark .float-card-label { color: rgba(247, 241, 228, 0.6); }

.float-card-label {
  font-size: 0.78rem;
  color: rgba(43, 27, 18, 0.55);
  font-weight: 500;
}

.float-card-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
}

.float-card--origin {
  top: 0;
  left: 8%;
  animation-delay: 0.5s;
}
.float-card--origin .float-card-inner { animation-delay: 0s; }

.float-card--roast {
  top: 150px;
  left: 0;
  animation-delay: 0.65s;
}
.float-card--roast .float-card-inner { animation-delay: 0.6s; }

.float-card--batch {
  top: 270px;
  left: 46%;
  animation-delay: 0.8s;
}
.float-card--batch .float-card-inner { animation-delay: 1.2s; }

.float-card--steam {
  top: 30px;
  left: 66%;
  animation-delay: 0.35s;
}

.float-card--steam .float-card-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  animation: none;
}

.steam-path {
  opacity: 0;
  transform-origin: center;
  animation: steamRise 3.6s ease-in-out infinite;
}

.steam-path--2 { animation-delay: 1.3s; }

@keyframes bobFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(10px) scaleY(0.85); }
  35% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-20px) scaleY(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .float-card-inner, .steam-path { animation: none; opacity: 1; }
}

/* Products */
.products { padding: 72px 0; background: var(--parchment); }

.section-head { max-width: 50ch; margin-bottom: 40px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 8px;
}

.section-head p { margin: 0; color: rgba(43, 27, 18, 0.7); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--parchment-light);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(43, 27, 18, 0.12);
}

.product-origin-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--olive);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.product-desc {
  font-size: 0.9rem;
  color: rgba(43, 27, 18, 0.7);
  flex-grow: 1;
  margin: 0;
}

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

.products .product-footer {
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.product-purchase {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.product-quantity {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  box-shadow: 0 4px 12px rgba(43, 27, 18, 0.08);
}

.quantity-button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.quantity-button:hover {
  background: var(--ink);
  color: var(--parchment-light);
}

.quantity-value {
  min-width: 22px;
  color: var(--ink);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.add-to-cart {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.add-to-cart:hover { background: var(--ink); color: var(--parchment-light); }
.add-to-cart--card { padding: 9px 14px; border: 0; background: var(--rust); color: white; border-radius: 999px; box-shadow: 0 7px 16px rgba(168, 85, 46, 0.24); }
.add-to-cart--card:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(43, 27, 18, 0.14); }

/* Story */
.story { padding: 80px 0; }

.story-inner { max-width: 62ch; }

.story h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 16px;
}

.story p { color: rgba(43, 27, 18, 0.75); font-size: 1.02rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--parchment-light);
  padding: 56px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.site-footer .brand { color: var(--parchment-light); }
.site-footer p { color: rgba(247, 241, 228, 0.7); }

.newsletter label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.newsletter-row { display: flex; gap: 8px; }

.newsletter-row input {
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(247, 241, 228, 0.3);
  background: transparent;
  color: var(--parchment-light);
  font-family: var(--font-body);
  min-width: 220px;
}

.newsletter-row input::placeholder { color: rgba(247, 241, 228, 0.5); }

.newsletter-row button {
  background: var(--rust);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-status {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--olive);
}

.newsletter-fine-print {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: rgba(247, 241, 228, 0.5);
}

/* Cart panel */
.cart-panel {
  position: fixed;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100%;
  background: var(--parchment-light);
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

.cart-panel.open { right: 0; }

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

.cart-panel-head h3 { font-family: var(--font-display); margin: 0; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

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

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}

.cart-item-name { font-weight: 600; font-size: 0.92rem; }
.cart-item-meta { font-size: 0.8rem; color: rgba(43,27,18,0.6); }

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.cart-empty {
  color: rgba(43,27,18,0.5);
  font-size: 0.9rem;
  padding: 24px 0;
  text-align: center;
}

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

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

/* Otomatik oynayan döngüsel arka plan videosu */
.video-banner {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background: var(--ink);
}

.video-banner-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video üzerinde metnin okunabilmesi için karartma katmanı */
.video-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,27,18,0.25) 0%, rgba(43,27,18,0.6) 100%);
}

.video-banner-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 46ch;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--parchment-light);
  text-align: center;
}

.video-banner-overlay h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 12px 0 16px;
}

.video-banner-overlay p {
  font-size: 1.02rem;
  color: rgba(247, 241, 228, 0.85);
  margin: 0;
}

.scroll-step-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--rust);
  font-weight: 600;
}

@media (max-width: 560px) {
  .video-banner { height: 60vh; }
  .video-banner-overlay { padding: 0 24px; }
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual {
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
  }
  .float-card { position: static; animation-delay: 0s !important; }
  .float-card-inner { animation: none; }
  .float-card--steam { display: none; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .cart-panel { width: 100%; right: -100%; }
}

/* Account and dashboard */
.account-page {
  min-height: 100vh;
  background: var(--parchment);
}

.account-shell {
  width: min(100% - 40px, 480px);
  margin: 0 auto;
  padding: 56px 0;
}

.account-brand {
  display: block;
  margin-bottom: 32px;
  text-align: center;
  text-decoration: none;
}

.account-card {
  padding: clamp(28px, 6vw, 48px);
  background: var(--parchment-light);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(43, 27, 18, 0.08);
}

.account-kicker {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-card h1,
.dashboard-heading h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

.account-card h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.account-intro { color: rgba(43, 27, 18, 0.7); margin: 16px 0 28px; }

.account-form {
  display: grid;
  gap: 8px;
}

.account-form label { margin-top: 8px; font-size: 0.85rem; font-weight: 600; }

.account-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.account-form input:focus {
  outline: 2px solid rgba(168, 85, 46, 0.35);
  border-color: var(--rust);
}

.account-form .btn-primary { margin-top: 16px; }
.form-status { min-height: 1.4em; margin: 4px 0 0; color: var(--rust); font-size: 0.85rem; }
.account-footnote { margin: 28px 0 0; color: rgba(43, 27, 18, 0.55); font-size: 0.78rem; }
.account-footnote .text-link { margin-top: 0; }

.dashboard-page { background: var(--parchment-light); }
.dashboard-main { padding-top: 72px; padding-bottom: 96px; }

.dashboard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.dashboard-heading h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.dashboard-heading > div > p:last-child { margin: 14px 0 0; color: rgba(43, 27, 18, 0.7); }
.dashboard-date { color: rgba(43, 27, 18, 0.55); font-size: 0.85rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.dashboard-card,
.transactions-card {
  border: 1px solid var(--line);
  background: var(--parchment);
}

.dashboard-card { min-height: 220px; padding: 28px; }
.subscription-card { background: var(--ink); color: var(--parchment-light); }

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-label { color: rgba(43, 27, 18, 0.6); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.subscription-card .card-label { color: rgba(247, 241, 228, 0.6); }
.card-icon { color: var(--rust); font-size: 0.7rem; }
.dashboard-card h2 { margin: 32px 0 4px; font-family: var(--font-display); font-size: 1.6rem; }
.dashboard-card p { margin: 0; color: rgba(43, 27, 18, 0.65); font-size: 0.9rem; }
.subscription-card p { color: rgba(247, 241, 228, 0.7); }
.subscription-card strong { color: var(--parchment-light); }
.status-badge { padding: 5px 10px; border-radius: 999px; background: var(--olive); color: white; font-size: 0.72rem; font-weight: 600; }
.subscription-meta { display: flex; justify-content: space-between; margin: 24px 0 18px; color: rgba(247, 241, 228, 0.8); font-size: 0.85rem; }
.text-link { display: inline-block; margin-top: 24px; color: var(--rust); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.subscription-card .text-link { color: #df946e; }

.transactions-section { margin-top: 64px; }
.transactions-section .section-head { margin-bottom: 24px; }
.transactions-card { overflow: hidden; }
.transaction-row { display: grid; grid-template-columns: 1.5fr 1fr 0.6fr 0.8fr; gap: 20px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.transaction-row:last-child { border-bottom: 0; }
.transaction-header { background: rgba(43, 27, 18, 0.04); color: rgba(43, 27, 18, 0.55); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.transaction-row small { display: block; margin-top: 4px; color: rgba(43, 27, 18, 0.55); font-size: 0.78rem; }
.transaction-status { color: var(--olive); font-weight: 600; }
.transactions-empty { margin: 0; padding: 28px 24px; color: rgba(43, 27, 18, 0.6); font-size: 0.9rem; }

@media (max-width: 700px) {
  .dashboard-main { padding-top: 48px; }
  .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .transaction-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .transaction-header { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding-left: 0; padding-right: 0; }
  .header-inner { height: 64px; padding: 0 16px; }
  .brand { font-size: 1.2rem; }
  .header-actions { gap: 8px; }
  .site-header:not(.dashboard-page .site-header) .account-link { font-size: 0.78rem; }
  .dashboard-page .account-link { display: none; }
  .logout-button { padding: 8px 12px; }
  .cart-toggle { padding: 9px 13px; font-size: 0.8rem; gap: 5px; }
  .products .product-card { padding: 18px; }
  .products .product-image-wrap { height: 190px; margin: -18px -18px 12px; }
  .products .product-footer { align-items: stretch; gap: 12px; }
  .products .product-purchase { justify-content: space-between; margin-left: 0; }
  .products .product-quantity { flex-shrink: 0; }
  .products .add-to-cart--card { flex: 1; }
  .simple-page { padding-top: 56px; padding-bottom: 72px; }
  .simple-product-list { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-map { min-height: 300px; }
  .story-hero { min-height: 78vh; }
  .story-hero--fullscreen { min-height: 100svh; margin-top: -76px; padding-top: 76px; }
  .story-hero-content { padding-bottom: 72px; }
  .story-hero h1 { font-size: clamp(3.5rem, 19vw, 6rem); }
  .story-scroll-note { right: 20px; bottom: 24px; }
  .story-intro, .story-values { grid-template-columns: 1fr; gap: 28px; padding-top: 88px; padding-bottom: 88px; }
  .story-split { grid-template-columns: 1fr; }
  .story-split-visual { min-height: 360px; }
  .story-split-copy { padding: 72px 20px; }
  .story-quote { padding: 100px 20px; }
  .beans-hero { min-height: 78vh; }
  .beans-hero-content { padding-bottom: 64px; }
  .beans-shop { padding-top: 72px; padding-bottom: 72px; }
  .beans-info { padding: 76px 0; }
  .beans-info-grid { grid-template-columns: 1fr; gap: 32px; }
  .beans-page-body .site-header .header-inner { max-width: calc(100% - 32px); padding: 0 16px; }
  .beans-page-body .site-header .main-nav { gap: 10px; }
  .beans-page-body .site-header .header-actions { gap: 7px; }
  .beans-page-body .site-header .account-link { font-size: 0.76rem; }
  .beans-page-body .site-header .cart-toggle { padding: 8px 10px; font-size: 0.78rem; gap: 5px; }
  .product-detail { padding-top: 88px; padding-bottom: 72px; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 36px; }
  .product-detail-image { min-height: 360px; padding: 18px; }
  .product-detail-image img { transform: scale(1.08); }
  .product-detail-copy h1 { font-size: clamp(2.3rem, 13vw, 3.8rem); }
  .product-price-highlight { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .price-promo { max-width: 100%; }
  .product-buy { align-items: stretch; flex-direction: column; }
  .product-buy label, .product-buy select, .product-buy .btn-primary { width: 100%; }
  .product-buy select, .product-buy .btn-primary { height: 50px; }
  .related-products { margin-top: 80px; }
  .related-products-viewport { --related-width: calc(100vw - 40px); }
  .related-products .related-product-card { padding-right: 6px; }
  .related-product-image { height: 110px; margin: -12px -12px 12px; }
  .related-product-image img { padding: 6px; }
  .related-products .related-product-card > a { padding: 12px; }
  .related-products .related-product-card h2 { margin: 10px 0 5px; font-size: 0.95rem; }
  .related-products .related-product-card p { display: none; }
  .related-products .related-product-card strong { font-size: 0.9rem; }
  .product-footer-grid { grid-template-columns: 1fr; text-align: center; }
  .product-footer nav { flex-wrap: wrap; }
  .product-footer p { text-align: center; }
  .transaction-row { padding: 16px; }
}
