/* ==========================================================================
   Мерч Team404 — каталог
   Дизайн-система узгоджена з landings/Sport_as_system/styles.css
   ========================================================================== */

:root {
  --cyan: #87FFFF;
  --pink: #FF237D;
  --dark: #0F1111;
  --dark-surface: #17191b;
  --dark-surface-2: #1f2224;
  --light: #F5F7F7;
  --muted: #a7b0b0;
  --border: rgba(245, 247, 247, 0.1);
  --cream: #F4F1EA;
  --ink-muted: #6b6f72;
  --cyan-ink: #0a8f88;
  --border-ink: rgba(20, 19, 26, 0.14);
  --glass-surface: rgba(255, 255, 255, 0.6);
  --container: 1180px;
  --radius: 18px;
  --ff-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--light);
  font-family: var(--ff-body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ті самі кольорові плями, що на головній, тепер фіксовані позаду всього сайту.
   .hero-menu лишається зі своїм непрозорим фоном і закриває їх на головній —
   плями видно на всіх інших сторінках, де контент прозорий/напівпрозорий. */
.bg-blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.header, #app, .footer { position: relative; z-index: 1; }

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

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

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0; }

button, input, select, textarea {
  font-family: var(--ff-body);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Каталожні сторінки: текст, що лежить прямо на кремовому фоні сторінки
   (не у власній картці), тож тут беремо темні "чорнильні" кольори.
   Текст усередині карток (.product-card) має власний явний колір
   і цей каскад не перебиває. */
.section { padding: 56px 0 88px; position: relative; color: var(--dark); }

.page-title {
  font-size: clamp(26px, 4vw, 38px);
  margin: 6px 0 32px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.breadcrumb a { color: var(--cyan-ink); }
.breadcrumb a:hover { text-decoration: underline; }

.section-note {
  color: var(--ink-muted);
  font-size: 14px;
  margin: -18px 0 28px;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 18px 34px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

/* Діагональний "блиск", що пробігає кнопкою при наведенні */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
  z-index: 1;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #5be0e0);
  color: var(--dark);
  box-shadow: 0 4px 18px rgba(135, 255, 255, 0.15);
}
.btn--primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(135, 255, 255, 0.35); }
.btn--primary:active { transform: translateY(-1px) scale(0.99); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--pink {
  background: linear-gradient(135deg, var(--pink), #ff5fa0);
  color: var(--light);
  box-shadow: 0 4px 18px rgba(255, 35, 125, 0.2);
}
.btn--pink:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 34px rgba(255, 35, 125, 0.45); }
.btn--pink:active { transform: translateY(-1px) scale(0.99); }

.btn--ghost { background: transparent; color: var(--light); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(135, 255, 255, 0.12); }
.btn--ghost:active { transform: translateY(0); }

.btn--block { width: 100%; }

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  background:
    linear-gradient(120deg, rgba(255, 35, 125, 0.38), rgba(135, 255, 255, 0.32) 50%, rgba(108, 92, 231, 0.32)),
    rgba(15, 17, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 247, 247, 0.16);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-menu-link {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}
.header-menu-link:hover { color: var(--light); background: rgba(245, 247, 247, 0.08); }
.header-menu-link.is-active { color: var(--light); background: rgba(255, 35, 125, 0.22); }

@media (max-width: 860px) {
  .header-menu { display: none; }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 260px;
  max-width: 42vw;
}

.search-box-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-box-input {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--light);
  background: rgba(245, 247, 247, 0.06);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px 9px 38px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-box-input::placeholder { color: var(--muted); }
.search-box-input:focus { outline: none; border-color: rgba(135, 255, 255, 0.5); background: rgba(245, 247, 247, 0.1); }
.search-box-input::-webkit-search-cancel-button { filter: invert(0.6); cursor: pointer; }

@media (max-width: 640px) {
  .search-box { width: 160px; }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--light);
  color: var(--pink);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.header-cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28); }
.header-cta:active { transform: translateY(0) scale(0.99); }

@media (max-width: 640px) {
  .header-cta { padding: 9px 16px; font-size: 11px; }
}

/* ---------- decor ---------- */

.decor { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.decor-ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(135, 255, 255, 0.25);
}
.decor-ring--pink { border-color: rgba(255, 35, 125, 0.25); }

