/* ===== Reset & base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --wood-900: #2c2419;
  --wood-800: #3d3226;
  --wood-700: #5c4a38;
  --wood-600: #7a6248;
  --wood-500: #8b6914;
  --wood-400: #a08060;
  --beige-100: #faf7f3;
  --beige-200: #f5f0eb;
  --beige-300: #e8ddd0;
  --beige-400: #d4c5b0;
  --beige-500: #c4a882;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(44, 36, 25, 0.06);
  --shadow-md: 0 8px 24px rgba(44, 36, 25, 0.1);
  --shadow-lg: 0 16px 48px rgba(44, 36, 25, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--beige-200);
  color: var(--wood-900);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  padding-bottom: var(--safe-bottom);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-left: max(20px, var(--safe-left));
  padding-right: max(20px, var(--safe-right));
}

/* ===== Section heads ===== */
.section-head {
  margin-bottom: 40px;
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wood-500);
  margin-bottom: 10px;
}

.section-head__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head__desc {
  margin-top: 10px;
  color: var(--wood-700);
  max-width: 560px;
  font-size: 1.02rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--wood-500);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--wood-600);
  box-shadow: var(--shadow-md);
}

.btn--dark {
  background: var(--wood-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--wood-800);
}

.btn--outline {
  background: transparent;
  color: var(--wood-900);
  border: 2px solid rgba(44, 36, 25, 0.2);
}

.btn--outline:hover {
  border-color: var(--wood-900);
  background: rgba(255, 255, 255, 0.4);
}

.btn--ghost {
  background: var(--beige-300);
  color: var(--wood-800);
}

.btn--ghost:hover {
  background: var(--beige-400);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--beige-200);
  color: var(--wood-800);
  cursor: pointer;
  transition: background var(--transition);
}

.icon-btn:hover {
  background: var(--beige-300);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 36, 25, 0.08);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--wood-900);
  flex-shrink: 0;
}

.logo span {
  color: var(--wood-500);
}

.logo__icon {
  color: var(--wood-500);
  font-size: 1.1rem;
}

.logo--footer {
  margin-bottom: 12px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wood-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.header__nav-link:hover {
  color: var(--wood-500);
}

.header__search {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 280px;
}

.header__search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wood-600);
  pointer-events: none;
}

.header__search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid var(--beige-400);
  border-radius: 50px;
  background: var(--beige-100);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.header__search input:focus {
  outline: none;
  border-color: var(--wood-500);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__filter-toggle {
  display: none;
}

.cart-btn {
  position: relative;
}

.cart-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50px;
  background: var(--wood-500);
  font-size: 0.75rem;
  font-weight: 700;
}

.cart-btn__count:empty,
.cart-btn__count[data-count="0"] {
  display: none;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  padding: clamp(40px, 6vw, 72px) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(250, 247, 243, 0.97) 0%, rgba(245, 240, 235, 0.88) 42%, rgba(245, 240, 235, 0.72) 100%),
    url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?auto=format&fit=crop&w=1800&q=85') 70% center/cover no-repeat;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  flex: 1;
  padding-bottom: clamp(32px, 5vw, 56px);
}

.hero__content {
  max-width: 640px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__eyebrow {
  display: inline-block;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(139, 105, 20, 0.15);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wood-600);
}

.hero__pill {
  display: inline-block;
  padding: 7px 16px;
  background: var(--wood-900);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2.5rem, 5.8vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: italic;
  color: var(--wood-500);
}

.hero__text {
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  color: var(--wood-700);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding-top: 28px;
  border-top: 1px solid rgba(44, 36, 25, 0.12);
}

.hero__stats li {
  font-size: 0.82rem;
  color: var(--wood-700);
  line-height: 1.4;
}

.hero__stats strong {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: var(--wood-900);
  line-height: 1.15;
  margin-bottom: 4px;
}

.hero__showcase {
  position: relative;
  min-height: 480px;
}

.hero__card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.hero__card--main {
  position: relative;
  height: 100%;
  min-height: 420px;
}

.hero__card--main img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero__card-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.hero__card-info span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-500);
  margin-bottom: 4px;
}

.hero__card-info strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.hero__card-info em {
  font-style: normal;
  font-weight: 700;
  color: var(--wood-600);
}

.hero__card--float {
  position: absolute;
  z-index: 2;
}

.hero__card--top {
  top: -12px;
  right: -20px;
  width: 140px;
  height: 140px;
  border: 4px solid var(--beige-100);
}

.hero__card--top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__card--bottom {
  bottom: 40px;
  left: -28px;
  width: 160px;
  padding: 20px;
  background: var(--wood-900);
  color: var(--white);
  text-align: center;
}

