/* ===================================================================
   Last Summer Croissant & Bakery — Public tema
   Light mode · Primary #D11400
   =================================================================== */

:root {
  /* Marka renkleri */
  --primary: #D11400;
  --primary-600: #B01000;
  --primary-700: #8F0D00;
  --primary-050: #FCEBE8;
  --primary-100: #F9D6D0;

  /* Sıcak fırın tonları (aksan) */
  --accent: #F4A017;
  /* altın sarısı */
  --accent-050: #FDF3E0;
  --cream: #FFF9F3;

  /* Nötr / metin */
  --bg: #FFFDFB;
  --surface: #FFFFFF;
  --ink: #1E1712;
  --ink-2: #4A423C;
  --muted: #8A7F76;
  --border: #ECE4DD;
  --border-2: #E0D6CD;

  /* Sistem */
  --ok: #2E7D32;
  --warn: #C77700;
  --err: #C62828;

  /* Ölçek */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(30, 23, 18, .06), 0 1px 3px rgba(30, 23, 18, .04);
  --shadow: 0 4px 14px rgba(30, 23, 18, .08), 0 2px 6px rgba(30, 23, 18, .05);
  --shadow-lg: 0 18px 40px rgba(30, 23, 18, .14), 0 6px 14px rgba(30, 23, 18, .08);
  --ring: 0 0 0 3px var(--primary-100);

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --header-h: 64px;
}

/* ---- Reset / temel ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 .4em;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

h3,
h4 {
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: clamp(32px, 6vw, 64px);
}

.text-muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 251, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand--center {
  justify-content: center;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand__mark i {
  color: #fff;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-sm);
  transition: .15s;
}

.icon-btn i {
  color: inherit;
}

.icon-btn:hover {
  background: var(--primary-050);
  color: var(--primary-600);
  border-color: var(--primary-100);
}

.icon-btn--primary {
  justify-self: end;
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(209, 20, 0, .24);
}

.icon-btn--primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

/* ---- Butonlar ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  transition: .18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(209, 20, 0, .28);
}

.btn--primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(209, 20, 0, .34);
}

.btn--ghost {
  background: var(--surface);
  color: var(--primary-600);
  border-color: var(--border-2);
}

.btn--ghost:hover {
  border-color: var(--primary);
  background: var(--primary-050);
}

.btn--light {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
  backdrop-filter: blur(4px);
}

.btn--light:hover {
  background: rgba(255, 255, 255, .26);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* ---- Hero: tam genişlik 1:1 arka plan görseli + overlay içerik ---- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 720px;
  overflow: hidden;
  background: var(--primary-050);
  border-bottom: 1px solid var(--border);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

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

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 6, 4, .75) 0%, rgba(10, 6, 4, .65) 38%, rgba(10, 6, 4, .35) 64%, rgba(10, 6, 4, .05) 88%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-block: clamp(90px, 18vw, 180px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}

.hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin-bottom: .3em;
  color: #fff;
}

.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, .88);
  max-width: 46ch;
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---- Kategori çipleri (yatay kaydırma) ---- */
.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 12px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-2);
  transition: .15s;
}

.chip:hover,
.chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ---- Bölüm başlığı ---- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section-head .eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---- Kart ızgaraları ---- */
.grid {
  display: grid;
  gap: 20px;
}

.grid--cats {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.grid--products {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* ---- Yatay kaydırmalı kart slider'ı (öne çıkanlar) ---- */
.slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  margin: 0;
  padding-inline: 0;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider__item {
  flex: 0 0 78%;
  max-width: 340px;
  scroll-snap-align: start;
}

@media (min-width: 620px) {
  .slider__item {
    flex-basis: 46%;
  }
}

@media (min-width: 900px) {
  .slider__item {
    flex-basis: 30%;
  }
}

@media (min-width: 1180px) {
  .slider__item {
    flex-basis: 23%;
  }
}

/* Kare (1:1) görsel kutusu — 1000x1000 kartlar */
.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--primary-050);
  border-radius: var(--radius);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

/* Kategori kartı */
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: .2s;
}

.cat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.cat-card:hover .thumb img {
  transform: scale(1.06);
}

.cat-card .thumb {
  border-radius: 0;
}

.cat-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(20, 12, 8, .78), rgba(20, 12, 8, .0));
  color: #fff;
}

