/* ============================================================
   Шарики — main.css
   Дизайн-система из мобильного макета, адаптированная под весь сайт.
   Акцент #ff6b9d, фон #fffbf9, текст #1a1a2e, DM Sans.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --pink: #ff6b9d;
  --pink-hover: #e8558a;
  --pink-light: #ff8cb3;
  --pink-bg: #ffe0ed;
  --pink-soft: #ffc0d4;
  --bg: #fffbf9;
  --bg-alt: #faf5f7;
  --surface: #fff;
  --muted-bg: #f5eff2;
  --border: #f5e8ef;
  --border-strong: #e5d7dc;
  --text: #1a1a2e;
  --text-muted: #6b5f65;
  --text-soft: #9c8f8a;
  --text-placeholder: #b8a5ac;

  --success: #10b981;
  --warn: #ffd93d;
  --danger: #ef4444;

  --cat-violet: #8b5cf6;     --cat-violet-bg: #ede9fe;
  --cat-cyan:   #06b6d4;     --cat-cyan-bg:   #cffafe;
  --cat-orange: #f97316;     --cat-orange-bg: #ffedd5;
  --cat-blue:   #3b82f6;     --cat-blue-bg:   #dbeafe;
  --cat-green:  #10b981;     --cat-green-bg:  #d1fae5;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(255,107,157,0.08);
  --shadow:    0 4px 16px rgba(255,107,157,0.12);
  --shadow-lg: 0 8px 24px rgba(255,107,157,0.18);
  --shadow-cta: 0 8px 20px rgba(255,107,157,0.3);

  --h-header: 64px;
  --h-bottom-nav: 68px;

  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* BASE */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--pink-hover); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }
h1,h2,h3,h4 { letter-spacing: -0.02em; color: var(--text); }

.muted { color: var(--text-soft); font-size: 13px; }
.req { color: var(--pink); }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,249,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229,215,220,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--h-header);
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pink);
  flex-shrink: 0;
}
.logo__emoji { font-size: 22px; }
.logo__image { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; }
.logo__text { color: var(--pink); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 10px;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-search {
  position: relative;
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  background: var(--muted-bg);
  border-radius: 12px;
  border: 1.5px solid transparent;
  padding: 0 8px 0 14px;
  transition: all 0.15s;
}
.site-search:focus-within { border-color: var(--pink); background: #fff; }
.site-search input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 0;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.site-search input::placeholder { color: var(--text-placeholder); }
.site-search button {
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-soft);
  display: flex; align-items: center; justify-content: center;
}
.site-search button:hover { background: #fff; color: var(--pink); }

.site-search__suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 120;
}
.site-search__suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
}
.site-search__suggest-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.site-search__placeholder {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--pink-bg);
  border-radius: 8px;
}
.site-search__suggest-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-search__suggest-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  flex-shrink: 0;
}
.site-search__suggest-item:hover,
.site-search__suggest-item.is-active {
  background: var(--muted-bg);
}
.site-search__suggest-item.is-active {
  outline: 2px solid var(--pink);
  outline-offset: -2px;
}
.site-search__suggest-name mark {
  background: rgba(255, 107, 157, 0.22);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 700;
}
.site-search__suggest-status {
  padding: 14px 10px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
}
.site-search__suggest-all {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s;
}
.main-nav a:hover { background: var(--muted-bg); color: var(--pink); }
.main-nav a.active { background: var(--pink-bg); color: var(--pink); }

.cart-link {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.cart-link:hover { background: var(--muted-bg); color: var(--pink); }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--pink);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}
.cart-count[data-count="0"], .cart-count:empty { display: none; }

/* MAIN */
.site-main { flex: 1; padding: 24px 0 48px; }

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.page-description { color: var(--text-muted); margin-bottom: 20px; }

.breadcrumbs {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-soft); font-weight: 500; }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs span { color: var(--text); font-weight: 600; }

