:root {
  --espresso: #1a1410;
  --brown: #3d2a22;
  --mid: #6b4f42;
  --tan: #bc8b73;
  --peach: #cca890;
  --sand: #d4b9a2;
  --cream: #f2ebe3;
  --beige: #e8dfd4;
  --hub-backdrop: #f3dbc2;
  --paper: #f7f1ea;
  --ink: #1a1410;
  --ink-soft: #4a372f;
  --gold: #d8c7a4;
  --line: rgba(26, 20, 16, 0.12);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-script: "Great Vibes", cursive;
  --font-hand: "Caveat", "Segoe UI", cursive;
  --font-ui: "Outfit", "Segoe UI", sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background: var(--hub-backdrop);
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

button { font: inherit; cursor: pointer; }

.app {
  width: 100%;
  max-width: 430px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--hub-backdrop);
}

.splash {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 199, 164, 0.08), transparent 48%),
    linear-gradient(165deg, #4a2e24 0%, #2a160f 48%, #120a07 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.85s linear,
    filter 0.85s ease;
}
.splash.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(6px);
}
.splash-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.splash-glow {
  position: absolute;
  width: min(82vw, 320px);
  height: min(82vw, 320px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 180, 0.28), rgba(188, 139, 115, 0.1) 46%, transparent 72%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 1.1s ease, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.splash.is-in .splash-glow {
  opacity: 1;
  transform: scale(1);
}
.splash.is-shine .splash-glow {
  animation: splashPulse 1.8s ease-in-out both;
}
.splash-logo-wrap {
  position: relative;
  width: min(58vw, 200px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.82) translateY(18px);
  filter: blur(8px);
  transition:
    opacity 1.15s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.15s ease;
}
.splash.is-in .splash-logo-wrap {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}
.splash-logo,
.splash-logo-lit {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  user-select: none;
  -webkit-user-drag: none;
}
.splash-logo {
  position: relative;
  z-index: 1;
  opacity: 0.88;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  transition: opacity 0.8s ease, filter 0.8s ease;
}
.splash.is-in .splash-logo {
  opacity: 1;
}
.splash.is-shine .splash-logo {
  filter:
    drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 18px rgba(255, 236, 190, 0.35));
}
/* Logonun üzerindeki parlak katman — ışık bandı mask ile kayar */
.splash-logo-lit {
  position: relative;
  z-index: 2;
  opacity: 0;
  filter: brightness(1.85) contrast(1.15) saturate(1.05);
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(
    110deg,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.15) 44%,
    #000 50%,
    rgba(0, 0, 0, 0.15) 56%,
    transparent 62%,
    transparent 100%
  );
  mask-image: linear-gradient(
    110deg,
    transparent 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.15) 44%,
    #000 50%,
    rgba(0, 0, 0, 0.15) 56%,
    transparent 62%,
    transparent 100%
  );
  -webkit-mask-size: 280% 100%;
  mask-size: 280% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 120% 0;
  mask-position: 120% 0;
}
.splash.is-shine .splash-logo-lit {
  opacity: 1;
  animation: logoLightSweep 1.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}