.cat-card__body h3 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
}

.cat-card__body span {
  font-size: .82rem;
  opacity: .85;
}

/* Ürün kartı */
.product-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: .2s;
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card:hover .thumb img {
  transform: scale(1.06);
}

.product-card .thumb {
  border-radius: var(--radius);
}

.product-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 6, 4, .88) 0%, rgba(10, 6, 4, .55) 38%, rgba(10, 6, 4, .08) 68%, rgba(10, 6, 4, 0) 85%);
}

.product-card__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}

.product-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.25;
  color: #fff;
}

.product-card__desc {
  font-size: .84rem;
  color: rgba(255, 255, 255, .82);
}

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

.product-card .price-pill {
  color: #fff;
}

.price-pill {
  font-weight: 700;
  color: var(--primary-600);
  font-size: 1.05rem;
}

.price-pill--lg {
  font-size: 1.5rem;
}

/* Rozetler */
.badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.badge--yeni {
  background: var(--primary);
  color: #fff;
}

.badge--populer {
  background: var(--accent);
  color: #3a2600;
}

.badge--vegan {
  background: #E6F4E6;
  color: #1B5E20;
}

.badge--glutensiz {
  background: #EDE7F6;
  color: #4527A0;
}

.badge--sef {
  background: #1E1712;
  color: #fff;
}

.badge--soldout {
  background: #55504b;
  color: #fff;
}

.thumb--out img {
  filter: grayscale(.5) brightness(.9);
  opacity: .8;
}

/* ---- Ürün detay ---- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.product-detail .thumb {
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 18px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* ---- Sadakat / CTA şeridi ---- */
.loyalty-strip {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 52px);
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.loyalty-strip::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
}

.loyalty-strip h2 {
  color: #fff;
}

.loyalty-strip p {
  color: rgba(255, 255, 255, .9);
  max-width: 52ch;
}

/* ---- Kartlar / form (üye) ---- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 36px);
}

.panel--narrow {
  max-width: 460px;
  margin-inline: auto;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 7px;
  color: var(--ink-2);
}

.field .hint {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: .15s;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}

.textarea {
  min-height: 96px;
  resize: vertical;
}

.field--error .input,
.field--error .textarea {
  border-color: var(--err);
}

.error-text {
  color: var(--err);
  font-size: .82rem;
  margin-top: 6px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--ink-2);
}

.check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* ---- Sadakat kartı (üye) ---- */
.stamp-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #fff;
  background: linear-gradient(135deg, #E11500, #7f0c00);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.stamp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .14), transparent 60%);
}

.stamp-card__head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  position: relative;
}

.stamp-card__code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .22em;
  font-size: 1.4rem;
  font-weight: 700;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 22px 0 8px;
  position: relative;
}

.stamp {
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(255, 255, 255, .5);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, .55);
}

.stamp i {
  color: inherit;
}

.stamp.is-filled {
  background: #fff;
  border-style: solid;
  border-color: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.stamp.is-reward {
  border-color: var(--accent);
  color: var(--accent);
}

.stamp.is-reward.is-filled {
  background: var(--accent);
  color: #3a2600;
  border-color: var(--accent);
}

.qr-box {
  background: #fff;
  padding: 14px;
  border-radius: var(--radius);
  display: inline-block;
  box-shadow: var(--shadow);
}

.qr-box canvas,
.qr-box img {
  display: block;
}

/* ---- Flash mesajları ---- */
.flash-stack {
  position: fixed;
  top: 78px;
  right: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.flash {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border-left: 4px solid var(--muted);
  animation: slideIn .3s ease;
}

.flash--success {
  border-left-color: var(--ok);
}

.flash--error {
  border-left-color: var(--err);
}

.flash--info {
  border-left-color: var(--primary);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- Boş durum ---- */
.empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--muted);
}

.empty .ico {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: #d9cfc6;
  margin-top: 40px;
}

.site-footer a {
  color: #f4ede6;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-block: 48px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  font-size: .83rem;
  color: #a99e94;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Yardımcılar ---- */
.stack-sm>*+* {
  margin-top: 8px;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.flex {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    aspect-ratio: 4 / 5;
  }

  .grid--products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .grid--cats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .product-card__desc {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .stamp-grid {
    gap: 8px;
  }
}