@import "tokens.css";

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--tf-ink);
  background: var(--tf-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--tf-ink);
  margin: 0 0 var(--sp-4);
  font-variation-settings: "opsz" 36;
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
.display-1 { font-size: var(--fs-display); line-height: var(--lh-tight); font-variation-settings: "opsz" 96; }

p { margin: 0 0 var(--sp-4); }
a {
  color: var(--tf-green-700);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease-out);
}
a:hover { color: var(--tf-orange-700); text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--sh-focus); border-radius: 2px; }

::selection { background: var(--tf-green-100); color: var(--tf-green-700); }

/* ---------- Layout ---------- */
.tf-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.tf-section { padding-block: var(--sp-8); }

/* ---------- Header ---------- */
.tf-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--tf-line);
}
.tf-header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}
.tf-logo {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--tf-green);
  font-variation-settings: "opsz" 24;
}
.tf-logo__dot { color: var(--tf-orange); }
.tf-logo-img { display: block; height: 44px; width: auto; }
@media (max-width: 640px) { .tf-logo-img { height: 36px; } }
.tf-nav { display: flex; gap: var(--sp-5); margin-left: auto; }
.tf-nav__link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tf-ink-2);
  padding-block: var(--sp-2);
}
.tf-nav__link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--tf-orange);
  transition: right var(--t-base) var(--ease-out);
}
.tf-nav__link:hover { color: var(--tf-ink); text-decoration: none; }
.tf-nav__link:hover::after,
.tf-nav__link.active::after { right: 0; }

.tf-header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.tf-icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  color: var(--tf-ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.tf-icon-btn:hover { background: var(--tf-green-50); color: var(--tf-green-700); }
.tf-cart-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  background: var(--tf-orange); color: white;
  border-radius: var(--r-pill);
  padding-inline: 4px;
}

@media (max-width: 768px) {
  .tf-header { height: var(--header-h-mobile); }
  .tf-nav { display: none; }
  .tf-nav.is-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h-mobile); inset-inline: 0;
    background: var(--tf-paper);
    padding: var(--sp-5);
    box-shadow: var(--sh-3);
    margin: 0;
  }
}

/* ---------- Footer ---------- */
.tf-footer {
  margin-top: var(--sp-9);
  background: #0F1A12;
  color: #C9D2CC;
  padding-block: var(--sp-8) var(--sp-5);
}
.tf-footer h4 {
  color: white;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.tf-footer__grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
@media (max-width: 768px) {
  .tf-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tf-footer__grid { grid-template-columns: 1fr; }
}
.tf-footer__brand {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  margin-bottom: var(--sp-3);
  font-variation-settings: "opsz" 24;
}
.tf-footer__tagline {
  color: #9AA59E;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 32ch;
}
.tf-footer ul { list-style: none; padding: 0; margin: 0; }
.tf-footer li { margin-bottom: var(--sp-2); }
.tf-footer a { color: #C9D2CC; font-size: 0.9rem; }
.tf-footer a:hover { color: var(--tf-orange); text-decoration: none; }
.tf-footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.8rem;
  color: #7F8A82;
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-md);
  transition: transform var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--sh-focus); }

.btn-primary {
  background: var(--tf-green); color: white; border-color: var(--tf-green);
}
.btn-primary:hover { background: var(--tf-green-700); border-color: var(--tf-green-700); color: white; }

.btn-accent {
  background: var(--tf-orange); color: white; border-color: var(--tf-orange);
}
.btn-accent:hover { background: var(--tf-orange-700); border-color: var(--tf-orange-700); color: white; }

.btn-outline {
  background: transparent; color: var(--tf-ink); border-color: var(--tf-line-strong);
}
.btn-outline:hover { background: var(--tf-green-50); border-color: var(--tf-green); color: var(--tf-green-700); }

.btn-ghost { background: transparent; color: var(--tf-ink-2); border-color: transparent; }
.btn-ghost:hover { background: var(--tf-green-50); color: var(--tf-green-700); }

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.85rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ---------- Forms ---------- */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--tf-ink-2);
  margin-bottom: var(--sp-2);
}
.form-control, .form-select {
  font-family: var(--ff-body);
  font-size: 1rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--tf-line-strong);
  border-radius: var(--r-md);
  background: var(--tf-paper);
  color: var(--tf-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--tf-green);
  box-shadow: var(--sh-focus);
}
.form-control::placeholder { color: var(--tf-muted); }
.form-text { font-size: var(--fs-sm); color: var(--tf-muted); margin-top: var(--sp-2); }
.invalid-feedback { font-size: var(--fs-sm); color: var(--tf-danger); margin-top: var(--sp-2); }
.is-invalid { border-color: var(--tf-danger); }
.is-invalid:focus { box-shadow: 0 0 0 3px rgba(193, 56, 54, .2); }

/* ---------- Card ---------- */
.tf-card {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: var(--sp-5);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.tf-card--hoverable:hover {
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}

/* ---------- Alert ---------- */
.tf-alert {
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.92rem;
  border-left: 3px solid;
  background: var(--tf-paper);
  margin-bottom: var(--sp-4);
}
.tf-alert--success { border-color: var(--tf-success); background: var(--tf-green-50); color: var(--tf-green-700); }
.tf-alert--danger  { border-color: var(--tf-danger);  background: #FCEDEC; color: #8B1F1D; }
.tf-alert--info    { border-color: var(--tf-info);    background: #EAF2FA; color: #1E4E80; }

/* ---------- Animations ---------- */
@keyframes tf-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tf-anim-fade-up { animation: tf-fade-up var(--t-slow) var(--ease-out) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Account / Auth ---------- */
.tf-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
}
.tf-auth--single { grid-template-columns: 1fr; }
.tf-auth__panel {
  align-self: center; justify-self: center;
  width: 100%; max-width: 440px;
  padding: var(--sp-7) var(--sp-5);
}
.tf-auth__title {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  margin-bottom: var(--sp-3);
}
.tf-auth__lede {
  color: var(--tf-ink-2);
  font-size: 1.05rem;
  margin-bottom: var(--sp-6);
}
.tf-auth__switch {
  margin-top: var(--sp-6);
  font-size: 0.95rem;
  color: var(--tf-ink-2);
  text-align: center;
}

.tf-auth__hero {
  position: relative;
  background:
    radial-gradient(circle at 20% 30%, var(--tf-green-100) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--tf-orange-100) 0%, transparent 55%),
    linear-gradient(135deg, var(--tf-green-50) 0%, var(--tf-bg) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-7);
  overflow: hidden;
}
.tf-auth__hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(27,127,58,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}
.tf-auth__hero-quote {
  position: relative;
  max-width: 24ch;
  font-family: var(--ff-display);
  font-size: 1.875rem;
  line-height: 1.25;
  color: var(--tf-green-700);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
}
.tf-auth__hero-mark {
  display: block;
  font-size: 4rem;
  color: var(--tf-orange);
  line-height: 0.5;
  margin-bottom: var(--sp-3);
}

@media (max-width: 900px) {
  .tf-auth { grid-template-columns: 1fr; }
  .tf-auth__hero { display: none; }
}

/* ---------- Empty / Error states ---------- */
.tf-empty {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  padding: var(--sp-7) var(--container-pad);
}
.tf-empty__inner { max-width: 480px; text-align: center; }
.tf-empty__eyebrow {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tf-orange);
  margin-bottom: var(--sp-4);
}
.tf-empty__title {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  margin-bottom: var(--sp-4);
}
.tf-empty__body {
  color: var(--tf-ink-2);
  font-size: 1.05rem;
  margin-bottom: var(--sp-6);
}

/* ---------- Hero placeholder (Foundation Home/Index) ---------- */
.tf-hero-placeholder {
  display: flex; align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: var(--sp-9);
  background:
    radial-gradient(ellipse at top right, var(--tf-green-100) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--tf-orange-100) 0%, transparent 60%),
    var(--tf-bg);
  position: relative;
  overflow: hidden;
}
.tf-hero-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(27,127,58,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.tf-hero-placeholder__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--tf-orange);
  margin-bottom: var(--sp-5);
}
.tf-hero-placeholder__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  max-width: 12ch;
}
.tf-hero-placeholder__title em {
  font-style: italic;
  color: var(--tf-green);
  font-variation-settings: "opsz" 96, "SOFT" 100;
}
.tf-hero-placeholder__lede {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--tf-ink-2);
  max-width: 48ch;
  margin-bottom: var(--sp-6);
}
.tf-hero-placeholder__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* ============================================================
   Catalog — Subproject #2
   ============================================================ */

