:root {
  --ambient-base: #f3f4f4;
  --ambient-warm: rgba(255, 184, 0, 0.14);
  --ambient-cool: rgba(46, 118, 89, 0.13);
  --ambient-dot: rgba(20, 28, 25, 0.055);
}

body {
  background-color: var(--ambient-base) !important;
  background-image:
    radial-gradient(circle at 5% 18%, var(--ambient-warm) 0 7%, transparent 21%),
    radial-gradient(circle at 96% 42%, var(--ambient-cool) 0 8%, transparent 23%),
    radial-gradient(circle at 6% 78%, var(--ambient-cool) 0 5%, transparent 18%),
    radial-gradient(circle at 95% 88%, var(--ambient-warm) 0 6%, transparent 20%),
    radial-gradient(circle, var(--ambient-dot) 0 3px, transparent 4px),
    radial-gradient(circle, var(--ambient-dot) 0 5px, transparent 6px);
  background-position: 0 0, 100% 8%, 0 70%, 100% 100%, 34px 46px, 61px 71px;
  background-size: auto, auto, auto, auto, 96px 96px, 142px 142px;
  background-attachment: fixed;
  animation: ambientShellDrift 22s ease-in-out infinite alternate;
}

.category-page {
  --ambient-base: #f7f6f2;
}

.product-page {
  --ambient-base: #080808;
  --ambient-warm: rgba(255, 184, 0, 0.09);
  --ambient-cool: rgba(41, 230, 209, 0.07);
  --ambient-dot: rgba(255, 255, 255, 0.035);
}

.auth-page {
  --ambient-base: #0a0a0a;
  --ambient-warm: rgba(255, 184, 0, 0.1);
  --ambient-cool: rgba(46, 118, 89, 0.08);
  --ambient-dot: rgba(255, 255, 255, 0.035);
}

@keyframes ambientShellDrift {
  0% {
    background-position: 0 0, 100% 8%, 0 70%, 100% 100%, 34px 46px, 61px 71px;
  }
  100% {
    background-position: 0 35px, 100% -18px, 0 42%, 100% calc(100% - 28px), 55px 72px, 36px 48px;
  }
}

@media (max-width: 1240px) {
  body {
    background-image:
      radial-gradient(circle at 0 18%, var(--ambient-warm) 0 4%, transparent 16%),
      radial-gradient(circle at 100% 46%, var(--ambient-cool) 0 5%, transparent 17%);
    background-size: auto;
  }
}

@media (max-width: 700px) {
  body {
    background-color: var(--ambient-base) !important;
    background-image: none;
    animation: none;
  }
}

