:root {
  --coral: #FF6B6B;
  --coral-dark: #EE5A24;
  --teal: #2EC4B6;
  --teal-dark: #1A9E92;
  --purple: #7B68EE;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --gray-50: #F7F8FA;
  --gray-100: #EEF0F4;
  --gray-200: #DDE1E8;
  --gray-400: #9AA3B2;
  --gray-600: #5C6578;
  --gray-800: #2D3340;
  --gray-900: #1A1D26;
  --dark-bg: #1A1D26;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(26, 29, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(26, 29, 38, 0.12);
  --font: 'Nunito', system-ui, sans-serif;
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

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

/* ── Promo marquee (из админки) ── */
.site-marquee {
  background: var(--gray-900);
  color: var(--white);
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-marquee__track {
  display: flex;
  gap: 24px;
  padding: 10px 0;
  width: max-content;
  animation: siteMarquee 40s linear infinite;
}

.site-marquee__track:hover { animation-play-state: paused; }

.site-marquee__item { white-space: nowrap; }
.site-marquee__dot { opacity: 0.4; }

@keyframes siteMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Header ── */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  gap: 1px;
}

.logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  border-radius: 6px;
  color: white;
}

.logo__d { background: var(--coral); }
.logo__e { background: var(--teal); width: 22px; }
.logo__t { background: var(--purple); }
.logo__k { background: #FFD93D; color: var(--gray-800); }
.logo__l { background: var(--coral-dark); width: 22px; }
.logo__i { background: var(--teal-dark); width: 14px; }
.logo__k2 { background: #6C5CE7; }

.search {
  display: flex;
  border: 2px solid var(--gray-100);
  border-radius: 50px;
  overflow: hidden;
  background: var(--gray-50);
  transition: border-color 0.2s;
}

.search:focus-within { border-color: var(--teal); }

.search__category {
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  border-right: 1px solid var(--gray-200);
  min-width: 130px;
}

.search__input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 0.9375rem;
  outline: none;
}

.search__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.search__btn:hover { opacity: 0.9; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  transition: color 0.2s;
}

.header__action:hover { color: var(--teal-dark); }

.header__cart { position: relative; }

.header__cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--coral);
  color: white;
  font-size: 0.6875rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-top: 1px solid var(--gray-100);
  padding-top: 10px;
}

.categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-800);
  transition: background 0.2s;
}

.categories-btn:hover { background: var(--gray-100); }

.categories-btn__chevron { opacity: 0.5; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-links a:hover { background: var(--gray-50); color: var(--gray-800); }
.nav-links__highlight { color: var(--coral) !important; }

.categories-panel {
  position: absolute;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  box-shadow: var(--shadow-lg);
  padding: 24px 0;
  z-index: 99;
}

.categories-panel__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.categories-panel__col h3 {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.categories-panel__col a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: color 0.2s;
}

.categories-panel__col a:hover { color: var(--coral); }

/* ── Quick categories ── */
.quick-cats {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-cats::-webkit-scrollbar { display: none; }

.quick-cat {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-600);
  transition: transform 0.2s;
}

.quick-cat:hover { transform: translateY(-2px); }

.quick-cat img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.quick-cat--accent {
  width: auto;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  color: white;
  border-radius: 50px;
  font-size: 0.8125rem;
  align-self: center;
}

/* ── Hero ── */
.hero { padding: 16px 20px 24px; }

.hero-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.logo--image .logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.hero-banner__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  color: white;
}

.hero-banner__text h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-banner__text p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-banner__cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gray-900);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9375rem;
  width: fit-content;
  transition: transform 0.2s;
}

.hero-banner__cta:hover { transform: scale(1.03); }

.hero-banner__img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* ── Sections ── */
.section { padding: 32px 20px; }

.section__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.section__title--muted { color: var(--gray-400); font-weight: 700; }
.section__title--light { color: white; }

/* ── Carousel ── */
.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0;
}

.carousel__track::-webkit-scrollbar { display: none; }

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 1.5rem;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}

.carousel__arrow:hover {
  background: var(--teal);
  color: white;
}

.carousel__arrow--prev { left: -12px; }
.carousel__arrow--next { right: -12px; }

/* ── Popular categories ── */
.popular-cat {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-600);
  transition: transform 0.2s;
}

.popular-cat:hover { transform: translateY(-3px); }