/* ---------- Section eyebrow + title (anasayfa + menü ortak) ---------- */
.tf-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.tf-section-head__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--tf-orange);
}
.tf-section-head__title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  font-variation-settings: "opsz" 36;
}
.tf-section-head__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--tf-green-700);
  white-space: nowrap;
}
.tf-section-head__link::after {
  content: " →";
  transition: transform var(--t-fast) var(--ease-out);
  display: inline-block;
}
.tf-section-head__link:hover { color: var(--tf-orange-700); text-decoration: none; }
.tf-section-head__link:hover::after { transform: translateX(3px); }

/* ---------- Yatay kategori şeridi ---------- */
.tf-menu-tabs {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) 0 var(--sp-5);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--tf-line-strong) transparent;
  border-bottom: 1px solid var(--tf-line);
}
.tf-menu-tabs::-webkit-scrollbar { height: 4px; }
.tf-menu-tabs::-webkit-scrollbar-thumb { background: var(--tf-line-strong); border-radius: 999px; }
.tf-menu-tabs::-webkit-scrollbar-track { background: transparent; }

.tf-menu-tab {
  position: relative;
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--tf-ink-2);
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  scroll-snap-align: start;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.tf-menu-tab:hover {
  color: var(--tf-ink);
  background: var(--tf-green-50);
  text-decoration: none;
}
.tf-menu-tab.active {
  color: white;
  background: var(--tf-green);
  border-color: var(--tf-green);
}
.tf-menu-tab.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -10px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tf-orange);
  transform: translateX(-50%);
}

/* ---------- Ürün grid ---------- */
.tf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--tf-grid-gap);
  margin-block: var(--sp-6);
}
.tf-product-grid--featured {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Ürün kartı ---------- */
.tf-product {
  display: flex;
  flex-direction: column;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              border-color var(--t-fast);
  isolation: isolate;
}
.tf-product:hover {
  border-color: var(--tf-line-strong);
  box-shadow: var(--sh-3);
  transform: translateY(-3px);
}
.tf-product:hover .tf-product__media img,
.tf-product:hover .tf-product__media picture { transform: scale(1.04); }

.tf-product__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, var(--tf-green-50), var(--tf-bg));
  overflow: hidden;
}
.tf-product__media picture,
.tf-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}
.tf-product__media::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(26, 31, 27, 0.04);
  border-radius: inherit;
  pointer-events: none;
}

.tf-product__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: var(--tf-orange);
  border-radius: var(--r-pill);
  box-shadow: 0 2px 6px rgba(242, 107, 31, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tf-product__badge--muted {
  background: rgba(26, 31, 27, 0.7);
  box-shadow: 0 2px 6px rgba(26, 31, 27, 0.2);
}
.tf-product__badge--discount {
  top: var(--sp-3);
  right: auto;
  left: var(--sp-3);
  background: var(--tf-green);
  box-shadow: 0 2px 6px rgba(27, 127, 58, 0.3);
}

.tf-product__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5) var(--sp-4) var(--sp-4);
  gap: var(--sp-2);
}
.tf-product__name {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--tf-ink);
  font-variation-settings: "opsz" 24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tf-product__short {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--tf-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tf-product__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  flex-wrap: wrap;
}
.tf-product__cal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tf-green-700);
  background: var(--tf-green-50);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.tf-product__cal::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tf-green-500);
}
.tf-product__price {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tf-ink);
  font-variation-settings: "opsz" 24;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tf-product__price del {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--tf-muted);
  margin-right: 6px;
  text-decoration: line-through;
}
.tf-product__price strong { font-weight: 600; }

.tf-product__cta { margin-top: var(--sp-3); }
.tf-product__cta .btn { width: 100%; }
.tf-product__cta .btn:disabled,
.tf-product__cta .btn[disabled] {
  background: var(--tf-line);
  border-color: var(--tf-line);
  color: var(--tf-muted);
  cursor: not-allowed;
}

/* ---------- Anasayfa kategori önizleme bandı ---------- */
.tf-home-categories { padding-block: var(--sp-8); }
.tf-category-strip {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tf-category-strip::-webkit-scrollbar { display: none; }
.tf-category-card {
  flex-shrink: 0;
  width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform var(--t-fast);
}
.tf-category-card:hover { text-decoration: none; transform: translateY(-2px); }
.tf-category-card__avatar {
  position: relative;
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tf-green-100), var(--tf-orange-100));
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--tf-paper);
  box-shadow: 0 0 0 1px var(--tf-line), var(--sh-1);
  transition: box-shadow var(--t-fast);
}
.tf-category-card:hover .tf-category-card__avatar {
  box-shadow: 0 0 0 2px var(--tf-orange), var(--sh-2);
}
.tf-category-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tf-category-card__avatar-fallback {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--tf-green-700);
  font-variation-settings: "opsz" 48;
}
.tf-category-card__avatar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  color: var(--tf-green-700);
}
.tf-category-card__avatar-icon svg { width: 100%; height: 100%; }
.tf-category-card:hover .tf-category-card__avatar-icon { color: var(--tf-orange-700); }
.tf-category-card__name {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tf-ink);
}

/* ---------- Ürün detay sayfası ---------- */
.tf-product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1fr;
  gap: var(--sp-8);
  padding-block: var(--sp-7);
}
@media (max-width: 900px) {
  .tf-product-detail { grid-template-columns: 1fr; gap: var(--sp-5); }
}

.tf-product-detail__media {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-4));
  align-self: start;
  aspect-ratio: 1 / 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--tf-line);
  background: radial-gradient(circle at 50% 50%, var(--tf-green-50), var(--tf-bg));
}
@media (max-width: 900px) {
  .tf-product-detail__media { position: static; }
}
.tf-product-detail__media picture,
.tf-product-detail__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.tf-product-detail__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.tf-product-detail__chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.tf-chip {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tf-green-700);
  background: var(--tf-green-50);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--t-fast);
}
.tf-chip:hover {
  background: var(--tf-green-100);
  color: var(--tf-green-700);
  text-decoration: none;
}
.tf-product-detail__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 48;
}
.tf-product-detail__short {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--tf-ink-2);
  margin: 0;
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
.tf-product-detail__desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--tf-ink-2);
  margin: 0;
  white-space: pre-line;
}
.tf-product-detail__stats {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-block: 1px solid var(--tf-line);
  margin-block: var(--sp-3);
}
.tf-product-detail__stat { display: flex; flex-direction: column; gap: 2px; }
.tf-product-detail__stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-muted);
}
.tf-product-detail__stat-value {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tf-ink);
  font-variation-settings: "opsz" 24;
  font-variant-numeric: tabular-nums;
}

.tf-product-detail__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}
.tf-product-detail__price {
  font-family: var(--ff-display);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--tf-ink);
  font-variation-settings: "opsz" 48;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.tf-product-detail__price del {
  font-family: var(--ff-body);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--tf-muted);
  margin-right: 8px;
}

