/* ═══════════════════════════════════════════════════
   ТВОЄ СВІТЛО — світла тема (білий + помаранчевий)
   Підключається ПІСЛЯ styles.css і перефарбовує сайт.
   Кольори міняти тут, у :root — більше ніде не треба.
═══════════════════════════════════════════════════ */
:root {
  /* старі змінні "green-*" тепер помаранчево-червоні — так перефарбовується весь сайт */
  --green-900: #7a2a06;
  --green-800: #a33a0a;
  --green-700: #c9460c;
  --green-600: #e5530f;   /* основний бренд */
  --green-500: #ec5b13;   /* кнопки */
  --green-400: #f58a4e;
  --green-100: #fbd8c3;
  --green-50:  #fdefe6;
  --green-25:  #fff8f3;

  --orange:    #ec5b13;
  --orange-bg: #fdefe6;

  --ink:    #16181b;
  --text-1: #16181b;
  --text-2: #4b5058;
  --text-3: #80868f;
  --border: #e3e4e7;
  --surface: #eceef0;     /* матовий сірий фон */
  --graphite: #1e2024;
  --ok: #1e9e4a;          /* "в наявності" */

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body { font-family: var(--font); }
.section-alt { background: var(--surface); }

/* ──────────────── КНОПКИ */
.btn-primary { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); }

/* ──────────────── ТЕМНІ БЛОКИ → світлі/помаранчеві */
.section-dark { background: var(--surface) !important; color: var(--text-1) !important; }
.section-dark .section__title, .section-dark h2, .section-dark h3 { color: var(--text-1) !important; }
.section-dark p, .section-dark .section__sub { color: var(--text-2) !important; }


