/* ============================================================
   AURORA — компоненты: карточки, корзина, модалки, каталог, страницы
   ============================================================ */

/* ---------- Карточка товара ---------- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.product-card {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: var(--shadow), var(--glow);
  z-index: 2;
}

.product-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-card:hover .product-media img { transform: scale(1.06) rotate(0.5deg); }

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.badge-new { background: rgba(110, 231, 183, 0.16); color: var(--mint); border: 1px solid rgba(110, 231, 183, 0.35); }
.badge-hit { background: rgba(240, 171, 252, 0.16); color: var(--pink); border: 1px solid rgba(240, 171, 252, 0.35); }
.badge-sale { background: rgba(251, 146, 60, 0.16); color: #fdba74; border: 1px solid rgba(251, 146, 60, 0.35); }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 10, 18, 0.6);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.fav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  transition: stroke 0.3s, fill 0.3s, transform 0.3s var(--ease);
}

.fav-btn:hover { transform: scale(1.1); border-color: rgba(240, 171, 252, 0.5); }
.fav-btn:hover svg { stroke: var(--pink); }

.fav-btn.active svg {
  fill: var(--pink);
  stroke: var(--pink);
  animation: fav-pop 0.45s var(--ease);
}

@keyframes fav-pop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.product-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-cat {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.product-name {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price { display: flex; align-items: baseline; gap: 10px; }

.price b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.price s { color: var(--muted-2); font-size: 0.86rem; }

.product-colors { display: flex; gap: 6px; }

.product-colors i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-style: normal;
}

.add-btn {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.3s;
}

.add-btn svg { width: 19px; height: 19px; stroke: currentColor; }

.add-btn:hover {
  background: #fff;
  color: #0a0a12;
  border-color: #fff;
  transform: rotate(90deg) scale(1.05);
}

/* ---------- Плитки категорий ---------- */

.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.cat-tile {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 3/3.6;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.4s, transform 0.5s var(--ease);
}

.cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.8s var(--ease), opacity 0.5s;
  filter: saturate(1.05);
}

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 13, 0.92) 8%, rgba(7, 7, 13, 0.15) 55%);
}

.cat-tile:hover { border-color: rgba(103, 232, 249, 0.4); transform: translateY(-6px); }
.cat-tile:hover img { transform: scale(1.08); opacity: 0.95; }

.cat-tile > * { position: relative; z-index: 2; }

.cat-tile b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
}

.cat-tile span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.cat-tile .cat-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 10, 18, 0.5);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.4s var(--ease);
}

.cat-tile:hover .cat-arrow { background: #fff; color: #0a0a12; transform: rotate(45deg); }

/* ---------- Преимущества ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
}

.feature {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), rgba(16, 16, 28, 0.4));
  padding: 30px 26px;
  transition: transform 0.5s var(--ease), border-color 0.4s;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 26px;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.5s var(--ease);
}

.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.feature:hover::before { width: calc(100% - 52px); }

.feature-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  margin-bottom: 22px;
}

.feature-ico svg { width: 24px; height: 24px; stroke: var(--violet); }

.feature h3 { font-size: 1.02rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Отзывы ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.review {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}

.review:hover { transform: translateY(-5px); border-color: rgba(103, 232, 249, 0.3); }

.review-stars { color: #fbbf24; letter-spacing: 3px; font-size: 0.9rem; }

.review p { color: var(--muted); font-size: 0.95rem; flex: 1; }

.review-author { display: flex; align-items: center; gap: 14px; }

.review-author .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #0a0a12;
  background: var(--grad);
}

.review-author b { display: block; font-size: 0.94rem; }
.review-author span { color: var(--muted-2); font-size: 0.8rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] { border-color: rgba(167, 139, 250, 0.4); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-plus {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] summary .faq-plus {
  transform: rotate(45deg);
  background: var(--grad);
  color: #0a0a12;
}

.faq-item .faq-body {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA-баннер ---------- */

.cta-banner {
  position: relative;
  border-radius: calc(var(--r-lg) + 6px);
  border: 1px solid var(--line-strong);
  padding: clamp(48px, 7vw, 90px) clamp(28px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(167, 139, 250, 0.28), transparent 60%),
    radial-gradient(700px 320px at 85% 100%, rgba(103, 232, 249, 0.22), transparent 60%),
    var(--surface);
  text-align: center;
}

.cta-banner h2 { max-width: 640px; margin-inline: auto; }
.cta-banner p { color: var(--muted); max-width: 460px; margin: 18px auto 34px; }

/* ---------- Каталог ---------- */

.page-hero {
  padding: calc(var(--header-h) + clamp(48px, 8vw, 90px)) 0 clamp(36px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.16), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--muted); max-width: 520px; }