.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; }
.blob-1 { width: 320px; height: 320px; background: var(--pink); top: -90px; left: -70px; }
.blob-2 { width: 280px; height: 280px; background: var(--cyan); top: -50px; right: -90px; }
.blob-3 { width: 240px; height: 240px; background: #6c5ce7; top: 42%; left: 48%; }
.blob-4 { width: 300px; height: 300px; background: #ffb020; bottom: -110px; right: 4%; }
.blob-5 { width: 240px; height: 240px; background: #2fd9c4; bottom: 40px; left: -70px; }
.blob-6 { width: 200px; height: 200px; background: var(--pink); bottom: -70px; left: 38%; }
.blob-7 { width: 220px; height: 220px; background: var(--cyan); top: 8%; left: 22%; }

/* ---------- home / hero ---------- */

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-bg { position: absolute; inset: 0; z-index: 0; background: var(--dark-surface-2); }
.hero-banner-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 17, 0.4) 0%, rgba(15, 17, 17, 0.18) 42%, rgba(15, 17, 17, 0.6) 100%);
}

.hero-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  padding: 90px 24px;
}

.hero-banner-title-wrap {
  display: inline-block;
  margin-top: 48px;
}

.hero-banner-inner h1 {
  font-size: clamp(32px, 5vw, 56px);
  background: linear-gradient(100deg, var(--light) 15%, #ff237d 35%, #ff8fc0 50%, #c04cff 65%, #ff237d 85%, var(--light) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 1px rgba(50, 0, 25, 0.8))
    drop-shadow(0 3px 6px rgba(102, 0, 51, 0.6))
    drop-shadow(0 8px 18px rgba(102, 0, 51, 0.45));
  animation: shimmer-pink 6s ease-in-out infinite;
}

@keyframes shimmer-pink {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner-inner h1 { animation: none; }
}

.hero-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-menu-pin {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 17px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #ff5fa0);
  color: var(--light);
  box-shadow: 0 8px 24px rgba(255, 35, 125, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.hero-menu-pin:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px rgba(255, 35, 125, 0.45); }
.hero-menu-pin:active { transform: translateY(-1px) scale(0.99); }

.hero-reviews-btn {
  appearance: none;
  cursor: pointer;
  margin-top: 6px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 247, 247, 0.35);
  background: rgba(245, 247, 247, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(245, 247, 247, 0.85);
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-reviews-btn:hover { background: rgba(245, 247, 247, 0.2); border-color: rgba(245, 247, 247, 0.55); transform: translateY(-2px); }
.hero-reviews-btn:active { transform: translateY(0); }

@media (max-width: 720px) {
  .hero-banner { min-height: 460px; }
  .hero-banner-inner { padding: 64px 20px; gap: 28px; }
  .hero-menu { flex-direction: column; width: 100%; max-width: 320px; }
}

/* ---------- page transitions ---------- */

.page-transition { opacity: 0; transition: opacity 0.28s ease; }
.page-transition.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .page-transition { opacity: 1; transition: none; }
}

/* ---------- reviews ---------- */

.reviews { padding: 64px 0 88px; color: var(--dark); }

.reviews-title {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 8px;
  text-align: center;
}

.reviews-subtitle {
  color: var(--ink-muted);
  font-size: 14px;
  text-align: center;
  margin: 0 0 36px;
}

.reviews-carousel { position: relative; padding: 12px 52px; }

.reviews-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reviews-track::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--border-ink);
  background: rgba(244, 241, 234, 0.92);
  backdrop-filter: blur(6px);
  color: var(--dark);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.carousel-arrow .arrow-icon { width: 40%; height: 40%; }
.carousel-arrow:hover { border-color: var(--pink); color: var(--pink); }
.carousel-arrow:active { transform: translateY(-50%) scale(0.92); }
.carousel-arrow--prev { left: 4px; }
.carousel-arrow--next { right: 4px; }

.review-card {
  flex: 0 0 auto;
  width: auto;
  min-width: 200px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  background: var(--glass-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(135, 255, 255, 0.35); }

.review-card-photo { aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; background: var(--dark-surface-2); }
.review-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.review-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.review-author {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-muted);
  padding: 0 4px;
  margin: 0;
}

.review-quote {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dark);
  margin: 0;
}

.category-empty {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  text-align: center;
  padding: 40px 0;
}

/* ---------- category photo-tabs (subcategory picker, section pages) ---------- */

