:root {
  --cream: #fff9f2;
  --cream-dark: #f5ebe0;
  --yellow: #ffe566;
  --yellow-deep: #ffb800;
  --pink: #f4c4d4;
  --purple-soft: #e8dff5;
  --peach: #ffd4b8;
  --grey-soft: #e8e4df;
  --black: #1a1a1a;
  --text: #2d2d2d;
  --text-muted: #6b6560;
  --white: #ffffff;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--yellow-deep);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--black);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-head p {
  max-width: 520px;
  color: var(--text-muted);
  margin: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img,
.logo-link svg {
  height: 40px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link.is-active,
.nav-link:hover {
  border-bottom-color: var(--yellow-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--black);
}

.icon-action:hover {
  background: var(--cream-dark);
}

.badge-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: var(--white);
  background: #e53935;
  border-radius: var(--radius-pill);
}

.badge-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--black);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

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

.btn-dark:hover {
  color: var(--yellow);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--black);
}

.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-copy .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
}

.hero-blob {
  border-radius: 45% 55% 52% 48% / 48% 42% 58% 52%;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--purple-soft);
}

.hero-blob img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid var(--white);
}

.hero-float--1 {
  width: 28%;
  bottom: -8%;
  left: -5%;
}

.hero-float--2 {
  width: 22%;
  top: 8%;
  right: -4%;
  border-radius: 50%;
}

.hero-chip {
  position: absolute;
  top: 12%;
  left: 8%;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
}

/* Promo band */
.promo-band {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.promo-feature img {
  border-radius: var(--radius);
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.category-arches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.category-arch {
  text-align: center;
}

.category-arch img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 50% 50% 20% 20% / 60% 60% 15% 15%;
}

.category-arch span {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-tab {
  border: 2px solid var(--black);
  background: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
}

.filter-tab.is-active {
  background: var(--black);
  color: var(--white);
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card-media {
  position: relative;
  background: var(--cream-dark);
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--black);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-btn.is-active {
  color: #e53935;
}

.product-actions {
  position: absolute;
  inset: auto 12px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card-body {
  padding: 1rem;
}

.product-rating {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stars {
  color: var(--yellow-deep);
  letter-spacing: 1px;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-price {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
}

/* Split banner */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.split-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
  border: 4px solid var(--white);
}

.split-copy {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Also viewed */
.also-viewed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.also-arch {
  border-radius: 50% 50% 12% 12% / 55% 55% 8% 8%;
  overflow: hidden;
  min-height: 420px;
}

.also-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.also-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.also-mini {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  background: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  align-items: center;
}

.also-mini img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  object-fit: cover;
}

/* Offer cards */
.offer-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.offer-card {
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.offer-card--grey {
  background: var(--grey-soft);
}
.offer-card--pink {
  background: var(--pink);
}
.offer-card--peach {
  background: var(--peach);
}

/* Brands */
.brand-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.brand-tile {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.92;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
}

.blog-feature {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.blog-feature img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.blog-feature-body,
.blog-card-body {
  padding: 1.25rem;
}

.blog-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-items: center;
}

.blog-card img {
  height: 100%;
  min-height: 100px;
  object-fit: cover;
}

/* Page hero */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Content prose */
.prose {
  max-width: 820px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.content-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-control:focus {
  outline: none;
  border-color: var(--black);
}

.form-control[aria-invalid="true"] {
  border-color: #c62828;
}

.field-error {
  color: #c62828;
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.checkbox-field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.checkbox-field label {
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.45;
  cursor: pointer;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 600;
}

.form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form-message--error {
  background: #ffebee;
  color: #c62828;
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  margin-top: 3rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-post {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  align-items: center;
}

.footer-post img {
  border-radius: 8px;
  aspect-ratio: 1;
  object-fit: cover;
}

.footer-post a {
  font-size: 0.85rem;
  font-weight: 600;
}

.social-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.social-btn:hover {
  background: var(--yellow-deep);
  color: var(--black);
}

.footer-newsletter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-newsletter .form-control {
  flex: 1;
  min-width: 140px;
}

.footer-bar {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Cart drawer */
#cart-drawer.is-open {
  pointer-events: auto;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

#cart-drawer.is-open .cart-overlay,
#cart-drawer.is-open .cart-panel {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--cream);
  z-index: 201;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s;
}

#cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-line img {
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-line h4 {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 2px solid var(--black);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.qty-input {
  width: 48px;
  text-align: center;
  padding: 0.35rem;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--cream-dark);
  background: var(--white);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 1rem;
}

.checkout-success {
  background: #e8f5e9;
  color: #1b5e20;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: 1rem;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
}

/* Search panel */
#search-panel {
  position: fixed;
  inset: 0;
  background: rgba(255, 249, 242, 0.98);
  z-index: 150;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

#search-panel.is-open {
  opacity: 1;
  visibility: visible;
}

.search-inner {
  max-width: 640px;
  margin: 4rem auto 0;
}

.search-list {
  list-style: none;
  padding: 0;
}

.search-list a {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-weight: 600;
}

/* Mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  z-index: 90;
  padding: 0.35rem 0.5rem env(safe-area-inset-bottom);
  justify-content: space-around;
}

.mobile-bar a,
.mobile-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  gap: 0.15rem;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.35rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-toggle {
    display: flex;
    order: 3;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-dark);
    display: none;
    padding: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .hero-grid,
  .promo-band,
  .split-banner,
  .also-viewed,
  .blog-grid,
  .form-two-col {
    grid-template-columns: 1fr;
  }

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

  .offer-row {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }

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

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