/* Ekstra ışık demeti — logo üzerinden geçer */
.splash-beam {
  position: absolute;
  inset: -12%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24%;
  opacity: 0;
  -webkit-mask-image: url("assets/logo-white.png");
  mask-image: url("assets/logo-white.png");
  -webkit-mask-size: 78% 78%;
  mask-size: 78% 78%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.splash.is-shine .splash-beam {
  opacity: 1;
}
.splash-beam::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -80%;
  width: 38%;
  height: 160%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 248, 220, 0.2) 44%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 228, 170, 0.45) 56%,
    rgba(255, 255, 255, 0) 70%,
    transparent 100%
  );
  transform: translateX(0) skewX(-20deg);
  filter: blur(1px);
}
.splash.is-shine .splash-beam::before {
  animation: logoBeamPass 1.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hub {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(24px + var(--safe-bottom));
  background-color: var(--hub-backdrop);
  background-image:
    linear-gradient(rgba(243, 219, 194, 0.8), rgba(243, 219, 194, 0.8)),
    url("assets/products/%C5%9Eeffaf%20Zeminde%20Vintage%20F%C4%B1r%C4%B1n%20Deseni.png");
  background-size: auto, 240px auto;
  background-position: center, center top;
  background-repeat: no-repeat, repeat;
  color: #402f22;
}
.home {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(18px + var(--safe-bottom));
  background-color: var(--hub-backdrop);
  background-image:
    linear-gradient(rgba(243, 219, 194, 0.8), rgba(243, 219, 194, 0.8)),
    url("assets/products/%C5%9Eeffaf%20Zeminde%20Vintage%20F%C4%B1r%C4%B1n%20Deseni.png");
  background-size: auto, 240px auto;
  background-position: center, center top;
  background-repeat: no-repeat, repeat;
  display: flex;
  flex-direction: column;
}

.browse-top {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: calc(12px + var(--safe-top)) 14px 6px;
}
.browse-back,
.browse-spacer {
  width: 44px;
  height: 44px;
}
.browse-back {
  display: grid;
  place-items: center;
  border: 1px solid rgba(110, 74, 50, 0.22);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.18);
  color: #5b3b20;
  font-size: 1.35rem;
  line-height: 1;
}
.browse-brand {
  text-align: center;
}
.browse-mark {
  font-family: var(--font-script);
  font-size: 1.85rem;
  line-height: 1;
  color: #6e4a32;
}
.browse-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 16px 14px;
  -webkit-overflow-scrolling: touch;
}
.browse-cats::-webkit-scrollbar { display: none; }
.browse-cats .cat-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(110, 74, 50, 0.18);
  background: rgba(255, 250, 240, 0.18);
  color: #6a5138;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  min-height: 38px;
  white-space: nowrap;
  box-shadow: none;
}
.browse-cats .cat-btn.active {
  background: rgba(255, 250, 240, 0.42);
  color: #4a301c;
  border-color: rgba(110, 74, 50, 0.38);
  box-shadow: 0 4px 12px rgba(92, 62, 33, 0.12);
}
.browse-stage {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: start;
  gap: 4px;
  flex: 1;
  min-height: 0;
  padding: 0 8px 8px;
}
.browse-grid {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 2px 8px;
}
.browse-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 10px 14px;
  border: 1px solid rgba(132, 92, 51, 0.18);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.18);
  color: #493521;
  text-align: center;
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.18s ease, background 0.18s ease;
}
.browse-card:active {
  transform: scale(0.98);
  background: rgba(255, 250, 240, 0.28);
}
.browse-card-img {
  width: 100%;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(83, 58, 35, 0.2));
}
.browse-card-price {
  margin-top: 10px;
  color: #8a5b31;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.browse-card-rule {
  width: 28px;
  height: 1px;
  margin: 7px auto 6px;
  background: rgba(138, 91, 49, 0.35);
}
.browse-card-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.15;
  color: #39291d;
}
.name-qty {
  display: block;
  white-space: nowrap;
  font-weight: 500;
  margin-top: 2px;
}
.browse-card-desc {
  margin-top: 4px;
  color: #7b6854;
  font-size: 0.68rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.browse-arrow {
  position: sticky;
  top: 46dvh;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(110, 74, 50, 0.28);
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.28);
  color: #5b3b20;
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(92, 62, 33, 0.16);
}
.browse-arrow.left { grid-column: 1; }
.browse-arrow.right { grid-column: 3; }
.home[hidden],
.hub[hidden] {
  display: none !important;
}

