:root {
  --red: #e30613;
  --red-dark: #b8000a;
  --ink: #111113;
  --muted: #66676c;
  --line: #e5e5e7;
  --soft: #f6f6f7;
  --white: #fff;
  --green: #138a50;
  --amber: #d18a00;
  --shadow: 0 18px 50px rgba(17, 17, 19, .09);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
body.antialiased { background: #fff; color: #18181b; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, .button { cursor: pointer; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2, .page-hero h1, .admin-topbar h1, .portal-heading h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}
.section-heading p { max-width: 620px; margin: 8px 0 0; color: var(--muted); }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .2s ease;
}
.button:hover { transform: translateY(-1px); background: #2a2a2d; }
.button-red { border-color: var(--red); background: var(--red); }
.button-red:hover { background: var(--red-dark); }
.button-light { border-color: var(--line); background: var(--white); color: var(--ink); }
.button-danger { border-color: #ffd4d7; background: #fff3f4; color: var(--red); }
.button-small { min-height: 36px; padding: 0 12px; font-size: 10px; }
.button-full { width: 100%; }

.account-bar { background: #09090b; color: var(--white); }
.account-inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-links, .top-nav { display: flex; align-items: center; gap: 24px; }
.account-bar a { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.account-bar a:hover { color: #ff6c76; }
.main-nav { border-bottom: 1px solid var(--line); background: var(--white); position: relative; z-index: 20; }
.main-nav-inner { min-height: 78px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: auto; max-width: 190px; max-height: 54px; object-fit: contain; }
.brand span { font-size: 25px; font-style: italic; font-weight: 900; white-space: nowrap; }
.brand em { color: var(--red); font-style: inherit; }
.category-nav { display: flex; justify-content: center; gap: 26px; }
.category-nav a { font-size: 12px; font-weight: 900; text-transform: uppercase; }
.category-nav a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cart-button span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--white); }
.menu-toggle { display: none; border: 0; background: none; color: var(--white); font-size: 24px; }
.mobile-menu { display: none; }

.hero {
  min-height: 580px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #202024;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .68; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.13)); }
.hero-content { position: relative; z-index: 2; padding: 90px 0 70px; }
.hero-tag { display: inline-block; border-left: 4px solid var(--red); padding-left: 12px; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 18px 0; font-size: clamp(48px, 8vw, 96px); font-style: italic; font-weight: 900; letter-spacing: 0; line-height: .92; text-transform: uppercase; }
.hero p { max-width: 620px; color: #efeff0; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-empty { background: #171719; }

.product-grid, .news-grid, .branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card, .news-card, .branch-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover, .news-card:hover, .branch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image, .news-image, .branch-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ededee;
}
.product-content, .news-content, .branch-content { padding: 22px; }
.product-content h3, .news-content h3, .branch-content h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}
.product-content p, .news-content p, .branch-content p { margin: 0; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.price { color: var(--red); font-size: 20px; font-style: italic; font-weight: 900; }
.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #f0f0f2;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.badge-green { background: #e6f6ed; color: var(--green); }
.badge-red { background: #fff0f1; color: var(--red); }
.badge-amber { background: #fff7df; color: #8b5b00; }
.category-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.category-tile { min-height: 170px; display: grid; place-items: center; border-right: 1px solid var(--line); padding: 24px; text-align: center; }
.category-tile:last-child { border-right: 0; }
.category-tile strong { font-size: 18px; font-style: italic; text-transform: uppercase; }
.category-tile:hover { background: var(--ink); color: var(--white); }

.story-grid, .contact-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 54px; }
.story-copy h2 { margin: 0 0 18px; font-size: 34px; font-style: italic; font-weight: 900; line-height: 1; text-transform: uppercase; }
.story-copy p { color: #4f5055; font-size: 16px; }
.story-aside { border-left: 5px solid var(--red); padding-left: 26px; }
.story-aside strong { display: block; margin-bottom: 12px; font-size: 26px; font-style: italic; text-transform: uppercase; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-item { border-top: 4px solid var(--red); padding-top: 20px; }
.value-item h3 { margin: 0 0 10px; text-transform: uppercase; }

.page-hero { padding: 70px 0 42px; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-hero p { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.page-content { padding: 58px 0 80px; }
.content-narrow { width: min(calc(100% - 32px), 850px); margin-inline: auto; }
.article-image { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; margin-bottom: 32px; }
.article-body { color: #3e3e42; font-size: 17px; white-space: pre-line; }
.nutrition { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); }
.nutrition div { background: var(--white); padding: 18px; text-align: center; }
.nutrition strong { display: block; color: var(--red); font-size: 20px; }

.form-panel { border: 1px solid var(--line); border-radius: 8px; padding: 30px; background: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d9d9dc;
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  background: var(--white);
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(227,6,19,.08); }
.check-line { display: flex; align-items: center; gap: 10px; }
.check-line input { width: 18px; height: 18px; }
.auth-page { min-height: 70vh; display: grid; place-items: center; padding: 60px 16px; background: var(--soft); }
.auth-box { width: min(100%, 520px); border-top: 5px solid var(--red); border-radius: 8px; padding: 42px; background: var(--white); box-shadow: var(--shadow); }
.auth-box h1 { margin: 0; font-size: 38px; font-style: italic; text-align: center; text-transform: uppercase; }
.auth-box > p { margin: 8px 0 30px; color: var(--muted); text-align: center; }
.auth-links { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; font-weight: 800; }
.flash { width: min(calc(100% - 32px), var(--container)); margin: 14px auto 0; border: 1px solid; border-radius: 6px; padding: 12px 16px; font-weight: 700; }
.flash-success { border-color: #bde4ce; background: #edf9f2; color: #0e6d3d; }
.flash-error { border-color: #ffc8cc; background: #fff2f3; color: #a9000c; }
.flash-info { border-color: #c9dafa; background: #f1f6ff; color: #254b8f; }
.empty { display: grid; min-height: 190px; place-content: center; gap: 6px; border: 1px dashed #c9c9cc; border-radius: 8px; color: var(--muted); text-align: center; }
.empty strong { color: var(--ink); font-size: 20px; text-transform: uppercase; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.filter-bar input, .filter-bar select { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; background: var(--white); }
.branch-contact { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 18px; }
.cart-item img { width: 90px; height: 76px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.cart-item h3 { margin: 0; font-size: 17px; text-transform: uppercase; }
.quantity { display: inline-flex; align-items: center; gap: 8px; }
.quantity button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.order-summary { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 8px; padding: 24px; }
.summary-line { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.summary-total { font-size: 22px; font-weight: 900; }

.site-footer { padding: 58px 0 24px; background: #0d0d0f; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-grid h3 { margin: 0 0 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a, .footer-grid p { display: block; margin: 0 0 10px; color: #b9b9bd; font-size: 13px; }
.brand-footer { margin-bottom: 18px; }
.brand-footer span { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid #2a2a2e; margin-top: 35px; padding-top: 20px; color: #86868b; font-size: 12px; }

/* React arayüzünün klasik PHP tarafındaki etkileşim yardımcıları */
[data-site-header] { z-index: 50; }
[data-drawer] { z-index: 1000; }
[data-drawer].drawer-open { transform: translateX(0); }
[data-drawer-overlay] { z-index: 990; }
.home-slider-track { transition: transform .7s ease-in-out; }
.hero-shade {
  background:
    linear-gradient(to right, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%),
    linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%);
}
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.home-slider img,
[data-products-carousel] img,
.story-image-tall img,
.news-ratio img,
.news-detail-ratio img {
  object-position: center center;
}
.story-image-tall { height: 35rem; }
.nostalgia-board {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.nostalgia-word { font-size: 20vw; }
.pinned-photo-1 { rotate: -2deg; }
.pinned-photo-2 { rotate: 3deg; }
.pinned-photo-3 { rotate: -3deg; }
.pinned-photo-4 { rotate: 2deg; }
.pinned-photo:hover { rotate: 0deg; }
.cart-toast { z-index: 1100; animation: cart-toast-in .24s ease-out; }
.seo-copy { max-height: 96px; }
.seo-copy.expanded { max-height: 3000px; }
.seo-fade { background: linear-gradient(to top, rgba(249,249,250,1), rgba(249,249,250,0)); }
.nutrition-react > div { display: flex; align-items: center; justify-content: space-between; border: 1px solid #f4f4f5; border-radius: 1rem; padding: 1rem; background: #fafafa; }
.nutrition-react span { color: #a1a1aa; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.nutrition-react strong { color: #27272a; font-size: 12px; }
.news-ratio { padding-bottom: 60%; }
.news-detail-ratio { padding-bottom: 56.25%; }
.modern-field { display: flex; flex-direction: column; gap: .5rem; }
.modern-field > span { margin-left: .5rem; color: #a1a1aa; font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.modern-field input, .modern-field select, .modern-field textarea {
  width: 100%;
  border: 1px solid #f4f4f5;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  background: #fafafa;
  color: #18181b;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: .2s ease;
}
.modern-field input:focus, .modern-field select:focus, .modern-field textarea:focus { border-color: #dc2626; background: #fff; box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.auth-react-card { border-radius: 3rem; box-shadow: 0 25px 50px -12px rgba(161,161,170,.5); }
.auth-react-field { display: flex; flex-direction: column; gap: .5rem; }
.auth-react-field > span { margin-left: .5rem; color: #a1a1aa; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.auth-react-field input, .auth-react-field textarea {
  width: 100%;
  border: 2px solid transparent;
  border-radius: 1rem;
  padding: 1.1rem 1.5rem;
  background: #fafafa;
  color: #18181b;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.auth-react-field input:focus, .auth-react-field textarea:focus { border-color: #dc2626; background: #fff; box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.cart-list-react .cart-item { border: 1px solid #f4f4f5; border-radius: 1.5rem; padding: 1.5rem; background: #fafafa; }
.cart-list-react .cart-item small { display: block; margin: .25rem 0; color: #a1a1aa; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.cart-list-react .cart-item-unavailable { border-color: #fee2e2; opacity: .62; filter: grayscale(1); }
.menu-choice { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.menu-choice input { position: absolute; opacity: 0; pointer-events: none; }
.menu-choice span { width: 1rem; height: 1rem; display: grid; place-items: center; border: 2px solid #d4d4d8; border-radius: 999px; }
.menu-choice input:checked + span { border-color: #dc2626; }
.menu-choice input:checked + span::after { content: ""; width: .5rem; height: .5rem; border-radius: 999px; background: #dc2626; }
.menu-choice strong { color: #a1a1aa; font-size: 11px; font-style: italic; text-transform: uppercase; }
.menu-choice input:checked ~ strong { color: #18181b; }

/* Yönetim paneli: React projesindeki 256px kabuk */
.admin-sidebar { width: 256px; padding: 0; background: #09090b; border-right: 1px solid #27272a; box-shadow: 8px 0 30px rgba(0,0,0,.08); }
.admin-brand { padding: 24px 24px 18px; border-bottom: 0; }
.admin-brand a { display: block; }
.admin-brand strong { display: block; color: #fff; font-size: 24px; font-style: italic; line-height: 1; letter-spacing: 0; }
.admin-brand strong span { color: #dc2626; }
.admin-brand small { display: block; margin-top: 6px; color: #71717a; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.admin-sidebar nav { gap: 5px; margin: 10px 0 0; padding: 0 16px 20px; overflow-y: auto; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 11px 12px; color: #a1a1aa; font-size: 11px; letter-spacing: .04em; }
.admin-sidebar nav a:hover { background: #27272a; color: #fff; }
.admin-sidebar nav a.active { transform: translateX(4px); background: #dc2626; color: #fff; box-shadow: 0 8px 24px rgba(220,38,38,.22); }
.admin-nav-dot { width: 7px; height: 7px; flex: 0 0 auto; border: 2px solid currentColor; border-radius: 999px; }
.admin-sidebar nav a b { min-width: 22px; height: 22px; display: grid; place-items: center; margin-left: auto; border-radius: 7px; background: #fff; color: #dc2626; font-size: 10px; }
.admin-exit { margin: auto 16px 16px; border: 0; border-radius: 12px; padding: 13px; background: #18181b; color: #a1a1aa; text-align: center; }
.admin-exit:hover { background: #fff; color: #18181b; }
.admin-shell { margin-left: 256px; }
.admin-topbar { min-height: 64px; position: sticky; top: 0; z-index: 40; padding: 0 32px; box-shadow: 0 1px 8px rgba(0,0,0,.04); }
.admin-date { display: flex; align-items: center; gap: 9px; border: 1px solid #e4e4e7; border-radius: 999px; padding: 7px 14px; background: #fafafa; color: #52525b; font-size: 11px; text-transform: uppercase; }
.admin-user { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.admin-user > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: #dc2626; color: #fff; font-weight: 900; }
.admin-user div { display: flex; flex-direction: column; line-height: 1.1; }
.admin-user strong { color: #18181b; font-size: 11px; text-transform: uppercase; }
.admin-user small { margin-top: 4px; color: #a1a1aa; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-user a { margin-left: 8px; color: #dc2626; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.admin-page-title { border-bottom: 1px solid #e4e4e7; padding: 24px 32px; background: #fff; }
.admin-page-title p { margin: 0 0 5px; color: #dc2626; font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.admin-page-title h1 { margin: 0; color: #09090b; font-size: 30px; font-style: italic; font-weight: 900; line-height: 1; text-transform: uppercase; }

/* Kullanıcı / şube portalı */
.portal-body { background: #fafafa; }
.portal-main-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100% - 1180px) / 2)); border-bottom: 1px solid #e4e4e7; background: #fff; }
.portal-logo { color: #09090b; font-size: 25px; font-style: italic; font-weight: 900; letter-spacing: 0; }
.portal-logo span { color: #dc2626; }
.portal-main-header > div { display: flex; gap: 22px; }
.portal-main-header > div a { color: #52525b; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.portal-subnav { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 44px; position: sticky; top: 0; z-index: 30; background: rgba(9,9,11,.97); }
.portal-subnav a { height: 48px; display: flex; align-items: center; position: relative; color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.portal-subnav a.active { color: #dc2626; }
.portal-subnav a.active::after { content: ""; width: 32px; height: 3px; position: absolute; bottom: 0; left: 50%; translate: -50% 0; border-radius: 3px 3px 0 0; background: #dc2626; }
.portal-layout { width: min(calc(100% - 48px), 1180px); min-height: 70vh; display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; margin: 0 auto; padding: 48px 0 70px; }
.portal-profile { display: grid; gap: 22px; }
.portal-profile > section { overflow: hidden; border: 1px solid #f4f4f5; border-radius: 32px; padding: 32px; background: #fff; box-shadow: 0 18px 45px rgba(161,161,170,.16); }
.portal-profile > section::before { content: ""; display: block; height: 6px; margin: -32px -32px 28px; background: #dc2626; }
.portal-profile small { display: block; color: #a1a1aa; font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-identity { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.portal-identity > span { width: 54px; height: 54px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #f4f4f5; border-radius: 999px; background: #fafafa; color: #71717a; font-size: 20px; font-weight: 900; }
.portal-identity h2 { margin: 0 0 5px; overflow: hidden; color: #09090b; font-size: 17px; font-style: italic; font-weight: 900; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.portal-identity b { display: inline-block; border: 1px solid #fee2e2; border-radius: 999px; padding: 4px 9px; background: #fef2f2; color: #dc2626; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.portal-profile dl { display: grid; gap: 17px; border-top: 1px solid #f4f4f5; margin: 24px 0 0; padding-top: 22px; }
.portal-profile dt { margin-bottom: 4px; color: #a1a1aa; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.portal-profile dd { margin: 0; color: #3f3f46; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.portal-profile > nav { display: grid; gap: 7px; border-radius: 32px; padding: 28px; background: #09090b; box-shadow: 0 18px 45px rgba(9,9,11,.18); }
.portal-profile > nav small { margin-bottom: 12px; color: #71717a; }
.portal-profile > nav a { display: flex; align-items: center; justify-content: space-between; border-radius: 14px; padding: 14px; background: #18181b; color: #d4d4d8; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.portal-profile > nav a:hover { background: #27272a; color: #fff; }
.portal-profile > nav a.logout { justify-content: center; margin-top: 7px; background: rgba(255,255,255,.05); color: #ef4444; }
.portal-profile > nav a.logout:hover { background: #dc2626; color: #fff; }
.portal-main { min-width: 0; }

@media (max-width: 980px) {
  .admin-shell { margin-left: 0; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .admin-date, .admin-user div { display: none; }
  .admin-page-title { padding: 20px 16px; }
  .portal-main-header { min-height: 62px; padding: 0 16px; }
  .portal-main-header > div a:first-child { display: none; }
  .portal-subnav { justify-content: flex-start; gap: 28px; overflow-x: auto; padding: 0 20px; }
  .portal-layout { width: min(calc(100% - 24px), 1180px); padding-top: 28px; }
  .portal-profile { grid-template-columns: 1fr; }
}
@keyframes cart-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-body { background: #f3f3f5; }
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 26px 18px;
  background: #111113;
  color: var(--white);
  z-index: 50;
}
.admin-brand { padding: 0 10px 24px; border-bottom: 1px solid #303034; }
.admin-brand span { color: var(--white); font-size: 20px; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 22px; }
.admin-sidebar nav a { border-radius: 5px; padding: 10px 12px; color: #c9c9cd; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--red); color: var(--white); }
.admin-exit { margin-top: auto; border-top: 1px solid #303034; padding: 18px 12px 0; color: #ff8d94; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.admin-shell { min-height: 100vh; margin-left: 240px; }
.admin-topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 18px 32px; background: var(--white); }
.admin-topbar h1 { font-size: 30px; }
.admin-topbar > a { font-size: 12px; font-weight: 900; text-transform: uppercase; }
.icon-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.admin-content { padding: 30px 32px 60px; }
.admin-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 22px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { border-left: 5px solid var(--red); border-radius: 6px; padding: 22px; background: var(--white); box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.stat span { color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.stat strong { display: block; margin-top: 7px; font-size: 32px; font-style: italic; }
.admin-panel { border-radius: 8px; padding: 24px; background: var(--white); box-shadow: 0 6px 20px rgba(0,0,0,.04); }
.admin-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 13px 14px; text-align: left; vertical-align: middle; }
th { background: #f5f5f6; color: #57575c; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; gap: 7px; }
.thumb { width: 56px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--soft); }
.inline-form { display: inline; }
.status-select { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.media-item { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); }
.media-item img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.media-item div { padding: 10px; font-size: 11px; overflow-wrap: anywhere; }

.portal-body { background: #f4f4f5; }
.portal-header { background: #111113; color: var(--white); }
.portal-header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-header nav { display: flex; gap: 22px; }
.portal-header nav a, .portal-header-inner > a:last-child { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.portal-content { min-height: 70vh; padding-top: 36px; padding-bottom: 70px; }
.portal-heading { margin-bottom: 24px; }
.portal-heading h1 { font-size: 36px; }

@media (max-width: 980px) {
  .top-nav, .category-nav, .franchise-button { display: none; }
  .account-inner { justify-content: space-between; }
  .menu-toggle { display: block; }
  .main-nav-inner { grid-template-columns: 1fr auto; }
  .nav-actions { justify-self: end; }
  .mobile-menu {
    position: fixed;
    inset: 40px 0 0;
    z-index: 100;
    overflow-y: auto;
    padding: 24px;
    background: var(--white);
  }
  .mobile-menu.open { display: grid; align-content: start; gap: 0; }
  .mobile-menu a { border-bottom: 1px solid var(--line); padding: 14px 4px; font-size: 13px; font-weight: 900; text-transform: uppercase; }
  .product-grid, .news-grid, .branch-grid { grid-template-columns: repeat(2, 1fr); }
  .category-strip { grid-template-columns: repeat(2, 1fr); }
  .category-tile { border-bottom: 1px solid var(--line); }
  .story-grid, .contact-grid, .detail-grid, .cart-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-shell { margin-left: 0; }
  .icon-button { display: block; }
  .admin-grid { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .account-links { gap: 14px; }
  .account-bar a { font-size: 10px; }
  .main-nav-inner { min-height: 68px; }
  .brand span { font-size: 20px; }
  .cart-button { font-size: 0; }
  .cart-button span { font-size: 10px; }
  .hero { min-height: 500px; }
  .hero-content { padding: 72px 0 50px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 15px; }
  .section { padding: 54px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-grid, .news-grid, .branch-grid, .value-grid, .footer-grid, .stat-grid { grid-template-columns: 1fr; }
  .category-strip { grid-template-columns: 1fr; }
  .category-tile { min-height: 92px; border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .form-panel, .auth-box { padding: 22px; }
  .auth-box h1 { font-size: 32px; }
  .page-hero { padding: 52px 0 32px; }
  .page-hero h1 { font-size: 38px; }
  .nutrition { grid-template-columns: repeat(2, 1fr); }
  .cart-item { grid-template-columns: 66px 1fr; }
  .cart-item img { width: 66px; height: 62px; }
  .cart-item > :last-child { grid-column: 2; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 8px; }
  .admin-topbar, .admin-content { padding-left: 16px; padding-right: 16px; }
  .admin-topbar h1 { font-size: 23px; }
  .admin-topbar > a { display: none; }
  .admin-actions { align-items: stretch; flex-direction: column; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .portal-header-inner { min-height: 64px; }
  .portal-header nav { display: none; }
}