.section { padding: 20px 0; }
.section--alt {
  background: var(--bg-alt);
  margin: 12px 0;
  border-radius: var(--radius-lg);
  padding: 28px 0;
}
.section__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.2;
}
.btn--primary { background: var(--pink); color: #fff; }
.btn--primary:hover { background: var(--pink-hover); color: #fff; }
.btn--primary:active { transform: scale(0.98); }
.btn--primary:disabled { background: var(--text-placeholder); cursor: not-allowed; opacity: 0.7; }
.btn--ghost { background: var(--muted-bg); color: var(--text); }
.btn--ghost:hover { background: var(--border-strong); color: var(--text); }
.btn--large { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
.btn--small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn--full { width: 100%; }

.btn--primary.btn--large.btn--full {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  box-shadow: var(--shadow-cta);
}
.btn--primary.btn--large.btn--full:hover { filter: brightness(1.03); }

/* HERO SLIDER */
.hero-slider {
  position: relative;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  max-width: 1200px;
}
.hero-slider .slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.slide__link { display: block; position: relative; width: 100%; height: 100%; color: #fff; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 80%);
  color: #fff;
}
.slide__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.slide__subtitle { font-size: 16px; margin: 0 0 14px; opacity: 0.95; max-width: 600px; }
.slide__content .btn { font-size: 14px; }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
  z-index: 3;
  transition: all 0.15s;
}
.slider-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.slider-arrow--prev { left: 16px; }
.slider-arrow--next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px; right: 20px;
  display: flex; gap: 6px;
  z-index: 3;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  transition: all 0.2s;
}
.slider-dots button.is-active { width: 22px; background: #fff; }

/* CATEGORY CARDS */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 14px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  color: var(--text);
  transition: all 0.18s;
  text-align: center;
  gap: 10px;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pink-soft);
  color: var(--text);
}
.category-card img,
.category-card__placeholder {
  width: 88px; height: 88px;
  border-radius: 16px;
  background: var(--pink-bg);
  display: flex; align-items: center; justify-content: center;
  object-fit: cover;
  font-size: 40px;
}
.category-card__name { font-size: 14px; font-weight: 600; }
.category-card__count { font-size: 12px; color: var(--text-soft); }

/* CAT CHIPS (catalog mobile) */
.cat-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 8px;
  margin: 0 0 12px;
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  background: var(--pink-bg);
  color: var(--pink);
}
.cat-chip:hover { filter: brightness(0.98); color: var(--pink); }
.cat-chip.is-active {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,107,157,0.25);
  transform: translateY(-1px);
}

