:root {
  --ink: #211a2b;
  --muted: #6d6575;
  --purple: #31157b;
  --purple-deep: #24105e;
  --purple-soft: #eee8ff;
  --cream: #fbf8f2;
  --paper: #ffffff;
  --line: #e9e1ef;
  --orange: #f28a23;
  --green: #168447;
  --shadow: 0 18px 55px rgba(49, 21, 123, 0.1);
}

/* Evo Story görünümü — v5 */
body:not(.admin-shell) {
  background:
    radial-gradient(circle at 92% 5%, rgba(116, 63, 192, 0.36), transparent 28rem),
    radial-gradient(circle at 5% 22%, rgba(242, 138, 35, 0.16), transparent 22rem),
    linear-gradient(180deg, #1d093e 0, #2b0c59 560px, #f7f2fb 980px, #fbf8f2 100%);
}

body:not(.admin-shell) .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(29, 9, 62, 0.82);
  box-shadow: 0 12px 36px rgba(17, 5, 39, 0.24);
}

body:not(.admin-shell) .brand img {
  padding: 5px;
  border-radius: 50%;
  background: #fff;
}

body:not(.admin-shell) .brand strong,
body:not(.admin-shell) .brand small {
  color: #fff;
}

body:not(.admin-shell) .brand small {
  color: rgba(255, 255, 255, 0.7);
}

