:root {
  --bg: #f7f1e8;
  --paper: #fffaf2;
  --surface: #ffffff;
  --ink: #1f1a17;
  --muted: #6d625a;
  --accent: #d96b2b;
  --accent-dark: #a84c17;
  --accent-soft: #f6d7c1;
  --line: #e7d8c9;
  --success: #2e8b57;
  --shadow: 0 18px 45px rgba(65, 35, 15, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(217, 107, 43, 0.15), transparent 28%),
    linear-gradient(180deg, #fcf8f2 0%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  font: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(231, 216, 201, 0.85);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #ef9b63);
  color: white;
  font-size: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover {
  background: #fff;
  border-color: var(--line);
  color: var(--accent-dark);
}

.nav-links a:focus-visible,
.nav-links a:active {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent-dark);
  outline: none;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.cart-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.category-card,
.product-card,
.deal-banner,
.feature-box,
.newsletter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 54px 44px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(217, 107, 43, 0.18), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.95;
  max-width: 9ch;
  margin-bottom: 18px;
}

.hero-copy p {
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.primary-btn,
.secondary-btn,
.add-btn {
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
}

.secondary-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.primary-btn:hover,
.secondary-btn:hover,
.add-btn:hover,
.cart-button:hover {
  transform: translateY(-2px);
}

.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 240, 0.98)),
    var(--paper);
}

.panel-card {
  padding: 24px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.showcase-icon {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1f1a17, #453831);
  color: #fff;
  font-size: 2.3rem;
  margin-bottom: 18px;
}

.panel-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.panel-card p {
  color: var(--muted);
  line-height: 1.7;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mini-tile {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.mini-tile .icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: inline-block;
}

section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.section-head h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.6;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.category-card {
  padding: 24px;
  text-align: center;
}

.category-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 14px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  font-size: 1.9rem;
}

.category-card p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.94rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card {
  padding: 24px;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}

.product-icon {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff2e7, #f9d7c2);
  font-size: 2rem;
}

.tag {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3eee8;
  color: var(--muted);
  font-size: 0.8rem;
}

.product-card h4 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.65;
  min-height: 78px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 10px;
}

.price {
  font-size: 1.35rem;
  font-weight: 700;
}

.price small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-top: 2px;
}

.add-btn {
  background: var(--ink);
  color: #fff;
  padding-inline: 18px;
}

.deal-banner {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(217, 107, 43, 0.15), rgba(255, 250, 242, 0.95)),
    var(--paper);
}

.deal-banner h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 10px;
}

.deal-banner p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 58ch;
}

.countdown {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.time-box {
  width: 82px;
  padding: 14px 10px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.time-box strong {
  display: block;
  font-size: 1.6rem;
}

.time-box span {
  color: var(--muted);
  font-size: 0.85rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-box {
  padding: 24px;
}

.feature-box .icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.feature-box p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.newsletter {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.newsletter p {
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.newsletter input {
  min-width: 260px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #1f1a17;
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 88px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow);
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 30;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-dark);
}

@media (max-width: 980px) {
  .hero,
  .products,
  .features,
  .categories,
  .newsletter,
  .deal-banner {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .newsletter-form {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1160px);
    margin-top: 14px;
  }

  .hero-copy,
  .hero-panel,
  .deal-banner,
  .newsletter,
  .product-card,
  .category-card,
  .feature-box {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 36px 22px;
  }

  .topbar {
    padding: 16px;
    border-radius: 20px;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 18px;
  }

  .newsletter input {
    min-width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 82px;
  }
}

@media (max-width: 767px) {
  .topbar {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .nav-links a {
    width: 100%;
    display: block;
    padding: 11px 14px;
  }

  .topbar.nav-open .nav-links {
    display: flex;
  }
}