/* ---------- Toast ---------- */
.tf-toast-region {
  position: fixed;
  bottom: var(--sp-4);
  right: var(--sp-4);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  pointer-events: none;
  max-width: var(--tf-toast-w);
  width: calc(100% - var(--sp-5));
}
.tf-toast {
  pointer-events: auto;
  background: var(--tf-paper);
  color: var(--tf-ink);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--sh-3);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.92rem;
  animation: tf-toast-in var(--t-base) var(--ease-out) both;
  position: relative;
  overflow: hidden;
}
.tf-toast::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--tf-orange);
}
.tf-toast--success::before { background: var(--tf-success); }
.tf-toast--info::before    { background: var(--tf-info); }
.tf-toast.is-dismissing { animation: tf-toast-out var(--t-base) var(--ease-out) both; }
.tf-toast__icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--tf-orange);
  margin-top: 2px;
}
.tf-toast__body { flex: 1; line-height: 1.4; }
.tf-toast__close {
  background: none; border: none;
  color: var(--tf-muted);
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}
.tf-toast__close:hover { color: var(--tf-ink); }

@keyframes tf-toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes tf-toast-out {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(20px);  opacity: 0; }
}

/* ---------- Menu Empty state ---------- */
.tf-menu-empty {
  padding-block: var(--sp-9);
  text-align: center;
}
.tf-menu-empty__icon {
  width: 72px; height: 72px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: var(--tf-green-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--tf-green);
}
.tf-menu-empty__title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  margin-bottom: var(--sp-3);
}
.tf-menu-empty__body {
  color: var(--tf-ink-2);
  max-width: 44ch;
  margin: 0 auto;
}

/* ---------- Stagger animation helper ---------- */
.tf-stagger > * {
  animation: tf-fade-up var(--t-slow) var(--ease-out) both;
}
.tf-stagger > *:nth-child(1) { animation-delay: 0ms; }
.tf-stagger > *:nth-child(2) { animation-delay: 50ms; }
.tf-stagger > *:nth-child(3) { animation-delay: 100ms; }
.tf-stagger > *:nth-child(4) { animation-delay: 150ms; }
.tf-stagger > *:nth-child(5) { animation-delay: 200ms; }
.tf-stagger > *:nth-child(6) { animation-delay: 250ms; }
.tf-stagger > *:nth-child(7) { animation-delay: 300ms; }
.tf-stagger > *:nth-child(8) { animation-delay: 350ms; }
.tf-stagger > *:nth-child(n+9) { animation-delay: 400ms; }

/* ---------- Anasayfa slider ---------- */
.tf-slider-region {
  position: relative;
  height: clamp(420px, 60vh, 640px);
  overflow: hidden;
  background: var(--tf-ink);
}
.tf-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease-out);
}
.tf-slide.is-active { opacity: 1; z-index: 1; }
.tf-slide picture, .tf-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tf-slide__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,26,18,.7) 0%, rgba(15,26,18,.2) 60%, transparent 100%);
  display: flex; align-items: center;
  color: white;
}
.tf-slide__title {
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  color: white;
  font-variation-settings: "opsz" 72;
  margin-bottom: var(--sp-3);
  max-width: 16ch;
}
.tf-slide__subtitle {
  font-size: 1.125rem;
  max-width: 44ch;
  margin-bottom: var(--sp-5);
  color: rgba(255,255,255,.92);
}
.tf-slider-dots {
  position: absolute;
  bottom: var(--sp-5); left: 50%;
  transform: translateX(-50%);
  display: flex; gap: var(--sp-2);
  z-index: 2;
}
.tf-slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--t-fast), width var(--t-fast);
}
.tf-slider-dot.is-active { background: var(--tf-orange); width: 24px; border-radius: 999px; }

/* ============================================================
   Cart & Checkout — Subproject #4
   ============================================================ */

.tf-page-head { margin-bottom: var(--sp-6); }
.tf-page-head__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tf-orange);
  margin-bottom: var(--sp-2);
}
.tf-page-head__title {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  font-weight: 600; letter-spacing: -0.015em; margin: 0;
  font-variation-settings: "opsz" 36;
}

/* Cart page */
.tf-cart-page {
  display: grid; grid-template-columns: 1fr 360px;
  gap: var(--sp-6); padding-block: var(--sp-7); align-items: start;
}
@media (max-width: 900px) { .tf-cart-page { grid-template-columns: 1fr; } }
.tf-cart-lines { display: flex; flex-direction: column; gap: var(--sp-3); }

.tf-cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  grid-template-areas: "img info controls";
  align-items: center; gap: var(--sp-4); padding: var(--sp-4);
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.tf-cart-line:hover { border-color: var(--tf-line-strong); box-shadow: var(--sh-1); }
@media (max-width: 540px) {
  .tf-cart-line {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "img info"
      "img controls";
  }
}
.tf-cart-line__media {
  width: 96px; height: 96px; border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 50%, var(--tf-green-50), var(--tf-bg));
  overflow: hidden; grid-area: img;
}
@media (max-width: 540px) { .tf-cart-line__media { width: 72px; height: 72px; } }
.tf-cart-line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tf-cart-line__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; grid-area: info; }
.tf-cart-line__name {
  font-family: var(--ff-display); font-size: 1.0625rem; font-weight: 600;
  line-height: 1.25; color: var(--tf-ink); font-variation-settings: "opsz" 24; margin: 0;
}
.tf-cart-line__meta { font-size: 0.82rem; color: var(--tf-muted); display: inline-flex; align-items: center; gap: var(--sp-2); }
.tf-cart-line__unit { font-family: var(--ff-body); font-variant-numeric: tabular-nums; }
.tf-cart-line__controls { display: flex; align-items: center; gap: var(--sp-3); grid-area: controls; justify-self: end; }
@media (max-width: 540px) { .tf-cart-line__controls { justify-self: start; margin-top: var(--sp-2); } }
.tf-cart-line__price {
  font-family: var(--ff-display); font-weight: 600; font-size: 1.0625rem;
  color: var(--tf-ink); font-variation-settings: "opsz" 24;
  font-variant-numeric: tabular-nums; min-width: 80px; text-align: right;
}
.tf-cart-line__remove {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; background: transparent; border-radius: var(--r-md);
  color: var(--tf-muted); cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.tf-cart-line__remove:hover { background: #FCEDEC; color: var(--tf-danger); }
.tf-cart-line__remove svg { width: 16px; height: 16px; }

/* Quantity stepper */
.tf-qty-stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--tf-line-strong); border-radius: var(--r-pill);
  overflow: hidden; background: var(--tf-paper); height: 36px;
}
.tf-qty-stepper button {
  width: 32px; border: none; background: transparent; color: var(--tf-ink-2);
  font-size: 1rem; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}
.tf-qty-stepper button:hover:not(:disabled) { background: var(--tf-green-50); color: var(--tf-green-700); }
.tf-qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.tf-qty-stepper__value {
  width: 36px; display: inline-flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--tf-line); border-right: 1px solid var(--tf-line);
  font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem;
  font-variant-numeric: tabular-nums; color: var(--tf-ink);
  font-variation-settings: "opsz" 20;
}

/* Cart summary */
.tf-cart-summary {
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.tf-cart-summary__heading {
  font-family: var(--ff-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--tf-muted);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--tf-line); margin: 0;
}
.tf-cart-summary__row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 0.95rem; color: var(--tf-ink-2);
}
.tf-cart-summary__row strong {
  font-family: var(--ff-display); font-weight: 600; color: var(--tf-ink);
  font-variation-settings: "opsz" 20; font-variant-numeric: tabular-nums;
}
.tf-cart-summary__row--total {
  padding-top: var(--sp-3); margin-top: var(--sp-2);
  border-top: 1px solid var(--tf-line); font-size: 1.05rem;
}
.tf-cart-summary__row--total strong { font-size: 1.5rem; font-variation-settings: "opsz" 32; }