body:not(.admin-shell) .quick-links a {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

body:not(.admin-shell) .quick-links .whatsapp-link {
  border-color: rgba(242, 138, 35, 0.72);
  background: var(--orange);
  color: #281047;
}

body:not(.admin-shell) .coffee-origin-note {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

body:not(.admin-shell) .coffee-origin-note strong,
body:not(.admin-shell) .hero h1 {
  color: #fff;
}

body:not(.admin-shell) .hero-copy > p {
  color: rgba(255, 255, 255, 0.74);
}

body:not(.admin-shell) .menu-search {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(13, 4, 35, 0.32);
  backdrop-filter: blur(16px);
}

body:not(.admin-shell) .menu-search label {
  color: #fff;
}

body:not(.admin-shell) .search-field {
  border-color: rgba(255, 255, 255, 0.26);
  background: #fff;
}

body:not(.admin-shell) .category-home {
  padding-top: 54px;
}

body:not(.admin-shell) .category-home-heading .eyebrow {
  color: #ff9f31;
}

body:not(.admin-shell) .category-card {
  border: 0;
  box-shadow: 0 16px 42px rgba(38, 13, 77, 0.14);
}

body:not(.admin-shell) .category-card:nth-child(3n+1) .category-card-content {
  border-top: 5px solid #f28a23;
}

body:not(.admin-shell) .category-card:nth-child(3n+2) .category-card-content {
  border-top: 5px solid #6d3fc0;
}

body:not(.admin-shell) .category-card:nth-child(3n) .category-card-content {
  border-top: 5px solid #d95f87;
}

body:not(.admin-shell) .category-card-content b {
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff2e3;
}

body:not(.admin-shell) .product-card {
  border: 0;
  box-shadow: 0 13px 35px rgba(39, 15, 76, 0.11);
}

body:not(.admin-shell) .product-title-row b {
  padding: 6px 9px;
  border-radius: 10px;
  background: #fff1e1;
}

body:not(.admin-shell) .menu-note {
  border: 0;
  background: linear-gradient(135deg, #29105d, #4a1b85);
  box-shadow: 0 20px 55px rgba(36, 16, 94, 0.2);
}

body:not(.admin-shell) .menu-note h2,
body:not(.admin-shell) .menu-note > p {
  color: #fff;
}

body:not(.admin-shell) .menu-note > p {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 720px) {
  body:not(.admin-shell) {
    background: linear-gradient(180deg, #1d093e 0, #2b0c59 620px, #f7f2fb 880px, #fbf8f2 100%);
  }

  body:not(.admin-shell) .header-inner {
    min-height: 78px;
  }

  body:not(.admin-shell) .brand img {
    width: 54px;
    height: 54px;
  }

  body:not(.admin-shell) .quick-links a {
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  body:not(.admin-shell) .hero {
    padding-top: 32px;
  }

  body:not(.admin-shell) .hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 138, 35, 0.1), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: var(--font-geist-sans), "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(49, 21, 123, 0.08);
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 66px;
  height: 60px;
  object-fit: contain;
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  color: var(--purple);
  font-size: 1.02rem;
}

.brand small {
  color: var(--muted);
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quick-links a {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--purple);
  font-size: 0.9rem;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease;
}

.quick-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(49, 21, 123, 0.38);
}

.quick-links .whatsapp-link {
  border-color: rgba(22, 132, 71, 0.28);
  color: var(--green);
}

.coffee-origin-note {
  width: min(1180px, calc(100% - 32px));
  min-height: 48px;
  margin: 18px auto 0;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(49, 21, 123, 0.12);
  border-radius: 16px;
  background: linear-gradient(90deg, #ffffff, #f6f1ff, #ffffff);
  color: var(--muted);
  box-shadow: 0 8px 24px rgba(49, 21, 123, 0.05);
  text-align: center;
}

.coffee-origin-note > span {
  color: var(--orange);
  font-size: 1.05rem;
}

.coffee-origin-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.coffee-origin-note strong {
  color: var(--purple);
  font-weight: 800;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  max-width: 780px;
  margin: 14px 0 16px;
  color: var(--purple-deep);
  font-size: clamp(2.5rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.menu-search {
  padding: 24px;
  border: 1px solid rgba(49, 21, 123, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.menu-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--cream);
}

.search-field > span {
  color: var(--purple);
  font-size: 1.7rem;
  line-height: 1;
  transform: rotate(-18deg);
}

.search-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #938a9c;
}

.search-field button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  cursor: pointer;
}

.category-home {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 74px;
}

.category-home-heading {
  margin-bottom: 30px;
  text-align: center;
}

.category-home-heading h2 {
  margin: 10px 0 9px;
  color: var(--purple-deep);
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.category-home-heading p {
  margin: 0;
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(49, 21, 123, 0.1);
  border-radius: 25px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 9px 28px rgba(49, 21, 123, 0.06);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(49, 21, 123, 0.28);
  box-shadow: var(--shadow);
}

.category-card:focus-visible {
  outline: 3px solid rgba(242, 138, 35, 0.55);
  outline-offset: 3px;
}

.category-card-image {
  position: relative;
  aspect-ratio: 1.14;
  overflow: hidden;
  display: block;
  background: #f1ebf4;
}

.category-card-image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(20, 10, 40, 0.55));
}

.category-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-card:hover .category-card-image img {
  transform: scale(1.045);
}

.category-card-image > span {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.05rem;
  box-shadow: 0 6px 18px rgba(20, 10, 40, 0.18);
}

.category-card-content {
  padding: 17px 18px 19px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px 12px;
}

.category-card-content strong {
  min-width: 0;
  min-height: 2.45em;
  color: var(--purple-deep);
  font-size: 1.06rem;
  line-height: 1.22;
}

.category-card-content small {
  color: var(--muted);
  font-weight: 650;
}

.category-card-content b {
  grid-column: 1 / -1;
  margin-top: 7px;
  color: var(--orange);
  font-size: 0.78rem;
}

.category-dock {
  position: sticky;
  top: 0;
  z-index: 15;
  border-block: 1px solid rgba(49, 21, 123, 0.1);
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(18px);
}

.category-scroll {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-scroll button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.category-scroll button:hover {
  border-color: rgba(49, 21, 123, 0.35);
  color: var(--purple);
}

.category-scroll button.active {
  border-color: var(--purple);
  background: var(--purple);
  color: #fff;
}

.category-scroll .back-category-button {
  border-color: rgba(242, 138, 35, 0.35);
  background: #fff8ef;
  color: #b65c0c;
}

.menu-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

.section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.menu-note h2 {
  margin: 8px 0 0;
  color: var(--purple-deep);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
  border: 1px solid rgba(49, 21, 123, 0.1);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(49, 21, 123, 0.05);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(49, 21, 123, 0.28);
  box-shadow: var(--shadow);
}

.product-card:focus-visible {
  outline: 3px solid rgba(242, 138, 35, 0.55);
  outline-offset: 3px;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  display: block;
  background: #f3edf6;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.035);
}

.product-category {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(36, 16, 94, 0.88);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.product-body {
  min-width: 0;
  padding: 17px;
  display: grid;
  gap: 10px;
}

.product-title-row {
  min-width: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-title-row strong {
  min-width: 0;
  color: var(--purple-deep);
  font-size: 1rem;
  line-height: 1.3;
}

.product-title-row b {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 1rem;
  white-space: nowrap;
}

.product-description {
  min-height: 2.9em;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-detail-link {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 750;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calorie-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4efff;
  color: var(--purple);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  min-height: 360px;
  padding: 48px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.empty-state > span {
  font-size: 3rem;
}

.empty-state h3 {
  margin: 16px 0 4px;
  color: var(--purple-deep);
  font-size: 1.4rem;
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--muted);
}

.empty-state button {
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.menu-note {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
  padding: 38px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 54px;
  border: 1px solid rgba(49, 21, 123, 0.1);
  border-radius: 30px;
  background: linear-gradient(135deg, #ffffff, #f4efff);
}

.menu-note h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.menu-note > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  padding: 42px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--purple-deep);
  color: #fff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 72px;
  height: 66px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer strong {
  display: block;
  margin-bottom: 7px;
}

.site-footer p,
.site-footer a {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.product-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(20, 10, 40, 0.68);
  backdrop-filter: blur(8px);
  animation: fade-in 160ms ease-out;
}

.product-modal {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 32px 90px rgba(18, 7, 52, 0.28);
}

.product-modal > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: #f1ebf4;
}

.modal-content {
  padding: 46px 38px;
  align-self: center;
}

.modal-title-row {
  margin: 14px 0 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.modal-title-row h2 {
  margin: 0;
  color: var(--purple-deep);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.modal-title-row > strong {
  color: var(--orange);
  font-size: 1.25rem;
  white-space: nowrap;
}

.modal-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lavazza-note {
  margin-top: 24px;
  padding: 13px 15px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: 0.84rem;
  font-weight: 700;
}

.nutrition-note {
  margin-top: 20px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(242, 138, 35, 0.22);
  border-radius: 14px;
  background: #fff8ef;
}

.nutrition-note span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nutrition-note strong {
  color: var(--orange);
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(49, 21, 123, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--purple);
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 32px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 78px;
  }

  .brand img {
    width: 52px;
    height: 48px;
  }

  .quick-links a:first-child {
    display: none;
  }

  .quick-links a {
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 38px 0 28px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.75rem);
  }

  .menu-search {
    padding: 18px;
    border-radius: 22px;
  }

  .category-scroll,
  .category-home,
  .menu-section,
  .hero,
  .header-inner,
  .coffee-origin-note,
  .menu-note {
    width: min(100% - 24px, 1180px);
  }

  .category-home {
    padding: 18px 0 48px;
  }

  .category-home-heading {
    margin-bottom: 22px;
  }

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

  .category-card {
    border-radius: 18px;
  }

  .category-card-image {
    aspect-ratio: 1;
  }

  .category-card-content {
    padding: 13px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .category-card-content strong {
    font-size: 0.92rem;
  }

  .category-card-content small {
    font-size: 0.72rem;
  }

  .category-card-content b {
    display: none;
  }

  .coffee-origin-note {
    margin-top: 12px;
    padding: 10px 13px;
    border-radius: 14px;
  }

  .coffee-origin-note p {
    font-size: 0.78rem;
  }

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

  .product-card {
    border-radius: 18px;
  }

  .product-body {
    padding: 13px;
  }

  .product-title-row {
    display: grid;
    gap: 6px;
  }

  .product-title-row b {
    grid-row: 2;
  }

  .product-description {
    min-height: 2.7em;
    font-size: 0.75rem;
  }

  .product-card-footer {
    align-items: start;
    flex-direction: column;
  }

  .product-category {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    padding: 6px 8px;
  }

  .menu-note {
    padding: 28px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .site-footer {
    padding: 36px 24px;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-modal-backdrop {
    padding: 0;
    place-items: end stretch;
  }

  .product-modal {
    width: 100%;
    max-height: 92dvh;
    grid-template-columns: 1fr;
    border-radius: 28px 28px 0 0;
  }

  .product-modal > img {
    height: min(46dvh, 390px);
    min-height: 0;
  }

  .modal-content {
    padding: 28px 22px 34px;
  }

  .modal-title-row {
    gap: 16px;
  }
}

@media (max-width: 430px) {
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card-image {
    aspect-ratio: 1.45;
  }
}

@media (max-width: 390px) {
  .brand strong {
    font-size: 0.9rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .product-title-row strong,
  .product-title-row b {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Yönetici paneli */
.admin-shell {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 138, 35, 0.13), transparent 25rem),
    #f7f4fa;
}

.admin-header {
  min-height: 82px;
  padding: 12px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(49, 21, 123, 0.1);
  background: #fff;
}

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

.admin-brand img {
  width: 54px;
  height: 50px;
  object-fit: contain;
}

.admin-brand span {
  display: grid;
  gap: 2px;
}

.admin-brand strong {
  color: var(--purple);
}

.admin-brand small,
.admin-user > span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-user a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 700;
}

.admin-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.admin-title-row {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.admin-title-row h1 {
  margin: 12px 0 8px;
  color: var(--purple-deep);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.admin-title-row p {
  margin: 0;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--purple);
}

.admin-toolbar {
  margin-bottom: 18px;
  padding: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(49, 21, 123, 0.1);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(49, 21, 123, 0.05);
}

.admin-toolbar label {
  flex: 1;
}

.admin-toolbar label > span,
.admin-modal label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-toolbar input,
.admin-modal input,
.admin-modal textarea,
.admin-modal select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.admin-modal textarea {
  min-height: 105px;
  resize: vertical;
}

.admin-toolbar input:focus,
.admin-modal input:focus,
.admin-modal textarea:focus,
.admin-modal select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(49, 21, 123, 0.1);
}

.admin-stats {
  display: flex;
  gap: 12px;
}

.admin-stats span {
  min-width: 90px;
  padding: 9px 14px;
  display: grid;
  gap: 2px;
  border-radius: 14px;
  background: var(--purple-soft);
  color: var(--muted);
  font-size: 0.74rem;
}

.admin-stats strong {
  color: var(--purple);
  font-size: 1.1rem;
}

.admin-alert {
  margin: 14px 0;
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 650;
}

.admin-alert.success {
  border: 1px solid rgba(22, 132, 71, 0.22);
  background: #eaf8ef;
  color: #116d3b;
}

.admin-alert.error {
  border: 1px solid rgba(177, 42, 42, 0.2);
  background: #fff0f0;
  color: #9b2020;
}

.admin-loading {
  padding: 64px 24px;
  color: var(--muted);
  text-align: center;
}

.admin-product-list {
  display: grid;
  gap: 9px;
}

.admin-product-row {
  min-width: 0;
  padding: 10px 12px 10px 10px;
  display: grid;
  grid-template-columns: 72px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(49, 21, 123, 0.09);
  border-radius: 18px;
  background: #fff;
}

.admin-product-row.inactive {
  opacity: 0.58;
}

.admin-product-row > img {
  width: 72px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: #eee7f4;
}

.admin-product-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-product-main strong {
  overflow: hidden;
  color: var(--purple-deep);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-main span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-product-row > b {
  color: var(--orange);
  white-space: nowrap;
}

.admin-row-actions {
  display: flex;
  gap: 7px;
}

.admin-row-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.admin-row-actions button.danger {
  color: #a02a2a;
}

.admin-row-actions button.publish {
  color: var(--green);
}

.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(20, 10, 40, 0.68);
  backdrop-filter: blur(8px);
}

.admin-modal {
  width: min(650px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 30px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(18, 7, 52, 0.3);
}

.admin-modal-heading {
  margin-bottom: 24px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-modal-heading h2 {
  margin: 9px 0 0;
  color: var(--purple-deep);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.admin-modal-heading > button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--purple);
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-modal form {
  display: grid;
  gap: 17px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 14px;
}

.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.admin-checkbox input {
  width: 20px;
  min-height: 20px;
}

.admin-checkbox > span {
  margin: 0 !important;
  color: var(--ink) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.admin-form-actions {
  padding-top: 7px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-user form,
.admin-row-actions form {
  margin: 0;
}

.admin-link-button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #9b2020;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.login-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid rgba(49, 21, 123, 0.1);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card > img {
  width: 82px;
  height: 76px;
  margin-bottom: 22px;
  object-fit: contain;
}

.login-card h1 {
  margin: 12px 0 10px;
  color: var(--purple-deep);
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.login-card form {
  display: grid;
  gap: 16px;
}

.login-card label > span,
.password-panel label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-card input,
.password-panel input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.login-card input:focus,
.password-panel input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(49, 21, 123, 0.1);
}

.back-link {
  margin-top: 22px;
  display: inline-block;
  color: var(--purple);
  font-size: 0.86rem;
  font-weight: 700;
}

.password-panel {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(49, 21, 123, 0.1);
  border-radius: 18px;
  background: #fff;
}

.password-panel summary {
  color: var(--purple);
  font-weight: 800;
  cursor: pointer;
}

.password-panel form {
  max-width: 640px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}

@media (max-width: 720px) {
  .admin-header {
    min-height: 72px;
    padding-inline: 14px;
  }

  .admin-brand img {
    width: 44px;
    height: 42px;
  }

  .admin-user > span,
  .admin-user a:last-child {
    display: none;
  }

  .admin-content {
    width: min(100% - 24px, 1180px);
    padding-top: 34px;
  }

  .admin-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-title-row .primary-button {
    width: 100%;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-product-row {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .admin-product-row > img {
    width: 62px;
    height: 58px;
  }

  .admin-product-row > b {
    align-self: start;
  }

  .admin-row-actions {
    grid-column: 2 / -1;
  }

  .admin-row-actions button {
    flex: 1;
  }

  .admin-modal-backdrop {
    padding: 0;
    place-items: end stretch;
  }

  .admin-modal {
    width: 100%;
    max-height: 94dvh;
    padding: 26px 20px 30px;
    border-radius: 26px 26px 0 0;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 30px 24px;
    border-radius: 24px;
  }

  .password-panel form {
    grid-template-columns: 1fr;
  }
}

/* Kampanya alanı — v6 */
.campaign-showcase {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 30px;
}

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

.campaign-heading h2 {
  margin: 9px 0 7px;
  color: #fff;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.campaign-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.campaign-swipe-hint {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
}

.campaign-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  padding: 2px 2px 18px;
  overflow: visible;
}

.campaign-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(12, 4, 31, 0.28);
}

.campaign-poster-button {
  width: 100%;
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.campaign-poster-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f2edf7;
}

.campaign-poster-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  transition: transform 220ms ease;
}

.campaign-card:hover .campaign-poster-wrap img {
  transform: scale(1.015);
}

.campaign-open-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(36, 16, 94, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 7px 20px rgba(20, 7, 50, 0.22);
}

.campaign-card-copy {
  min-height: 102px;
  padding: 16px 17px 18px;
  display: grid;
  gap: 6px;
}

.campaign-card-copy strong {
  color: var(--purple-deep);
  font-size: 1rem;
  line-height: 1.25;
}

.campaign-card-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.campaign-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: auto;
  background: rgba(13, 4, 34, 0.82);
  backdrop-filter: blur(12px);
}

.campaign-modal {
  position: relative;
  width: min(880px, 100%);
  max-height: calc(100dvh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.6fr);
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(8, 2, 24, 0.42);
}

.campaign-modal-image-wrap {
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  background: #eee8f4;
}

.campaign-modal-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 48px);
  display: block;
  object-fit: contain;
  background: #fff;
}

.campaign-modal-content {
  padding: 42px 34px 34px;
  align-self: center;
}

.campaign-modal-content h2 {
  margin: 12px 0 14px;
  color: var(--purple-deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.campaign-modal-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.campaign-modal-link {
  width: max-content;
  max-width: 100%;
  margin-top: 24px;
  padding: 12px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
}

/* Yönetim paneli kampanya modülü */
.admin-title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.campaign-admin-help {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.campaign-admin-help strong {
  color: var(--purple-deep);
}

.campaign-admin-help span {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-campaign-list {
  display: grid;
  gap: 12px;
}

.admin-campaign-row {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(49, 21, 123, 0.09);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(49, 21, 123, 0.04);
}

.admin-campaign-row.inactive {
  opacity: 0.72;
}

.admin-campaign-thumb {
  width: 94px;
  height: 118px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f0eaf5;
}

.admin-campaign-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.admin-campaign-thumb.empty {
  border: 1px dashed #cfc4d7;
  color: #8a8091;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.admin-campaign-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-campaign-main strong {
  color: var(--purple-deep);
  font-size: 1rem;
}

.admin-campaign-main > span,
.admin-campaign-main small {
  color: var(--muted);
  line-height: 1.45;
}

.admin-campaign-main > span {
  font-size: 0.82rem;
}

.admin-campaign-main small {
  font-size: 0.72rem;
  font-weight: 650;
}

.admin-campaign-main em {
  color: #a45b18;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.campaign-actions {
  max-width: 280px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.campaign-actions form {
  display: contents;
}

.campaign-date-grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 760px) {
  .campaign-showcase {
    width: calc(100% - 24px);
    padding-top: 8px;
  }

  .campaign-heading {
    align-items: start;
  }

  .campaign-heading h2 {
    font-size: 2.25rem;
  }

  .campaign-heading p {
    max-width: 300px;
    font-size: 0.84rem;
  }

  .campaign-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-right: 0;
    padding-right: 0;
  }

  .campaign-card {
    border-radius: 18px;
  }

  .campaign-open-chip {
    right: 8px;
    bottom: 8px;
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  .campaign-card-copy {
    min-height: 88px;
    padding: 12px 12px 14px;
  }

  .campaign-card-copy strong {
    font-size: 0.9rem;
  }

  .campaign-card-copy small {
    font-size: 0.72rem;
  }

  .campaign-modal-backdrop {
    padding: 0;
    place-items: end stretch;
  }

  .campaign-modal {
    width: 100%;
    max-height: 96dvh;
    grid-template-columns: 1fr;
    overflow-y: auto;
    border-radius: 26px 26px 0 0;
  }

  .campaign-modal-image-wrap img {
    width: 100%;
    height: auto;
    max-height: 68dvh;
  }

  .campaign-modal-content {
    padding: 25px 20px 30px;
  }

  .campaign-modal-content h2 {
    font-size: 2rem;
  }

  .admin-title-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-title-actions .primary-button,
  .admin-title-actions .secondary-button {
    width: 100%;
  }

  .admin-campaign-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .admin-campaign-thumb {
    width: 76px;
    height: 96px;
  }

  .campaign-actions {
    grid-column: 1 / -1;
    max-width: none;
    justify-content: stretch;
  }

  .campaign-actions button {
    flex: 1;
  }

  .campaign-date-grid {
    grid-template-columns: 1fr;
  }
}



/* Kampanya kartları — v7: kaydırmasız, ekrana uyumlu */
@media (max-width: 380px) {
  .campaign-track {
    gap: 10px;
  }

  .campaign-card-copy {
    min-height: 82px;
    padding: 10px;
  }

  .campaign-card-copy strong {
    font-size: 0.84rem;
  }

  .campaign-card-copy small {
    font-size: 0.68rem;
  }
}