.popular-cat small {
  font-size: 0.6875rem;
  color: var(--gray-400);
  font-weight: 600;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section__header .section__title { margin-bottom: 0; }

.section__more {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.catalog-stats {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 600;
}

.catalog-loading {
  padding: 40px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border-radius: var(--radius);
}

.catalog-loading code {
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
}

.catalog-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border-radius: var(--radius);
  line-height: 1.6;
}

.catalog-empty small {
  color: var(--gray-400);
  font-size: 0.875rem;
}

.categories-panel__inner--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 24px;
}

.categories-panel__inner--grid a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.categories-panel__inner--grid a span { color: var(--gray-400); font-size: 0.75rem; }

.categories-panel__inner--grid a:hover { color: var(--coral); }

.popular-cat__img {
  width: 110px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.popular-cat__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Product sections ── */
.product-section {
  padding: 32px 0;
}

.product-section--dark {
  background: var(--dark-bg);
  padding: 40px 0;
}

.product-section--dark .carousel__arrow {
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(8px);
}

.product-section--dark .carousel__arrow:hover {
  background: var(--teal);
}

/* ── Product card ── */
.product-card {
  flex-shrink: 0;
  scroll-snap-align: start;
  width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.carousel__track .product-card {
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card--dark {
  background: transparent;
  box-shadow: none;
}

.product-card--dark:hover {
  transform: none;
  box-shadow: none;
}

.product-card__image-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  margin: 12px 12px 0;
  width: calc(100% - 24px);
  overflow: hidden;
}

.product-card__image-wrap::before {
  content: '';
  display: block;
  padding-top: 100%;
}

.product-card__image-wrap > * {
  position: absolute;
}

.product-card__img-link {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.product-card--dark .product-card__image-wrap {
  border-radius: var(--radius);
}

.product-card__image-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.product-card__wish {
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all 0.2s;
  z-index: 1;
}

.product-card__wish:hover,
.product-card__wish--active {
  color: var(--coral);
}

.product-card__wish--active svg { fill: var(--coral); }

.product-card__badge {
  bottom: 8px;
  left: 8px;
  z-index: 2;
  background: linear-gradient(135deg, #FFD93D, #F9A825);
  color: var(--gray-900);
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
}

.product-card__promo {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: var(--teal);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.product-card__body {
  padding: 12px;
}

.product-card--dark .product-card__body { padding: 12px 4px; }

.product-card__brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.product-card--dark .product-card__brand { color: rgba(255,255,255,0.5); }

.product-card__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}

.product-card--dark .product-card__name { color: white; }

.product-card__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.product-card__price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--coral);
}

.product-card--dark .product-card__price { color: #FF8A8A; }

.product-card__old {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.product-card--dark .product-card__old { color: rgba(255,255,255,0.4); }

.product-card__discount {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--coral);
}

.product-card--dark .product-card__discount { color: #FF8A8A; }

.product-card__lowest {
  font-size: 0.6875rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.product-card--dark .product-card__lowest { color: rgba(255,255,255,0.35); }

.product-card__delivery {
  font-size: 0.6875rem;
  color: var(--teal-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.product-card--dark .product-card__delivery { color: var(--teal); }

.product-card__link {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover { color: var(--teal-dark); }

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
  transition: opacity 0.2s;
  text-align: center;
}

.product-card__btn:hover { opacity: 0.9; }

.product-card__btn--outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
}

.product-card--dark .product-card__btn--outline {
  border-color: rgba(255,255,255,0.3);
  color: white;
}

.product-card__badge--sale {
  left: auto;
  right: 8px;
  background: var(--coral);
}

/* ── Gift cards ── */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gift-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.gift-card:hover { transform: scale(1.02); }

.gift-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-card__overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: var(--shadow);
}

.gift-card__overlay h3 {
  font-size: 0.9375rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.gift-card__overlay p {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── Lifestyle banner ── */
.lifestyle-banner { padding: 16px 20px 32px; }

.lifestyle-banner__wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

.lifestyle-banner__wrap img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.lifestyle-banner__card {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 40px;
  box-shadow: var(--shadow-lg);
  max-width: 320px;
}

.lifestyle-banner__card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lifestyle-banner__card p {
  color: var(--gray-400);
  margin-bottom: 20px;
}

.lifestyle-banner__cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gray-900);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.875rem;
  transition: transform 0.2s;
}

.lifestyle-banner__cta:hover { transform: scale(1.03); }

/* ── Brands ── */
.brand-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-block;
  padding: 16px 28px;
  background: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-600);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.brand-chip:hover {
  color: var(--teal-dark);
  transform: translateY(-2px);
}

/* ── Articles ── */
.articles-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.articles-tabs::-webkit-scrollbar { display: none; }

.articles-tabs__tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-600);
  background: var(--white);
  transition: all 0.2s;
}

.articles-tabs__tab--active,
.articles-tabs__tab:hover {
  background: var(--teal);
  color: white;
}

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

.article-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  cursor: pointer;
}

.articles-empty {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.article-card:hover { transform: translateY(-3px); }

.article-card__tag {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}

.article-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gray-800);
}