/* PRODUCT CARD */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(255,107,157,0.06);
  position: relative;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--pink-soft);
}
.product-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  flex: 1;
}
.product-card__link:hover { color: inherit; }

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  background: #fff0f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__no-image { font-size: 60px; }
.product-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 10px 12px 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.product-card__desc {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0 12px 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 14px;
  margin-top: auto;
  gap: 10px;
}
.product-card__price {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

/* Badges */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--muted-bg);
  color: var(--text);
  z-index: 1;
}
.badge--new { background: #4ecdc4; color: #fff; }
.badge--hit { background: var(--warn); color: var(--text); }
.badge--sale { background: var(--pink); color: #fff; }
.product-card__image .badge + .badge { top: 38px; }
.product-card__image .badge + .badge + .badge { top: 66px; }

/* Price */
.price-current {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.price-current--big { font-size: 30px; color: var(--pink); }
.price-old {
  font-size: 12px;
  color: var(--text-placeholder);
  text-decoration: line-through;
  display: block;
  line-height: 1.2;
}

/* "+" add button on card */
.product-card .add-to-cart {
  width: 32px; height: 32px;
  padding: 0;
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
  text-indent: -9999px;
  position: relative;
  overflow: hidden;
}
.product-card .add-to-cart::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff, #fff) no-repeat center / 12px 2px,
    linear-gradient(#fff, #fff) no-repeat center / 2px 12px;
}
.product-card .add-to-cart:hover { background: var(--pink-hover); transform: scale(1.05); }
.product-card .add-to-cart:active { transform: scale(0.92); }

/* PRODUCT PAGE */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.gallery__main {
  aspect-ratio: 1;
  background: #fff0f5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.gallery__thumb {
  width: 72px; height: 72px;
  border-radius: 12px;
  border: 2px solid var(--border);
  padding: 0;
  overflow: hidden;
  background: var(--muted-bg);
  cursor: pointer;
  transition: border-color 0.15s;
}
.gallery__thumb.is-active { border-color: var(--pink); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-page__no-image {
  aspect-ratio: 1;
  background: var(--pink-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.product-page__title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.product-page__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.product-page__badges .badge { position: static; }
.product-page__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.product-page__stock { margin-bottom: 16px; }
.stock {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}
.stock--in  { color: var(--success); background: #d1fae5; }
.stock--low { color: #d97706; background: #fef3c7; }
.stock--out { color: var(--danger); background: #fee2e2; }

.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.specs th, .specs td {
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
}
.specs th { width: 40%; color: var(--text-soft); font-weight: 500; }
.specs td { font-weight: 600; color: var(--text); }
.specs tr + tr { border-top: 1px solid var(--border); }

.product-page__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.qty-selector {
  display: flex;
  align-items: center;
  background: var(--muted-bg);
  border-radius: 12px;
  overflow: hidden;
}
.qty-selector__btn {
  width: 40px; height: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  color: var(--pink);
}
.qty-selector__btn:hover { background: var(--border); }
.qty-selector input {
  width: 48px;
  height: 44px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}

.product-page__description {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.product-page__description h3 { font-size: 18px; margin: 0 0 10px; color: var(--text); }

.product-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
}
.stars { display: inline-flex; gap: 1px; }
.star { color: #e5d7dc; font-size: 16px; }
.star.is-on { color: #fbbf24; }

/* REVIEWS */
.reviews-section { margin-top: 40px; }
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review {
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}
.review__text { font-size: 14px; line-height: 1.5; color: var(--text); margin: 0; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.review__photos img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.review-form-details { margin-top: 16px; }
.review-form-details summary { list-style: none; }
.review-form-details summary::-webkit-details-marker { display: none; }
.review-form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
}
.review-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.review-form input[type="text"],
.review-form textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus { outline: none; border-color: var(--pink); }
.rating-picker { display: flex; gap: 4px; }
.star-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 24px;
  color: #e5d7dc;
  cursor: pointer;
  transition: color 0.15s;
}
.star-btn.is-on { color: #fbbf24; }

/* CATALOG */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.catalog-sidebar { position: sticky; top: 80px; }
.catalog-sidebar__toggle {
  display: none;
  width: 100%;
  padding: 12px 16px;
  background: var(--pink-bg);
  color: var(--pink);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.catalog-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.filter-block h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.categories-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s;
}
.categories-list a:hover { background: var(--muted-bg); color: var(--pink); }
.categories-list a.is-active {
  background: var(--pink-bg);
  color: var(--pink);
  font-weight: 600;
}
.categories-list ul { list-style: none; padding: 0; margin: 0; }
.filter-form { display: flex; flex-direction: column; gap: 14px; }
.filter-form input[type="search"],
.filter-form input[type="number"] {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  width: 100%;
}
.filter-form input:focus { outline: none; border-color: var(--pink); }
.filter-range { display: flex; gap: 8px; }
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.filter-checkbox input { width: 18px; height: 18px; accent-color: var(--pink); }

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.select, select {
  padding: 8px 12px;
  background: var(--muted-bg);
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.select:focus, select:focus { outline: 2px solid var(--pink); }

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-soft);
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-state p { font-size: 15px; margin: 0; }
.empty-state .btn { margin-top: 8px; }

.pagination {
  display: flex;
  gap: 6px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination__link {
  min-width: 38px; height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination__link:hover { border-color: var(--pink-soft); color: var(--pink); }
.pagination__link.is-active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.pagination__dots { color: var(--text-soft); padding: 0 6px; align-self: center; }

/* CART */
.cart-items {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__image {
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--pink-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { min-width: 0; }
.cart-item__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item__price { font-size: 12px; color: var(--text-soft); }
.cart-item__qty { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-weight: 700;
  color: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--pink); background: var(--pink-bg); }
.cart-item__qty span {
  font-size: 14px;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.cart-item__subtotal {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  min-width: 90px;
  text-align: right;
}
.cart-item__remove {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-size: 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-item__remove:hover { background: var(--pink-bg); color: var(--pink); }

.cart-summary {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}
.cart-summary__total {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cart-summary__total span:last-child { color: var(--pink); }
.cart-summary .btn { margin-top: 6px; }

/* CHECKOUT */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
.checkout-form {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.checkout-form h3 {
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}
.checkout-form h3:first-child { margin-top: 0; }
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: border-color 0.15s;
}
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus { outline: none; border-color: var(--pink); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-summary {
  position: sticky;
  top: 80px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checkout-summary h3 { margin: 0; font-size: 16px; font-weight: 700; }
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
  padding: 6px 0;
}
.summary-item + .summary-item { border-top: 1px dashed var(--border); }
.summary-item--total {
  font-size: 16px;
  font-weight: 700;
  padding-top: 10px;
  border-top: 1.5px solid var(--border);
}
.summary-item--total span:last-child { color: var(--pink); }

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.contact-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.18s;
}
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--pink-soft);
}
.contact-card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--pink-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  margin-bottom: 4px;
}
.contact-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.contact-card h3 {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.contact-card a,
.contact-card p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  word-break: break-word;
}
.contact-card a:hover { color: var(--pink); }

/* SUCCESS / SEARCH */
.success-card {
  max-width: 560px;
  margin: 32px auto;
  padding: 40px 32px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow);
}
.success-card__icon { font-size: 60px; margin-bottom: 12px; }
.success-card h1 { font-size: 24px; margin: 0 0 10px; }
.success-card__number { font-size: 15px; color: var(--text-muted); margin: 8px 0 16px; }
.success-card__details {
  margin: 24px 0;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: left;
}
.success-card__details h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}
.success-card .btn + .btn { margin-left: 8px; }

.search-page-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 560px;
}
.search-page-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
}
.search-page-form input:focus { outline: none; border-color: var(--pink); }

/* ALERTS / TOAST */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 12px;
}
.alert--error { background: #fee2e2; color: var(--danger); }
.alert--success { background: #d1fae5; color: var(--success); }

.toast-container {
  position: fixed;
  bottom: calc(var(--h-bottom-nav) + 16px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: toastIn 0.2s ease;
  white-space: nowrap;
}
.toast--success::before { content: '✓ '; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 701px) {
  .toast-container { bottom: 24px; }
}

/* ORDER HISTORY */
.my-orders-list { display: flex; flex-direction: column; gap: 10px; }
.my-order {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.my-order__head {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.my-order__num { font-weight: 700; color: var(--pink); }
.my-order__total { margin-left: auto; font-weight: 700; color: var(--text); }
.my-order__item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
}
.my-order__actions { margin-top: 8px; }

/* FOOTER */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
  margin-top: 40px;
  color: var(--text-muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 { font-size: 15px; margin: 0 0 12px; color: var(--text); }
.footer-col p,
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--pink); }
.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-contact__icon { flex-shrink: 0; font-size: 16px; width: 22px; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.footer-contact__icon img { width: 20px; height: 20px; border-radius: 4px; }
.footer-bottom {
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
}
.footer-contact a, .footer-contact span { display: inline; margin: 0; }
.footer-col p.footer-contact { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.footer-contact__icon { flex-shrink: 0; font-size: 16px; width: 22px; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.footer-contact a, .footer-contact span { display: inline; margin: 0; }
/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,251,249,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(229,215,220,0.5);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
}
.mobile-bottom-nav__inner { display: flex; }
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-placeholder);
  text-decoration: none;
  padding: 4px 2px;
  position: relative;
}
.mbn-wrap { position: relative; }
.mbn-icon {
  width: 38px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  transition: all 0.15s;
}
.mobile-bottom-nav a.active { color: var(--pink); }
.mobile-bottom-nav a.active .mbn-icon { background: var(--pink-bg); }
.mobile-bottom-nav a svg { transition: all 0.15s; }
.mbn-label { font-size: 10px; font-weight: 600; }
.mbn-badge {
  position: absolute;
  top: -2px; right: -6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--pink);
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}
.mbn-badge:empty, .mbn-badge[data-count="0"] { display: none; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .product-page { gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr 320px; gap: 20px; }
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
  .catalog-sidebar { position: static; }
  .catalog-sidebar__inner {
    display: none;
    padding: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
  }
  .catalog-sidebar__inner.is-open { display: flex; }
  .catalog-sidebar__toggle { display: block; }

  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }

  .product-page { grid-template-columns: 1fr; gap: 20px; }
  .hero-slider { height: 240px; }
  .slide__title { font-size: 24px; }
  .slide__subtitle { font-size: 14px; }
}

@media (max-width: 700px) {
  :root { --h-header: 56px; }
  body { padding-bottom: calc(var(--h-bottom-nav) + env(safe-area-inset-bottom, 0px)); }
  .site-main { padding: 16px 0 24px; }
  .container { padding: 0 14px; }

  .header-inner {
    gap: 10px;
    height: var(--h-header);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .logo__text { display: none; }
  .logo { font-size: 22px; }

  .site-search { max-width: none; padding: 0 6px 0 12px; }
  .site-search input { padding: 8px 0; font-size: 14px; }
  .site-search button { width: 30px; height: 30px; font-size: 14px; }

  .main-nav { display: none; }
  .menu-toggle { display: none !important; }

  .mobile-bottom-nav { display: block; }
  .site-footer { display: none; }

  .page-title { font-size: 22px; }
  .section { padding: 14px 0; }
  .section__title { font-size: 18px; margin-bottom: 12px; }
  .section--alt { padding: 18px 0; border-radius: 0; margin: 6px 0; }

  .hero-slider {
    height: 180px;
    border-radius: var(--radius-lg);
    margin: 0 0 16px;
  }
  .slide__content { padding: 20px; }
  .slide__title { font-size: 20px; }
  .slide__subtitle { font-size: 13px; margin-bottom: 8px; }
  .slider-arrow { display: none; }

  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { border-radius: 16px; }
  .product-card__name { font-size: 13px; margin: 8px 10px 2px; }
  .product-card__desc { display: none; }
  .product-card__bottom { padding: 6px 10px 12px; }
  .price-current { font-size: 15px; }
  .price-old { font-size: 11px; }
  .product-card .add-to-cart { width: 30px; height: 30px; border-radius: 9px; }
  .product-card .add-to-cart::after { font-size: 18px; }
.product-card .add-to-cart::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff, #fff) no-repeat center / 12px 2px,
    linear-gradient(#fff, #fff) no-repeat center / 2px 12px;
}
  /* Categories on home -> horizontal chips */
  .categories-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .categories-grid::-webkit-scrollbar { display: none; }
  .category-card {
    flex-shrink: 0;
    flex-direction: row;
    padding: 8px 14px 8px 8px;
    border-radius: 24px;
    gap: 8px;
  }
  .category-card img,
  .category-card__placeholder {
    width: 28px; height: 28px;
    border-radius: 8px;
    font-size: 16px;
  }
  .category-card__count { display: none; }
  .category-card__name { font-size: 13px; }

  .gallery__main { border-radius: var(--radius); }
  .product-page__title { font-size: 22px; }
  .price-current--big { font-size: 28px; }
  .product-page__actions {
    position: fixed;
    bottom: var(--h-bottom-nav);
    left: 0; right: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,251,249,0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    margin: 0;
    z-index: 90;
    gap: 10px;
  }
  .product-page__actions .btn { flex: 1; height: 44px; padding: 10px 14px; }
  .product-page__info { padding-bottom: 70px; }

  .cart-item {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "img info remove"
      "img qty sub";
    gap: 8px 12px;
    padding: 12px 14px;
  }
  .cart-item__image { grid-area: img; width: 56px; height: 56px; }
  .cart-item__info { grid-area: info; }
  .cart-item__qty { grid-area: qty; }
  .cart-item__subtotal { grid-area: sub; min-width: 0; font-size: 14px; }
  .cart-item__remove { grid-area: remove; align-self: start; }

  .checkout-form { padding: 16px; border-radius: var(--radius); }
  .form-row { grid-template-columns: 1fr; }

  .breadcrumbs { font-size: 12px; }

  .contacts-grid { grid-template-columns: 1fr; gap: 10px; }
  .contact-card {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }
  .contact-card__icon { margin-bottom: 0; flex-shrink: 0; }
  .contact-card > div { flex: 1; }

  .gallery__thumb { width: 56px; height: 56px; }

  .pagination__link { min-width: 34px; height: 34px; font-size: 13px; }

  .review { padding: 12px; }

  .success-card { margin: 16px 0; padding: 28px 20px; border-radius: var(--radius); }
}

@media (max-width: 380px) {
  .products-grid { gap: 8px; }
  .product-card__name { font-size: 12.5px; }
  .price-current { font-size: 14px; }
}

@media print {
  .site-header, .site-footer, .mobile-bottom-nav,
  .product-page__actions, .toast-container { display: none !important; }
  body { background: #fff; }
}
