:root {
  --white: #ffffff;
  --cream: #fbf7f1;
  --soft-cream: #f6efe5;
  --pink: #f4b8c7;
  --pink-deep: #c96b83;
  --beige: #d9c5a5;
  --gold: #c6a35c;
  --black: #151313;
  --muted: #746c64;
  --line: rgba(21, 19, 19, 0.1);
  --shadow: 0 18px 50px rgba(66, 44, 33, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 42%, #fffaf4 100%);
  color: var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.announcement-bar {
  background: var(--black);
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 241, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.logo {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: #423b36;
  font-size: 0.94rem;
}

.desktop-nav a,
.mobile-nav a,
.footer a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer a:hover {
  color: var(--pink-deep);
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 210px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 9px 14px;
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
}

.icon-btn,
.hamburger {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-btn:hover,
.hamburger:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 107, 131, 0.5);
  background: #fff6f8;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
}

.cart-btn strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.76rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 8px;
  background: var(--black);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  padding: 13px 16px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 48px;
  align-items: center;
  min-height: 680px;
  padding: 64px 0 46px;
}

.eyebrow,
.section-heading span {
  color: var(--pink-deep);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin-top: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-buttons,
.stats,
.product-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-buttons {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(21, 19, 19, 0.12);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-secondary,
.btn-reset {
  border-color: var(--line);
  background: var(--white);
  color: var(--black);
}

.stats {
  margin-top: 36px;
}

.stats div {
  min-width: 122px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.stats strong {
  display: block;
  font-size: 1.55rem;
}

.stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.hero-visual img {
  width: 100%;
  max-height: 540px;
  border-radius: 36px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.promo,
.category-grid,
.product-grid,
.footer {
  display: grid;
  gap: 18px;
}

.promo {
  grid-template-columns: repeat(3, 1fr);
  padding: 24px 0 72px;
}

.promo-card,
.category-card,
.product-card,
.newsletter {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(58, 43, 33, 0.08);
}

.promo-card {
  border-radius: var(--radius);
  padding: 26px;
}

.promo-card span {
  color: var(--gold);
  font-weight: 800;
}

.promo-card h2 {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.promo-card p,
.product-name,
.footer p {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2,
.newsletter h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.categories-section,
.products-section {
  padding: 28px 0 74px;
}

.category-grid {
  grid-template-columns: repeat(6, 1fr);
}

.category-card {
  min-height: 150px;
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 107, 131, 0.45);
  background: #fff7f8;
}

.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f4d4dc);
  color: var(--pink-deep);
  font-weight: 900;
}

.category-card h3 {
  font-size: 1rem;
}

.category-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-toolbar {
  justify-content: space-between;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.product-toolbar label {
  display: grid;
  flex: 1 1 190px;
  gap: 6px;
}

.product-toolbar label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-toolbar input,
.product-toolbar select,
.newsletter input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  outline: 0;
  padding: 0 15px;
}

.product-toolbar input:focus,
.product-toolbar select:focus,
.newsletter input:focus,
.header-search:focus-within {
  border-color: rgba(201, 107, 131, 0.7);
  box-shadow: 0 0 0 4px rgba(244, 184, 199, 0.2);
}

.product-count {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.product-card {
  position: relative;
  display: grid;
  gap: 14px;
  border-radius: var(--radius);
  padding: 14px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 163, 92, 0.42);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: grid;
  min-height: 210px;
  place-items: center;
  border-radius: 18px;
  background: var(--product-bg);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.035);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  border-radius: 999px;
  background: rgba(21, 19, 19, 0.88);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 7px 10px;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--black);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.wishlist-btn:hover {
  transform: scale(1.05);
}

.wishlist-btn.is-active {
  background: var(--pink-deep);
  color: var(--white);
}

.product-info {
  display: grid;
  gap: 8px;
}

.brand-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating {
  color: var(--gold);
  white-space: nowrap;
}

.product-name {
  min-height: 48px;
  font-size: 0.98rem;
  font-weight: 650;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
}

.price {
  font-size: 1.12rem;
  font-weight: 850;
}

.old-price {
  color: #9a9088;
  font-size: 0.88rem;
  text-decoration: line-through;
}

.add-cart {
  width: 100%;
  margin-top: 4px;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(21, 19, 19, 0.25);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 34px;
  text-align: center;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin: 10px 0 80px;
  border-radius: 28px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(246, 239, 229, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(244, 184, 199, 0.45), transparent 32%);
}

.newsletter form {
  display: flex;
  gap: 10px;
}

.footer {
  grid-template-columns: 1.3fr repeat(3, 1fr);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.footer > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer h3 {
  font-size: 0.95rem;
}

.footer a,
.footer p {
  font-size: 0.92rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(360px, calc(100% - 36px));
  transform: translateY(18px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    justify-content: end;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .promo,
  .footer {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .newsletter {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .announcement-bar {
    font-size: 0.78rem;
  }

  .header-inner {
    gap: 12px;
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 1.05rem;
  }

  .header-search {
    order: 5;
    grid-column: 1 / -1;
    width: 100%;
  }

  .icon-btn:not(.cart-btn) {
    display: none;
  }

  .cart-btn span {
    display: none;
  }

  main {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    gap: 28px;
    padding-top: 44px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .stats div {
    min-width: 0;
    padding-left: 10px;
  }

  .stats strong {
    font-size: 1.2rem;
  }

  .hero-visual {
    min-height: 350px;
    border-radius: 26px;
  }

  .hero-visual img {
    max-height: 360px;
  }

  .promo,
  .product-grid,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .product-toolbar {
    border-radius: 20px;
  }

  .btn-reset {
    width: 100%;
  }

  .newsletter {
    padding: 24px;
  }

  .newsletter form {
    display: grid;
  }
}
