:root {
  color-scheme: light;
  --ink: #1d1d22;
  --muted: #6d6470;
  --soft: #f7f1e8;
  --paper: #fffdfa;
  --line: #ded4c8;
  --brand: #d65f41;
  --brand-dark: #9f3d2d;
  --mint: #87c7ad;
  --sky: #9ec5df;
  --violet: #8a7ab8;
  --warn: #fbf0cc;
  --danger: #f7dad5;
  --shadow: 0 18px 50px rgba(58, 43, 33, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(243, 167, 184, 0.34), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(135, 199, 173, 0.28), transparent 22%),
    linear-gradient(90deg, #fff4f6 0 15%, #eef6f2 15% 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

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

video {
  background: #f4ece4;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.app-shell {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.92);
  padding: 24px;
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ead8c8;
  box-shadow: 0 10px 22px rgba(92, 9, 39, 0.12);
  color: white;
  font-weight: 900;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.mobile-brand strong {
  display: block;
  font-size: 1.1rem;
}

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

.panel-nav {
  display: grid;
  gap: 8px;
  margin: 34px 0;
}

.panel-nav a {
  border-radius: 8px;
  color: var(--muted);
  padding: 12px 14px;
  text-decoration: none;
}

.panel-nav a:hover,
.panel-nav a.active {
  background: #f2e6da;
  color: var(--brand-dark);
}

.panel-nav .control-panel-link {
  border: 1px solid #f1c9b9;
  background: #fff7f2;
  color: #9f3d2d;
  font-weight: 900;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  margin-bottom: 14px;
}

.side-card p,
.side-card small {
  color: var(--muted);
  line-height: 1.5;
}

.side-card.compact {
  display: grid;
  gap: 8px;
}

.touch-game-pad {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-areas:
    ". up ."
    "left down right";
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.touch-game-pad button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(92, 9, 39, 0.08);
  touch-action: manipulation;
}

.touch-game-pad button:active {
  transform: scale(0.94);
  background: #f8e8df;
}

.touch-game-pad [data-game-dir="up"] {
  grid-area: up;
}

.touch-game-pad [data-game-dir="left"] {
  grid-area: left;
}

.touch-game-pad [data-game-dir="down"] {
  grid-area: down;
}

.touch-game-pad [data-game-dir="right"] {
  grid-area: right;
}

main {
  min-width: 0;
  padding: 0 32px 42px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  background: rgba(238, 246, 242, 0.78);
}

.mobile-brand {
  display: none;
}

.quick-search {
  display: grid;
  gap: 6px;
}

.quick-search label,
label {
  color: #3f3840;
  font-weight: 750;
}

.quick-search input,
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8ccc0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214, 95, 65, 0.15);
}

.top-actions,
.hero-actions,
.contact-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 16px;
}

.primary-button {
  background: var(--brand);
  color: white;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.ghost-button {
  border-color: var(--line);
  background: #fffaf4;
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.7fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 44px clamp(42px, 4.8vw, 76px) 52px;
}

.hero-copy {
  max-width: 900px;
  padding-left: clamp(8px, 1.8vw, 28px);
}

.hero-copy h1 {
  max-width: 820px;
  margin: 14px 0 16px;
  font-size: clamp(2.7rem, 5.7vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #fff;
  object-fit: contain;
  padding: 18px;
}

.snowfall-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.snowflake-particle {
  position: absolute;
  left: var(--snow-x);
  top: var(--snow-y);
  width: var(--snow-size);
  height: var(--snow-size);
  border-radius: 999px;
  background: rgba(240, 252, 255, 0.96);
  border: 1px solid rgba(112, 180, 205, 0.72);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 18px rgba(107, 180, 210, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--snow-rotate)) scale(0.8);
  animation: snowfallDrift var(--snow-duration) ease-in-out var(--snow-delay) forwards;
}

.snowflake-particle::before,
.snowflake-particle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--snow-size) * 1.6);
  height: 1px;
  border-radius: 999px;
  background: rgba(236, 250, 255, 0.92);
  transform: translate(-50%, -50%) rotate(45deg);
}

.snowflake-particle::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.product-card.is-snowing {
  box-shadow:
    0 0 0 2px rgba(173, 218, 235, 0.48),
    0 16px 32px rgba(58, 43, 33, 0.1);
}