.cat-photo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.cat-photo-tabs[hidden] { display: none; }

.cat-photo-tab {
  appearance: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 148px;
  padding: 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border-ink);
  background: var(--glass-surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-photo-tab:hover { transform: translateY(-3px); border-color: rgba(10, 143, 136, 0.4); }
.cat-photo-tab.is-active { border-color: var(--pink); box-shadow: 0 8px 22px rgba(255, 35, 125, 0.25); }

.cat-photo-tab-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark-surface-2);
}
.cat-photo-tab-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cat-photo-tab-label {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
.cat-photo-tab.is-active .cat-photo-tab-label { color: var(--pink); }

.cat-photo-tab--all {
  justify-content: center;
  min-height: 192px;
}
.cat-photo-tab--all .cat-photo-tab-label { font-size: 15px; }

/* ---------- compact category menu, pinned under the header on scroll ---------- */

.cat-tabs-pinned {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 12px 24px;
  background: rgba(244, 241, 234, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-ink);
  box-shadow: 0 8px 20px rgba(20, 19, 26, 0.08);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cat-tabs-pinned::-webkit-scrollbar { display: none; }
.cat-tabs-pinned.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }

.cat-pin {
  appearance: none;
  cursor: pointer;
  background: transparent;
  flex: none;
  white-space: nowrap;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-ink);
  color: var(--ink-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cat-pin:hover { border-color: rgba(10, 143, 136, 0.4); color: var(--cyan-ink); }
.cat-pin.is-active {
  background: linear-gradient(135deg, var(--pink), #ff5fa0);
  border-color: transparent;
  color: var(--light);
}

/* ---------- product grid / card ---------- */

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--glass-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover { transform: translateY(-4px); border-color: rgba(135, 255, 255, 0.35); }

.product-card-media {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-surface-2);
  aspect-ratio: 4 / 5;
  margin-bottom: 14px;
}

.product-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.product-card-media img.is-placeholder { object-position: center; }

.product-card-name {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--dark);
}

.product-card-name:hover { color: var(--cyan-ink); }

.product-card-desc {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.product-card-fabric {
  color: var(--ink-muted);
  font-size: 12px;
  margin: 0 0 12px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-row[hidden] { display: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: default;
}

.pill--interactive { cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.15s ease; }
.pill--interactive:hover { border-color: var(--cyan); color: var(--light); transform: translateY(-1px); }
.pill--interactive.is-selected { background: var(--cyan); border-color: var(--cyan); color: var(--dark); transform: none; }

/* В наявності: бірюзове світіння. Немає в наявності: сіра, неактивна */
.pill--available {
  border-color: rgba(135, 255, 255, 0.5);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(135, 255, 255, 0.25);
}
.pill--available:hover { border-color: var(--cyan); }
.pill--available.is-selected { background: var(--cyan); border-color: var(--cyan); color: var(--dark); box-shadow: none; }

.pill--unavailable {
  border-color: var(--border);
  color: #5a6262;
  cursor: not-allowed;
  opacity: 0.55;
}
.pill--interactive.pill--unavailable:hover { border-color: var(--border); color: #5a6262; transform: none; }

.pill-row--colors { margin-bottom: 6px; }
.pill-row--gender { margin-bottom: 10px; }

.pill--color {
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
}

.pill--soldout {
  min-width: auto;
  padding: 0 14px;
  border-color: var(--pink);
  color: var(--pink);
  letter-spacing: 0.06em;
  box-shadow: 0 0 10px rgba(255, 35, 125, 0.45);
}

.pill--soon {
  min-width: auto;
  padding: 0 14px;
  border-color: var(--cyan);
  color: var(--cyan);
  letter-spacing: 0.06em;
  box-shadow: 0 0 10px rgba(135, 255, 255, 0.35);
}

/* Пілюлі на кремовому/світлому фоні (картка товару, сторінка товару) —
   темні "чорнильні" кольори замість світлих, розрахованих на темну підкладку. */
.field-group .pill,
.product-card .pill {
  border-color: var(--border-ink);
  color: var(--ink-muted);
}
.field-group .pill--interactive:hover,
.product-card .pill--interactive:hover { border-color: var(--cyan-ink); color: var(--dark); }
.field-group .pill--interactive.is-selected,
.product-card .pill--interactive.is-selected { background: var(--cyan-ink); border-color: var(--cyan-ink); color: #fff; }
.field-group .pill--available,
.product-card .pill--available {
  border-color: rgba(10, 143, 136, 0.5);
  color: var(--cyan-ink);
  box-shadow: 0 0 10px rgba(10, 143, 136, 0.3);
}
.field-group .pill--available:hover,
.product-card .pill--available:hover { border-color: var(--cyan-ink); }
.field-group .pill--available.is-selected,
.product-card .pill--available.is-selected { background: var(--cyan-ink); border-color: var(--cyan-ink); color: #fff; box-shadow: none; }
.field-group .pill--soon,
.product-card .pill--soon { border-color: var(--cyan-ink); color: var(--cyan-ink); box-shadow: 0 0 10px rgba(10, 143, 136, 0.25); }
.field-group .pill--soldout,
.product-card .pill--soldout { border-color: var(--pink); color: var(--pink); }
.field-group .pill--unavailable,
.product-card .pill--unavailable { border-color: var(--border-ink); }

/* Тултіп: показує текстом стан "в наявності" / "немає в наявності" при наведенні */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark-surface-2);
  color: var(--light);
  border: 1px solid var(--border);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
[data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--dark-surface-2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}
[data-tooltip]:hover::after, [data-tooltip]:hover::before,
[data-tooltip]:focus-visible::after, [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.price-note {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--cyan);
  margin: auto 0 0;
  padding-top: 12px;
}

.price-note--detail { font-size: 16px; }

.price-plate {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.price-plate-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.price-plate-cell--team {
  background: rgba(255, 35, 125, 0.12);
  border-radius: 10px;
  padding: 8px 14px;
  margin: -8px 0;
}

.price-plate-label {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.price-plate-cell--team .price-plate-label { color: var(--pink); }

.price-old {
  color: var(--ink-muted);
  font-size: 12px;
}

.price-old.is-sale { text-decoration: line-through; }

.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--light);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  box-shadow: 0 0 14px rgba(255, 35, 125, 0.55);
}

.price-team {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 22px;
  color: var(--pink);
}

/* ---------- product detail ---------- */

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-surface-2);
  aspect-ratio: 4 / 5;
  position: sticky;
  top: 100px;
}

.product-detail-media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.product-detail-media img.is-placeholder { object-position: center; }

.product-detail-media-col { position: sticky; top: 100px; }
.product-detail-media-col .product-detail-media { position: relative; top: 0; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 17, 17, 0.6);
  color: var(--light);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.gallery-arrow .arrow-icon { width: 42%; height: 42%; }
.gallery-arrow:hover { background: var(--cyan); color: var(--dark); }
.gallery-arrow:active { transform: translateY(-50%) scale(0.92); }
.gallery-arrow[hidden] { display: none; }
.gallery-arrow--prev { left: 12px; }
.gallery-arrow--next { right: 12px; }

.gallery-arrow--sm { width: 32px; height: 32px; font-size: 18px; }
.gallery-arrow--sm.gallery-arrow--prev { left: 8px; }
.gallery-arrow--sm.gallery-arrow--next { right: 8px; }

.product-detail-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-detail-thumb {
  width: 72px;
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-ink);
  background: var(--dark-surface-2);
  cursor: pointer;
  padding: 0;
  flex: none;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.product-detail-thumb:hover {
  border-color: rgba(135, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(135, 255, 255, 0.2);
}

.product-detail-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.product-detail-thumb img.is-placeholder { object-position: center; }

.product-detail-thumb.is-active { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(135, 255, 255, 0.35); }

.product-detail-info h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.product-detail-desc { color: var(--ink-muted); font-size: 15px; margin-bottom: 24px; }

.field-group { margin-bottom: 22px; }

.field-label {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.product-detail-fabric { color: var(--ink-muted); font-size: 13px; margin-bottom: 24px; }

.price-row--big {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border-ink);
  border-bottom: 1px solid var(--border-ink);
  margin: 24px 0;
}

.price-caption {
  display: block;
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.price-team-box .price-caption { color: var(--pink); }

.price-row--big .price-old { font-size: 15px; color: var(--ink-muted); }

.price-team-box {
  background: rgba(255, 35, 125, 0.12);
  border-radius: 12px;
  padding: 8px 16px;
}

.price-row--big .price-team { font-size: 28px; color: var(--pink); }

.product-detail-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 32px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), #ff5fa0);
  color: var(--light);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(255, 35, 125, 0.3);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.product-detail-cta:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 16px 34px rgba(255, 35, 125, 0.4); }
.product-detail-cta:active { transform: translateY(-1px) scale(0.99); }

/* ---------- product detail: розмірна сітка ---------- */

.size-chart-block { margin-top: 64px; }

.size-chart-title { font-size: clamp(22px, 3vw, 30px); margin-bottom: 24px; }

.size-chart-group-title {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-ink);
  margin: 20px 0 10px;
}

.size-chart-group-title:first-child { margin-top: 0; }

/* ---------- seasonal ---------- */

.seasonal {
  position: relative;
  overflow: hidden;
  color: var(--light);
  background:
    radial-gradient(60% 55% at 88% 0%, rgba(135, 255, 255, 0.14), transparent 60%),
    radial-gradient(55% 50% at 4% 100%, rgba(255, 35, 125, 0.16), transparent 60%),
    var(--dark);
}

.seasonal-decor-ring-1 { width: 380px; height: 380px; top: -140px; right: -100px; }
.seasonal-decor-ring-2 { width: 260px; height: 260px; bottom: -90px; left: -70px; }

.seasonal-inner { position: relative; z-index: 2; }

.seasonal-head { max-width: 680px; margin-bottom: 44px; }

.seasonal-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 35, 125, 0.35);
  background: rgba(255, 35, 125, 0.1);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.seasonal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 35, 125, 0.6);
  animation: seasonal-pulse 1.8s ease-out infinite;
}