.tf-cart-freedelivery {
  background: var(--tf-green-50); border-radius: var(--r-md);
  padding: var(--sp-3); margin-block: var(--sp-2);
}
.tf-cart-freedelivery__text {
  font-size: 0.85rem; color: var(--tf-green-700);
  display: flex; align-items: center; gap: 6px; margin-bottom: var(--sp-2);
}
.tf-cart-freedelivery__text strong { font-family: var(--ff-display); font-weight: 600; font-variant-numeric: tabular-nums; }
.tf-cart-freedelivery__bar { height: 6px; border-radius: var(--r-pill); background: rgba(27, 127, 58, 0.15); overflow: hidden; }
.tf-cart-freedelivery__fill {
  height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--tf-green) 0%, var(--tf-orange) 100%);
  transition: width var(--t-slow) var(--ease-out);
}
.tf-cart-freedelivery--achieved { background: var(--tf-green); color: white; }
.tf-cart-freedelivery--achieved .tf-cart-freedelivery__text { color: white; }

.tf-cart-summary__cta { margin-top: var(--sp-2); }
.tf-cart-summary__cta .btn { width: 100%; padding-block: 0.875rem; font-size: 1rem; }
.tf-cart-summary__cta .btn.disabled, .tf-cart-summary__cta .btn[disabled] {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
.tf-cart-summary__warning {
  font-size: 0.82rem; color: var(--tf-danger); background: #FCEDEC;
  border-radius: var(--r-md); padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-2);
}

/* Cart empty */
.tf-cart-empty { padding: var(--sp-9) var(--sp-5); text-align: center; max-width: 460px; margin: 0 auto; }
.tf-cart-empty__icon {
  width: 96px; height: 96px; margin: 0 auto var(--sp-5); border-radius: 50%;
  background: linear-gradient(135deg, var(--tf-green-100), var(--tf-orange-100));
  display: flex; align-items: center; justify-content: center; color: var(--tf-green);
}
.tf-cart-empty__icon svg { width: 44px; height: 44px; }
.tf-cart-empty__title {
  font-family: var(--ff-display); font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 600; margin-bottom: var(--sp-3); font-variation-settings: "opsz" 36;
}
.tf-cart-empty__body { color: var(--tf-ink-2); font-size: 1.05rem; margin-bottom: var(--sp-5); line-height: 1.5; }

/* Checkout */
.tf-checkout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: var(--sp-6); padding-block: var(--sp-7); align-items: start;
}
@media (max-width: 900px) { .tf-checkout { grid-template-columns: 1fr; } }
.tf-checkout__form {
  background: var(--tf-paper); border: 1px solid var(--tf-line); border-radius: var(--r-lg);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-6);
}
.tf-checkout__section { display: flex; flex-direction: column; gap: var(--sp-4); }
.tf-checkout__section-heading {
  display: flex; align-items: baseline; gap: var(--sp-3);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--tf-line);
}
.tf-checkout__section-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tf-green); color: white;
  font-family: var(--ff-display); font-weight: 600; font-size: 0.9rem;
  font-variation-settings: "opsz" 16;
}
.tf-checkout__section-title {
  font-family: var(--ff-display); font-size: 1.25rem; font-weight: 600; margin: 0;
  font-variation-settings: "opsz" 24; color: var(--tf-ink);
}
.tf-checkout__form .form-label {
  font-size: 0.85rem; font-weight: 500; color: var(--tf-ink-2); margin-bottom: 6px;
}
.tf-checkout__form .form-control { font-family: var(--ff-body); }

/* Payment cards */
.tf-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 640px) { .tf-payment-grid { grid-template-columns: 1fr; } }
.tf-payment-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--sp-2); padding: var(--sp-4);
  background: var(--tf-paper); border: 1.5px solid var(--tf-line-strong);
  border-radius: var(--r-lg); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.tf-payment-card:hover { border-color: var(--tf-green); background: var(--tf-green-50); }
.tf-payment-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tf-payment-card:has(input:checked) {
  border-color: var(--tf-green); background: var(--tf-green-50); box-shadow: var(--sh-1);
}
.tf-payment-card:has(input:checked) .tf-payment-card__check { background: var(--tf-orange); border-color: var(--tf-orange); }
.tf-payment-card__icon {
  width: 36px; height: 36px; border-radius: var(--r-md);
  background: var(--tf-green-50); color: var(--tf-green-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.tf-payment-card:has(input:checked) .tf-payment-card__icon { background: var(--tf-green); color: white; }
.tf-payment-card__icon svg { width: 18px; height: 18px; }
.tf-payment-card__name {
  font-family: var(--ff-display); font-weight: 600; font-size: 1rem;
  color: var(--tf-ink); font-variation-settings: "opsz" 20;
}
.tf-payment-card__hint { font-size: 0.78rem; color: var(--tf-muted); line-height: 1.35; }
.tf-payment-card__check {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--tf-line-strong); background: transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}

/* Checkout summary */
.tf-checkout-summary {
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.tf-checkout-summary__lines {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-bottom: var(--sp-3); border-bottom: 1px solid var(--tf-line);
}
.tf-checkout-summary__line {
  display: flex; align-items: baseline; font-size: 0.92rem; color: var(--tf-ink-2); gap: var(--sp-2);
}
.tf-checkout-summary__line-name { flex: 1; min-width: 0; }
.tf-checkout-summary__line-qty { display: inline-block; font-variant-numeric: tabular-nums; color: var(--tf-muted); margin-right: 4px; }
.tf-checkout-summary__line-price {
  font-family: var(--ff-display); font-weight: 500; color: var(--tf-ink);
  font-variation-settings: "opsz" 16; font-variant-numeric: tabular-nums;
}

/* Order detail */
.tf-order-detail { padding-block: var(--sp-7); }
.tf-order-detail__head { text-align: center; margin-bottom: var(--sp-7); }
.tf-order-detail__success {
  width: 72px; height: 72px; margin: 0 auto var(--sp-4); border-radius: 50%;
  background: var(--tf-green); color: white;
  display: flex; align-items: center; justify-content: center;
  animation: tf-bounce-in var(--t-slow) var(--ease-out);
}
.tf-order-detail__success svg { width: 36px; height: 36px; }
@keyframes tf-bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
.tf-order-detail__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tf-orange); margin-bottom: var(--sp-2);
}
.tf-order-detail__title {
  font-family: var(--ff-display); font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 600; font-variation-settings: "opsz" 48; letter-spacing: -0.015em;
  margin: 0 0 var(--sp-2);
}
.tf-order-detail__number {
  font-family: var(--ff-display); font-size: 1.125rem; color: var(--tf-ink-2);
  font-variant-numeric: tabular-nums; font-variation-settings: "opsz" 24;
}
.tf-order-detail__body {
  display: grid; grid-template-columns: 1fr 320px; gap: var(--sp-6);
}
@media (max-width: 900px) { .tf-order-detail__body { grid-template-columns: 1fr; } }

.tf-order-card {
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.tf-order-card__heading {
  font-family: var(--ff-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--tf-muted);
  margin: 0 0 var(--sp-3); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--tf-line);
}
.tf-order-card + .tf-order-card { margin-top: var(--sp-4); }
.tf-order-card__row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  margin-bottom: var(--sp-2); font-size: 0.95rem;
}
.tf-order-card__row strong {
  font-family: var(--ff-display); font-weight: 600; color: var(--tf-ink);
  font-variation-settings: "opsz" 20;
}

.tf-order-items { display: flex; flex-direction: column; gap: var(--sp-3); }
.tf-order-item {
  display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-3); align-items: center;
}
.tf-order-item__thumb {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: radial-gradient(circle at 50% 50%, var(--tf-green-50), var(--tf-bg)); overflow: hidden;
}
.tf-order-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-order-item__name {
  font-family: var(--ff-display); font-weight: 600; font-size: 0.95rem;
  color: var(--tf-ink); font-variation-settings: "opsz" 20; margin: 0;
}
.tf-order-item__qty { font-size: 0.78rem; color: var(--tf-muted); font-variant-numeric: tabular-nums; }
.tf-order-item__price {
  font-family: var(--ff-display); font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--tf-ink); font-variation-settings: "opsz" 20;
}