.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding-bottom: 100px;
}

.catalog-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 28px;
}

.filter-block h3 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.chip small { color: var(--muted-2); font-weight: 700; margin-left: 5px; }

.chip:hover { border-color: var(--line-strong); color: var(--text); }

.chip.active {
  background: #fff;
  border-color: #fff;
  color: #0a0a12;
}
.chip.active small { color: rgba(10, 10, 18, 0.55); }

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: var(--muted-2);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box input::placeholder { color: var(--muted-2); }
.search-box input:focus { border-color: rgba(167, 139, 250, 0.5); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12); }

.sort-select, .filter-select {
  padding: 14px 40px 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9bb0' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color 0.3s;
}

.sort-select:hover, .filter-select:hover { border-color: var(--line-strong); }

.results-count { color: var(--muted-2); font-size: 0.86rem; font-weight: 600; }

.empty-state {
  text-align: center;
  padding: 90px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  color: var(--muted);
}

.empty-state .big { font-size: 2.6rem; margin-bottom: 12px; }
.empty-state b { display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 6px; }

/* ---------- Корзина (drawer) ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 4, 8, 0.66);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.drawer-overlay.show { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1101;
  width: min(440px, 100vw);
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.55s var(--ease);
}

.cart-drawer.open { transform: translateX(0); }

.cart-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }

.cart-head h3 span {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--violet);
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  display: grid;
  place-items: center;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.drawer-close:hover { background: rgba(255, 255, 255, 0.07); transform: rotate(90deg); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.cart-empty .big { font-size: 3rem; }
.cart-empty b { color: var(--text); font-size: 1.05rem; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  align-items: center;
  animation: item-in 0.45s var(--ease);
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-item img {
  width: 72px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-info b { display: block; font-size: 0.88rem; line-height: 1.35; }
.cart-item-info span { color: var(--muted-2); font-size: 0.76rem; font-weight: 600; }

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  transition: background 0.25s, border-color 0.25s;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--line-strong); }

.qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
}

.cart-item-side { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

.cart-item-side b { font-size: 0.9rem; font-family: var(--font-display); font-weight: 700; }

.remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted-2);
  display: grid;
  place-items: center;
  transition: color 0.25s, background 0.25s;
}
.remove-btn:hover { color: #fb7185; background: rgba(251, 113, 133, 0.1); }

.shipping-bar {
  margin: 0 26px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.shipping-bar b { color: var(--mint); }

.shipping-track {
  margin-top: 10px;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.shipping-fill {
  height: 100%;
  border-radius: 6px;
  background: var(--grad);
  transition: width 0.6s var(--ease);
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 20px 26px 26px;
  display: grid;
  gap: 14px;
}

.promo-row { display: flex; gap: 8px; }

.promo-row input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88rem;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.3s;
}
.promo-row input:focus { border-color: rgba(103, 232, 249, 0.5); }
.promo-row input::placeholder { text-transform: none; letter-spacing: 0; color: var(--muted-2); }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.cart-total span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.cart-total b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.cart-total s { color: var(--muted-2); font-size: 0.95rem; margin-right: 10px; }

.cart-discount { color: var(--mint); font-size: 0.82rem; font-weight: 700; display: flex; justify-content: space-between; }

/* ---------- Модалки ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(4, 4, 8, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.modal-overlay.show { opacity: 1; pointer-events: auto; }

.modal {
  width: min(480px, 100%);
  max-height: min(640px, 90vh);
  overflow-y: auto;
  border-radius: calc(var(--r-lg) + 4px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(170deg, var(--surface-2), var(--bg-soft) 70%);
  padding: 34px;
  transform: translateY(26px) scale(0.97);
  transition: transform 0.45s var(--ease);
  box-shadow: var(--shadow);
}

.modal-overlay.show .modal { transform: translateY(0) scale(1); }

.modal h3 { font-size: 1.3rem; margin-bottom: 8px; }
.modal .modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 24px; }

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: -10px -10px 0 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.modal-close:hover { transform: rotate(90deg); background: rgba(255, 255, 255, 0.08); }

/* Быстрый просмотр */
.qv-product {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.qv-product img { border-radius: var(--r-md); aspect-ratio: 4/5; object-fit: cover; }

.size-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 22px; }