/* ── SEO links ── */
.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.seo-links a {
  font-size: 0.8125rem;
  color: var(--gray-600);
  transition: color 0.2s;
}

.seo-links a:hover { color: var(--teal-dark); }

.seo-links a::after {
  content: '·';
  margin-left: 16px;
  color: var(--gray-200);
}

.seo-links a:last-child::after { display: none; }

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 0;
  margin-top: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}

.footer__col h4 {
  color: white;
  font-size: 0.875rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  padding: 4px 0;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--teal); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
}

.footer__note {
  margin-top: 4px;
  opacity: 0.5;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  animation: toast-in 0.3s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .header__top { grid-template-columns: 1fr; gap: 12px; }
  .logo { justify-content: center; }
  .header__actions { justify-content: center; }
  .hero-banner { grid-template-columns: 1fr; }
  .hero-banner__img { display: none; }
  .gift-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .categories-panel__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ── Category page ── */
.category-page { padding: 24px 20px 48px; }

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.breadcrumbs a:hover { color: var(--teal-dark); }

.category-page__head { margin-bottom: 24px; }

.category-page__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.category-page__head h1 {
  font-size: 1.75rem;
  font-weight: 800;
}

.category-page__count {
  color: var(--gray-400);
  font-size: 0.875rem;
  margin-top: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.product-grid .product-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.product-grid .product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Category layout + filters ── */
.category-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.category-layout__sidebar {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-gutter: stable;
}

.category-layout__sidebar::-webkit-scrollbar { width: 6px; }
.category-layout__sidebar::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

.category-layout__sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.category-page__filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  background: var(--white);
  border: 2px solid var(--gray-100);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.filters {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.filters__head h2 {
  font-size: 1.125rem;
  font-weight: 800;
}

.filters__clear {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.filters__note {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 12px;
  line-height: 1.4;
}

.filter-group {
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
  margin-top: 12px;
}

.filter-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.filter-group__head svg {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.filter-group__head[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.filter-group__meta {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--gray-400);
  background: var(--gray-50);
  padding: 2px 8px;
  border-radius: 50px;
}

.filter-group--flat {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.filter-group__body[hidden] { display: none; }

.filter-sort-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.filter-sort {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--white);
}

.filter-search {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8125rem;
  margin-bottom: 8px;
  background: var(--gray-50);
}

.filter-search:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
}

.filter-scroll {
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  margin-right: -4px;
}

.filter-scroll--short { max-height: 160px; }

.filter-scroll--sizes { max-height: 140px; }

.filter-scroll::-webkit-scrollbar { width: 6px; }
.filter-scroll::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

.filter-hint,
.filter-empty {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 8px;
  line-height: 1.35;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-chip {
  padding: 5px 10px;
  border-radius: 50px;
  background: rgba(46, 196, 182, 0.12);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(46, 196, 182, 0.35);
}

.filter-chip:hover {
  background: rgba(46, 196, 182, 0.2);
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.8125rem;
  cursor: pointer;
}

.filter-check input { accent-color: var(--teal); }

.filter-check__label { flex: 1; }

.filter-check__count {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.filter-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-price-field__label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.filter-stepper {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
}

.filter-stepper__btn {
  height: 36px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  line-height: 1;
}

.filter-stepper__btn:hover {
  background: rgba(46, 196, 182, 0.15);
}

.filter-stepper__input {
  width: 100%;
  min-width: 0;
  padding: 8px 4px;
  border: none;
  border-left: 1px solid var(--gray-100);
  border-right: 1px solid var(--gray-100);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  background: var(--white);
  -moz-appearance: textfield;
}

.filter-stepper__input::-webkit-outer-spin-button,
.filter-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.filter-stepper__input:focus {
  outline: none;
  background: rgba(46, 196, 182, 0.06);
}

.filter-range {
  width: 100%;
  margin: 4px 0;
  accent-color: var(--teal);
}

.filter-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-size {
  min-width: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-100);
  background: var(--white);
  font-weight: 700;
  font-size: 0.8125rem;
}

.filter-size--active {
  border-color: var(--teal);
  background: rgba(46, 196, 182, 0.12);
  color: var(--teal-dark);
}

/* ── Category tree (subcategories) ── */
.category-tree {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
  max-height: min(480px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.category-tree::-webkit-scrollbar { width: 6px; }
.category-tree::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

.category-tree::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.category-tree__title {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  padding-bottom: 10px;
  margin-bottom: 0;
}

.category-tree__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-tree__list--nested {
  margin-top: 2px;
}

.category-tree__row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 2px 0;
}

.category-tree__toggle {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--gray-400);
  border-radius: 4px;
  line-height: 1;
}

.category-tree__toggle:hover {
  background: var(--gray-50);
  color: var(--teal-dark);
}

.category-tree__dot {
  width: 20px;
  flex-shrink: 0;
}

.category-tree__link {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.25;
}

.category-tree__link:hover {
  color: var(--teal-dark);
}

.category-tree__link--active {
  color: var(--teal-dark);
  font-weight: 800;
}

.category-tree__count {
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
}

.category-tree__item--active > .category-tree__row {
  background: rgba(46, 196, 182, 0.08);
  border-radius: var(--radius-sm);
}

@media (max-width: 960px) {
  .category-layout {
    grid-template-columns: 1fr;
  }

  .category-page__filters-toggle { display: inline-flex; }

  .category-page__head-row { align-items: center; }

  .category-layout__sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 29, 38, 0.45);
    padding: 16px;
    overflow-y: auto;
  }

  .category-layout__sidebar--open {
    display: block;
  }

  .category-layout__sidebar .filters {
    max-width: 360px;
    margin: 0 auto;
  }
}

/* ── Product page ── */
.product-page { padding: 24px 20px 48px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.product-gallery__main {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery__main img {
  max-height: 100%;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-100);
  overflow: hidden;
  padding: 4px;
  background: var(--white);
}

.product-gallery__thumb--active {
  border-color: var(--teal);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-layout__buy {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.product-buy__brand {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-buy__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 8px 0 16px;
  line-height: 1.25;
}

.product-buy__prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-buy__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--coral-dark);
}

.product-buy__old {
  font-size: 1.125rem;
  color: var(--gray-400);
  text-decoration: line-through;
}

.product-buy__badge {
  background: var(--coral);
  color: white;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 4px 10px;
  border-radius: 50px;
}

.product-buy__tag {
  display: inline-block;
  background: var(--gray-50);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-buy__color {
  margin: 12px 0;
  font-size: 0.9375rem;
}

.product-option { margin: 16px 0; }

.product-option__label {
  font-weight: 700;
  margin-bottom: 8px;
}

.product-option__hint {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.product-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-size {
  min-width: 48px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-100);
  font-weight: 700;
  background: var(--white);
}

.product-size--active {
  border-color: var(--teal);
  background: rgba(46, 196, 182, 0.12);
}

.product-buy__cta { margin-top: 16px; }

.product-buy__perks {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  font-size: 0.8125rem;
  color: var(--gray-600);
  list-style: none;
}

.product-buy__perks li {
  padding: 4px 0 4px 20px;
  position: relative;
}

.product-buy__perks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.product-details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 40px;
}

.product-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--gray-100);
}

.product-tabs__btn {
  padding: 12px 20px;
  font-weight: 700;
  color: var(--gray-400);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.product-tabs__btn--active {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.product-specs {
  width: 100%;
  border-collapse: collapse;
}

.product-specs th,
.product-specs td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  font-size: 0.9375rem;
}

.product-specs th {
  width: 180px;
  color: var(--gray-400);
  font-weight: 600;
}

.product-desc { line-height: 1.65; color: var(--gray-800); }
.product-desc__lead { margin-bottom: 16px; font-size: 1rem; }
.product-desc__list { margin: 0 0 16px 1.2rem; }
.product-desc__list li { margin-bottom: 6px; }
.product-desc__note { font-size: 0.82rem; color: var(--gray-400); margin-top: 12px; }
.product-desc__empty { color: var(--gray-400); padding: 8px 0; }

.product-card__meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 4px;
}

.product-related { margin-bottom: 48px; }

.product-related .section-title {
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-layout__buy {
    padding: 20px;
  }

  .product-buy__title {
    font-size: 1.25rem;
  }

  .product-buy__price {
    font-size: 1.625rem;
  }

  .product-buy__cta,
  .btn--block {
    min-height: 48px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card__image-wrap {
    margin: 8px 8px 0;
    width: calc(100% - 16px);
  }

  .product-card__body {
    padding: 8px 10px 12px;
  }

  .product-card__name {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .product-card__actions {
    flex-direction: column;
    gap: 6px;
  }

  .product-card__btn {
    min-height: 40px;
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .product-gallery__thumb {
    width: 64px;
    height: 64px;
  }

  .product-page {
    padding: 16px 12px 40px;
  }

  .popular-cat__img {
    width: 88px;
    height: 88px;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: inherit;
}

.pagination__btn--active {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.pagination__info {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-left: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--teal), var(--teal-dark)); color: white; }
.btn--ghost { background: var(--gray-50); color: var(--gray-600); border: 2px solid var(--gray-100); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.header__action--active,
.header__cart--active { color: var(--teal-dark); }

.search__input--solo { flex: 1; }

/* ── Cart page ── */
.cart-page { padding: 24px 20px 48px; }

.cart-page__title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.cart-page__layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.cart-page__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.cart-item__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-50);
}

.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__brand {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 700;
}

.cart-item__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2px 0 6px;
}

.cart-item__price {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--coral);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-50);
  border-radius: 50px;
  padding: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-800);
  cursor: pointer;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.cart-item__sum {
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.cart-item__remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-50);
  border: none;
  font-size: 1.25rem;
  color: var(--gray-400);
  cursor: pointer;
}

