/*
Theme Name: Senza Rumore
Description: Кастомная тема под дизайн senzarumore.ru
Author: Senza Rumore
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
  color: #111;
}

h1, h2, h3, h4, .logo {
  font-family: 'Unbounded', sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
}

header .container {
  max-width: 100%;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
  justify-self: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}

.header-nav-left {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: start;
}

.header-nav-link {
  text-decoration: none;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .header-nav-link {
    display: none;
  }
}

.menu-button,
.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dot-grid {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 3px;
}

.dot-grid span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.side-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 150;
}

.side-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  max-width: 80vw;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 200;
  padding: 24px;
  overflow-y: auto;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.side-menu-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.side-menu nav {
  display: flex;
  flex-direction: column;
}

.side-menu nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #eee;
}

.side-menu nav a.sub {
  padding-left: 12px;
  font-size: 14px;
  color: #555;
  border-bottom: none;
}

.side-menu .menu-group-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 18px 0 4px;
}

.menu-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  margin-top: 18px;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  font: inherit;
  font-size: 16px;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.menu-accordion-toggle .chevron {
  font-size: 13px;
  color: #999;
  transition: transform 0.15s ease;
}

.menu-accordion-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.menu-accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.menu-accordion-panel.open {
  max-height: 400px;
}

.home-hero {
  position: relative;
}

.home-hero.compact {
  height: 320px;
  display: flex;
  flex-direction: column;
}

.hero-bg-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.home-hero .hero-heading {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 0 24px 36px;
  color: #fff;
}

.home-hero .hero-heading h2 {
  color: #fff;
  margin: 0 0 8px;
}

.home-hero .hero-heading p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.home-hero .hero-breadcrumb-top {
  position: absolute;
  top: 88px;
  left: 24px;
  z-index: 1;
  margin: 0;
}

.home-hero .hero-breadcrumb-top,
.home-hero .hero-breadcrumb-top a,
.home-hero .hero-breadcrumb-top span {
  color: #fff;
  font-weight: 700;
}

.home-hero .hero-categories {
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding-bottom: 24px;
  padding-left: 24px;
  position: relative;
  z-index: 1;
}

.home-hero .hero-categories .categories-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  font-size: 22px;
}

.home-hero .hero-categories .categories-toggle .chevron {
  color: rgba(255, 255, 255, 0.75);
}

.hero-bg-wrap {
  position: absolute;
  inset: -8%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform;
  background: #1c1c1c;
}

.hero-bg-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.5));
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-layer.active {
  opacity: 1;
}

.home-hero > header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 90;
}

.home-hero > .hero {
  position: relative;
  z-index: 1;
}

.home-hero header {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.home-hero header,
.home-hero header a,
.home-hero .menu-button,
.home-hero .icon-button {
  color: #fff;
}

.home-hero .cart-button {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

body.scrolled .home-hero header {
  background: #fff;
  border-bottom-color: #ddd;
}

body.scrolled .home-hero header,
body.scrolled .home-hero header a,
body.scrolled .home-hero .menu-button,
body.scrolled .home-hero .icon-button {
  color: #111;
}

body.scrolled .home-hero .cart-button {
  border-color: #ddd;
  color: #111;
}

.hero {
  padding: 100px 0 90px;
  color: #fff;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 20px;
  max-width: 700px;
}

.hero p {
  margin: 0 0 36px;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid #111;
  text-decoration: none;
  color: inherit;
}

.stats-row-section {
  padding: 40px 0;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.stat-card {
  background: #f7f6f4;
  border-radius: 12px;
  padding: 28px;
  flex: 1 1 220px;
  max-width: 280px;
  text-align: left;
  color: #111;
}

.stat-card .value {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 4px;
  color: #111;
}

.stat-card .label {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 40px;
}

.tab {
  padding: 10px 20px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: none;
  font: inherit;
  cursor: pointer;
  color: #666;
}

.tab.active {
  border-color: #111;
  color: #111;
  font-weight: bold;
}

.breadcrumb {
  font-size: 13px;
  color: #888;
  margin: 0 0 24px;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #111;
}

.catalog-heading-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.catalog-heading-row h2 {
  margin: 0;
}

.categories-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #111;
  padding: 8px 0;
}

.categories-toggle .chevron {
  transition: transform 0.2s ease;
}

.categories-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.categories-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.categories-row[hidden] {
  display: none;
}

.category-tile {
  flex: 0 0 140px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.category-tile .img-placeholder {
  background: #eee;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  margin-bottom: 10px;
}

.category-tile p {
  margin: 0;
  font-size: 13px;
}

.category-tile.active p {
  font-weight: 700;
}

.subcategory-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 20px 0;
  margin-bottom: 24px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.subcategory-panel[hidden] {
  display: none;
}

.subcategory-panel a {
  font-size: 14px;
  color: #444;
  text-decoration: none;
}

.subcategory-panel a:hover {
  color: #111;
  text-decoration: underline;
}

.catalog-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.catalog-filters {
  flex: 0 0 200px;
}

.filter-group {
  border-bottom: 1px solid #eee;
}

.filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 16px 0;
  color: #111;
}

.filter-toggle .chevron {
  transition: transform 0.2s ease;
}

.filter-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
  font-size: 14px;
  color: #444;
}

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

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.price-slider {
  position: relative;
  padding: 8px 0 4px;
}

.price-slider-track {
  position: relative;
  height: 2px;
  background: #ddd;
  border-radius: 2px;
}

.price-slider-range {
  position: absolute;
  top: 0;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

.price-range {
  position: absolute;
  top: -7px;
  left: 0;
  width: 100%;
  margin: 0;
  height: 16px;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: none;
}

.price-range::-webkit-slider-runnable-track {
  background: none;
}

.price-range::-moz-range-track {
  background: none;
}

.price-range::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #111;
  cursor: pointer;
  margin-top: 0;
}

.price-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #111;
  cursor: pointer;
}

.price-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #444;
  margin-top: 18px;
}

.catalog-products {
  flex: 1;
}

.catalog-products-title {
  margin: 0 0 24px;
  font-size: 18px;
}

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

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-card .img-placeholder,
.product-card img {
  background: #eee;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  margin-bottom: 14px;
  width: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.product-card .price {
  font-weight: normal;
  color: #666;
  font-size: 14px;
  margin: 0;
}

section {
  padding: 80px 0;
}

section + section {
  padding-top: 0;
}

section h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.product-detail {
  display: flex;
  gap: 48px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.product-detail .gallery {
  flex: 1 1 400px;
}

.gallery-main {
  position: relative;
}

.gallery-main .img-placeholder,
.gallery-main img {
  background: #eee;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  width: 100%;
  object-fit: cover;
}

.gallery-next {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.thumbnail-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.thumbnail {
  width: 64px;
  height: 64px;
  border: 1px solid #ddd;
  background: #eee;
  cursor: pointer;
  padding: 0;
}

.thumbnail.active {
  border-color: #111;
  border-width: 2px;
}

.product-detail .info {
  flex: 1 1 300px;
}

.product-detail .info h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.product-detail .price {
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 24px;
}

.season-tag {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
}

.description-text {
  color: #444;
  margin: 0 0 24px;
}

.read-more-btn {
  background: none;
  border: none;
  padding: 0;
  color: #111;
  text-decoration: underline;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #e9e1d3;
  display: inline-block;
}

.color-name {
  font-size: 13px;
  color: #666;
}

.size-buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.size-select-btn {
  flex: 1;
  max-width: 260px;
  padding: 14px 18px;
  background: #111;
  color: #fff;
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.add-to-cart-main {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: #111;
  color: #fff;
  border: none;
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-bottom: 16px;
}

.add-to-cart-main:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.bookmark-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.bookmark-btn.saved {
  background: #111;
  color: #fff;
  border-color: #111;
}

.size-guide-link {
  display: block;
  margin: 0 0 24px;
  background: none;
  border: none;
  padding: 0;
  color: #666;
  text-decoration: underline;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: right;
  width: 100%;
}

.size-guide-note {
  font-size: 13px;
  color: #666;
  margin: -14px 0 24px;
}

.accordion-list {
  border-top: 1px solid #eee;
}

.accordion-item {
  border-bottom: 1px solid #eee;
}

.accordion-item-toggle,
.accordion-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 0;
  background: none;
  border: none;
  font: inherit;
  font-size: 15px;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.accordion-item-toggle .plus,
.accordion-link .chevron {
  color: #999;
}

.accordion-item-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  padding: 0;
}

.accordion-item-panel.open {
  max-height: 600px;
  padding-bottom: 16px;
}

.accordion-item-panel dl {
  margin: 0;
}

.accordion-item-panel dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f3f3;
  font-size: 14px;
}

.accordion-item-panel dt {
  color: #666;
  flex: 0 0 auto;
}

.accordion-item-panel dd {
  margin: 0;
  text-align: right;
  color: #111;
}

.product-description ul {
  padding-left: 20px;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px;
}

.lookbook-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lookbook-card .img-placeholder,
.lookbook-card img {
  background: #eee;
  width: 330px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  margin-bottom: 14px;
  max-width: 100%;
  object-fit: cover;
}

.lookbook-card h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.lookbook-card-tagline {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #666;
  text-transform: uppercase;
}

.lookbook-page {
  background: #f3f0ea;
}

.lookbook-detail {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.lookbook-detail .lookbook-info {
  flex: 1 1 380px;
  max-width: 480px;
  padding: 0;
}

.lookbook-detail .lookbook-photo {
  order: -1;
  position: relative;
  flex: 0 0 auto;
  width: 580px;
  min-height: 660px;
  max-width: 100%;
}

.lookbook-photo .img-placeholder {
  background: #d8d3c8;
  width: 580px;
  height: 100%;
  min-height: 660px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a8478;
  border-radius: 8px;
  mask-image: linear-gradient(to left, transparent, black 14%);
  -webkit-mask-image: linear-gradient(to left, transparent, black 14%);
}

.lookbook-photo img.img-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  mask-image: linear-gradient(to left, transparent, black 14%);
  -webkit-mask-image: linear-gradient(to left, transparent, black 14%);
}

.lookbook-save {
  position: absolute;
  bottom: 24px;
  right: 24px;
  flex-direction: column;
  gap: 6px;
  background: none;
  color: #fff;
  width: auto;
  height: auto;
  padding: 8px;
}

.lookbook-save-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lookbook-info .season-tag {
  position: relative;
  padding-bottom: 14px;
}

.lookbook-info .season-tag::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 1px;
  background: #999;
}

.lookbook-info h1 {
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.lookbook-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  color: #666;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.lookbook-section-title {
  position: relative;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #666;
  text-transform: uppercase;
  margin: 40px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.lookbook-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
}

.lookbook-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.lookbook-item .img-placeholder,
.lookbook-item img {
  background: #eee;
  width: 210px;
  height: 210px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  object-fit: cover;
  border-radius: 6px;
}

.lookbook-item-body {
  min-width: 0;
}

.lookbook-item h3 {
  margin: 0 0 2px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.lookbook-item-desc {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}

.lookbook-item .price {
  margin: 0;
  font-weight: bold;
  font-size: 14px;
}

.color-palette-row {
  display: flex;
  gap: 10px;
}

.palette-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
}

.lookbook-tip p {
  color: #444;
  margin: 0;
}

.lookbook-total {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}

.lookbook-total-old {
  color: #999;
  text-decoration: line-through;
  font-size: 15px;
}

.lookbook-total-new {
  font-size: 22px;
  font-weight: bold;
}

.lookbook-discount {
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

form {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

form input,
form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
}

.cart-button {
  position: relative;
  background: none;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 16px;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  background: #111;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.cart-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}

.cart-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cart-panel-header h3 {
  margin: 0;
  font-size: 16px;
}

.cart-panel-close {
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
}

.cart-item-name {
  font-weight: bold;
}

.cart-item-meta {
  color: #666;
  font-size: 13px;
}

.cart-item-right {
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.cart-empty {
  color: #666;
  font-size: 14px;
}

.cart-promo-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.cart-promo-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.cart-promo-input::placeholder {
  color: #999;
  font-style: italic;
}

.cart-promo-apply {
  padding: 10px 14px;
  border: 1px solid #111;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cart-promo-apply:hover {
  background: #111;
  color: #fff;
}

.cart-promo-message {
  margin: 6px 0 0;
  font-size: 12px;
  min-height: 14px;
}

.cart-promo-message.success {
  color: #2a8f4d;
}

.cart-promo-message.error {
  color: #c0392b;
}

.cart-subtotal-row,
.cart-discount-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-top: 14px;
}

.cart-discount-row {
  color: #2a8f4d;
  margin-top: 4px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin: 8px 0 16px;
}

.cart-checkout {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #2aabee;
  color: #fff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.cart-checkout:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.cart-continue {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: none;
  color: #111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cart-continue:hover {
  border-color: #111;
}

.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 20px 0;
}

.map-embed.small {
  height: 280px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background: #2aabee;
}

footer {
  padding: 30px 0;
  font-size: 14px;
  color: #555;
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== Мобильная адаптация ===== */

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  header .container {
    padding: 0 16px;
    gap: 8px;
  }

  .logo {
    font-size: 17px;
  }

  .header-actions {
    gap: 8px;
  }

  .cart-button {
    padding: 6px 12px;
    font-size: 13px;
  }

  section {
    padding: 48px 0;
  }

  .hero {
    padding: 96px 0 50px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .stats-row {
    margin-top: 32px;
    gap: 14px;
  }

  .stat-card {
    padding: 18px;
    flex: 1 1 140px;
  }

  .home-hero.compact {
    height: 260px;
  }

  .hero-heading h2 {
    font-size: 22px;
  }

  /* Каталог: фильтры уходят наверх горизонтальной полосой вместо боковой колонки */
  .catalog-layout {
    flex-direction: column;
    gap: 24px;
  }

  .catalog-filters {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
  }

  .catalog-filters .filter-group {
    flex: 1 1 140px;
    border-bottom: none;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
  }

  .categories-row {
    gap: 12px;
  }

  .category-tile {
    flex: 0 0 100px;
  }

  /* Карточка товара: галерея и описание друг под другом */
  .product-detail {
    gap: 24px;
    padding: 24px 0;
  }

  .product-detail .info h1 {
    font-size: 20px;
  }

  /* Лукбук — список: одна колонка на маленьких экранах */
  .lookbook-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lookbook-card img,
  .lookbook-card .img-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 330 / 420;
  }

  /* Лукбук — страница одного образа */
  .lookbook-detail {
    padding: 32px 16px;
    gap: 24px;
  }

  .lookbook-detail .lookbook-photo,
  .lookbook-photo .img-placeholder,
  .lookbook-photo img.img-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 580 / 660;
    max-width: 100%;
  }

  .lookbook-info h1 {
    font-size: 26px;
  }

  .lookbook-item .img-placeholder,
  .lookbook-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* Мини-корзина на всю ширину экрана */
  .cart-panel {
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  footer .container {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .home-hero.compact {
    height: 220px;
  }

  .hero-categories .categories-toggle {
    font-size: 18px;
  }

  .lookbook-item {
    align-items: flex-start;
  }

  .lookbook-info h1 {
    font-size: 22px;
  }

  .lookbook-total-new {
    font-size: 18px;
  }

  .size-buy-row {
    flex-wrap: wrap;
  }

  .size-select-btn {
    max-width: 100%;
  }
}