/* ──────────────── МАТОВИЙ ФОН ІЗ ЗЕРНОМ (як папір) */
body {
  background-color: var(--surface);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.section, .section-alt, .shop { background: transparent; }
.shop--band, .section-alt { background: rgba(255,255,255,.55); }

/* ──────────────── ШАПКА — біла напівпрозора, як у Apple */
.top-bar { background: var(--graphite) !important; }
.header { background: rgba(255,255,255,.78) !important; -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 rgba(0,0,0,.06) !important; }

/* ──────────────── ГРАФІТОВІ БЛОКИ (замість яскраво-помаранчевих) */
section[style*="#060d1f"], .cta-band {
  background-color: var(--graphite) !important;
  background-image:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(236,91,19,.28), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") !important;
}
section[style*="#060d1f"] [style*="color:#ff"], section[style*="#060d1f"] span[style*="ffd"] { color: #f58a4e !important; }
section[style*="#060d1f"] button[style*="background"], section[style*="#060d1f"] a[style*="background:#ff"] { background: var(--green-500) !important; color: #fff !important; }
.cta-band .btn-white { background: var(--green-500); color: #fff; border-color: var(--green-500); }

/* ──────────────── МАГАЗИН: заголовок, пошук, категорії */
.store { padding: 22px 0 8px; }
.store__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.store__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.25; }
.store__count { font-size: 13px; color: var(--text-3); white-space: nowrap; }

.search { margin-top: 14px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgba(16,18,22,.04); color: var(--text-3); cursor: text; transition: box-shadow .2s; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--green-500), 0 6px 18px rgba(236,91,19,.10); color: var(--green-600); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font); color: var(--ink); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { display: none; }

.cats { margin-top: 16px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 8px 14px; background: #fff; border-radius: 16px; box-shadow: 0 1px 2px rgba(16,18,22,.04), 0 6px 18px rgba(16,18,22,.05); text-align: center; transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(16,18,22,.05), 0 12px 28px rgba(16,18,22,.10); }
.cat__img { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(180deg, #fbfbfc, #eef0f2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat__img img { width: 80%; height: 80%; object-fit: contain; }
.cat__img--photo img { width: auto; height: 86%; border-radius: 3px; }
.cat__img--cover img { width: 100%; height: 100%; object-fit: cover; }
.cat__name { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }

.search-results { padding-top: 8px; }
.shop__title--sm { font-size: 20px; }
.search-clear { border: 0; background: none; color: var(--green-700); font: 700 14px var(--font); cursor: pointer; }
body.is-searching .shop:not(.search-results) { display: none; }

/* ──────────────── ВІТРИНА */
.shop { padding: 40px 0 48px; }
.shop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.shop__head--next { margin-top: 44px; }
.shop__title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.shop__note { font-size: 14px; color: var(--text-3); }

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

.chips { display: flex; gap: 8px; margin: -4px 0 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 0; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); font: 600 14px var(--font); color: var(--text-2); cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }

.shop-more { display: block; margin: 20px auto 0; padding: 12px 26px; border-radius: 999px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--border); font: 700 15px var(--font); color: var(--ink); cursor: pointer; }
.shop-more:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.shop-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: 20px; overflow: hidden; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16,18,22,.04), 0 10px 30px rgba(16,18,22,.06);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.shop-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(16,18,22,.05), 0 18px 40px rgba(16,18,22,.12); }
.shop-card:focus-within { outline: 2px solid var(--green-400); outline-offset: 2px; }

.shop-card__media { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(180deg, #fbfbfc 0%, #eef0f2 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-card__media img { width: 86%; height: 86%; object-fit: contain; }
.shop-card__media--photo img { width: auto; height: 84%; border-radius: 6px; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
.shop-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.shop-card:hover .shop-card__media::after { transition: transform .9s ease; transform: translateX(120%); }

.shop-card__tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.tag { font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); }
.tag--stock { color: var(--ok); }
.tag--stock::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.tag--hit { background: var(--green-500); color: #fff; }
.tag--order { color: var(--text-2); }

.shop-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.shop-card__brand { font-size: 13px; font-weight: 600; color: var(--text-3); }
.shop-card__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-top: 2px; line-height: 1.2; }
.shop-card__model { font-size: 12.5px; color: var(--text-3); margin-top: 3px; word-break: break-word; }
.shop-card__facts { margin: 10px 0 0; display: grid; gap: 3px; }
.shop-card__facts li { font-size: 13.5px; color: var(--text-2); }
.shop-card__bottom { margin-top: auto; padding-top: 14px; }
.shop-card__price { font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }
.shop-card__price span { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.shop-card__price--ask { font-size: 16px; font-weight: 700; color: var(--text-2); letter-spacing: 0; }
.shop-card__terms { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.shop-card__btns { display: flex; gap: 8px; margin-top: 12px; }
.shop-card__buy { flex: 1; padding: 11px 12px; border-radius: 12px; }
.shop-card__cart { flex: 0 0 46px; height: 46px; border-radius: 12px; border: 0; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.shop-card__cart:hover, .shop-card__cart.added { background: var(--green-100); }
.shop-card__ask { flex: 1; padding: 11px 12px; border-radius: 12px; background: #f3f4f6; color: var(--ink); border: 0; }
.shop-card__ask:hover { background: var(--ink); color: #fff; }

/* хіти (є на складі) — великі, з акцентною рамкою */
.shop-card--hit { box-shadow: 0 0 0 2px var(--green-500), 0 18px 44px rgba(236,91,19,.14); }
.shop-card--hit .shop-card__media { background: radial-gradient(ellipse at 50% 30%, #fff 0%, #fdefe6 100%); }
.shop-card--hit .shop-card__name { font-size: 24px; }
.shop-card--hit .shop-card__price { font-size: 34px; color: var(--green-700); }
@media (min-width: 900px) {
  .shop-card--hit { flex-direction: row; }
  .shop-card--hit .shop-card__media { flex: 0 0 44%; aspect-ratio: auto; min-height: 320px; }
  .shop-card--hit .shop-card__body { padding: 26px 28px; }
}

.prod-modal__ask { font-size: 22px; color: var(--text-2); }
.prod-modal__img-wrap, .prod-modal__media { background: linear-gradient(180deg, #fbfbfc, #eef0f2) !important; }

/* ──────────────── ДОПРАВКИ ІСНУЮЧИХ БЛОКІВ */
.section-dark .step-card { background: #fff; border: 0; box-shadow: 0 1px 2px rgba(16,18,22,.04), 0 10px 30px rgba(16,18,22,.06); border-radius: 18px; }
.section-dark .step-card::before { color: var(--green-100) !important; }
.footer { background: var(--graphite); }
.product-card__price { color: var(--ink); }
.brands-strip { background: #fff !important; border-color: var(--border) !important; }

/* ──────────────── АДАПТИВ */
@media (max-width: 1024px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .store { padding-top: 16px; }
  .store__title { font-size: 18px; }
  .search { height: 46px; margin-top: 12px; }
  .search input { font-size: 16px; }
  .cats { display: flex; overflow-x: auto; gap: 10px; margin-left: -12px; margin-right: -12px; padding: 2px 12px 8px; scroll-padding-left: 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: 0 0 104px; scroll-snap-align: start; padding: 10px 8px 12px; }
  .cat__name { font-size: 12.5px; }
  .shop { padding: 22px 0 28px; }
  .shop__head { margin-bottom: 10px; }
  .shop__head--next { margin-top: 28px; }
  .shop__note { font-size: 12.5px; }
  .shop-grid, .shop-grid--hit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-card { border-radius: 16px; }
  .shop-card__tags { top: 7px; left: 7px; gap: 4px; }
  .tag { font-size: 10.5px; padding: 5px 7px; }
  .shop-card__body { padding: 10px 11px 12px; }
  .shop-card__brand { font-size: 12px; }
  .shop-card__name, .shop-card--hit .shop-card__name { font-size: 16px; }
  .shop-card__model { font-size: 11px; }
  .shop-card__facts li { font-size: 12px; }
  .shop-card__price { font-size: 18px; }
  .shop-card--hit .shop-card__price { font-size: 23px; }
  .shop-card__price span { font-size: 11.5px; }
  .shop-card__price--ask { font-size: 13.5px; }
  .shop-card__terms { font-size: 11px; }
  .shop-card__buy, .shop-card__ask { padding: 10px 6px; font-size: 14px; min-height: 42px; }
  .shop-card__cart { flex-basis: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-card__media::after { display: none; }
  .shop-card { transition: none; }
}
.cart-drawer:not(.open) { box-shadow: none; }

.shop-card__media--cover img { width: 100%; height: 100%; object-fit: cover; }
section[style*="#060d1f"] .container > div > div[style*="border-radius:20px"] div[style*="font-size:2rem"] { filter: grayscale(1) brightness(1.6); opacity: .8; }
.shop { scroll-margin-top: 80px; }

.store__city { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px var(--border); font-size: 13px; color: var(--text-2); }
.store__city svg { color: var(--green-600); flex: 0 0 auto; }
.store__city b { color: var(--ink); font-weight: 700; }
@media (max-width: 720px) { .store__city { font-size: 12px; padding: 4px 10px 4px 8px; } }
.city-short { display: none; }
@media (max-width: 720px) { .city-long { display: none; } .city-short { display: inline; } }