/* Status pill */
.tf-order-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--tf-green-50); color: var(--tf-green-700);
}
.tf-order-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tf-green-500); }
.tf-order-status--pending     { background: #FFF3DC; color: #8B6914; }
.tf-order-status--pending::before     { background: var(--tf-warning); }
.tf-order-status--preparing   { background: #EAF2FA; color: #1E4E80; }
.tf-order-status--preparing::before   { background: var(--tf-info); }
.tf-order-status--ontheway    { background: #FCE3D1; color: var(--tf-orange-700); }
.tf-order-status--ontheway::before    { background: var(--tf-orange); }
.tf-order-status--delivered   { background: var(--tf-green-50); color: var(--tf-green-700); }
.tf-order-status--delivered::before   { background: var(--tf-green-500); }
.tf-order-status--cancelled   { background: #FCEDEC; color: var(--tf-danger); }
.tf-order-status--cancelled::before   { background: var(--tf-danger); }

/* Status timeline */
.tf-status-timeline {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2); margin: var(--sp-5) 0; position: relative;
}
.tf-status-step {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-2); position: relative;
  font-size: 0.75rem; color: var(--tf-muted); font-weight: 500; text-align: center;
}
.tf-status-step__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--tf-line-strong); border: 2px solid var(--tf-paper); z-index: 1;
}
.tf-status-step--done .tf-status-step__dot { background: var(--tf-green); }
.tf-status-step--done { color: var(--tf-green-700); }
.tf-status-step--current .tf-status-step__dot {
  background: var(--tf-orange);
  box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.2);
  animation: tf-pulse 2s ease-in-out infinite;
}
.tf-status-step--current { color: var(--tf-orange-700); font-weight: 600; }
@keyframes tf-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(242, 107, 31, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(242, 107, 31, 0); }
}
.tf-status-timeline::before {
  content: ""; position: absolute; top: 6px; left: 8%; right: 8%;
  height: 2px; background: var(--tf-line-strong); z-index: 0;
}
.tf-status-timeline::after {
  content: ""; position: absolute; top: 6px; left: 8%;
  height: 2px; width: var(--progress, 0%); background: var(--tf-green);
  z-index: 0; transition: width var(--t-slow) var(--ease-out);
}

/* Cart badge pulse */
.tf-cart-badge.is-pulsing { animation: tf-badge-pulse 600ms var(--ease-out); }
@keyframes tf-badge-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); background: var(--tf-green); }
  100% { transform: scale(1); }
}

/* ---------- Coupon form (cart summary) ---------- */
.tf-coupon-form { margin-block: var(--sp-3); }
.tf-coupon-form__msg {
  font-size: 0.78rem;
  margin-top: var(--sp-2);
  margin-bottom: 0;
}
.tf-coupon-form__msg.is-error { color: var(--tf-danger); }
.tf-coupon-form__msg.is-success { color: var(--tf-green-700); }
.tf-coupon-input {
  display: flex; gap: var(--sp-2); align-items: stretch;
}
.tf-coupon-input input { flex: 1; min-width: 0; }
.tf-coupon-input .btn { flex-shrink: 0; }

/* ---------- Admin filters ---------- */
.tf-admin-filters {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-4);
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.tf-admin-filters .form-control,
.tf-admin-filters .form-select {
  max-width: 240px;
}
.tf-admin-filters__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-muted);
}

/* ---------- Profile Sidebar Layout ---------- */
.tf-profile {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-6);
  padding-block: var(--sp-7);
  align-items: start;
}
@media (max-width: 900px) { .tf-profile { grid-template-columns: 1fr; } }

.tf-profile__nav {
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-1);
}
.tf-profile__nav-title {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--sp-3);
  font-variation-settings: "opsz" 24;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--tf-line);
}
.tf-profile__nav a {
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.92rem;
  color: var(--tf-ink-2);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.tf-profile__nav a:hover { background: var(--tf-green-50); color: var(--tf-green-700); }
.tf-profile__nav a.is-active {
  background: var(--tf-green-50);
  color: var(--tf-green-700);
  font-weight: 600;
}
.tf-profile__content { min-width: 0; }

/* Profile section styling */
.tf-profile-section {
  margin-bottom: var(--sp-6);
}
.tf-profile-section__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-4);
}

/* Profile summary cards */
.tf-profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.tf-profile-card {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.tf-profile-card__icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.tf-profile-card__content { flex: 1; min-width: 0; }
.tf-profile-card__title {
  font-size: clamp(1rem, 3.5vw, 1.55rem);
  font-weight: 700;
  margin: 0 0 var(--sp-1);
  color: var(--tf-green-700);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.tf-profile-card__label {
  font-size: 0.85rem;
  color: var(--tf-muted);
  margin: 0;
}

/* Profile info display */
.tf-profile-info {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.tf-profile-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--tf-line);
}
.tf-profile-info__row:last-child { border-bottom: none; }
.tf-profile-info__label {
  font-weight: 600;
  color: var(--tf-ink-2);
}
.tf-profile-info__value {
  color: var(--tf-ink);
}

/* Addresses grid */
.tf-addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}
.tf-address-card {
  position: relative;
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.tf-address-card__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
}
.tf-address-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  padding-right: 80px;
}
.tf-address-card__content {
  font-size: 0.9rem;
  margin-bottom: var(--sp-3);
  color: var(--tf-ink-2);
}
.tf-address-card__content p {
  margin: 0 0 var(--sp-1);
}
.tf-address-card__actions {
  display: flex; gap: var(--sp-2);
}

/* Orders table */
.tf-orders-table {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tf-orders-table__header,
.tf-orders-table__row {
  display: grid;
  grid-template-columns: 120px 150px 120px 150px 1fr;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--tf-line);
}
.tf-orders-table__row:last-child { border-bottom: none; }
.tf-orders-table__header {
  background: var(--tf-green-50);
  font-weight: 600;
  color: var(--tf-green-700);
  border-bottom: 2px solid var(--tf-line);
}
.tf-orders-table__cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Coupons list */
.tf-coupons-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.tf-coupon-card {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
}
.tf-coupon-card__code {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3);
  background: var(--tf-green-50);
  border-radius: var(--r-md);
}
.tf-coupon-card__code code {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tf-green-700);
  flex: 1;
  min-width: 0;
}
.tf-coupon-card__copy {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.8rem;
  background: var(--tf-green);
  color: white;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.tf-coupon-card__copy:hover { background: var(--tf-green-700); }
.tf-coupon-card__details {
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.tf-coupon-card__row {
  display: flex; justify-content: space-between; align-items: center;
}
.tf-coupon-card__label {
  font-size: 0.85rem;
  color: var(--tf-muted);
}
.tf-coupon-card__value {
  font-weight: 600;
  color: var(--tf-ink);
}

/* Empty state */
.tf-empty-state {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  background: var(--tf-paper);
  border: 1px dashed var(--tf-line);
  border-radius: var(--r-lg);
}
.tf-empty-state p {
  color: var(--tf-muted);
  margin-bottom: var(--sp-4);
}

/* Favorite heart button */
.tf-fav-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--tf-line);
  background: var(--tf-paper);
  color: var(--tf-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.tf-fav-btn:hover { color: var(--tf-orange); border-color: var(--tf-orange); }
.tf-fav-btn.is-fav { color: var(--tf-orange); border-color: var(--tf-orange); }
.tf-fav-btn.is-fav svg { fill: currentColor; }
.tf-fav-btn svg { width: 16px; height: 16px; }

/* Legal / Content Pages */
.tf-legal { padding-block: var(--sp-7); max-width: 760px; }
.tf-legal__head { margin-bottom: var(--sp-6); }
.tf-legal__eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--tf-orange);
  margin-bottom: var(--sp-2);
}
.tf-legal__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  font-weight: 600; margin: 0 0 var(--sp-2);
  font-variation-settings: "opsz" 48; letter-spacing: -0.015em;
}
.tf-legal__meta { font-size: 0.85rem; color: var(--tf-muted); margin: 0; }
.tf-legal__body { font-size: 1.05rem; line-height: 1.75; color: var(--tf-ink-2); }
.tf-legal__body p { margin-bottom: var(--sp-4); white-space: pre-line; }
.tf-legal__body p:last-child { margin-bottom: 0; }