.cart-item__remove:hover { background: #ffe8e8; color: var(--coral); }

.cart-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.cart-summary__row--total {
  border-top: 2px solid var(--gray-100);
  margin-top: 8px;
  padding-top: 16px;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.cart-summary__note {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 12px 0 16px;
}

.cart-summary__link {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.cart-empty,
.account-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-empty__icon { font-size: 3rem; margin-bottom: 16px; }

.cart-empty h2,
.account-empty h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cart-empty p,
.account-empty p {
  color: var(--gray-400);
  margin-bottom: 24px;
}

/* ── Account ── */
.account-page { padding: 24px 20px 48px; }

.account-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--gray-50);
  border-radius: 50px;
  padding: 4px;
}

.account-tabs__btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-600);
  background: transparent;
  cursor: pointer;
}

.account-tabs__btn--active {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: var(--shadow);
}

.account-form { display: flex; flex-direction: column; gap: 16px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--gray-600);
}

.field input {
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
}

.field input:focus {
  outline: none;
  border-color: var(--teal);
}

.field input:disabled {
  background: var(--gray-50);
  color: var(--gray-400);
}

.form-error {
  color: var(--coral);
  font-size: 0.875rem;
  font-weight: 600;
}

.account-hint {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
}

.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.account-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.account-user { text-align: center; margin-bottom: 24px; }