.hero__card-badge {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 8px;
  background: var(--wood-500);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero__card--bottom p {
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 600;
}

.hero__marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(44, 36, 25, 0.08);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 14px 0;
}

.hero__marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wood-600);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Features ===== */
.features {
  background: var(--white);
  border-block: 1px solid rgba(44, 36, 25, 0.06);
  padding: 40px 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--beige-200);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
}

.feature__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature__text {
  font-size: 0.875rem;
  color: var(--wood-700);
  line-height: 1.5;
}

/* ===== Categories ===== */
.categories {
  padding: 72px 0;
  background: var(--beige-100);
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.category-card {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 220px;
  cursor: pointer;
  text-align: left;
  background: var(--wood-900);
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.6s ease, opacity var(--transition);
}

.category-card:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.category-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(44, 36, 25, 0.88) 0%, transparent 65%);
  color: var(--white);
}

.category-card__count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 6px;
}

.category-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
}

/* ===== Featured ===== */
.featured {
  padding: 72px 0;
  background: var(--white);
}

.featured__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.featured-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--beige-100);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.featured-card--hero {
  grid-row: span 2;
}

.featured-card__img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--beige-300);
}

.featured-card--hero .featured-card__img {
  height: 100%;
  min-height: 420px;
}

.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-card:hover .featured-card__img img {
  transform: scale(1.05);
}

.featured-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--wood-900);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.featured-card__body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-card--hero .featured-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(44, 36, 25, 0.92) 0%, transparent 100%);
  color: var(--white);
}

.featured-card__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wood-600);
  margin-bottom: 6px;
}

.featured-card--hero .featured-card__cat {
  color: rgba(255, 255, 255, 0.75);
}

.featured-card__name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.25;
}

.featured-card--hero .featured-card__name {
  font-size: 1.65rem;
}

.featured-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--wood-500);
  margin-bottom: 16px;
}

.featured-card--hero .featured-card__price {
  color: var(--beige-400);
}

.featured-card__btn {
  margin-top: auto;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--wood-900);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.featured-card__btn:hover {
  background: var(--wood-500);
}

.featured-card--hero .featured-card__btn {
  background: var(--white);
  color: var(--wood-900);
}

.featured-card--hero .featured-card__btn:hover {
  background: var(--beige-300);
}

/* ===== Shop layout ===== */
.shop {
  padding: 72px 0 80px;
  background: var(--beige-200);
}

.shop__intro {
  margin-bottom: 36px;
}

.shop__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== Filters sidebar ===== */
.filters {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filters__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.filters__reset {
  border: none;
  background: none;
  color: var(--wood-500);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filters__reset:hover {
  color: var(--wood-600);
}

.filters__group {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--beige-300);
}

.filters__group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filters__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wood-700);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.filters__cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.cat-btn:hover {
  background: var(--beige-200);
  transform: translateX(2px);
}

.cat-btn.active {
  background: linear-gradient(135deg, var(--beige-300), var(--beige-200));
  font-weight: 600;
  color: var(--wood-900);
  box-shadow: inset 3px 0 0 var(--wood-500);
}

.price-range__values {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--wood-700);
  margin-bottom: 12px;
}

.price-range__values strong {
  color: var(--wood-900);
  font-weight: 700;
}

.price-range__track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-range__track input[type="range"] {
  width: 100%;
  accent-color: var(--wood-500);
  cursor: pointer;
}

#priceRange,
#priceMinRange,
#priceMaxRange {
  width: 100%;
  accent-color: var(--wood-500);
  cursor: pointer;
}

.filters__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--wood-500);
  cursor: pointer;
}

.filters__select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--beige-400);
  border-radius: var(--radius-sm);
  background: var(--beige-100);
  cursor: pointer;
}

.filters__select:focus {
  outline: none;
  border-color: var(--wood-500);
}

/* ===== Catalog ===== */
.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.catalog-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.catalog-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wood-600);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1px solid var(--beige-400);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.catalog-search input:focus {
  outline: none;
  border-color: var(--wood-500);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.12);
}

@media (min-width: 901px) {
  .catalog-search {
    display: none;
  }
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--beige-400);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--wood-700);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.filter-chip:hover {
  background: var(--beige-200);
  border-color: var(--wood-500);
}

.filter-chip span {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.6;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  transition: opacity var(--transition-fast);
}

.catalog--updating {
  opacity: 0.6;
}

.catalog-head__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 600;
}

.catalog-head__count {
  font-size: 0.9rem;
  color: var(--wood-700);
  margin-top: 4px;
}