/* ---------- Membership ---------- */
.tf-membership-hero {
  background: radial-gradient(ellipse at top, var(--tf-green-100), transparent 60%), var(--tf-bg);
  padding: var(--sp-9) var(--sp-5);
  text-align: center;
}
.tf-membership-hero__lede {
  font-size: 1.125rem; color: var(--tf-ink-2); max-width: 56ch;
  margin: var(--sp-4) auto 0; line-height: 1.5;
}
.tf-membership-form { padding-block: var(--sp-7); }

/* =========================================================
   Modern dokunuşlar — sağlıklı beslenme teması
   ========================================================= */

/* Slider — overlay'i daha okunabilir gradient yap, başlığa subtle glow */
.tf-slide__overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.05) 35%, rgba(15,40,25,0.65) 80%, rgba(15,40,25,0.85) 100%);
}
.tf-slide__title {
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* Soft "fresh" badge (üst köşede yapraklı amblem) */
.tf-fresh-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 6px;
  background: var(--tf-green-50);
  border: 1px solid color-mix(in srgb, var(--tf-green) 35%, transparent);
  color: var(--tf-green-700);
  border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.tf-fresh-badge svg { width: 14px; height: 14px; }

/* Section eyebrow ile leaf accent */
.tf-section-head__eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
}
.tf-section-head__eyebrow::before {
  content: ''; width: 24px; height: 1.5px; background: var(--tf-orange);
  display: inline-block; border-radius: 2px;
}

/* =========================================================
   Yemek Kartı seçenekleri (Multinet/Sodexo/Setcard/Ticket/Metropol)
   ========================================================= */
.tf-payment-group-label {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--tf-muted);
  margin: var(--sp-4) 0 var(--sp-2);
}
.tf-payment-group-label--meal {
  margin-top: var(--sp-5);
  color: var(--tf-green-700);
}
.tf-payment-grid--meal { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .tf-payment-grid--meal { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tf-payment-grid--meal { grid-template-columns: repeat(2, 1fr); } }

.tf-payment-card--meal { padding: var(--sp-3); }
.tf-payment-card--meal .tf-payment-card__hint { font-size: 0.72rem; }

.tf-meal-card-logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  width: fit-content;
  line-height: 1.05;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.tf-meal-card-logo span {
  display: block; font-size: 0.6rem; font-weight: 500; opacity: 0.85;
  letter-spacing: 0.04em; margin-top: 2px;
}
.tf-meal-card-logo--multinet { background: linear-gradient(135deg, #E63946 0%, #B91C2A 100%); }
.tf-meal-card-logo--sodexo   { background: linear-gradient(135deg, #1B4FA8 0%, #0B2E6A 100%); }
.tf-meal-card-logo--setcard  { background: linear-gradient(135deg, #00A859 0%, #00753F 100%); }
.tf-meal-card-logo--ticket   { background: linear-gradient(135deg, #F39200 0%, #C97000 100%); }
.tf-meal-card-logo--metropol { background: linear-gradient(135deg, #7A1FA2 0%, #4A0E66 100%); }

/* =========================================================
   Profile — Hero card + recent orders
   ========================================================= */
.tf-profile-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 96px 1fr; gap: var(--sp-5);
  padding: var(--sp-6); margin-bottom: var(--sp-5);
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-xl, 20px);
}
@media (max-width: 640px) {
  .tf-profile-hero { grid-template-columns: 72px 1fr; padding: var(--sp-4); gap: var(--sp-4); }
}
.tf-profile-hero__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(70% 110% at 100% 0%, color-mix(in srgb, var(--tf-orange) 14%, transparent) 0%, transparent 60%),
    radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--tf-green) 18%, transparent) 0%, transparent 60%);
}
.tf-profile-hero__avatar {
  position: relative; z-index: 1;
  width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tf-green) 0%, var(--tf-green-700) 100%);
  color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 2rem;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--tf-green) 60%, transparent);
}
@media (max-width: 640px) {
  .tf-profile-hero__avatar { width: 72px; height: 72px; font-size: 1.5rem; }
}
.tf-profile-hero__body { position: relative; z-index: 1; min-width: 0; }
.tf-profile-hero__eyebrow {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tf-orange-700);
  margin: 0 0 4px;
}
.tf-profile-hero__name {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(1.5rem, 2vw + 0.8rem, 2rem); margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.tf-profile-hero__lede { color: var(--tf-ink-2); margin: 0 0 var(--sp-3); }
.tf-profile-hero__cta { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* SVG-icon profile cards */
.tf-profile-card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tf-profile-card__icon svg { width: 22px; height: 22px; }
.tf-profile-card__icon--green  { background: var(--tf-green-50);  color: var(--tf-green-700); }
.tf-profile-card__icon--orange { background: #FFF0E2;            color: var(--tf-orange-700); }
.tf-profile-card__icon--pink   { background: #FDE8EC;            color: #C13858; }
.tf-profile-card__icon--blue   { background: #E5EFFA;            color: #2A5DA8; }

.tf-profile-card {
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.tf-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
  border-color: var(--tf-line-strong);
}

/* Two-column profile blocks */
.tf-profile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5);
}
@media (max-width: 900px) { .tf-profile-grid { grid-template-columns: 1fr; } }
.tf-profile-block {
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.tf-profile-block__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.tf-profile-block__title {
  font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600;
  margin: 0; letter-spacing: -0.02em;
}
.tf-profile-block__action {
  font-size: 0.85rem; color: var(--tf-green-700); font-weight: 500;
}
.tf-profile-block__action:hover { color: var(--tf-orange-700); text-decoration: none; }
.tf-profile-block__actions { margin-top: var(--sp-3); display: flex; gap: var(--sp-2); }

.tf-profile-info { background: transparent; padding: 0; border: 0; margin: 0; }

.tf-profile-orders { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.tf-profile-order {
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3);
  padding: var(--sp-3); border-radius: var(--r-md);
  background: color-mix(in srgb, var(--tf-bg) 60%, transparent);
  transition: background var(--t-fast);
}
.tf-profile-order:hover { background: var(--tf-green-50); }
.tf-profile-order__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tf-profile-order__num { font-family: var(--ff-display); font-weight: 600; }
.tf-profile-order__date { font-size: 0.78rem; color: var(--tf-muted); }
.tf-profile-order__meta { display: flex; align-items: center; gap: var(--sp-3); }
.tf-profile-order__total { font-family: var(--ff-display); font-variant-numeric: tabular-nums; }
.tf-profile-order__view {
  color: var(--tf-green-700); font-size: 1.2rem; font-weight: 600;
  padding: 0 6px;
}
.tf-profile-order__view:hover { color: var(--tf-orange-700); text-decoration: none; }

.tf-profile-empty {
  text-align: center; padding: var(--sp-5) var(--sp-3);
  color: var(--tf-muted);
}
.tf-profile-empty p { margin: 0 0 var(--sp-3); }

/* Status pills (paylaşılan) */
.tf-pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.tf-pill--success { background: var(--tf-green-50);  color: var(--tf-green-700); }
.tf-pill--warn    { background: #FFF3DC;             color: #A56A12; }
.tf-pill--info    { background: #E2EEFB;             color: #1F548C; }
.tf-pill--danger  { background: #FBEAEA;             color: #A03030; }

/* =========================================================
   Hero placeholder — daha karakterli, organik şekiller
   ========================================================= */
.tf-hero-placeholder {
  position: relative; overflow: hidden;
  padding-block: clamp(var(--sp-6), 8vw, var(--sp-8));
}
.tf-hero-placeholder::before,
.tf-hero-placeholder::after {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.tf-hero-placeholder::before {
  width: 380px; height: 380px; top: -120px; right: -80px;
  background: color-mix(in srgb, var(--tf-orange) 35%, transparent);
}
.tf-hero-placeholder::after {
  width: 480px; height: 480px; bottom: -200px; left: -120px;
  background: color-mix(in srgb, var(--tf-green) 35%, transparent);
}
.tf-hero-placeholder .tf-container { position: relative; z-index: 1; }

/* =========================================================
   Header — açık/kapalı pill + global search
   ========================================================= */
.tf-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  background: var(--tf-green-50);
  color: var(--tf-green-700);
  border: 1px solid color-mix(in srgb, var(--tf-green) 25%, transparent);
  border-radius: 999px;
  font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.tf-status-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tf-green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tf-green) 18%, transparent);
  animation: tf-pulse 2.6s ease-in-out infinite;
}
.tf-status-pill.is-closed {
  background: #FBEAEA; color: #9A2A2A;
  border-color: color-mix(in srgb, #E63946 25%, transparent);
}
.tf-status-pill.is-closed .tf-status-pill__dot {
  background: #E63946;
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18);
  animation: none;
}
@keyframes tf-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.85); opacity: 0.7; }
}
@media (max-width: 900px) { .tf-status-pill { display: none; } }


/* =========================================================
   About sayfası — modern, sağlıklı tema
   ========================================================= */
.tf-about-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(var(--sp-7), 10vw, 100px);
}
.tf-about-hero__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.tf-about-hero__bg::before,
.tf-about-hero__bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.tf-about-hero__bg::before {
  width: 480px; height: 480px; top: -180px; right: -120px;
  background: color-mix(in srgb, var(--tf-orange) 40%, transparent);
}
.tf-about-hero__bg::after {
  width: 560px; height: 560px; bottom: -240px; left: -160px;
  background: color-mix(in srgb, var(--tf-green) 45%, transparent);
}
.tf-about-hero .tf-container { position: relative; z-index: 1; max-width: 920px; }
.tf-about-hero__eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--tf-orange-700);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 var(--sp-3);
}
.tf-about-hero__eyebrow::before {
  content: ''; width: 28px; height: 1.5px; background: var(--tf-orange); border-radius: 2px;
}
.tf-about-hero__title {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw + 0.5rem, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 var(--sp-4);
  color: var(--tf-ink);
}
.tf-about-hero__title em {
  font-style: normal; color: var(--tf-orange-700);
  font-family: var(--ff-display); font-weight: 700;
}
.tf-about-hero__lede {
  font-size: 1.125rem; color: var(--tf-ink-2);
  max-width: 64ch; line-height: 1.55; margin: 0 0 var(--sp-5);
}
.tf-about-hero__cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* Values grid */
.tf-values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  margin-top: var(--sp-5);
}
@media (max-width: 900px) { .tf-values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .tf-values-grid { grid-template-columns: 1fr; } }