.account-user__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--teal));
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.account-user h2 {
  font-size: 1.125rem;
  font-weight: 800;
}

.account-user p {
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.account-nav__btn {
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-align: left;
  cursor: pointer;
}

.account-nav__btn--active,
.account-nav__btn:hover {
  background: var(--gray-50);
  color: var(--teal-dark);
}

.account-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.account-panel h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.account-subtitle {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 24px 0 16px;
}

.account-panel__lead {
  color: var(--gray-500);
  font-size: 0.9375rem;
  margin: -8px 0 20px;
}

.account-loading {
  text-align: center;
  padding: 48px;
  color: var(--gray-400);
  font-weight: 600;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

.account-stat {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}

.account-stat__val {
  display: block;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--teal-dark);
}

.account-stat__lbl {
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 600;
}

.account-empty--compact {
  padding: 24px;
  margin-top: 8px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-50);
  flex-wrap: wrap;
}

.order-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 4px;
}

.order-status {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.order-status--new { background: #e0f2fe; color: #0369a1; }
.order-status--process { background: #fef3c7; color: #b45309; }
.order-status--done { background: #d1fae5; color: #047857; }
.order-status--cancel { background: #fee2e2; color: #b91c1c; }

.order-card__items {
  list-style: none;
  margin: 0;
  padding: 12px 20px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.order-item:last-child { border-bottom: none; }

.order-item__img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--gray-50);
}

.order-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-item__name {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
}

.order-item__meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

.order-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-top: 2px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-600);
  flex-wrap: wrap;
}

.addresses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.address-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}

.address-card--default {
  border-color: var(--teal);
  background: rgba(45, 156, 156, 0.04);
}

.address-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 4px;
}

