:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-soft: #efeee9;
  --text: #101010;
  --muted: #666666;
  --border: rgba(16, 16, 16, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --gold: #b6945d;
  --dark: #0c0c0c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
}

.selectors,
.topbar__notice {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-wrap span {
  color: rgba(255, 255, 255, 0.72);
}

.select-wrap select {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 12px;
  outline: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(244, 244, 242, 0.86);
  border-bottom: 1px solid rgba(16, 16, 16, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

.logo {
  width: 176px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.section,
.newsletter {
  padding: 80px 0;
}

.section--soft,
.newsletter {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(239, 238, 233, 0.72));
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__head h2,
.newsletter h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.hero {
  padding: 28px 0 24px;
}

.hero__slider {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  min-height: 620px;
  background: #111;
  box-shadow: var(--shadow);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.08) 100%),
    var(--bg);
  background-size: cover;
  background-position: center;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.08) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 96px 64px;
  color: #fff;
  max-width: 720px;
}

.hero__content h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  margin: 14px 0 18px;
}

.hero__content p:not(.eyebrow) {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: #fff;
  color: #111;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn--card {
  width: 100%;
  background: var(--dark);
  color: #fff;
}

.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  padding: 0;
}

.hero__dots button.is-active {
  width: 34px;
  background: #fff;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.brand-card,
.feature-card,
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.brand-card {
  padding: 14px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brand-card:hover,
.product-card:hover,
.category-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.brand-card img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}

.brand-card span {
  display: block;
  font-weight: 700;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card--tall {
  grid-row: span 2;
  min-height: 598px;
}

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

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.56) 100%);
}

.category-card span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
}

.tab.is-active {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.product-grid {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-grid.is-active {
  display: grid;
}

.product-card {
  position: relative;
  padding: 16px;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  background: #f2f2f2;
}

.product-card h3 {
  margin: 16px 0 10px;
  font-size: 16px;
  line-height: 1.45;
}

.badge {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
}

.price s {
  color: #8d8d8d;
  font-size: 14px;
  font-weight: 500;
}

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

.feature-card {
  padding: 28px;
}

.feature-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  font-size: 28px;
}

.feature-card h3 {
  margin: 20px 0 10px;
  font-size: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  background: var(--surface);
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.newsletter__form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(440px, 100%);
}

.newsletter__form input {
  flex: 1;
  min-height: 54px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 20px;
  outline: none;
  background: #fafafa;
}

.footer {
  padding: 70px 0 120px;
  background: #101010;
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
}

.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 108px;
  z-index: 28;
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1fb45b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 20px 40px rgba(31, 180, 91, 0.32);
}

.ticker {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 28;
  width: min(420px, calc(100% - 40px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.ticker img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.ticker__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticker__text strong,
.ticker__text span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker__text strong {
  font-size: 14px;
}

.ticker__text span {
  color: var(--muted);
  font-size: 13px;
}

.ticker__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  color: #777;
}

@media (max-width: 1100px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar__inner,
  .header__inner,
  .section__head,
  .newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  .hero__slider {
    min-height: 560px;
  }

  .hero__content {
    padding: 72px 28px;
  }

  .category-grid,
  .feature-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card--tall {
    grid-row: span 1;
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .topbar__inner {
    min-height: auto;
    padding: 14px 0;
  }

  .header__inner {
    min-height: 72px;
  }

  .logo {
    width: 140px;
  }

  .nav {
    gap: 18px;
    font-size: 14px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .section,
  .newsletter {
    padding: 58px 0;
  }

  .hero {
    padding-top: 14px;
  }

  .hero__slider {
    min-height: 520px;
    border-radius: 28px;
  }

  .hero__content h1 {
    font-size: 38px;
  }

  .hero__content p:not(.eyebrow) {
    font-size: 15px;
  }

  .brand-grid,
  .category-grid,
  .feature-grid,
  .product-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .newsletter__inner {
    padding: 28px 20px;
  }

  .newsletter__form {
    width: 100%;
    flex-direction: column;
  }

  .newsletter__form input,
  .newsletter__form .btn {
    width: 100%;
  }

  .ticker {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
  }
}