.catalog-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--wood-700);
  font-size: 1.05rem;
}

/* ===== Product card ===== */
.product {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  outline: none;
}

.product--enter {
  animation: productIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

@keyframes productIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product:hover,
.product:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product:focus-visible {
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(139, 105, 20, 0.25);
}

.product__img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--beige-300);
}

.product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product:hover .product__img img,
.product:focus-visible .product__img img {
  transform: scale(1.08);
}

.product__view {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 36, 25, 0.45);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}

.product:hover .product__view,
.product:focus-visible .product__view {
  opacity: 1;
}

.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: var(--wood-900);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 50px;
}

.product__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product__cat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wood-600);
  margin-bottom: 6px;
}

.product__name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}

.product__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--wood-600);
  margin-bottom: 8px;
}

.product__rating span {
  color: var(--wood-500);
  font-weight: 700;
}

.product__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--wood-500);
  margin-bottom: 14px;
  margin-top: auto;
}

.product__add {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--wood-900);
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.product__add:hover {
  background: var(--wood-500);
  transform: translateY(-1px);
}

/* ===== Filter drawer (mobile) ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 25, 0.45);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--transition);
}

.drawer-overlay.is-open {
  opacity: 1;
}

.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100%;
  height: 100dvh;
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
}

.filter-drawer.is-open {
  transform: translateX(0);
}

.filter-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--beige-300);
}

.filter-drawer__head h2 {
  font-size: 1.15rem;
}

.filter-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.filter-drawer__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--beige-300);
}

/* ===== Modals ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, var(--safe-top));
  padding-bottom: max(20px, var(--safe-bottom));
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 25, 0.55);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 460px;
  max-height: min(85vh, 85dvh);
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s ease;
}

.modal__box--wide {
  max-width: 720px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal__head h2 {
  font-size: 1.35rem;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

/* ===== Product detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.product-detail__visual {
  border-radius: var(--radius-lg);
  min-height: 260px;
  overflow: hidden;
  background: var(--beige-300);
}

.product-detail__visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.product-detail__cat {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wood-600);
  margin-bottom: 8px;
}

.product-detail__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
  padding-right: 36px;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--wood-500);
  margin-bottom: 16px;
}

.product-detail__desc {
  color: var(--wood-700);
  margin-bottom: 20px;
  line-height: 1.65;
}

.product-detail__specs {
  list-style: none;
  margin-bottom: 24px;
}

.product-detail__specs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--beige-300);
  font-size: 0.9rem;
}

.product-detail__specs li span:first-child {
  color: var(--wood-700);
}

.product-detail__specs li span:last-child {
  font-weight: 600;
}

.product-detail__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Cart ===== */
.cart-list {
  list-style: none;
  margin-bottom: 20px;
  max-height: 320px;
  overflow-y: auto;
}

.cart-list__empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--wood-700);
}

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige-300);
}

.cart-item__emoji {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--beige-300);
}

.cart-item__emoji img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-item__info p {
  font-size: 0.85rem;
  color: var(--wood-600);
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--beige-200);
  border-radius: 50px;
  padding: 2px;
}

.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: background var(--transition);
}

.cart-item__qty button:hover {
  background: var(--beige-300);
}

.cart-item__qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item__total {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--wood-500);
}

.cart-item__remove {
  border: none;
  background: none;
  color: var(--wood-600);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-item__remove:hover {
  color: var(--wood-900);
}

.cart-summary {
  background: var(--beige-100);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  padding: 4px 0;
  color: var(--wood-700);
}

.cart-summary__row--delivery {
  font-size: 0.9rem;
}

.cart-summary__row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--beige-400);
  font-size: 1.1rem;
  color: var(--wood-900);
}

.cart-summary__row--total strong {
  color: var(--wood-500);
  font-size: 1.2rem;
}

/* ===== Lookbook ===== */
.lookbook {
  padding: 72px 0;
  background: var(--beige-100);
}

.lookbook__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}

.lookbook__item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
}

.lookbook__item--wide {
  grid-row: span 2;
  min-height: 580px;
}

.lookbook__item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.lookbook__item:hover img {
  transform: scale(1.04);
}

.lookbook__caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.lookbook__caption span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wood-500);
  margin-bottom: 4px;
}

.lookbook__caption strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
}

/* ===== Showroom ===== */
.showroom {
  padding: 80px 0;
  background: var(--wood-900);
  color: var(--white);
}

.showroom__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showroom .section-head__tag {
  color: var(--beige-400);
}

.showroom__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}

.showroom__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 480px;
}

