/* ============================================================
   imkids.ru — Theme CSS for Webasyst Shop-Script
   Design replica of mitiva.ru, branded for imkids.ru
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  color: #1a1a1a;
  background: #fdfbf7;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Unbounded', 'Manrope', sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ---- Variables ---- */
:root {
  --primary: #f06c2e;
  --primary-dark: #d4561e;
  --primary-light: #ffe6d9;
  --secondary: #2e7d6b;
  --secondary-dark: #1f6354;
  --secondary-light: #d9ede8;
  --accent: #e8a92e;
  --cream: #fdfbf7;
  --cream-100: #faf5ec;
  --cream-200: #f5ebd9;
  --ink: #1a1a1a;
  --ink-600: #666;
  --ink-500: #888;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --container: 1280px;
}

/* ---- Layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.main { min-height: 60vh; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all 0.25s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: scale(1.02); box-shadow: 0 8px 24px rgba(240,108,46,0.3); }
.btn--outline { background: #fff; color: var(--ink); border: 2px solid var(--cream-200); }
.btn--outline:hover { background: var(--cream-100); border-color: var(--primary); color: var(--primary); }
.btn--large { padding: 16px 36px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---- Form inputs ---- */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--cream-200);
  border-radius: var(--radius-sm);
  background: var(--cream-100);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(240,108,46,0.15); }
.form-input--textarea { resize: vertical; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.form-required { color: var(--primary); }
.form-group { margin-bottom: 16px; }

/* ---- Topbar ---- */
.topbar { background: var(--secondary); color: #fff; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.topbar p { opacity: 0.9; text-align: center; }
.topbar__region { opacity: 0.7; }

/* ---- Header ---- */
.header { background: var(--cream); transition: box-shadow 0.3s, background 0.3s; position: sticky; top: 0; z-index: 100; }
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.logo__main { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 26px; color: var(--primary); letter-spacing: -0.5px; }
.logo__accent { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 26px; color: var(--secondary); }

/* Nav */
.nav { display: flex; align-items: center; gap: 28px; }
.nav__item--has-dropdown { position: relative; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--ink); transition: color 0.2s; display: flex; align-items: center; gap: 6px; }
.nav__link:hover { color: var(--primary); }
.nav__chevron { transition: transform 0.2s; }
.nav__item--has-dropdown:hover .nav__chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 12px;
  width: 300px; background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12); border: 1px solid var(--cream-200);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease;
}
.nav__item--has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__item { display: block; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-600); transition: background 0.15s, color 0.15s; }
.dropdown__item:hover { background: var(--cream-100); color: var(--primary); }

/* Header actions */
.header__actions { display: flex; align-items: center; gap: 20px; }
.header__phone { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); transition: color 0.2s; }
.header__phone svg { color: var(--primary); }
.header__phone:hover { color: var(--primary); }