.size-btn {
  min-width: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 800;
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}

.size-btn:hover { border-color: var(--line-strong); }

.size-btn.active {
  background: #fff;
  color: #0a0a12;
  border-color: #fff;
  transform: translateY(-2px);
}

/* Оформление заказа */
.form-grid { display: grid; gap: 14px; }

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}

.form-field textarea { resize: vertical; min-height: 84px; }

.checkout-summary {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--muted);
  max-height: 130px;
  overflow-y: auto;
}

.checkout-actions { display: grid; gap: 10px; margin-top: 6px; }

.copy-ok { color: var(--mint); font-size: 0.84rem; font-weight: 700; text-align: center; min-height: 1.2em; }

/* ---------- Toast ---------- */

.toast-wrap {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.35);
  background: rgba(13, 22, 18, 0.92);
  backdrop-filter: blur(14px);
  font-size: 0.9rem;
  font-weight: 700;
  color: #d9fff0;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.5s var(--ease), toast-out 0.4s var(--ease) 2.6s forwards;
}

.toast .t-ico { color: var(--mint); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
}
@keyframes toast-out {
  to { opacity: 0; transform: translateY(14px) scale(0.96); }
}

/* ---------- Страница «О бренде» ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4/4.6;
}

.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-visual .about-chip {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-visual .about-chip b { font-family: var(--font-display); }

.values-list { display: grid; gap: 14px; margin-top: 34px; }

.value-row {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.value-row:hover { transform: translateX(6px); border-color: rgba(103, 232, 249, 0.3); }

.value-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.value-row b { display: block; margin-bottom: 4px; }
.value-row p { color: var(--muted); font-size: 0.9rem; }

.timeline { position: relative; max-width: 720px; margin-inline: auto; padding-left: 36px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--violet), var(--cyan), transparent);
}

.tl-item { position: relative; padding: 0 0 42px 26px; }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--violet);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.5);
}

.tl-item .tl-year {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.tl-item h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.tl-item p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Контакты ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-cards { display: grid; gap: 14px; }

.contact-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}

.contact-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, 0.35); }

.contact-card .c-ico {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(103, 232, 249, 0.1);
  border: 1px solid rgba(103, 232, 249, 0.28);
}

.contact-card .c-ico svg { width: 22px; height: 22px; stroke: var(--cyan); }

.contact-card b { display: block; margin-bottom: 4px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.92rem; }
.contact-card a:hover { color: var(--cyan); }

/* ---------- 404 ---------- */

.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
}

.code-404 {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 13rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(167, 139, 250, 0.35));
  animation: float 5s ease-in-out infinite;
}

/* ---------- Плейсхолдер без фото (пока товар не загружен в админке) ---------- */

.ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.ph span {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
  filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.4));
}

