:root {
  --cream: #fff9f0;
  --cream-dark: #f5ebe0;
  --yellow: #fdc040;
  --yellow-soft: #fde8a4;
  --pink-soft: #f8d4e0;
  --lavender: #e8dff5;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --white: #ffffff;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 12px 40px rgba(26, 26, 26, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Segoe Script", "Brush Script MT", cursive;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

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

/* Top bar & header */
.top-bar {
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.top-bar-links {
  display: flex;
  gap: 1rem;
}

.top-bar a {
  opacity: 0.9;
}

.top-bar a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

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

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

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.primary-nav a {
  position: relative;
  padding: 0.25rem 0;
}

.primary-nav a.is-active::after,
.primary-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

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

.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  position: relative;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background: var(--yellow-soft);
}

.badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

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

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

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

.btn-dark:hover {
  box-shadow: var(--shadow);
}

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

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

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  overflow: hidden;
}

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

.hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-copy .highlight {
  color: var(--yellow);
  font-family: var(--script);
  font-weight: 400;
}

.hero-copy p {
  color: var(--ink-muted);
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-circle {
  border-radius: 50%;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--pink-soft);
  box-shadow: var(--shadow);
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  background: var(--white);
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-float img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-float--1 {
  top: 8%;
  left: -4%;
}

.hero-float--2 {
  bottom: 18%;
  right: -2%;
}

.hero-float--3 {
  bottom: 4%;
  left: 12%;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

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

.section-head p {
  color: var(--ink-muted);
  margin: 0;
}

/* Category band */
.category-band {
  background: var(--yellow-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0 auto;
  width: min(1200px, 92vw);
}

.category-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.category-large {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
}

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

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

.arch-card {
  border-radius: var(--radius) var(--radius) 120px 120px;
  overflow: hidden;
  position: relative;
  min-height: 150px;
  background: var(--lavender);
}

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

.arch-card .arch-label {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

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

.product-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease;
}

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

.product-card-media {
  background: var(--cream-dark);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

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

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

.product-wish {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-card-body h3 {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.product-price {
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.product-card .btn {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.85rem;
}

/* Promo split */
.promo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

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

.promo-badge-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
  box-shadow: var(--shadow);
}

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

.promo-yellow h3 {
  font-size: 2rem;
  margin: 0 0 1rem;
}

/* Also viewed */
.also-viewed {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
}

.arch-tall {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--pink-soft);
  max-height: 480px;
}

.arch-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

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

.mini-card {
  text-align: center;
}

.mini-card img {
  border-radius: var(--radius-sm);
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--cream-dark);
  margin-bottom: 0.5rem;
}

.mini-card strong {
  display: block;
  font-size: 0.85rem;
}

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

.offer-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
}

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

.offer-card .offer-text {
  position: absolute;
  inset: auto 0 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: var(--white);
}

.offer-card h4 {
  margin: 0 0 0.35rem;
}

.offer-card a {
  font-size: 0.85rem;
  text-decoration: underline;
}

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

.brand-pill {
  background: var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

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

.blog-feature {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 380px;
}

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

.blog-feature .blog-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
}

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

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

.blog-horizontal img {
  border-radius: var(--radius-sm);
  height: 100px;
  object-fit: cover;
  width: 100%;
}

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

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

.page-hero p {
  color: var(--ink-muted);
  max-width: 40rem;
  margin: 0 auto;
}

/* Content pages */
.content-prose {
  max-width: 780px;
  margin: 0 auto 4rem;
  background: var(--white);
  padding: 2rem 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

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

.content-prose p,
.content-prose li {
  color: var(--ink-muted);
}

.content-prose ul {
  padding-left: 1.25rem;
}

/* Forms */
.form-card {
  max-width: 560px;
  margin: 0 auto 4rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font: inherit;
  background: var(--cream);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--yellow);
  border-color: var(--yellow);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #c0392b;
}

.field-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
  min-height: 1em;
}

.form-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.form-check label {
  flex: 1 1 12rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
  cursor: pointer;
}

.form-check .field-error {
  width: 100%;
  margin-left: calc(1.125rem + 0.75rem);
}

.form-banner {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.form-banner--success {
  background: #e8f8ef;
  color: #1e6b3c;
  border: 1px solid #b8e6c8;
}

/* Shop filters */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-grid img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--yellow-soft);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.75rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

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

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

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid #eee;
}

.social-links a:hover {
  background: var(--yellow);
}

.footer-col h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

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

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

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

.footer-col a:hover {
  color: var(--ink);
}

.footer-subscribe .form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-subscribe input {
  flex: 1 1 160px;
  min-width: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  padding: 1rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.payment-icons {
  display: flex;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
}

.cart-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: var(--white);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
}

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

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
}

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

.cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: start;
}

.cart-line img {
  border-radius: 12px;
  object-fit: cover;
}

.cart-line h4 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
}

.cart-line-price {
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}

.cart-line-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: var(--cream);
  cursor: pointer;
}

.cart-remove {
  border: none;
  background: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ink-muted);
}

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #eee;
}

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

.cart-empty {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

body.cart-open {
  overflow: hidden;
}

/* Success modal */
.success-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 300;
}

.success-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.success-modal-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 440px;
  text-align: center;
  box-shadow: var(--shadow);
}

.success-modal-card h3 {
  margin-top: 0;
}

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

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }
  .nav-toggle {
    display: flex;
    order: 3;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 1rem 4vw;
    border-bottom: 1px solid #eee;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open {
    display: flex;
  }
  .site-header .container {
    position: relative;
  }
  .hero-grid,
  .category-grid,
  .promo-split,
  .also-viewed,
  .blog-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .category-small {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .offer-row {
    grid-template-columns: 1fr;
  }
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .product-grid,
  .mini-grid,
  .brand-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .blog-horizontal {
    grid-template-columns: 1fr;
  }
}