.hub-header {
  display: none;
}
.hub-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* HERO SECTION */
.hub-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 260px;
  min-height: 260px;
  padding: calc(18px + var(--safe-top)) 18px 4px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  background: transparent;
}
.hub-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 62%, rgba(243, 219, 194, 0.38) 86%, rgba(243, 219, 194, 0.58) 100%),
    linear-gradient(90deg, var(--hub-backdrop) 0%, rgba(243, 219, 194, 0.88) 20%, transparent 48%);
}
.hub-hero-copy {
  position: relative;
  z-index: 3;
  width: 58%;
  max-width: 230px;
}
.hub-hero-eyebrow {
  color: #9a7140;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  margin: 0 0 10px;
}
.hub-hero-title {
  font-family: var(--font-script);
  font-size: clamp(2.55rem, 12vw, 3.15rem);
  font-weight: 400;
  line-height: 0.92;
  color: #6e4a32;
  text-transform: none;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
  text-shadow: 0 1px 0 rgba(255, 248, 236, 0.55);
}
.hub-hero-title span {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: #6e4a32;
  margin-left: 0.18em;
}
.hub-hero-subtitle {
  max-width: 155px;
  color: #705a43;
  font-size: 0.7rem;
  line-height: 1.45;
  margin: 0 0 14px;
}
.hub-hero-product {
  position: absolute;
  z-index: 2;
  top: -2%;
  right: -10%;
  width: 78%;
  height: 108%;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 16%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 16%, #000 34%);
}
.hub-products-section {
  padding: 0 14px 18px;
}
.hub-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 0 9px;
  color: #4b3524;
  text-align: center;
}
.hub-section-heading h2 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}
.hub-section-heading p {
  color: #8b765d;
  font-size: 0.62rem;
}
.hub-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.hub-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 8px 9px 10px;
  border: 1px solid rgba(132, 92, 51, 0.16);
  border-radius: 5px;
  background: rgba(255, 251, 243, 0.16);
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: #493521;
  text-align: center;
  transition: transform 180ms ease, background 180ms ease;
}
.hub-product-card:hover,
.hub-product-card:active {
  transform: translateY(-2px);
  background: rgba(255, 251, 243, 0.28);
  box-shadow: none;
}
.hub-product-image-wrap {
  display: grid;
  width: 100%;
  height: 108px;
  place-items: center;
  overflow: hidden;
}
.hub-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(83, 58, 35, 0.16));
}
.hub-product-name {
  min-height: 2.2em;
  margin-top: 5px;
  color: #39291d;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.1;
}
.hub-product-description {
  display: -webkit-box;
  min-height: 2.5em;
  margin-top: 3px;
  overflow: hidden;
  color: #7b6854;
  font-size: 0.58rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.hub-product-price {
  margin-top: 4px;
  color: #8a5b31;
  font-size: 0.7rem;
  font-weight: 700;
}
.hub-product-action {
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 3px;
  background: #9a6535;
  color: #fff8ed;
  font-size: 0.57rem;
  font-weight: 600;
}

/* KATEGORİLER: İki sütunlu krem ürün vitrini */
.hub-categories-section {
  padding: 0 12px 22px;
  width: 100%;
  scroll-margin-top: 12px;
}
.hub-stagger-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.hub-menu-group + .hub-menu-group { margin-top: 20px; }

.hub-pill-card {
  position: relative;
  width: 100%;
  border-radius: 7px;
  background: rgba(255, 250, 240, 0.18);
  border: 1px solid rgba(132, 92, 51, 0.18);
  box-shadow: none;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 10px 9px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  cursor: pointer;
  min-height: 208px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}
.hub.is-entering .hub-header {
  animation: hubEnterLeft 980ms 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hub.is-entering .hub-hero-copy {
  animation: hubEnterRight 1050ms 140ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hub.is-entering .hub-pill-card:nth-child(4n + 1),
.hub.is-entering .hub-pill-card:nth-child(4n + 2) {
  animation: hubEnterLeft 900ms 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hub.is-entering .hub-pill-card:nth-child(4n + 3),
.hub.is-entering .hub-pill-card:nth-child(4n) {
  animation: hubEnterRight 900ms 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hub-pill-card:hover,
.hub-pill-card:active {
  transform: translateY(-3px);
  background: rgba(255, 250, 240, 0.28);
  border-color: rgba(141, 93, 45, 0.38);
  box-shadow: none;
}

.hub-pill-stage {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hub-pill-img-wrap {
  position: relative;
  width: 100%;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-pill-img {
  width: 122px;
  height: 106px;
  max-width: 96%;
  max-height: 96%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 8px 9px rgba(87, 57, 31, 0.2));
  transition: transform 0.28s ease;
}
.hub-pill-card:hover .hub-pill-img {
  transform: translateY(-3px) scale(1.08);
}
.hub-pill-shadow {
  width: 62%;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(82, 54, 29, 0.18) 0%, rgba(82, 54, 29, 0.05) 56%, transparent 74%);
  margin-top: -4px;
}
.hub-pill-emoji {
  font-size: 2.4rem;
  line-height: 1;
}

.hub-pill-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding-top: 6px;
}
.hub-pill-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
  color: #39291d;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}
.hub-pill-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a7763d;
}
.hub-pill-count {
  margin-top: 3px;
  color: #80684d;
  font-size: 0.68rem;
}
.hub-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 4px;
  background: #9a6535;
  color: #fff8ed;
  font-size: 0.62rem;
  font-weight: 600;
}

/* WhatsApp order card */
.hub-wa-section {
  padding: 8px 14px 28px;
  width: 100%;
}
.hub-wa-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(150deg, #fffaf0, #f0e2cb);
  border: 1px solid rgba(132, 92, 51, 0.13);
  box-shadow: 0 8px 20px rgba(92, 62, 33, 0.13);
  border-radius: 8px;
  padding: 12px 14px;
  text-decoration: none;
  color: #39291d;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.hub.is-entering .hub-wa-card {
  animation: hubEnterRight 980ms 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hub-wa-card:hover,
.hub-wa-card:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(83, 58, 35, 0.18);
}
.hub-wa-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.hub-wa-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.hub-wa-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #39291d;
  line-height: 1.15;
}
.hub-wa-sub {
  font-size: 0.73rem;
  color: #80684d;
  line-height: 1.25;
}
.hub-wa-badge {
  background: transparent;
  border: 1px solid rgba(132, 92, 51, 0.42);
  color: #6a4729;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Fırın kategorisinde tam ekran ürün görseli (önceki gibi) */
.fog-stage.is-firin-cat .hero-viewport {
  flex: 1 1 auto;
}
.fog-stage.is-firin-cat .hero-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}
.fog-stage.is-firin-cat .hero-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  inset: 0;
  top: 0;
  left: 0;
  transform: none;
  object-fit: contain;
}