.tf-value-card {
  position: relative;
  padding: var(--sp-5);
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.tf-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -16px color-mix(in srgb, var(--tf-green) 30%, transparent);
  border-color: color-mix(in srgb, var(--tf-green) 30%, transparent);
}
.tf-value-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 16px; margin-bottom: var(--sp-3);
}
.tf-value-card__icon svg { width: 26px; height: 26px; }
.tf-value-card__icon--green  { background: var(--tf-green-50);  color: var(--tf-green-700); }
.tf-value-card__icon--orange { background: #FFF0E2;             color: var(--tf-orange-700); }
.tf-value-card__icon--blue   { background: #E5EFFA;             color: #2A5DA8; }
.tf-value-card__icon--pink   { background: #FDE8EC;             color: #C13858; }
.tf-value-card h3 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.15rem; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.tf-value-card p { margin: 0; color: var(--tf-ink-2); font-size: 0.92rem; line-height: 1.5; }

/* About stats strip */
.tf-about-stats {
  background: linear-gradient(135deg, var(--tf-green) 0%, var(--tf-green-700) 100%);
  color: white;
  padding-block: var(--sp-6);
  position: relative; overflow: hidden;
}
.tf-about-stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 80% at 90% 10%, color-mix(in srgb, var(--tf-orange) 30%, transparent), transparent 60%);
}
.tf-about-stats__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  text-align: center;
}
@media (max-width: 700px) { .tf-about-stats__grid { grid-template-columns: repeat(2, 1fr); } }
.tf-about-stat strong {
  display: block;
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.tf-about-stat span {
  font-size: 0.88rem; opacity: 0.88; letter-spacing: 0.01em;
}

/* About mission */
.tf-about-mission {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 900px) { .tf-about-mission { grid-template-columns: 1fr; } }
.tf-about-mission__col h2 {
  font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.2rem); letter-spacing: -0.025em;
  margin: var(--sp-2) 0 var(--sp-4);
}
.tf-about-mission__col p {
  color: var(--tf-ink-2); line-height: 1.65; margin-bottom: var(--sp-3);
}
.tf-about-mission__body {
  padding: var(--sp-5);
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
}
.tf-about-mission__body h3 {
  font-family: var(--ff-display); margin: 0 0 var(--sp-3);
  font-size: 1.15rem; letter-spacing: -0.02em;
}
.tf-about-mission__body ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.tf-about-mission__body li {
  position: relative; padding-left: 26px;
  color: var(--tf-ink-2); line-height: 1.45;
}
.tf-about-mission__body li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--tf-green-50); color: var(--tf-green-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.74rem; font-weight: 700;
}

/* =========================================================
   Contact sayfası
   ========================================================= */
.tf-contact-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(var(--sp-6), 8vw, 80px);
}
.tf-contact-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.tf-contact-hero__bg::before {
  content: ''; position: absolute; width: 380px; height: 380px;
  top: -120px; right: -80px; border-radius: 50%; filter: blur(70px);
  background: color-mix(in srgb, var(--tf-orange) 32%, transparent);
  opacity: 0.6;
}
.tf-contact-hero .tf-container { position: relative; z-index: 1; max-width: 920px; }

.tf-contact-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 900px) { .tf-contact-grid { grid-template-columns: 1fr; } }

.tf-contact-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3);
}
@media (max-width: 540px) { .tf-contact-cards { grid-template-columns: 1fr; } }