@keyframes snowfallDrift {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--snow-rotate)) scale(0.7);
  }

  18% {
    opacity: var(--snow-opacity);
  }

  78% {
    opacity: calc(var(--snow-opacity) * 0.82);
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--snow-dx)), calc(-50% + var(--snow-dy))) rotate(calc(var(--snow-rotate) + 90deg)) scale(0.45);
  }
}

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

  .snowflake-particle {
    animation-duration: 900ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .site-effect-particle {
    animation-duration: 2600ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  .site-effect-layer::before {
    transition-duration: 90ms !important;
  }
}

.welcome-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 22px;
}

.welcome-board,
.mini-game-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.welcome-board {
  display: grid;
  gap: 14px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 235, 0.92)),
    linear-gradient(120deg, #f3a7b8, #ffd56b 45%, #87c7ad);
  padding: 24px;
}

.welcome-board::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -42px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(214, 95, 65, 0.12);
}

.welcome-board h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.welcome-board p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.welcome-actions,
.game-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.soft-badge {
  border: 1px solid #f2bdc8;
  border-radius: 999px;
  background: #fff0f4;
  color: #994051;
  font-weight: 850;
  padding: 10px 14px;
}

.mini-game-card {
  display: grid;
  gap: 10px;
  align-content: start;
  background: #fffdfa;
  padding: 16px;
}

.mini-game-card h3 {
  margin: 4px 0 0;
}

.mini-game-card canvas {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #ead5d9;
  border-radius: 8px;
  background: #fff8ee;
}

.eyebrow {
  color: #74677d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.trust-strip div,
.section-block,
.product-card,
.review-form,
.review-card,
.admin-form,
.admin-card,
.cart-dialog,
.request-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 12px 34px rgba(58, 43, 33, 0.08);
}

.trust-strip div {
  padding: 18px;
}

.trust-strip strong {
  display: block;
  font-size: 1.55rem;
}

.trust-strip span {
  color: var(--muted);
}

.section-block {
  scroll-margin-top: 90px;
  margin: 22px 0;
  padding: 24px;
  content-visibility: auto;
  contain-intrinsic-size: 640px;
}

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

.section-heading h2,
.split-section h2,
.contact-band h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-bar label,
.admin-form label,
.admin-card label,
.request-form label,
.review-form label {
  display: grid;
  gap: 7px;
}

#priceLabel {
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-layout {
  display: block;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.page-button {
  min-width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.page-button.active {
  background: var(--ink);
  color: #fffdfa;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.product-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
  contain: layout paint;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease;
}

.product-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
}

.product-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214, 95, 65, 0.16);
}

.product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2e6da;
  object-fit: cover;
}

.product-media-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.product-body {
  padding: 16px;
}

.gallery-meta {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.gallery-meta span,
.gallery-meta .metric-button {
  min-height: 38px;
  text-align: center;
}

.product-sales-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 10px 12px;
}

.product-sales-actions .mini-button {
  justify-content: center;
  text-align: center;
}

.missing-link {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  padding: 9px 10px;
  text-align: center;
}

.tag-row,
.card-actions,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  border-radius: 999px;
  background: #f5e8d5;
  color: #744536;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 9px;
}

.stock-ready {
  background: #dff5e9;
  color: #16704a;
}

.stock-custom {
  background: var(--warn);
  color: #8a5b00;
}

.product-body h3 {
  margin: 12px 0 8px;
  font-size: 1.15rem;
}

.product-body p {
  color: var(--muted);
  line-height: 1.55;
}

.price {
  margin: 10px 0;
  font-size: 1.5rem;
  font-weight: 950;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}

.metric-row span,
.metric-button {
  border: 1px solid #ead8c7;
  border-radius: 999px;
  background: #fff8ee;
  color: #6f4639;
  font-size: 0.84rem;
  font-weight: 850;
  padding: 7px 10px;
}

.metric-button {
  cursor: pointer;
}

.metric-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.metric-button.active {
  border-color: var(--brand);
  background: #f7e4dd;
  color: var(--brand-dark);
}

.detail-info-panel {
  display: none;
  border: 1px solid #ead8c7;
  border-radius: 8px;
  background: #fffaf4;
  margin: 14px 0;
  padding: 14px;
}

.detail-info-panel.is-open {
  display: grid;
  gap: 10px;
}