.header__icons { display: flex; align-items: center; gap: 12px; }
.header__icon { position: relative; color: var(--ink-600); transition: color 0.2s; }
.header__icon:hover { color: var(--primary); }
.header__badge {
  position: absolute; top: -8px; right: -8px;
  background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.header__badge--green { background: var(--secondary); }

/* Burger */
.header__burger { display: none; flex-direction: column; gap: 4px; padding: 6px; }
.header__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.2s; }
.header__burger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile Menu ---- */
.mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--cream); z-index: 99; padding: 80px 16px 24px; overflow-y: auto; }
.mobile-menu.open { display: block; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__link { padding: 14px 16px; font-weight: 600; font-size: 16px; border-top: 1px solid var(--cream-200); color: var(--ink); }
.mobile-menu__phone { padding: 14px 16px; font-weight: 700; font-size: 18px; color: var(--primary); border-top: 1px solid var(--cream-200); }
.mobile-menu__toggle { width: 100%; text-align: left; padding: 14px 16px; font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__submenu { padding-left: 16px; }
.mobile-menu__subitem { display: block; padding: 10px 16px; font-size: 14px; color: var(--ink-600); }

/* ---- Hero ---- */
.hero { position: relative; padding: 48px 0 64px; background: linear-gradient(135deg, var(--cream-100), var(--cream), var(--secondary-light)); overflow: hidden; }
.hero__decor { position: absolute; width: 384px; height: 384px; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero__decor--right { top: 80px; right: -80px; background: rgba(255,199,168,0.3); }
.hero__decor--left { bottom: -128px; left: -80px; background: rgba(179,220,210,0.3); }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.8); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px; margin-bottom: 24px; border: 1px solid var(--cream-200); }
.hero__badge svg { color: var(--accent); }
.hero__badge span { font-size: 14px; font-weight: 600; color: var(--ink-600); }
.hero__title { font-weight: 800; font-size: 56px; margin-bottom: 24px; }
.hero__highlight { color: var(--primary); }
.hero__subtitle { font-size: 18px; color: var(--ink-600); margin-bottom: 24px; max-width: 540px; }
.hero__features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.hero__feature { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--secondary-dark); background: var(--secondary-light); padding: 6px 12px; border-radius: 8px; }
.hero__feature svg { color: var(--secondary); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; }
.hero__image-wrap { position: relative; }
.hero__image { width: 100%; height: auto; aspect-ratio: 1.05 / 1; object-fit: contain; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.hero__image--placeholder { background: linear-gradient(145deg, #edf4f0 0%, #f6c8a7 100%); position: relative; overflow: hidden; }
.hero__image--placeholder::after { content: ''; position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.42); top: 14%; right: 12%; }
.hero__float-badge { position: absolute; bottom: -20px; left: -20px; background: #fff; border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 20px; display: flex; align-items: center; gap: 12px; animation: float 4s ease-in-out infinite; }
.hero__float-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 20px; color: var(--primary); }
.hero__float-title { font-weight: 700; font-size: 14px; }
.hero__float-text { font-size: 12px; color: var(--ink-500); }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section__head { text-align: center; margin-bottom: 56px; }
.section__eyebrow { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.section__eyebrow--primary { color: var(--primary); }
.section__eyebrow--secondary { color: var(--secondary); }
.section__eyebrow--light { color: var(--secondary-light); }
.section__title { font-weight: 800; font-size: 40px; margin-bottom: 16px; }
.section__desc { font-size: 18px; color: var(--ink-500); max-width: 540px; margin: 0 auto; }

/* ---- Popular Products ---- */
.popular { background: var(--cream); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.products-grid--category { grid-template-columns: repeat(3, 1fr); }

.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--cream-200); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; display: block; }
.product-card:hover { border-color: var(--primary-light); box-shadow: 0 12px 32px rgba(0,0,0,0.1); transform: translateY(-2px); }
.product-card__image { position: relative; aspect-ratio: 4/3; background: var(--cream-100); overflow: hidden; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.5s; }
.product-card__placeholder, .category-card__placeholder, .cart-item__placeholder, .product__image-placeholder { width: 100%; height: 100%; min-height: 120px; background: linear-gradient(145deg, var(--cream-100), #ead8c5); position: relative; }
.product-card__placeholder::after, .category-card__placeholder::after, .cart-item__placeholder::after, .product__image-placeholder::after { content: ''; position: absolute; width: 34%; aspect-ratio: 1; border: 8px solid rgba(240,108,46,.35); border-radius: 50%; left: 33%; top: 28%; }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__badge { position: absolute; top: 12px; left: 12px; background: var(--secondary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.product-card__badge--sale { background: var(--primary); }
.product-card__body { padding: 20px; }
.product-card__name { font-weight: 700; font-size: 16px; margin-bottom: 6px; min-height: 48px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; }
.product-card:hover .product-card__name { color: var(--primary); }
.product-card__feature { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.product-card__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.product-card__feature span:last-child { font-size: 14px; color: var(--ink-500); }
.product-card__bottom { display: flex; align-items: center; justify-content: space-between; }
.product-card__prices { display: flex; flex-direction: column; }
.product-card__old-price { font-size: 13px; color: var(--ink-500); text-decoration: line-through; }
.product-card__price { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 18px; color: var(--primary); }
.product-card__arrow { width: 36px; height: 36px; border-radius: 50%; background: var(--cream-100); display: flex; align-items: center; justify-content: center; color: var(--ink-600); transition: background 0.2s, color 0.2s; }
.product-card:hover .product-card__arrow { background: var(--primary); color: #fff; }
.product-card__cart-btn { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.product-card__cart-btn:hover { background: var(--primary); color: #fff; }
.product-card__add-form { display: inline; }
.product-card__gallery { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.product-card__gallery::-webkit-scrollbar { display: none; }
.product-card__gallery img { min-width: 100%; height: 100%; object-fit: contain; padding: 16px; scroll-snap-align: start; transition: transform 0.5s; }
.product-card:hover .product-card__gallery img { transform: scale(1.05); }

/* ---- Advantages ---- */
.advantages { background: #fff; }
.advantages__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.advantage-card { text-align: center; background: var(--cream); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--cream-200); transition: all 0.3s; }
.advantage-card:hover { background: var(--primary-light); border-color: var(--primary-light); transform: translateY(-4px); }
.advantage-card__icon { width: 64px; height: 64px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary-light), var(--secondary-light)); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: var(--primary); transition: transform 0.3s; }
.advantage-card:hover .advantage-card__icon { transform: scale(1.1); }
.advantage-card__title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.advantage-card__text { font-size: 14px; color: var(--ink-500); line-height: 1.5; }

/* ---- Categories ---- */
.categories { background: linear-gradient(180deg, var(--cream), var(--cream-100)); }
.categories__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.category-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--cream-200); transition: all 0.3s; display: block; }
.category-card:hover { border-color: var(--primary-light); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.category-card__image { aspect-ratio: 3/4; overflow: hidden; background: var(--cream-100); display: flex; align-items: center; justify-content: center; padding: 24px; }
.category-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s; }
.category-card:hover .category-card__image img { transform: scale(1.05); }
.category-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; text-align: center; background: linear-gradient(180deg, transparent, #fff 40%); }
.category-card__title { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.category-card__subtitle { font-size: 14px; color: var(--ink-500); margin-bottom: 12px; }
.category-card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--primary); transition: gap 0.2s; }
.category-card:hover .category-card__link { gap: 10px; }

/* ---- Reviews ---- */
.reviews { background: #fff; }
.reviews__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.review-card { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--cream-200); transition: box-shadow 0.3s; display: flex; flex-direction: column; }
.review-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.review-card__quote { color: var(--primary-light); margin-bottom: 16px; }
.review-card__text { font-size: 14px; color: var(--ink-600); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.review-card__author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--cream-200); }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.review-card__name { font-weight: 700; font-size: 14px; }
.review-card__stars { color: var(--accent); font-size: 12px; }
.review-card__date { font-size: 12px; color: var(--ink-500); }

/* ---- CTA ---- */
.cta { padding: 64px 0; background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)); position: relative; overflow: hidden; }
.cta__decor { position: absolute; width: 288px; height: 288px; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.cta__decor--right { top: 40px; right: 40px; background: rgba(240,108,46,0.1); }
.cta__decor--left { bottom: 40px; left: 40px; background: rgba(179,220,210,0.1); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta__title { font-weight: 800; font-size: 40px; color: #fff; margin-bottom: 20px; }
.cta__text { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 32px; max-width: 480px; }
.cta__benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.cta__benefit { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); }
.cta__check { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8); font-size: 13px; }
.cta__phone { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 24px; color: #fff; transition: color 0.2s; }
.cta__phone:hover { color: var(--accent); }

.cta__form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.cta__form-title { font-weight: 700; font-size: 20px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cta__form-text { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; }
.cta__form { display: grid; gap: 16px; }
.cta__form-note { font-size: 12px; color: var(--ink-500); text-align: center; }

/* ---- Footer ---- */
.footer { background: var(--ink); color: rgba(250,245,236,0.6); padding-top: 56px; }
.footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 48px; }
.logo--footer .logo__main { color: var(--primary); opacity: 0.9; }
.logo--footer .logo__accent { color: #b3dcd2; }
.footer__about { font-size: 14px; line-height: 1.6; margin: 16px 0 20px; }
.footer__social { display: flex; gap: 12px; }
.footer__social-link { width: 40px; height: 40px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; transition: background 0.2s; }
.footer__social-link:hover { background: var(--primary); }
.footer__title { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 16px; }
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { font-size: 14px; transition: color 0.2s; }
.footer__list a:hover { color: var(--primary); }
.footer__list--contacts a { display: flex; align-items: center; gap: 12px; }
.footer__list--contacts svg { color: var(--primary); flex-shrink: 0; }
.footer__location { display: flex; align-items: center; gap: 12px; }
.footer__location svg { color: var(--primary); flex-shrink: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 24px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; }
.footer__bottom p { font-size: 12px; opacity: 0.4; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { display: flex; align-items: center; gap: 8px; padding: 16px 0; font-size: 13px; color: var(--ink-500); flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs__sep { color: var(--ink-500); }
.breadcrumbs__current { color: var(--ink); font-weight: 600; }

/* ---- Search Page ---- */
.search-page { padding-bottom: 64px; }
.search-page__head { padding: 32px 0; }
.search-page__title { font-weight: 800; font-size: 36px; margin-bottom: 24px; }
.search-page__form { display: flex; gap: 12px; max-width: 720px; }
.search-page__form .form-input { flex: 1; }
.search-page__summary { color: var(--ink-500); margin-bottom: 24px; }

/* ---- Category Page ---- */
.category__head { margin-bottom: 32px; }
.category__title { font-weight: 800; font-size: 36px; margin-bottom: 12px; }
.category__desc, .category__description-after { color: var(--ink-600); line-height: 1.7; }
.category__description-after { margin-top: 48px; padding: 32px 0 0; border-top: 1px solid var(--cream-200); }
.subcategories { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.subcategory-card { display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius); padding: 20px; min-width: 180px; transition: all 0.3s; }
.subcategory-card:hover { border-color: var(--primary-light); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.subcategory-card__img { width: 80px; height: 80px; object-fit: contain; border-radius: 20px; background: linear-gradient(145deg, var(--primary-light), var(--secondary-light)); position: relative; }
.subcategory-card__img:not(img) { display: flex; align-items: center; justify-content: center; }
.subcategory-card__img:not(img)::after { content: ''; position: absolute; width: 34px; height: 34px; border: 6px solid rgba(240,108,46,.4); border-radius: 50%; left: 17px; top: 17px; }
.category-card__placeholder { width: 100%; height: 100%; min-height: 240px; background: linear-gradient(145deg, var(--cream-100), #ead8c5); position: relative; }
.category-card__placeholder::after { content: ''; position: absolute; width: 34%; aspect-ratio: 1; border: 10px solid rgba(240,108,46,.35); border-radius: 50%; left: 33%; top: 24%; }
.subcategory-card__name { font-weight: 600; font-size: 14px; text-align: center; }

.category__toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--cream-200); }
.category__count { font-size: 14px; color: var(--ink-500); }
.category__sort { display: flex; align-items: center; gap: 8px; }
.category__sort-label { font-size: 14px; color: var(--ink-500); }
.category__sort-select { padding: 8px 12px; border: 1px solid var(--cream-200); border-radius: 8px; background: #fff; font-size: 14px; }
.compare-table-wrap { overflow-x: auto; margin-bottom: 48px; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius-lg); overflow: hidden; }
.compare-table th, .compare-table td { padding: 20px; border-bottom: 1px solid var(--cream-200); vertical-align: top; text-align: left; }
.compare-table__label { width: 180px; color: var(--ink-500); font-weight: 600; }
.compare-table__product { min-width: 190px; text-align: center !important; }
.compare-table__image { display: block; height: 150px; margin-bottom: 12px; background: var(--cream-100); border-radius: var(--radius-sm); overflow: hidden; }
.compare-table__image img { width: 100%; height: 100%; object-fit: contain; }
.compare-table__name { display: block; font-weight: 700; margin-bottom: 8px; }
.compare-table__price { display: block; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.compare-table__remove { color: var(--ink-500); font-size: 13px; }
.compare-table__remove:hover { color: var(--primary); }
.compare-table__value { color: var(--ink-600); }
.category__empty { text-align: center; padding: 64px 16px; }
.category__empty p { font-size: 18px; color: var(--ink-500); margin-bottom: 24px; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination__item { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--cream-200); font-weight: 600; font-size: 14px; transition: all 0.2s; }
.pagination__item:hover { border-color: var(--primary); color: var(--primary); }
.pagination__item--active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Product Page ---- */
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 16px 0 48px; }
.product__gallery { position: sticky; top: 100px; }
.product__main-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-100); margin-bottom: 16px; }
.product__main-image img { width: 100%; height: 480px; object-fit: contain; }
.product__thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.product__thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--cream-200); transition: border-color 0.2s; }
.product__thumb:hover { border-color: var(--primary); }
.product__thumb.is-active { border-color: var(--primary); }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }

.product__video { margin-top: 16px; }
.product__video-player { width: 100%; max-height: 480px; border-radius: var(--radius); background: #000; }

.product__tags { display: flex; gap: 8px; margin-bottom: 12px; }
.product__title { font-weight: 800; font-size: 32px; margin-bottom: 16px; }
.product__summary { font-size: 16px; color: var(--ink-600); margin-bottom: 24px; line-height: 1.7; }
.product__prices { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--cream-200); }
.product__old-price { font-size: 20px; color: var(--ink-500); text-decoration: line-through; }
.product__price { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 32px; color: var(--primary); }

.product__features { margin-bottom: 24px; }
.product__features-title { font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.product__features-table { width: 100; border-collapse: collapse; }
.product__features-table td { padding: 8px 0; border-bottom: 1px solid var(--cream-200); font-size: 14px; }
.product__features-name { color: var(--ink-500); width: 40%; }
.product__features-value { font-weight: 600; }

.product__sku-feature { margin-bottom: 16px; }
.product__sku-feature label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }

.product__buy { margin-bottom: 24px; }
.product__buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.product__qty { display: flex; align-items: center; border: 2px solid var(--cream-200); border-radius: var(--radius-sm); overflow: hidden; }
.product__qty-btn { width: 40px; height: 48px; font-size: 20px; color: var(--ink-600); background: var(--cream-100); transition: background 0.2s; }
.product__qty-btn:hover { background: var(--cream-200); }
.product__qty-input { width: 56px; height: 48px; text-align: center; border: none; border-left: 2px solid var(--cream-200); border-right: 2px solid var(--cream-200); font-size: 16px; font-weight: 600; }
.product__qty-input:focus { outline: none; }
.product__fav-btn { width: 48px; height: 48px; border-radius: var(--radius-sm); border: 2px solid var(--cream-200); background: #fff; color: var(--ink-600); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.product__fav-btn:hover { border-color: var(--primary); color: var(--primary); }

.product__benefits { display: flex; gap: 24px; flex-wrap: wrap; padding: 20px; background: var(--cream-100); border-radius: var(--radius); }
.product__benefit { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-600); }
.product__benefit svg { color: var(--secondary); }

.product__description { padding: 32px 0; border-top: 1px solid var(--cream-200); }
.product__description-title { font-weight: 700; font-size: 24px; margin-bottom: 16px; }
.product__description-text { line-height: 1.8; color: var(--ink-600); }
.product__description-text p { margin-bottom: 16px; }
.product__description-text h2, .product__description-text h3 { margin: 24px 0 12px; }
.product__description-text ul, .product__description-text ol { padding-left: 24px; margin-bottom: 16px; }

/* ---- Cart Page ---- */
.cart { padding: 32px 0 64px; }
.cart__title { font-weight: 800; font-size: 36px; margin-bottom: 32px; }
.cart__grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius); margin-bottom: 12px; }
.cart-item__image { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-100); }
.cart-item__image img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__name { font-weight: 600; }
.cart-item__name:hover { color: var(--primary); }
.cart-item__sku { font-size: 13px; color: var(--ink-500); }
.cart-item__price-unit { font-size: 13px; color: var(--ink-500); }
.cart-item__total { font-weight: 700; font-size: 18px; color: var(--primary); white-space: nowrap; }
.cart-item__remove { color: var(--ink-500); transition: color 0.2s; }
.cart-item__remove:hover { color: var(--primary); }

.cart__summary { background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 100px; }
.cart__summary-title { font-weight: 700; font-size: 20px; margin-bottom: 20px; }
.cart__summary-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--cream-200); }
.cart__summary-total { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 20px; color: var(--primary); }
.cart__summary .btn { margin-top: 16px; }