@keyframes seasonal-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 35, 125, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 35, 125, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 35, 125, 0); }
}

.seasonal-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
  background: linear-gradient(96deg, var(--light) 42%, var(--cyan) 78%, var(--pink) 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.seasonal-text { color: var(--muted); font-size: 16px; max-width: 560px; margin-bottom: 18px; }

.seasonal-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

.seasonal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}

.seasonal-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark-surface-2);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.seasonal-card:hover { transform: translateY(-6px); border-color: rgba(135, 255, 255, 0.35); }

.seasonal-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  filter: grayscale(0.15) brightness(0.85);
  transition: transform 0.5s ease, filter 0.4s ease;
}

.seasonal-card:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }

.seasonal-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 17, 17, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(135, 255, 255, 0.4);
  color: var(--cyan);
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.seasonal-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 35, 125, 0.12), var(--dark-surface) 60%);
  border: 1px solid rgba(255, 35, 125, 0.25);
}

.seasonal-cta-eyebrow {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.seasonal-cta-text { color: var(--muted); font-size: 14px; max-width: 420px; }

/* ---------- size table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--border-ink); border-radius: var(--radius); }

.size-table { width: 100%; border-collapse: collapse; min-width: 480px; }

.size-table th, .size-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-ink);
  font-size: 14px;
}

.size-table th {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan-ink);
  background: var(--glass-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.size-table td { color: var(--ink-muted); }
.size-table td:first-child { color: var(--dark); font-weight: 700; }
.size-table tr:last-child td { border-bottom: none; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border-ink); padding: 32px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); font-size: 13px; }
.footer-brand img { height: 34px; }

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-social-label {
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.footer-social-links { display: flex; gap: 10px; }

.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border-ink);
  color: var(--ink-muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social-links a:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }
.footer-social-links svg { width: 18px; height: 18px; }

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pink), #ff5fa0);
  color: var(--light);
  text-align: center;
  box-shadow: 0 6px 18px rgba(255, 35, 125, 0.28);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}
.footer-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255, 35, 125, 0.4); text-decoration: none; }
.footer-cta:active { transform: translateY(-1px); }

.footer-cta-title {
  font-family: var(--ff-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.footer-cta-sub { font-size: 12px; color: rgba(245, 247, 247, 0.85); }

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink), #ff5fa0);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 35, 125, 0.35);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255, 35, 125, 0.45); }
.back-to-top:active { transform: translateY(-1px); }
.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .product-detail-media-col { position: static; }
}

@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .seasonal-gallery { grid-template-columns: repeat(2, 1fr); }
  .price-row--big { flex-direction: column; align-items: flex-start; gap: 12px; }
  .reviews-carousel { padding: 12px 44px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 18px; }
}

@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .review-card { max-width: 220px; }
}