.public-review-row,
.public-question-row {
  border: 1px solid #ead8c7;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.public-review-row strong,
.public-question-row strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.public-review-row span {
  color: #d65f41;
}

.public-answer {
  border-left: 3px solid var(--brand);
  margin-top: 10px;
  padding-left: 10px;
}

.public-answer span {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.question-product-thumb {
  align-self: start;
  border: 1px solid #ead8c7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  height: 72px;
  overflow: hidden;
  padding: 0;
  width: 72px;
}

.question-thumb-media {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.question-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.answer-editor {
  display: grid;
  gap: 6px;
}

.answer-editor textarea,
.inline-edit-grid textarea {
  min-height: 72px;
}

.inline-edit-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.card-actions {
  justify-content: space-between;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 850;
  padding: 9px 12px;
}

.mini-button.dark {
  background: var(--ink);
  color: white;
}

.mini-button,
.primary-button,
.ghost-button,
.page-button,
.metric-button,
.product-media-button {
  touch-action: manipulation;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease,
    filter 0.12s ease,
    border-color 0.12s ease;
}

button:active,
.primary-button:active,
.ghost-button:active,
.mini-button:active,
.page-button:active,
.metric-button:active,
.product-media-button:active,
.fun-effect-grid button:active,
.is-pressed {
  transform: translateY(1px) scale(0.985);
  filter: brightness(0.96);
  box-shadow: inset 0 2px 7px rgba(58, 43, 33, 0.16);
}

.button-confirm {
  animation: buttonConfirm 0.52s ease;
}

.save-confirm {
  animation: saveConfirmPulse 0.9s ease;
  border-color: #74c79d !important;
  background: #e9fbf1 !important;
  color: #17643d !important;
}

@keyframes buttonConfirm {
  0% {
    box-shadow: 0 0 0 0 rgba(135, 199, 173, 0);
  }

  35% {
    box-shadow: 0 0 0 5px rgba(135, 199, 173, 0.32);
    border-color: var(--mint);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(135, 199, 173, 0);
  }
}

@keyframes saveConfirmPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(116, 199, 157, 0);
  }

  35% {
    transform: scale(0.985);
    box-shadow: 0 0 0 6px rgba(116, 199, 157, 0.3);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(116, 199, 157, 0);
  }
}

.product-view[hidden],
.shop-layout[hidden] {
  display: none;
}

.product-view {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  padding: 22px;
}

.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 24px;
  align-items: start;
  border: 1px solid color-mix(in srgb, var(--detail-accent, #d65f41) 26%, #fff);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 10%, var(--detail-soft, #ffe4ec), transparent 30%),
    linear-gradient(135deg, var(--detail-bg, #fff8ee), #fffdfa 58%);
  padding: 20px;
}

.product-page-main,
.product-page-info {
  min-width: 0;
}

.product-page-info h3 {
  margin: 8px 0;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1;
}

.product-page-info p,
.split-section p,
.contact-band p {
  color: var(--muted);
  line-height: 1.65;
}

.back-button {
  margin-bottom: 12px;
}

.detail-media {
  overflow: hidden;
  margin: 14px 0;
  border-radius: 8px;
  background: #eee;
  cursor: zoom-in;
}

.detail-media img,
.detail-media video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transform-origin: center;
  transition: transform 0.18s ease;
}

.detail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.product-specs {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.product-specs div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--detail-bg, #fffaf4) 64%, #fff);
  padding: 10px;
}

.product-specs span {
  color: var(--muted);
  font-weight: 800;
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.media-thumb {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.media-thumb img,
.media-thumb video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.sales-link-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.sales-link-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--detail-bg, #fffaf4) 64%, #fff);
  font-weight: 850;
  padding: 10px 12px;
  text-decoration: none;
}

.inline-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.score-line {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.score-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #ede5dc;
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.split-section,
.review-layout,
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

.request-form,
.review-form,
.admin-form,
.admin-card {
  padding: 18px;
}

.sales-link-grid,
.inbox-grid,
.test-grid {
  display: grid;
  gap: 14px;
}

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

.sales-link-card,
.event-panel,
.chat-panel,
.test-card,
.legal-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.legal-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
}

.legal-grid p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.sales-link-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.sales-link-card strong {
  font-size: 1.1rem;
}

.sales-link-card p,
.event-log p,
.conversation-thread p,
.test-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.inbox-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.event-log,
.conversation-thread {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.event-item,
.message-item {
  border: 1px solid #ead8c7;
  border-radius: 8px;
  background: #fffaf4;
  padding: 12px;
}

.event-item strong,
.event-item span,
.event-item small,
.message-item strong,
.message-item small {
  display: block;
}

.event-item small,
.message-item small {
  color: var(--muted);
  margin-top: 6px;
}

.message-item strong span {
  color: var(--brand-dark);
  font-weight: 800;
}

.chat-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

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

.test-card.ok {
  border-color: #b7dfcb;
  background: #f0fbf5;
}

.test-card.wait {
  border-color: #efd693;
  background: #fff9e8;
}

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

.story-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.story-item img,
.story-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.story-item span {
  display: block;
  padding: 10px;
  color: var(--muted);
  font-weight: 750;
}

.story-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 1px solid #edb8ae;
  border-radius: 50%;
  background: rgba(255, 241, 238, 0.95);
  color: #9f3d2d;
  font-weight: 900;
  cursor: pointer;
}

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

.review-card {
  padding: 16px;
}

.review-card strong {
  display: block;
}

.review-card p {
  color: var(--muted);
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.media-queue-wrap {
  display: grid;
  gap: 10px;
  border: 1px dashed #d0b79b;
  border-radius: 8px;
  background: #fffaf4;
  padding: 12px;
}

.media-queue-head,
.queued-media {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.media-queue {
  display: grid;
  gap: 8px;
}

.media-queue p {
  color: var(--muted);
  margin: 0;
}

.queued-media {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.queued-media span {
  border-radius: 999px;
  background: #dff5e9;
  color: #16704a;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 5px 8px;
}

.queued-media strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.admin-form,
.admin-card {
  display: grid;
  gap: 14px;
}

.admin-control-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: var(--shadow);
  padding: 16px;
}

.admin-control-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.admin-control-head h3 {
  margin: 4px 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.admin-control-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-control-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-control-stats span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--muted);
  padding: 8px 11px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-control-stats span.active {
  border-color: #f3b39c;
  background: #fff1ee;
  color: #a23d2d;
}

.admin-control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-control-tabs button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
  padding: 8px 12px;
}

.admin-control-tabs button:hover {
  border-color: #d95f43;
  color: #b94730;
}

.admin-wide {
  grid-column: 1 / -1;
}

.hero-admin-preview {
  display: grid;
  gap: 10px;
  border: 1px dashed #d8b09f;
  border-radius: 8px;
  background: #fff8f3;
  padding: 14px;
}

.hero-admin-preview img {
  width: min(100%, 280px);
  max-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  object-fit: contain;
  padding: 10px;
}

.hero-admin-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

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

.admin-list-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  padding: 12px;
}

.admin-list-section {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.admin-list-section h4 {
  margin: 0;
  color: var(--brand-dark);
}

.admin-list-item div {
  min-width: 0;
}

.admin-list-item strong,
.admin-list-item span {
  display: block;
}

.admin-list-item span {
  color: var(--muted);
  line-height: 1.45;
}

.admin-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.order-button {
  background: #fff5ea;
  color: var(--brand-dark);
}

.order-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
  box-shadow: none;
}

.custom-request-item.is-unread {
  border-color: #ef9b81;
  background: #fff1ea;
}

.custom-request-item small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffaf4;
  color: var(--muted);
  padding: 7px 10px;
  font-weight: 900;
}

.notification-badge.compact {
  padding: 5px 8px;
  font-size: 0.82rem;
}

.notification-badge.active {
  border-color: #f3b39c;
  background: #fff1ee;
  color: #a23d2d;
}

.chat-unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 2px solid #fffdfa;
  border-radius: 999px;
  background: #e26047;
  color: #fffdfa;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 0 6px;
}

.gallery-admin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-admin-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  padding: 10px;
}

.gallery-admin-media {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery-admin-media img,
.gallery-admin-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-admin-item strong,
.gallery-admin-item span {
  display: block;
}

.gallery-admin-item span {
  color: var(--muted);
}

.delete-emoji-button {
  min-width: 38px;
}

.private-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.private-chat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: #fffdfa;
  padding: 9px 14px 9px 9px;
  box-shadow: var(--shadow);
  font-weight: 900;
  cursor: pointer;
}

.chat-logo {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #fffdfa;
  display: grid;
  place-items: center;
}

.chat-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.private-chat-panel {
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-floating-chat {
  width: min(620px, calc(100vw - 28px));
  max-height: min(78vh, 720px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.private-chat-panel[hidden] {
  display: none;
}

.private-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: #f8e8df;
  border-bottom: 1px solid var(--line);
}

.private-chat-head small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.private-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
}

.private-message {
  max-width: 86%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf6;
}

.private-message.visitor {
  justify-self: end;
  background: #fff2e8;
  color: var(--ink);
}

.private-message.admin {
  justify-self: start;
  border-color: color-mix(in srgb, var(--admin-message-color, #9f3d2d) 24%, #f1d7ce);
  background: color-mix(in srgb, var(--admin-message-color, #9f3d2d) 7%, #fffdfa);
}

.private-message p,
.private-message small {
  margin: 4px 0 0;
  color: var(--muted);
}

.private-message.admin strong,
.private-message.admin p {
  color: var(--admin-message-color, #9f3d2d);
}

.private-message.visitor strong,
.private-message.visitor p {
  color: var(--ink);
}

.private-message.typing,
.typing-indicator {
  color: #9f3d2d;
  font-weight: 850;
  animation: typingPulse 1.2s ease-in-out infinite;
}

.private-message.typing p,
.typing-indicator {
  color: #9f3d2d;
}

.typing-indicator span {
  color: var(--muted);
  font-weight: 700;
}

.draft-preview {
  border: 1px solid rgba(135, 199, 173, 0.6);
  border-radius: 8px;
  background: #ecfff6;
  color: #12694c !important;
  padding: 10px 12px;
  font-weight: 850;
}

.draft-preview strong {
  color: #0f5c41;
}

@keyframes typingPulse {
  0%,
  100% {
    opacity: 0.58;
  }

  50% {
    opacity: 1;
  }
}

.private-chat-form {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.private-chat-form input,
.private-chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.private-thread-list,
.private-thread,
.private-thread-messages {
  display: grid;
  gap: 10px;
}

.private-thread-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.private-thread-list.compact {
  max-height: min(64vh, 590px);
  padding: 12px;
}

.private-thread-list.compact .private-thread {
  background: #fff8f2;
}

.private-thread {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fffdfa;
}

.private-thread.unread {
  border-color: #f3b39c;
  background: #fff4ef;
  box-shadow: 0 0 0 2px rgba(243, 179, 156, 0.18);
}

.private-thread.typing-live {
  border-color: #87c7ad;
  background: #f3fff9;
  box-shadow:
    0 0 0 2px rgba(135, 199, 173, 0.22),
    0 10px 28px rgba(18, 105, 76, 0.08);
}

.private-thread.closed {
  opacity: 0.66;
}

.private-thread.archived {
  border-style: dashed;
  background: #f8f4ee;
  opacity: 0.82;
}

.private-admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.private-thread-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.private-thread-head span,
.private-thread-messages p {
  color: var(--muted);
  margin: 0;
}

.private-thread-messages .thread-admin-message,
.private-thread-messages .thread-admin-message strong {
  color: var(--admin-message-color, #9f3d2d);
}

.private-thread-messages .thread-visitor-message,
.private-thread-messages .thread-visitor-message strong {
  color: var(--ink);
}

.fun-effect-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 29;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.fun-effect-panel::after {
  content: attr(data-notice);
  display: none;
  max-width: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
  color: var(--muted);
  padding: 9px 11px;
  font-size: 0.82rem;
}

.fun-effect-panel[data-notice]::after {
  display: block;
}

.fun-effect-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 9px 12px;
}

.fun-effect-menu {
  width: min(300px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: var(--shadow);
  padding: 12px;
}

.fun-effect-menu[hidden] {
  display: none;
}

.fun-effect-menu strong,
.fun-effect-menu small {
  display: block;
}

.fun-effect-menu small {
  color: var(--muted);
  line-height: 1.45;
  margin-top: 8px;
}

.fun-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fun-effect-grid button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
}

.fun-effect-grid button:hover {
  border-color: #d95f43;
  color: #b94730;
}

.site-effect-layer {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  overflow: hidden;
}

.site-effect-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  opacity: 0;
  transition: opacity 120ms ease;
}

.site-effect-layer.flash::before {
  opacity: 0.48;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 36%),
    rgba(170, 200, 255, 0.24);
}

.site-effect-particle {
  position: absolute;
  left: var(--effect-x);
  top: var(--effect-y);
  opacity: 0;
  transform: translate3d(-50%, 0, 0) rotate(var(--effect-rotate));
  animation: siteEffectDrift var(--effect-duration) linear forwards;
  will-change: transform, opacity;
}

.site-effect-particle.snow {
  color: rgba(245, 252, 255, var(--effect-opacity));
  font-size: var(--effect-size);
  text-shadow:
    0 1px 2px rgba(55, 98, 122, 0.3),
    0 0 10px rgba(86, 174, 212, 0.42);
}

.site-effect-particle.stars {
  color: rgba(255, 203, 71, var(--effect-opacity));
  font-size: var(--effect-size);
  text-shadow:
    0 1px 2px rgba(120, 70, 0, 0.24),
    0 0 12px rgba(247, 178, 103, 0.62);
}

.site-effect-particle.hearts {
  color: rgba(218, 42, 88, var(--effect-opacity));
  font-size: var(--effect-size);
  text-shadow:
    0 1px 2px rgba(98, 12, 44, 0.18),
    0 0 10px rgba(218, 79, 106, 0.38);
}

.site-effect-particle.rain {
  width: 2px;
  height: var(--effect-size);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(159, 198, 224, 0), rgba(42, 114, 160, var(--effect-opacity)));
  box-shadow: 0 0 5px rgba(54, 136, 190, 0.22);
  animation-duration: var(--effect-duration);
  transform: translate3d(-50%, 0, 0) rotate(13deg);
  animation-name: siteRainFall;
}

@keyframes siteEffectDrift {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(var(--effect-rotate));
  }

  12% {
    opacity: var(--effect-opacity);
  }

  86% {
    opacity: var(--effect-opacity);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--effect-dx)), var(--effect-fall), 0) rotate(calc(var(--effect-rotate) + 90deg));
  }
}

@keyframes siteRainFall {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 0, 0) rotate(13deg);
  }

  8% {
    opacity: var(--effect-opacity);
  }

  90% {
    opacity: var(--effect-opacity);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--effect-dx)), var(--effect-fall), 0) rotate(13deg);
  }
}