.menu-extra-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #25D366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}
.menu-extra-wa:hover {
  background: #20ba59;
  transform: translateY(-2px);
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.cats {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  position: absolute;
  top: calc(48px + var(--safe-top));
  left: 0;
  right: 0;
  z-index: 6;
  padding: 0 14px 8px;
  mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent);
}
.cats::-webkit-scrollbar { display: none; }
.cat-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(220, 205, 190, 0.75);
  background: rgba(255, 255, 255, 0.75);
  color: #3b2a20;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 999px;
  min-height: 38px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(40, 25, 15, 0.04);
}
.cat-btn.active {
  background: #2b1f17;
  color: #fffaf4;
  border-color: #2b1f17;
  box-shadow: 0 4px 12px rgba(43, 31, 23, 0.25);
}

/* HERO — Dengeli, küçültülmüş ve şeffaf zeminli ürün görünümü */
.fog-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at 50% 36%, #ffffff 0%, #f7f1ea 55%, #ebe2d5 100%);
  display: flex;
  flex-direction: column;
}
.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: calc(4px + var(--safe-top)) 12px 8px;
  background: linear-gradient(180deg, rgba(247, 241, 234, 0.85) 0%, transparent 100%);
  pointer-events: none;
}
.hero-top > * { pointer-events: auto; }
.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 9vw, 2.7rem);
  font-weight: 400;
  color: #2b1d16;
  text-align: center;
  line-height: 1;
  text-shadow: none;
}
.hero-menu-btn,
.hero-back {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #2b1d16;
  font-size: 1.35rem;
  line-height: 1;
}
.hero-back {
  font-size: 1.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(220, 205, 190, 0.7);
  box-shadow: 0 2px 8px rgba(40, 25, 15, 0.06);
}
.hero-menu-btn {
  position: relative;
  z-index: 13;
  -webkit-tap-highlight-color: transparent;
}
.hero-viewport {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  line-height: 0;
}
.hero-frame {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  display: none !important;
}
.hero-img {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: min(72vw, 255px);
  height: min(72vw, 255px);
  max-width: 260px;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 14px 20px rgba(50, 32, 18, 0.22));
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.hero-img.is-tray {
  width: min(94vw, 380px);
  height: min(52vh, 320px);
  max-width: 390px;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(50, 32, 18, 0.24));
}
.hero-img.is-swapping { opacity: 0.35; }
.fog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  z-index: 2;
  pointer-events: auto;
}
.wipe-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  color: #2b1d16;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.wipe-hint .wipe-arrows {
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  opacity: 0.95;
  line-height: 1;
  margin-bottom: 6px;
}
.wipe-hint .wipe-line {
  font-size: clamp(1.35rem, 5.2vw, 1.7rem);
  white-space: nowrap;
}
.wipe-hint .wipe-line-em {
  font-size: clamp(1.5rem, 5.8vw, 1.9rem);
  font-weight: 700;
}
.tray-reveal {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: calc(55% + 52px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 9px 16px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(220, 205, 190, 0.9);
  color: #2b1d16;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(50, 32, 18, 0.08);
}
.fog-stage.fog-off .wipe-hint,
.fog-stage.fog-off #revealBtn {
  display: none !important;
}
.fog-stage.fog-off .fog {
  opacity: 0 !important;
  pointer-events: none !important;
}
.tray-arrow {
  position: absolute;
  z-index: 8;
  top: auto;
  bottom: 36px;
  transform: none;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(220, 205, 190, 0.8);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2b1f17;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 4px 14px rgba(50, 32, 18, 0.08);
  backdrop-filter: blur(8px);
}
.tray-arrow.left { left: 14px; }
.tray-arrow.right { right: 14px; }
.tray-arrow:active { transform: scale(0.94); }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 42px;
  z-index: 8;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  pointer-events: none;
}
.hero-dots .dot { pointer-events: auto; }
.hero-dots .dot {
  width: 7px;
  height: 7px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(43, 31, 23, 0.2);
  cursor: pointer;
  box-shadow: none;
}
.hero-dots .dot.active {
  background: #2b1f17;
  box-shadow: 0 1px 4px rgba(43, 31, 23, 0.3);
  transform: scale(1.15);
}
.product-card {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  width: 100%;
  margin: 0;
  margin-top: -28px;
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-radius: 18px 18px 0 0;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.24);
  overflow: visible;
}
.card-kicker {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a6558;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #160f0c;
  overflow-wrap: anywhere;
}
.card-desc {
  margin-top: 3px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.35;
  color: #5c4a40;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(22, 15, 12, 0.09);
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-price-block {
  flex-shrink: 0;
  min-width: 4.2rem;
  display: grid;
  gap: 0;
}
.card-price-label {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7466;
}
.card-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: #160f0c;
  line-height: 1;
}
.card-price .currency {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  margin-right: 1px;
}
.card-price .amount {
  font-family: var(--font-ui);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.card-cta {
  flex: 1;
  border: none;
  border-radius: 12px;
  background: #160f0c;
  color: #f7f2eb;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 12px 14px;
  min-height: 44px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.card-cta:active {
  transform: scale(0.98);
  background: #2a1c16;
}

.btn-ghost {
  border: 1px solid rgba(255, 250, 244, 0.45);
  background: rgba(255, 250, 244, 0.16);
  color: #fffaf4;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
/* HOME BLOCKS */
.block {
  padding: 22px 14px 6px;
  background: var(--cream);
}
.block-head {
  margin-bottom: 12px;
  padding: 0 2px;
}
.block-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--espresso);
}
.block-head p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 2px;
}
.h-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.h-scroll::-webkit-scrollbar { display: none; }