.showroom__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.showroom .btn--outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.showroom .btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.showroom__visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.showroom__visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.showroom__stat {
  position: absolute;
  right: 24px;
  bottom: 24px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  color: var(--wood-900);
  text-align: center;
}

.showroom__stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.showroom__stat span {
  font-size: 0.78rem;
  color: var(--wood-700);
}

/* ===== Checkout ===== */
.checkout__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 8px;
  padding-right: 36px;
}

.checkout__desc {
  color: var(--wood-700);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.checkout__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout__field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.checkout__field input,
.checkout__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--beige-400);
  border-radius: var(--radius-sm);
  background: var(--beige-100);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.checkout__field input:focus,
.checkout__field textarea:focus {
  outline: none;
  border-color: var(--wood-500);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.12);
}

.checkout__total {
  margin-top: 4px;
  font-size: 1rem;
  color: var(--wood-700);
}

.checkout__total strong {
  color: var(--wood-500);
  font-size: 1.25rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--wood-900);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer .logo {
  color: var(--white);
}

.footer .logo span {
  color: var(--beige-400);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer__about {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contacts {
  list-style: none;
  font-size: 0.9rem;
}

.footer__contacts li {
  margin-bottom: 8px;
}

.footer__contacts a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__contacts a:hover {
  color: var(--beige-400);
}

.footer__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__links {
  list-style: none;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--beige-400);
}

.footer__newsletter-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.55;
}

.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter input {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter input:focus {
  outline: none;
  border-color: var(--beige-400);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: max(24px, calc(var(--safe-bottom) + 16px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--wood-900);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 400;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header__nav {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__showcase {
    min-height: 360px;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured__grid {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card--hero {
    grid-column: span 2;
    grid-row: auto;
  }

  .featured-card--hero .featured-card__img {
    min-height: 320px;
  }

  .lookbook__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lookbook__item--wide {
    grid-column: span 2;
    grid-row: auto;
    min-height: 360px;
  }

  .showroom__inner {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .shop__layout {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
  }

  .header__filter-toggle {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header__inner {
    flex-wrap: wrap;
    padding-block: 10px;
    min-height: auto;
  }

  .logo {
    order: 1;
  }

  .header__actions {
    order: 2;
    margin-left: auto;
  }

  .header__search {
    order: 3;
    flex: 1 1 100%;
  }

  .cart-btn__label {
    display: none;
  }

  .hero__card--top,
  .hero__card--bottom {
    display: none;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .featured__grid {
    grid-template-columns: 1fr;
  }

  .featured-card--hero {
    grid-column: auto;
  }

  .lookbook__grid,
  .categories__grid {
    grid-template-columns: 1fr;
  }

  .lookbook__item--wide {
    grid-column: auto;
    min-height: 280px;
  }

  .catalog {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .catalog-search {
    max-width: 100%;
    order: 3;
    flex: 1 1 100%;
  }

  .catalog-head {
    flex-direction: column;
    align-items: stretch;
  }

  .product__img {
    height: 160px;
  }

  .product__body {
    padding: 14px;
  }

  .product__name {
    font-size: 0.9rem;
  }

  .product__price {
    font-size: 1rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 32px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  .modal__box {
    padding: 22px;
    border-radius: var(--radius-lg);
  }

  .product-detail__title {
    font-size: 1.3rem;
  }

  .product-detail__price {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .feature {
    padding: 12px;
    background: var(--beige-100);
    border-radius: var(--radius-md);
  }

  .catalog {
    grid-template-columns: 1fr 1fr;
  }

  .cart-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item__controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== Premium design service ===== */
.design-service {
  padding: 84px 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(196, 168, 130, 0.28), transparent 34%),
    linear-gradient(135deg, var(--beige-100), var(--beige-200));
}

.design-service__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.design-service__visual {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(44, 36, 25, 0.18);
}

.design-service__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(44, 36, 25, 0.5));
  pointer-events: none;
}

.design-service__visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  transform: scale(1.02);
}

.design-service__badge {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.design-service__badge strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--wood-500);
}

.design-service__badge span {
  font-weight: 700;
  line-height: 1.25;
}

.design-service__content {
  max-width: 560px;
}

.design-service__text {
  margin: 18px 0 28px;
  color: var(--wood-700);
  font-size: 1.05rem;
  line-height: 1.75;
}

.design-service__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.design-service__steps span {
  padding: 14px 16px;
  border: 1px solid rgba(44, 36, 25, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--wood-700);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .design-service__grid {
    grid-template-columns: 1fr;
  }

  .design-service__visual,
  .design-service__visual img {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .design-service {
    padding: 60px 0;
  }

  .design-service__steps {
    grid-template-columns: 1fr;
  }
}