.ph-0 { background: radial-gradient(120% 90% at 30% 20%, rgba(167, 139, 250, 0.28), transparent 60%), radial-gradient(110% 90% at 80% 90%, rgba(103, 232, 249, 0.16), transparent 60%), var(--bg-soft); }
.ph-1 { background: radial-gradient(120% 90% at 70% 25%, rgba(103, 232, 249, 0.26), transparent 60%), radial-gradient(110% 90% at 20% 85%, rgba(240, 171, 252, 0.16), transparent 60%), var(--bg-soft); }
.ph-2 { background: radial-gradient(120% 90% at 50% 15%, rgba(240, 171, 252, 0.24), transparent 60%), radial-gradient(110% 90% at 75% 90%, rgba(167, 139, 250, 0.18), transparent 60%), var(--bg-soft); }
.ph-3 { background: radial-gradient(120% 90% at 35% 30%, rgba(110, 231, 183, 0.22), transparent 60%), radial-gradient(110% 90% at 80% 85%, rgba(103, 232, 249, 0.18), transparent 60%), var(--bg-soft); }

.cart-item-thumb {
  width: 72px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
}

.cart-item-thumb .ph span { font-size: 1.6rem; }

/* ---------- Админка ---------- */

.admin-wrap { min-height: 100svh; padding: calc(var(--header-h) + 40px) 0 80px; }

.admin-card {
  width: min(1060px, 100%);
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(22px, 3.5vw, 40px);
}

.admin-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.admin-head h1 { font-size: 1.4rem; }

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

.admin-thumb {
  width: 52px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
}

.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb .ph span { font-size: 1.2rem; }

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

.admin-login {
  width: min(440px, 100%);
  margin: 8vh auto 0;
}

.admin-note {
  border: 1px solid rgba(103, 232, 249, 0.3);
  background: rgba(103, 232, 249, 0.07);
  border-radius: var(--r-md);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.admin-note b { color: var(--cyan); }

.setup-steps { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.setup-steps code {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.84em;
}

.upload-box {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.upload-box:hover { border-color: rgba(167, 139, 250, 0.5); background: rgba(167, 139, 250, 0.05); }

.upload-box img, .upload-box .ph {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  object-fit: cover;
  margin-bottom: 12px;
}

.upload-box .ph { display: grid; }
.upload-box input[type="file"] { display: none; }

.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-form-grid .full { grid-column: 1 / -1; }

@media (max-width: 720px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-table th:nth-child(4), .admin-table td:nth-child(4),
  .admin-table th:nth-child(5), .admin-table td:nth-child(5) { display: none; }
}



/* ---------- Премиум-полировка ---------- */

/* Блик, пробегающий по кнопке */
.btn-primary, .btn-grad { position: relative; overflow: hidden; }

.btn-primary::after, .btn-grad::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.55) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}

.btn-primary:hover::after, .btn-grad:hover::after { transform: translateX(130%); }

/* Вращающееся аврора-кольцо за витриной в хиро */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(167, 139, 250, 0) 0%,
    rgba(167, 139, 250, 0.35) 22%,
    rgba(103, 232, 249, 0.32) 45%,
    rgba(240, 171, 252, 0.28) 68%,
    rgba(167, 139, 250, 0) 100%);
  filter: blur(30px);
  animation: hero-spin 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes hero-spin { to { transform: rotate(360deg); } }

.float-card { z-index: 1; }
.float-card.fc-1 { z-index: 2; }
.float-card.fc-3 { z-index: 3; }

/* Градиентная рамка карточки при ховере */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg,
    rgba(167, 139, 250, 0.65),
    rgba(103, 232, 249, 0.5),
    rgba(240, 171, 252, 0.55));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 3;
}

.product-card:hover::before { opacity: 1; }

/* Плавный зум градиентных плиток категорий */
.cat-tile .ph { transition: transform 0.8s var(--ease); }
.cat-tile:hover .ph { transform: scale(1.06); }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { height: 380px; max-width: 560px; }
  .scroll-hint { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-side { position: static; }
  .reviews-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 36px); }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-body { padding: 14px; }
  .features-grid, .cat-tiles, .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-cta .btn { width: 100%; }
  .float-tag { display: none; }
}
