:root {
  --bg: #fdf6ea;
  --bg-soft: #fef9f2;
  --bg-feature: #f8f0e4;
  --yellow: #ffc53d;
  --yellow-hover: #f5b820;
  --yellow-blob: #fec33c;
  --text: #1e1e1d;
  --text-muted: #5c5c5a;
  --teal: #6ca9a7;
  --teal-soft: #88b7b5;
  --coral: #f29479;
  --coral-soft: #ff8b72;
  --white: #ffffff;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 28px rgba(40, 30, 20, 0.06);
  --shadow-card: 0 10px 30px rgba(40, 30, 20, 0.07);
  --container: 1180px;
  --font: 'Nunito', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  font-family: var(--font);
  background: #fbf4e7;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.underline-accent {
  position: relative;
  display: inline;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  padding-bottom: 0.05em;
}

.underline-accent::after {
  display: none;
}

.underline-accent.short {
  background-size: 1.55em 0.22em;
}

.underline-accent.center {
  background-position: center 100%;
  background-size: 4.5em 0.22em;
  padding-bottom: 0.15em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Navbar + hero as separate design images with invisible clickable hotspots */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fbf4e7;
  line-height: 0;
  box-shadow: 0 1px 0 rgba(40, 30, 20, 0.06);
}

.site-nav__inner,
.hero-banner {
  position: relative;
  width: 100%;
  max-width: 1672px;
  margin: 0 auto;
  line-height: 0;
}

.site-nav__image,
.hero-banner__image {
  width: 100%;
  height: auto;
  display: block;
}

.hotspot {
  position: absolute;
  z-index: 2;
  display: block;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: transparent;
  font-size: 0;
}

.hotspot:focus-visible {
  outline: 2px solid #1e1e1d;
  outline-offset: 2px;
}

.hotspot--logo { left: 4.2%; top: 10%; width: 14.0%; height: 80%; }
.hotspot--shop { left: 26.6%; top: 32%; width: 4.2%; height: 42%; }
.hotspot--collections { left: 33.8%; top: 32%; width: 7.0%; height: 42%; }
.hotspot--about { left: 44.4%; top: 32%; width: 5.8%; height: 42%; }
.hotspot--story { left: 53.6%; top: 32%; width: 6.4%; height: 42%; }
.hotspot--contact { left: 62.6%; top: 32%; width: 5.2%; height: 42%; }
.hotspot--search { left: 79.8%; top: 22%; width: 3.6%; height: 56%; border-radius: 50%; }
.hotspot--account { left: 85.5%; top: 22%; width: 3.6%; height: 56%; border-radius: 50%; }
.hotspot--cart { left: 90.8%; top: 18%; width: 4.2%; height: 62%; border-radius: 50%; }

.hotspot--cta { left: 7.4%; top: 64.2%; width: 18.8%; height: 8.8%; border-radius: 999px; }
.hotspot--trust1 { left: 7.0%; top: 81.5%; width: 9.0%; height: 7.5%; }
.hotspot--trust2 { left: 18.2%; top: 81.5%; width: 9.2%; height: 7.5%; }
.hotspot--trust3 { left: 29.4%; top: 81.0%; width: 8.6%; height: 8.0%; }

.search-panel {
  display: none;
  position: absolute;
  top: 90%;
  right: 4%;
  z-index: 5;
  width: min(320px, 70%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(40, 30, 20, 0.14);
  padding: 0.75rem;
  line-height: 1.4;
}

.search-panel.is-open {
  display: block;
}

.search-panel input {
  width: 100%;
  border: 1px solid rgba(30, 30, 29, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font: inherit;
  background: #fbf4e7;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--yellow);
}

/* Categories */
.categories {
  padding: 0.5rem 0 3.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-title--center {
  text-align: center;
}

.section-title .underline-accent.center {
  background-size: 4.5em 0.22em;
  background-position: center 100%;
}

.categories__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.categories__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.categories__arrow:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 24px rgba(40, 30, 20, 0.1);
}

.categories__list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: none;
}

.categories__list::-webkit-scrollbar {
  display: none;
}

.categories__list li {
  scroll-snap-align: center;
  flex: 0 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  width: 132px;
  transition: transform 0.25s ease;
}

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

.category-card__icon {
  width: 118px;
  height: 118px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.category-card__icon svg {
  width: 72px;
  height: 72px;
}

.category-card__label {
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
}

/* Favorites */
.favorites {
  position: relative;
  padding: 2.5rem 0 4rem;
  overflow: hidden;
}

.favorites__blob {
  position: absolute;
  width: min(280px, 32vw);
  height: min(320px, 40vw);
  border-radius: 60% 40% 55% 45% / 45% 55% 45% 55%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.favorites__blob--teal {
  left: -120px;
  top: 18%;
  background: var(--teal-soft);
}

.favorites__blob--coral {
  right: -120px;
  top: 28%;
  background: var(--coral-soft);
}

.favorites .container {
  position: relative;
  z-index: 1;
}

.favorites__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.favorites__header .section-title {
  margin-bottom: 0;
}

.favorites__header .underline-accent.short {
  background-size: 1.55em 0.22em;
  background-position: 0 100%;
}

.favorites__view-all {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.favorites__view-all:hover {
  color: var(--teal);
}

.favorites__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(40, 30, 20, 0.1);
}

.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: #f3ebe0;
  overflow: hidden;
}

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

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  color: white;
}

.product-card__badge--teal {
  background: var(--teal);
}

.product-card__badge--coral {
  background: var(--coral);
}

.product-card__body {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.product-card__top h3 {
  font-size: 1rem;
  font-weight: 700;
}

.wishlist-btn {
  color: var(--text);
  opacity: 0.7;
  padding: 2px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.wishlist-btn:hover {
  opacity: 1;
  color: var(--coral);
}

.product-card__price {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.product-card__cta {
  margin-top: auto;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--yellow);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, transform 0.2s ease;
}

.product-card__cta:hover {
  background: var(--yellow-hover);
  transform: translateY(-1px);
}

/* Features */
.features {
  padding: 0 0 3.5rem;
}

.features__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--bg-feature);
  border-radius: 28px;
  padding: 1.6rem 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.features__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1.1rem;
  position: relative;
}

.features__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(30, 30, 29, 0.12);
}

.features__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.features__item h3 {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.features__item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

/* Footer */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(30, 30, 29, 0.06);
  background: #faf1e3;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.footer__brand img {
  width: 36px;
  height: auto;
}

.footer__tagline {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.footer__links a:hover {
  color: var(--teal);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 1000px) {
  .favorites__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .features__bar {
    grid-template-columns: 1fr 1fr;
    row-gap: 0.5rem;
  }

  .features__item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .categories__list {
    justify-content: flex-start;
  }
}

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

  .favorites__header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .features__item:not(:last-child)::after {
    display: none;
  }

  .features__item:not(:last-child) {
    border-bottom: 1px solid rgba(30, 30, 29, 0.08);
    padding-bottom: 1rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }
}