.tf-contact-card {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-4);
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  color: var(--tf-ink);
  text-decoration: none;
  transition: transform var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.tf-contact-card:not(.tf-contact-card--static):hover {
  transform: translateY(-2px);
  border-color: var(--tf-green);
  box-shadow: var(--sh-1);
  text-decoration: none;
}
.tf-contact-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
}
.tf-contact-card__icon svg { width: 22px; height: 22px; }
.tf-contact-card__icon--green  { background: var(--tf-green-50);  color: var(--tf-green-700); }
.tf-contact-card__icon--orange { background: #FFF0E2;             color: var(--tf-orange-700); }
.tf-contact-card__icon--blue   { background: #E5EFFA;             color: #2A5DA8; }
.tf-contact-card__icon--pink   { background: #FDE8EC;             color: #C13858; }
.tf-contact-card__label {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tf-muted);
  margin: 0 0 2px;
}
.tf-contact-card strong {
  font-family: var(--ff-body); font-weight: 600;
  color: var(--tf-ink); display: block; line-height: 1.3;
}
.tf-contact-card__hint {
  display: block;
  font-size: 0.75rem; color: var(--tf-orange-700);
  margin-top: 2px;
}

.tf-contact-form {
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.tf-contact-form__title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.25rem; letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.tf-contact-form__lede {
  color: var(--tf-muted); font-size: 0.9rem; margin: 0 0 var(--sp-4);
}
.tf-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
}
@media (max-width: 540px) { .tf-form-row { grid-template-columns: 1fr; } }

.tf-contact-map {
  margin-top: var(--sp-6);
  overflow: hidden;
  border-top: 1px solid var(--tf-line);
}
.tf-contact-map iframe {
  display: block; width: 100%; height: 380px; border: 0;
}
.tf-contact-map--placeholder {
  background: var(--tf-bg);
  border-bottom: 1px solid var(--tf-line);
}

/* Dil değiştirici */
.tf-lang-switch {
  display: inline-flex;
  background: var(--tf-bg);
  border: 1.5px solid var(--tf-line);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
}
.tf-lang-switch__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; padding: 4px 10px;
  font-family: var(--ff-body);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--tf-muted);
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.tf-lang-switch__btn:hover { color: var(--tf-ink); text-decoration: none; }
.tf-lang-switch__btn.is-active {
  background: var(--tf-green);
  color: white;
}
@media (max-width: 600px) { .tf-lang-switch { display: none; } }

/* Mağaza durum bandı — header altında full-width */
.tf-store-banner {
  padding: 10px 16px;
  font-size: 0.9rem; font-weight: 500;
  text-align: center;
  border-bottom: 1px solid var(--tf-line);
}
.tf-store-banner__inner { display: flex; align-items: center; justify-content: center; gap: 10px; }
.tf-store-banner__icon { font-size: 1.1rem; }
.tf-store-banner--busy   { background: #FFF3DC; color: #8A5512; }
.tf-store-banner--closed { background: #FBEAEA; color: #9A2A2A; font-weight: 600; }

/* Quantity stepper — ürün kartı + detay varyantları */
.tf-qty-stepper--card,
.tf-qty-stepper--detail {
  display: inline-flex; align-items: stretch;
  border: 1.5px solid var(--tf-line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--tf-paper);
}
.tf-qty-stepper--card { height: 34px; }
.tf-qty-stepper--detail { height: 48px; margin-right: 12px; }

.tf-qty-stepper--card button,
.tf-qty-stepper--detail button {
  background: transparent; border: 0;
  width: 32px; cursor: pointer;
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 600;
  color: var(--tf-ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.tf-qty-stepper--detail button { width: 40px; font-size: 1.4rem; }
.tf-qty-stepper--card button:hover,
.tf-qty-stepper--detail button:hover { background: var(--tf-green-50); color: var(--tf-green-700); }

.tf-qty-stepper__input {
  width: 44px; text-align: center;
  border: 0; border-inline: 1px solid var(--tf-line);
  background: transparent;
  font-family: var(--ff-body); font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.tf-qty-stepper--detail .tf-qty-stepper__input { width: 56px; font-size: 1.05rem; }
.tf-qty-stepper__input::-webkit-outer-spin-button,
.tf-qty-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tf-qty-stepper__input:focus { outline: none; }

/* Ürün kartı CTA: stepper + buton yan yana */
.tf-product__cta {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.tf-product__cta .btn { flex: 1; }

/* Profile son siparişler — tekrar sipariş butonu */
.tf-profile-order__reorder {
  background: transparent; border: 0;
  color: var(--tf-orange-700); font-size: 1.05rem;
  cursor: pointer; padding: 0 6px;
  transition: color var(--t-fast);
}
.tf-profile-order__reorder:hover { color: var(--tf-green-700); }

/* Menü kategori tab icon */
.tf-menu-tab {
  display: inline-flex; align-items: center; gap: 6px;
}
.tf-menu-tab__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; color: currentColor;
}
.tf-menu-tab__icon svg { width: 100%; height: 100%; }

/* Admin icon picker */
.tf-icon-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 8px;
}
.tf-icon-picker label {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  padding: 10px 6px; cursor: pointer;
  background: var(--tf-paper); border: 1.5px solid var(--tf-line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.tf-icon-picker label:hover { border-color: var(--tf-green); }
.tf-icon-picker input { position: absolute; opacity: 0; pointer-events: none; }
.tf-icon-picker input:checked + .tf-icon-picker__svg {
  color: var(--tf-orange-700);
}
.tf-icon-picker label:has(input:checked) {
  border-color: var(--tf-green); background: var(--tf-green-50);
}
.tf-icon-picker__svg {
  width: 32px; height: 32px;
  color: var(--tf-ink-2);
}
.tf-icon-picker__svg svg { width: 100%; height: 100%; }
.tf-icon-picker__name {
  font-size: 0.7rem; color: var(--tf-muted);
  letter-spacing: 0.02em;
}

/* Footer fix — min-height + tıklanabilir + responsive numara
   ÖNEMLİ: Sadece public layout. Admin layout (body.tf-admin) kendi grid'iyle çalışır. */
body:not(.tf-admin) { display: flex; flex-direction: column; min-height: 100vh; }
body:not(.tf-admin) main#main-content { flex: 1 0 auto; }
body:not(.tf-admin) .tf-footer { flex-shrink: 0; }

.tf-footer__contact { list-style: none; padding: 0; margin: 0; }
.tf-footer__contact li {
  font-size: 0.92rem; line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-word;
}
.tf-footer__contact a {
  color: inherit; text-decoration: none;
  transition: color var(--t-fast);
}
.tf-footer__contact a:hover { color: var(--tf-orange); text-decoration: none; }

/* Anasayfa — bugünün aktif siparişleri */
.tf-active-orders { padding-block: var(--sp-5); background: var(--tf-green-50); }
.tf-active-orders__head {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.tf-active-orders__title {
  font-family: var(--ff-display); font-size: 1.3rem; font-weight: 600;
  margin: 0; letter-spacing: -0.02em; color: var(--tf-green-700);
}
.tf-active-orders__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--tf-orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tf-orange) 30%, transparent);
  animation: tf-pulse 2s ease-in-out infinite;
}
.tf-active-orders__link {
  margin-left: auto;
  font-size: 0.88rem; color: var(--tf-green-700); font-weight: 500;
}
.tf-active-orders__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-3);
}
.tf-active-order {
  display: grid; grid-template-columns: 1fr auto auto; gap: var(--sp-3);
  align-items: center; padding: var(--sp-3) var(--sp-4);
  background: var(--tf-paper); border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  color: var(--tf-ink); text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.tf-active-order:hover {
  transform: translateY(-2px); text-decoration: none;
  border-color: var(--tf-green); box-shadow: var(--sh-1);
}
.tf-active-order__info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.tf-active-order__info strong {
  font-family: var(--ff-display); font-size: 0.95rem;
}
.tf-active-order__info span { font-size: 0.78rem; color: var(--tf-muted); }
.tf-active-order__total {
  font-family: var(--ff-display);
  font-variant-numeric: tabular-nums;
}

/* Sipariş değerlendirme formu */
.tf-review-form {
  background: var(--tf-paper);
  border: 1px solid var(--tf-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-top: var(--sp-5);
}
.tf-review-row { padding: var(--sp-4) 0; border-bottom: 1px solid var(--tf-line); }
.tf-review-row:last-of-type { border-bottom: 0; }
.tf-review-row__head { margin-bottom: var(--sp-3); }
.tf-review-row__head strong {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 1.1rem; color: var(--tf-ink);
}
.tf-review-row__head p { font-size: 0.86rem; color: var(--tf-muted); margin: 4px 0 0; }

.tf-star-input { display: inline-flex; gap: 4px; }
.tf-star {
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: #D8D2BC;
  transition: color var(--t-fast), transform var(--t-fast);
}
.tf-star:hover { transform: scale(1.15); }
.tf-star input { position: absolute; opacity: 0; pointer-events: none; }
.tf-star svg { width: 32px; height: 32px; fill: currentColor; }
.tf-star.is-active { color: #F4B400; }