.mini-card {
  flex: 0 0 132px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 18px;
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 8px;
  box-shadow: 0 6px 16px rgba(50, 32, 23, 0.06);
}
.mini-card img {
  width: 100%;
  height: 96px;
  object-fit: contain;
  border-radius: 14px;
  background: #f7f1e7;
  padding: 4px;
}
.mini-card strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.2;
}
.mini-card .price {
  color: var(--brown);
  font-weight: 700;
}
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--brown);
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
}

.cake-examples-block {
  background: var(--cream);
}
.cake-examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.custom-example {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(49, 17, 9, 0.07);
}
.custom-example img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--beige);
}
.custom-example strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--espresso);
  line-height: 1.15;
}
.custom-example .muted {
  font-size: 0.78rem;
}
.cake-order-cta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 18px 16px;
  border-radius: 20px;
  border: 1.5px solid #9c7762;
  text-decoration: none;
  color: #fffaf4;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(188, 139, 115, 0.35), transparent 55%),
    linear-gradient(155deg, #5e3c33 0%, #311109 55%, #1a0a05 100%);
  box-shadow: 0 10px 24px rgba(49, 17, 9, 0.22);
}
.cake-order-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, 0.55);
}
.cake-order-cta strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fffaf4;
}
.cake-order-note {
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(255, 250, 244, 0.72);
  margin-bottom: 6px;
}
.cake-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 4px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(216, 199, 164, 0.45);
  background: rgba(255, 250, 244, 0.1);
  color: #fffaf4;
  font-weight: 700;
  font-size: 0.88rem;
}
.cake-order-cta:active .cake-order-btn {
  transform: scale(0.97);
  background: rgba(255, 250, 244, 0.16);
}

.home-foot {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 22px 12px 12px;
  background: var(--cream);
}
.foot-logo {
  width: 72px;
  height: 72px;
  max-width: 72px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  /* beyaz logo → koyu, krem zeminde okunur */
  filter: brightness(0) saturate(100%) invert(12%) sepia(28%) saturate(1200%) hue-rotate(350deg);
}