.cart__empty { text-align: center; padding: 64px 16px; }
.cart__empty svg { margin: 0 auto 24px; color: var(--cream-200); }
.cart__empty-title { font-weight: 700; font-size: 24px; margin-bottom: 8px; }
.cart__empty-text { color: var(--ink-500); margin-bottom: 24px; }

/* ---- Checkout ---- */
.checkout { padding: 32px 0 64px; }
.checkout__title { font-weight: 800; font-size: 36px; margin-bottom: 32px; }
.checkout__steps { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.checkout__step { font-weight: 600; font-size: 14px; color: var(--ink-500); }
.checkout__step--active { color: var(--primary); }
.checkout__step-divider { width: 24px; height: 1px; background: var(--cream-200); }
.checkout__section-title { font-weight: 700; font-size: 22px; margin-bottom: 20px; }
.checkout__form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.checkout__actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.checkout__options { display: grid; gap: 12px; margin-bottom: 24px; }
.checkout__option { display: flex; align-items: flex-start; gap: 12px; padding: 20px; background: #fff; border: 2px solid var(--cream-200); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s; }
.checkout__option--active { border-color: var(--primary); }
.checkout__option input[type="radio"] { margin-top: 4px; }
.checkout__option-name { display: block; font-weight: 700; font-size: 16px; }
.checkout__option-desc { display: block; font-size: 14px; color: var(--ink-500); }
.checkout__option-price { display: block; font-weight: 700; color: var(--primary); }
.checkout__plugin { padding: 16px 0; }
.checkout__empty { color: var(--ink-500); }

.checkout__confirm { display: grid; gap: 24px; margin-bottom: 24px; }
.checkout__confirm-section { background: #fff; border: 1px solid var(--cream-200); border-radius: var(--radius); padding: 20px; }
.checkout__confirm-title { font-weight: 700; margin-bottom: 12px; }
.checkout__confirm-items { display: grid; gap: 8px; }
.checkout__confirm-item { display: flex; justify-content: space-between; font-size: 14px; }
.checkout__confirm-total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--cream-200); margin-top: 12px; font-weight: 700; font-size: 18px; }
.checkout__confirm-total-value { color: var(--primary); }

/* ---- Checkout Success/Error ---- */
.checkout-success, .checkout-error { padding: 64px 0; text-align: center; }
.checkout-success__content, .checkout-error__content { max-width: 480px; margin: 0 auto; }
.checkout-success__icon { width: 80px; height: 80px; border-radius: 50%; background: var(--secondary-light); color: var(--secondary); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.checkout-success__title, .checkout-error__title { font-weight: 800; font-size: 28px; margin-bottom: 16px; }
.checkout-success__text, .checkout-error__text { color: var(--ink-500); margin-bottom: 24px; }
.checkout-success__order { display: flex; justify-content: space-between; padding: 12px 24px; background: var(--cream-100); border-radius: var(--radius-sm); margin-bottom: 12px; }
.checkout-error__icon { width: 80px; height: 80px; border-radius: 50%; background: #fef2f0; color: var(--primary); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }

/* ---- Error Page ---- */
.error-page { padding: 80px 0; text-align: center; }
.error-page__code { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 120px; color: var(--primary-light); line-height: 1; }
.error-page__title { font-weight: 800; font-size: 28px; margin-bottom: 16px; }
.error-page__text { color: var(--ink-500); margin-bottom: 24px; }

/* ---- Cart Notice ---- */
.cart-notice {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--secondary); color: #fff;
  padding: 16px 24px; border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 200; transition: opacity 0.3s, transform 0.3s;
}


/* ---- Production polish: responsive hero, gallery, cart and accessible controls ---- */
.hero { overflow: hidden; }
.hero__inner { min-width: 0; }
.hero__content, .hero__image-wrap { min-width: 0; }
.hero__image-wrap { display: block; width: 100%; }
.hero__image { display: block; max-width: 100%; max-height: 560px; border-radius: var(--radius-lg); background: rgba(255,255,255,.55); }
.hero__float-badge { max-width: calc(100% - 24px); box-sizing: border-box; }
.product__main-image { overflow: hidden; }
.product__main-image img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.product__thumb { flex: 0 0 72px; background: #fff; cursor: pointer; }
.product__thumb img { display: block; }
.cart { background: #f5f8f7; border-radius: var(--radius-lg); padding: 32px; }
.cart-item { background: #fff; box-shadow: 0 4px 18px rgba(24,48,44,.045); border-color: #dce8e4; }
.cart__summary { background: #fff; border: 1px solid #d3e4df; box-shadow: 0 8px 28px rgba(24,48,44,.07); }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--secondary); cursor: pointer; }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { cursor: pointer; }
:focus-visible { outline: 3px solid #168b79; outline-offset: 3px; }
@media (max-width: 900px) { .hero__image { aspect-ratio: 16 / 10; height: auto; max-height: none; object-fit: contain; } .cart { padding: 20px 14px; } }
@media (max-width: 560px) { .hero__image { aspect-ratio: 4 / 3; } .hero__float-badge { display: none; } .product__thumbs { gap: 8px; } .product__thumb { flex-basis: 60px; width: 60px; height: 60px; } }


/* Final responsive corrections: desktop hero and category imagery */
.hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); }
.hero__title { font-size: clamp(34px, 3.25vw, 56px); line-height: 1.08; overflow-wrap: anywhere; }
.hero__image-wrap { align-self: center; min-width: 0; }
.hero__image { width: 100%; height: auto; aspect-ratio: 1800 / 874; object-fit: contain; max-height: none; }
.hero__float-badge { left: clamp(8px, -1vw, 0px); bottom: 12px; }
.subcategories { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: stretch; }
.subcategory-card { min-width: 0; width: auto; box-sizing: border-box; }
.subcategory-card__img { display: block; width: 100%; max-width: 180px; height: auto; aspect-ratio: 1; object-fit: contain; }
.subcategory-card__img--fallback { display: flex; }
.product__main-image img[role="button"] { cursor: zoom-in; }
.product-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 20, 20, .94); }
.product-lightbox.is-open { display: flex; }
.product-lightbox__image { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; object-fit: contain; }
.product-lightbox__close { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: #222; font-size: 32px; cursor: pointer; }
body.product-lightbox-open { overflow: hidden; }
@media (max-width: 1100px) { .hero__inner { gap: 28px; } .hero__title { font-size: clamp(32px, 4vw, 44px); } }
@media (max-width: 760px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } .hero__image-wrap { max-width: 100%; } .hero__image { aspect-ratio: 1800 / 874; } .subcategories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .subcategory-card { padding: 14px; } }
@media (min-width: 761px) and (max-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