/* Kesintisiz LED teslimat bandi */
.announcement.led-ticker{display:block!important;position:relative;overflow:hidden;width:100%;height:36px;padding:0!important;color:#fff!important;background:linear-gradient(90deg,#174c3a,#2e7659 48%,#174c3a)!important;text-decoration:none!important;box-shadow:inset 0 -1px rgba(255,255,255,.16);white-space:nowrap}
.led-ticker:before,.led-ticker:after{content:"";position:absolute;z-index:2;top:0;bottom:0;width:70px;pointer-events:none}
.led-ticker:before{left:0;background:linear-gradient(90deg,#174c3a,transparent)}
.led-ticker:after{right:0;background:linear-gradient(270deg,#174c3a,transparent)}
.led-ticker-track{display:inline-flex;align-items:center;min-width:max-content;height:100%;gap:30px;padding-left:30px;animation:markasiz-led-scroll 24s linear infinite;will-change:transform}
.led-ticker-track>span{display:inline-flex;align-items:center;gap:30px}
.led-ticker b{font:800 11px/1 "DM Sans",sans-serif;letter-spacing:.075em;color:#fff;text-shadow:0 0 8px rgba(255,255,255,.32)}
.led-ticker i{font-style:normal;color:#ffbd12;text-shadow:0 0 10px rgba(255,189,18,.8)}
.led-ticker:hover .led-ticker-track{animation-play-state:paused}
@keyframes markasiz-led-scroll{to{transform:translateX(-50%)}}
@media(max-width:600px){.announcement.led-ticker{height:34px!important}.led-ticker-track{gap:24px;padding-left:24px;animation-duration:19s}.led-ticker-track>span{gap:24px}.led-ticker b{font-size:10px;letter-spacing:.055em}.led-ticker:before,.led-ticker:after{width:28px}}
@media(prefers-reduced-motion:reduce){.led-ticker-track{animation-duration:60s}}

/* Urun siralama ve dikkat cekenler alani */
.product-controls{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.catalog-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px;padding:17px 19px;border:1px solid rgba(255,184,0,.28);border-radius:15px;background:linear-gradient(105deg,#171717,#202018);box-shadow:0 12px 34px rgba(0,0,0,.12)}.catalog-toolbar-copy{display:flex;flex-direction:column;gap:5px}.catalog-toolbar-copy span{color:#ffb800;font:800 9px/1 Manrope;letter-spacing:.16em}.catalog-toolbar-copy b{color:#fff;font:800 17px/1.2 Manrope}.catalog-sort{display:flex;align-items:center;gap:9px;color:#777;font-size:10px;font-weight:800;white-space:nowrap}.catalog-sort select{min-width:205px;border:1px solid #d7d7d7;border-radius:10px;background:#fff;color:#181818;padding:10px 34px 10px 12px;font:700 11px DM Sans;cursor:pointer}.catalog-toolbar .catalog-sort{color:#bbb}.catalog-toolbar .catalog-sort select{border-color:#3d3d3d;background:#111;color:#fff}
@media(max-width:700px){.product-controls{width:100%;align-items:stretch}.catalog-sort{justify-content:space-between;width:100%}.catalog-sort select{min-width:0;max-width:235px;width:66%}.catalog-toolbar{align-items:flex-start;flex-direction:column;padding:15px;margin-bottom:16px}.catalog-toolbar .catalog-sort select{width:68%}.catalog-toolbar-copy b{font-size:15px}}

/* Siyah mobil vitrinde okunurluk ve temiz yatay kaydirma. */
.products-section .section-heading h2{color:#fff!important}
@media(max-width:700px){.filter-chips,.nav{scrollbar-width:none;-ms-overflow-style:none}.filter-chips::-webkit-scrollbar,.nav::-webkit-scrollbar{display:none;width:0;height:0}}

/* Mobil ürün vitrini: dört ürün aynı satırda, temel satış bilgileri görünür. */
@media (max-width: 600px) {
  .product-grid,
  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }
  .product-grid .product-card,
  .collection-grid .product-card {
    min-width: 0;
    padding: 5px !important;
    border-radius: 10px !important;
  }
  .product-grid .product-art,
  .collection-grid .product-art {
    height: clamp(76px, 23vw, 96px) !important;
    border-radius: 7px !important;
  }
  .product-grid .product-art img,
  .collection-grid .product-art img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  .product-grid .product-badge,
  .collection-grid .product-badge {
    left: 7px;
    top: 7px;
    max-width: calc(100% - 14px);
    padding: 3px 4px;
    overflow: hidden;
    font-size: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .product-grid .product-meta,
  .collection-grid .product-meta {
    margin-top: 6px !important;
    overflow: hidden;
    font-size: 6px !important;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .product-grid .product-card h3,
  .collection-grid .product-card h3 {
    display: -webkit-box;
    min-height: 26px !important;
    margin: 4px 0 !important;
    overflow: hidden;
    font: 800 8px/1.25 Manrope !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .product-grid .stock-real,
  .collection-grid .stock-real,
  .product-grid .cod-chip,
  .collection-grid .cod-chip,
  .product-grid .card-actions,
  .collection-grid .product-read-more,
  .product-grid .price small,
  .collection-grid .price small {
    display: none !important;
  }
  .product-grid .price-row,
  .collection-grid .price-row {
    align-items: center;
    gap: 3px;
    margin-top: 4px !important;
  }
  .product-grid .price strong,
  .collection-grid .price strong {
    font-size: 11px !important;
    line-height: 1;
  }
  .product-grid .price del,
  .collection-grid .price del {
    font-size: 6px;
  }
  .product-grid .add-btn {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 16px;
  }
  .collection-grid .add-category-cart {
    width: 100%;
    min-height: 27px !important;
    margin-top: 5px !important;
    padding: 4px 2px;
    border-radius: 7px !important;
    font-size: 7px !important;
  }
  .collection-grid .add-category-cart span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }
}

/* Wide-screen rails keep every storefront page visually finished. */
@media (min-width: 1320px) {
  body::before,
  body::after {
    content: "";
    position: fixed;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: max(22px, calc((100vw - 1180px) / 2));
    pointer-events: none;
    opacity: 0.55;
    background:
      radial-gradient(circle at 50% 18%, var(--ambient-warm), transparent 62%),
      radial-gradient(circle at 50% 72%, var(--ambient-cool), transparent 64%);
  }
  body::before { left: 0; }
  body::after { right: 0; transform: scaleY(-1); }
}

/* Premium category navigation, shared by the homepage and category pages. */
.nav > a:not(.nav-deal),
.compact-nav > a:not(.header-wa) {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav > a:not(.nav-deal):hover,
.compact-nav > a:not(.header-wa):hover,
.compact-nav > a.active {
  background: #fff7de;
  border-color: rgba(255, 184, 0, .42);
  color: #6f4800 !important;
  transform: translateY(-2px);
}
.nav a[href*="kedi"]::before,
.compact-nav a[href*="kedi"]::before { content: "🐈"; }
.nav a[href*="kopek"]::before,
.compact-nav a[href*="kopek"]::before { content: "🐕"; }
.nav a[href*="kus"]::before,
.compact-nav a[href*="kus"]::before { content: "🦜"; }
.nav a[href*="bakim"]::before,
.compact-nav a[href*="bakim"]::before { content: "✦"; color: #2e7659; }
.nav a[href*="markalar"]::before,
.compact-nav a[href*="markalar"]::before { content: "◆"; color: #ffb800; }

/* First-visit sales offer. */
.entry-offer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .25s ease;
}
.entry-offer-backdrop.open { opacity: 1; }
.entry-offer {
  position: fixed;
  z-index: 81;
  top: 50%;
  left: 50%;
  width: min(940px, calc(100% - 32px));
  max-height: min(680px, calc(100vh - 28px));
  display: grid;
  grid-template-columns: 48% 52%;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  color: #fff;
  background: #090909;
  box-shadow: 0 40px 120px rgba(0,0,0,.62);
  opacity: 0;
  transform: translate(-50%, -46%) scale(.96);
  transition: opacity .25s ease, transform .25s ease;
}
.entry-offer.open { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.entry-offer[hidden], .entry-offer-backdrop[hidden] { display: none; }
.entry-offer-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 34px;
  background: radial-gradient(circle at 50% 45%, #fff 0, #eee8dd 68%, #d7ccbb 100%);
}
.entry-offer-visual img { width: 100%; height: 100%; max-height: 500px; object-fit: contain; }
.entry-offer-copy { display: flex; flex-direction: column; justify-content: center; padding: 54px 48px; }
.entry-offer-kicker { color: #ffb800; font: 800 10px/1.2 Manrope; letter-spacing: .16em; }
.entry-offer h2 { margin: 13px 0 18px; font: 800 clamp(36px, 4.2vw, 54px)/1.02 Manrope; letter-spacing: -.055em; }
.entry-offer h2 em { color: #ffb800; font-style: normal; }
.entry-offer p { color: #c9c9c9; font-size: 14px; line-height: 1.65; }
.entry-offer p strong { color: #fff; }
.entry-offer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 7px 0 22px; }
.entry-offer-trust span { padding: 8px 11px; border: 1px solid #333; border-radius: 999px; color: #eee; font-size: 10px; }
.entry-offer-copy > a { padding: 16px 20px; border-radius: 11px; color: #111; background: #ffb800; text-align: center; text-decoration: none; font-weight: 900; }
.entry-offer-continue { margin-top: 10px; border: 0; background: transparent; color: #aaa; padding: 11px; cursor: pointer; font-weight: 700; }
.entry-offer-close { position: absolute; z-index: 2; top: 17px; right: 17px; width: 40px; height: 40px; border: 1px solid #3c3c3c; border-radius: 50%; background: #171717; color: #fff; font-size: 24px; cursor: pointer; }
.entry-offer-open { overflow: hidden; }

@media (max-width: 700px) {
  .entry-offer { grid-template-columns: 1fr; max-height: calc(100vh - 18px); border-radius: 20px; }
  .entry-offer-visual { min-height: 260px; height: 42vh; padding: 22px; }
  .entry-offer-copy { padding: 25px 22px 22px; }
  .entry-offer h2 { margin: 8px 0 10px; font-size: 31px; }
  .entry-offer p { margin: 0 0 4px; font-size: 12px; }
  .entry-offer-trust { margin-bottom: 13px; }
}