/* SIDE MENU */
.menu-layer {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: block;
}
.menu-layer[hidden] { display: none !important; }
.menu-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(10, 8, 6, 0.55);
  cursor: pointer;
}
.menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 320px);
  background: #160f0c;
  color: #fffaf4;
  display: flex;
  flex-direction: column;
  padding: calc(14px + var(--safe-top)) 0 calc(18px + var(--safe-bottom));
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
  animation: menuIn 0.28s ease;
  overflow: hidden;
}
@keyframes menuIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.menu-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 18px 16px;
  border-bottom: 1px solid rgba(255, 250, 244, 0.12);
}
.menu-drawer-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 250, 244, 0.55);
  margin-bottom: 4px;
}
.menu-drawer-head h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}
.menu-close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 50%;
  background: transparent;
  color: #fffaf4;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.menu-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}
.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  border-bottom: 1px solid rgba(255, 250, 244, 0.1);
  background: transparent;
  color: #fffaf4;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.menu-item .menu-count {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 250, 244, 0.45);
}
.menu-item.active {
  color: var(--gold);
}
.menu-item:active {
  background: rgba(255, 250, 244, 0.06);
}
.menu-extras {
  border-top: 1px solid rgba(255, 250, 244, 0.12);
  padding: 8px 10px 0;
  display: grid;
  gap: 2px;
}
.menu-extra {
  width: 100%;
  border: none;
  background: transparent;
  color: rgba(255, 250, 244, 0.72);
  text-align: left;
  padding: 12px 8px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 10px;
}
.menu-extra:active {
  background: rgba(255, 250, 244, 0.06);
  color: #fffaf4;
}

/* OVERLAYS */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(50, 32, 23, 0.35);
  display: grid;
  align-items: end;
}
.overlay[hidden] { display: none !important; }
.overlay-panel {
  background: var(--hub-backdrop);
  border-radius: 24px 24px 0 0;
  max-height: 94%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetUp 0.35s ease;
}
.overlay-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 8px;
  position: sticky;
  top: 0;
  background: var(--hub-backdrop);
  z-index: 2;
}
.overlay-head h1 {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(243, 219, 194, 0.85);
  font-size: 1.1rem;
}

.detail-hero {
  position: relative;
  height: 240px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-hero img {
  width: min(68vw, 240px);
  height: min(68vw, 240px);
  max-width: 240px;
  max-height: 240px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 12px 18px rgba(50, 32, 18, 0.18));
  display: block;
  padding: 8px;
}
.detail-hero img.is-tray {
  width: min(94vw, 360px);
  height: 220px;
  max-width: 380px;
  max-height: 220px;
}
.detail-fog { z-index: 2; }
.on-media {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 12px;
}
.detail-body { padding: 16px 16px 28px; }
.detail-cat {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}
.detail-body h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 4px 0 6px;
}
.detail-body h1 .name-qty {
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 4px;
}
.detail-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
}
.detail-desc {
  margin: 10px 0 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}

.acc-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(243, 219, 194, 0.55);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 700;
}
.acc-panel {
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(243, 219, 194, 0.42);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.acc-row {
  display: grid;
  gap: 2px;
}
.acc-row strong { font-size: 0.82rem; }
.acc-row span { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.4; }

.pair-block { margin-top: 18px; }
.pair-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.pair-block .mini-card {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
}
.pair-block .mini-card img {
  background: transparent;
}

.muted { color: var(--ink-soft); font-size: 0.9rem; }

@keyframes logoLightSweep {
  0% {
    -webkit-mask-position: 130% 0;
    mask-position: 130% 0;
  }
  100% {
    -webkit-mask-position: -30% 0;
    mask-position: -30% 0;
  }
}
@keyframes logoBeamPass {
  0% { transform: translateX(0) skewX(-20deg); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(340%) skewX(-20deg); opacity: 0.2; }
}
@keyframes splashPulse {
  0% { opacity: 0.55; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0.75; transform: scale(1); }
}
@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  from { transform: scale(0.6) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.65; }
  50% { transform: translateX(-50%) translateY(5px); opacity: 1; }
}
@keyframes hubEnterLeft {
  from { opacity: 0; transform: translate3d(-72px, 0, 0); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}
@keyframes hubEnterRight {
  from { opacity: 0; transform: translate3d(72px, 0, 0); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (min-width: 480px) {
  body {
    display: grid;
    place-items: center;
    background: var(--hub-backdrop);
  }
  .app {
    height: min(900px, 100dvh);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  }
}