.danger-button {
  border-color: #edb8ae;
  background: #fff1ee;
  color: #9f3d2d;
}

.admin-section[hidden],
[data-admin-only][hidden] {
  display: none;
}

.admin-dialog p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-gate-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-gate-form[hidden],
.mfa-enroll-panel[hidden] {
  display: none;
}

.mfa-enroll-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf4;
  padding: 14px;
}

.mfa-qr-box {
  display: grid;
  place-items: center;
  min-height: 160px;
  margin: 12px 0;
  border: 1px dashed #d0b79b;
  border-radius: 8px;
  background: #fff;
}

.mfa-qr-box img,
.mfa-qr-box svg {
  width: min(220px, 100%);
  height: auto;
}

.ad-preview {
  border: 1px dashed #d0b79b;
  border-radius: 8px;
  background: #fff8e9;
  color: #795326;
  padding: 16px;
  line-height: 1.5;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-dialog {
  width: min(560px, calc(100vw - 28px));
  border: 1px solid var(--line);
  padding: 22px;
}

.cart-dialog::backdrop {
  background: rgba(29, 29, 34, 0.46);
}

.icon-close {
  float: right;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.3rem;
}

output {
  display: block;
  color: var(--brand-dark);
  font-weight: 850;
  line-height: 1.6;
  white-space: pre-wrap;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(14px);
  }

  .sidebar .brand {
    display: none;
  }

  .panel-nav {
    display: flex;
    gap: 8px;
    margin: 0;
    min-width: max-content;
  }

  .panel-nav a {
    white-space: nowrap;
    padding: 10px 12px;
  }

  .side-card {
    display: none;
  }

  main {
    padding: 0 18px 34px;
  }

  .mobile-brand {
    display: flex;
  }

  .topbar {
    grid-template-columns: 1fr;
    position: sticky;
    top: 54px;
  }

  .top-actions {
    justify-content: flex-start;
  }

  .hero,
  .shop-layout,
  .product-page,
  .welcome-stage,
  .split-section,
  .review-layout,
  .admin-grid,
  .inbox-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .admin-control-head {
    display: grid;
  }

  .admin-control-stats {
    justify-content: flex-start;
  }

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

@media (max-width: 760px) {
  body {
    background: #f8f4ee;
  }

  main {
    padding: 0 10px 28px;
    /* iOS bottom safe area için */
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 12px;
    padding: 12px 0;
    backdrop-filter: none;
    background: rgba(248, 244, 238, 0.96);
    /* iOS sticky altında kalan içeriği örtmemek için */
    top: max(0px, env(safe-area-inset-top));
  }

  /* iOS'ta input zoom sorununu engelle — tüm form elemanları min 16px */
  .quick-search input,
  input,
  select,
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  /* iOS'ta select'in varsayılan görünümünü koru */
  select {
    -webkit-appearance: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.35rem, 12vw, 3.75rem);
    line-height: 1;
  }

  .hero {
    padding: 30px 18px 34px;
    min-height: auto;
    gap: 22px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .trust-strip,
  .filter-bar,
  .product-grid,
  .story-grid,
  .form-row,
  .sales-link-grid,
  .test-grid {
    grid-template-columns: 1fr;
  }

  /* Ürün grid'i mobilde 2 sütun — daha fazla ürün görünsün */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section-block {
    padding: 14px;
    margin: 14px 0;
    scroll-margin-top: 76px;
  }

  .hero-media img {
    max-height: 58vh;
    object-fit: contain;
  }

  .trust-strip {
    gap: 10px;
    /* Mobilde trust strip 2x2 grid */
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip div {
    padding: 14px;
  }

  .gallery-meta {
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .gallery-meta span,
  .gallery-meta .metric-button {
    min-height: 42px;
    font-size: 0.8rem;
    padding: 6px 7px;
  }

  .product-sales-actions {
    grid-template-columns: 1fr;
  }

  /* Mobilde tap hedefleri en az 46px yüksekliğinde */
  .product-sales-actions .mini-button,
  .sales-link-list a,
  .primary-button,
  .ghost-button {
    min-height: 46px;
  }

  /* Tüm buton ve linklerde min tap alanı */
  .mini-button,
  .page-button,
  .metric-button {
    min-height: 44px;
    min-width: 44px;
  }

  .snowflake-particle {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.38);
  }

  .product-view {
    padding: 14px;
  }

  .product-page {
    padding: 14px;
    gap: 16px;
  }

  .detail-media img,
  .detail-media video {
    max-height: 62vh;
    object-fit: contain;
  }

  .detail-tools,
  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  /* iOS safe area — sohbet butonu notch ve home bar çakışmasın */
  .private-chat {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 14px;
  }

  .fun-effect-panel {
    right: 14px;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 66px);
    left: 14px;
  }

  .private-chat-panel {
    width: 100%;
    max-height: min(72vh, 620px);
  }

  .fun-effect-menu {
    width: 100%;
  }

  .private-chat-toggle,
  .fun-effect-toggle {
    justify-self: end;
  }

  .fun-effect-grid button {
    min-height: 44px;
  }

  /* Mobilde admin list aksiyonları dikey dizilsin */
  .admin-list-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-list-actions .mini-button {
    text-align: center;
    width: 100%;
  }

  /* Mobilde form satırları tek sütun */
  .admin-form .form-row,
  .admin-card .form-row {
    grid-template-columns: 1fr;
  }

  /* Galeri admin 1 sütun */
  .gallery-admin-list {
    grid-template-columns: 1fr;
  }

  /* Yorum layout mobilde tek sütun */
  .review-layout {
    grid-template-columns: 1fr;
  }

  /* Filtre barı mobilde 2x2 */
  .filter-bar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Bütçe filtresi tam genişlik */
  .filter-bar label:last-child {
    grid-column: 1 / -1;
  }

  /* Medya strip 3 sütun mobilde */
  .media-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Score line mobilde daha kompakt */
  .score-line {
    grid-template-columns: 70px 1fr auto;
  }

  /* Sayfa numaraları touch için büyüt */
  .page-button {
    min-width: 44px;
    height: 44px;
  }

  /* Sidebar kaydırma çubuğu gizle (iOS) */
  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar {
    scrollbar-width: none;
  }
}