.address-card__badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(45, 156, 156, 0.12);
  padding: 2px 8px;
  border-radius: 50px;
  vertical-align: middle;
}

.address-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.address-card__action {
  font-size: 0.8125rem;
  padding: 8px 12px;
}

.address-card__del { color: var(--coral); }

.address-form {
  padding-top: 8px;
  border-top: 2px solid var(--gray-100);
}

@media (max-width: 900px) {
  .cart-page__layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-stats { grid-template-columns: 1fr; }
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item__qty,
  .cart-item__sum,
  .cart-item__remove { justify-self: start; }
}

@media (max-width: 640px) {
  .search__category { display: none; }
  .nav-links { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .lifestyle-banner__card {
    left: 16px;
    right: 16px;
    max-width: none;
    padding: 20px;
  }
  .carousel__arrow { display: none; }
}

.logo__img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.logo--image {
  display: inline-flex;
  align-items: center;
}

.seo-crawler {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-content {
  max-width: 820px;
  color: var(--gray-700);
  line-height: 1.65;
}

.seo-content p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
}

.seo-content__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.seo-content__list a {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.875rem;
}

.seo-content__list a:hover {
  text-decoration: underline;
}

.category-seo {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.875rem;
  line-height: 1.6;
}

.category-seo h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  color: var(--gray-800);
}
.category-hub {
  margin: 0 0 28px;
}

.category-hub__head {
  text-align: center;
  margin-bottom: 20px;
}

.category-hub__title {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-900);
  margin: 0 0 10px;
}

.category-hub__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.category-hub__links a {
  color: var(--teal-dark);
  font-weight: 700;
}

.category-hub__links span {
  color: var(--gray-300);
}

.category-hub__subtitle {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 12px;
}

.category-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.category-hub__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px 14px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-800);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.category-hub__tile:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(45, 156, 156, 0.12);
}

.category-hub__tile--active {
  border-color: var(--teal);
  background: rgba(45, 156, 156, 0.08);
  color: var(--teal-dark);
}

.category-page__head--hidden {
  display: none;
}

/* --- Filter tiles (SMYK-style) --- */
.filter-tiles {
  margin: 0 0 24px;
}

.filter-tiles__section + .filter-tiles__section {
  margin-top: 20px;
}

.filter-tiles__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray-800);
  margin: 0 0 12px;
}

.filter-tiles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* --- SEO FAQ + info pages --- */
.seo-faq {
  margin: 32px 0;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.seo-faq h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.seo-faq details {
  border-bottom: 1px solid var(--gray-100);
  padding: 10px 0;
}

.seo-faq details:last-child { border-bottom: none; }

.seo-faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.seo-faq p {
  margin-top: 8px;
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.info-page {
  padding: 24px 20px 48px;
  max-width: 720px;
}

/* SEO treść tylko dla botów — ukryta przed użytkownikami */
.seo-crawler {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-page__body {
  line-height: 1.6;
}

.info-page__body h1,
.seo-crawler h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 16px 0;
}

.info-page__body h2,
.seo-crawler h2 {
  font-size: 1.125rem;
  font-weight: 800;
  margin: 24px 0 8px;
}

.category-seo {
  margin: 40px auto;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.filter-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 10px 12px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.filter-tile__label {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gray-800);
}

.filter-tile:hover {
  border-color: var(--teal);
}

.filter-tile--active {
  border-color: var(--teal);
  background: rgba(45, 156, 156, 0.1);
}

.filter-tiles__section[data-tone="girl"] .filter-tile {
  border-color: rgba(236, 72, 153, 0.25);
}

.filter-tiles__section[data-tone="boy"] .filter-tile {
  border-color: rgba(59, 130, 246, 0.25);
}

@media (max-width: 768px) {
  .filter-tiles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
