/* ============ Base ============ */
:root {
  --black: #111;
  --text: #222;
  --muted: #777;
  --line: #e6e6e6;
  --bg: #fff;
  --soft: #f8f3f1;
  --sale: #b3261e;
  --accent: #c98a8a;
  --header-bg: #fbe9ed;   /* light pink header */
  --header-line: #f1d2da;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
body.no-scroll { overflow: hidden; }


/* ============ Header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-line);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px var(--gutter) 4px;
}
.logo { grid-column: 2; display: block; }
.logo img { height: 110px; width: auto; transition: height .25s ease; }
.header.scrolled .logo img { height: 64px; }
.drawer__logo { height: 52px; width: auto; }
.header__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 6px;
}
.icon-btn {
  background: none;
  border: 0;
  padding: 8px;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle { grid-column: 1; justify-self: start; display: none; }

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 26px;
  padding: 6px var(--gutter) 14px;
}
.nav button, .drawer__nav button {
  background: none;
  border: 0;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  padding: 4px 0;
  position: relative;
}
.nav button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transition: transform .25s;
}
.nav button:hover::after, .nav button.active::after { transform: scaleX(1); }

.search {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
  padding: 0 var(--gutter);
}
.search.open { max-height: 80px; padding-bottom: 14px; }
.search input {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  display: block;
  border: 0;
  border-bottom: 1px solid var(--black);
  padding: 10px 2px;
  font: inherit;
  font-size: 15px;
  outline: none;
  background: transparent;
}

/* ============ Drawer (mobile) ============ */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 90;
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 100;
  padding: 16px 24px;
}
.drawer.open { transform: none; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav button {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.drawer__nav button.active { font-weight: 500; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; background: var(--soft); }
.hero__slides { display: flex; transition: transform .7s ease; }
.hero__slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 9 / 4;
  max-height: 78vh;
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__content {
  position: absolute;
  left: var(--gutter);
  bottom: 18%;
  max-width: 460px;
  color: var(--black);
}
.hero__eyebrow { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; margin: 0 0 10px; }
.hero__title { font-size: clamp(28px, 4.5vw, 60px); font-weight: 300; margin: 0 0 22px; line-height: 1.05; }
.hero__dots {
  position: absolute; left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.hero__dots button {
  width: 26px; height: 2px;
  border: 0; padding: 0;
  background: rgba(0,0,0,.25);
}
.hero__dots button.active { background: var(--black); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--black);
  background: var(--black);
  color: #fff;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 14px 30px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--black); }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.btn--wa svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: #bbb; border-color: #bbb; pointer-events: none; }

/* ============ Collection ============ */
.collection { padding: 56px var(--gutter) 80px; }
.collection__head { text-align: center; margin-bottom: 30px; }
.section-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 26px;
}
.collection__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
  color: var(--muted);
}
.sort {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  border: 0;
  background: transparent;
  padding: 4px 0;
  cursor: pointer;
  outline: none;
}

/* Product grid — 4 / 3 / 2 columns */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 20px;
}
.card { display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); animation: fadeUp .5s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.card__media {
  position: relative;
  aspect-ratio: 8 / 11;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
}
.card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .45s ease, transform .8s ease;
}
.card__media img.alt { opacity: 0; }
.card__media:hover img.alt { opacity: 1; }
.card__media:hover img { transform: scale(1.03); }

.badge {
  position: absolute; top: 10px; left: 10px;
  z-index: 2;
  background: #fff;
  color: var(--black);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 9px;
}
.badge--sale { background: var(--sale); color: #fff; }
.badge--sold-out { background: var(--black); color: #fff; }

.quick {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  z-index: 2;
  background: rgba(255,255,255,.92);
  border: 0;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.card__media:hover .quick { opacity: 1; transform: none; }

.card__body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.card__name {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.4;
  cursor: pointer;
}
.card__price { font-size: 14px; margin: 0 0 14px; }
.card__price .old { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
.card__price .now.sale { color: var(--sale); }
.card .btn { margin-top: auto; padding: 12px 14px; font-size: 11px; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ============ Home: category tiles ============ */
.home { padding: 48px var(--gutter) 80px; }
.featured-head { margin-top: 64px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.cat-tile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cat-tile__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--soft);
  border-radius: 50%;
  border: 1px solid var(--header-line);
}
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover .cat-tile__img img { transform: scale(1.06); }
.cat-tile__name { margin-top: 14px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.cat-tile__count { font-size: 12px; color: var(--muted); margin-top: 4px; }
.back-link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.back-link:hover { color: var(--black); }
.card__price .ask { color: var(--accent); font-size: 13px; letter-spacing: .03em; }
[hidden] { display: none !important; }
.loading-msg { display: none; text-align: center; color: var(--muted); padding: 80px 0; letter-spacing: .1em; font-size: 13px; text-transform: uppercase; }
body.is-loading .loading-msg { display: block; }
body.is-loading #home, body.is-loading #collection { visibility: hidden; }

/* ============ Modal ============ */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.modal__box {
  position: relative;
  background: #fff;
  width: min(980px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  transform: translateY(16px);
  transition: transform .3s;
}
.modal.open .modal__box { transform: none; }
.modal__close { position: absolute; top: 8px; right: 8px; z-index: 2; }
.modal__gallery { background: var(--soft); }
.modal__gallery > img { width: 100%; aspect-ratio: 8 / 11; object-fit: cover; }
.modal__thumbs { display: flex; gap: 8px; padding: 10px; }
.modal__thumbs img { width: 60px; aspect-ratio: 8 / 11; object-fit: cover; cursor: pointer; opacity: .55; border: 1px solid transparent; }
.modal__thumbs img.active { opacity: 1; border-color: var(--black); }
.modal__info { padding: 44px 36px 32px; display: flex; flex-direction: column; }
.modal__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.modal__info h3 { font-size: 24px; font-weight: 400; margin: 0 0 10px; }
.modal__price { font-size: 17px; margin: 0 0 20px; }
.modal__desc { font-size: 14px; line-height: 1.7; color: #555; margin: 0 0 24px; }
.label { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 10px; }
.sizes { margin-bottom: 26px; }
.sizes__list { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes__list button {
  min-width: 46px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
}
.sizes__list button:hover { border-color: var(--black); }
.sizes__list button.active { background: var(--black); color: #fff; border-color: var(--black); }
.modal__sku { font-size: 12px; color: var(--muted); margin: 16px 0 0; }

/* ============ Footer ============ */
.footer { background: var(--soft); padding: 56px var(--gutter) 24px; font-size: 14px; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 16px; }
.footer p { color: #555; line-height: 1.7; margin: 0; max-width: 380px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; color: #555; }
.footer a:hover { color: var(--black); text-decoration: underline; }
.footer__copy { text-align: center; font-size: 12px; color: var(--muted); margin: 48px 0 0 !important; max-width: none !important; }

/* ============ Floating WhatsApp ============ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 150;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .header__inner { padding: 6px var(--gutter); }
  .logo img, .header.scrolled .logo img { height: 58px; }
  .header__actions { gap: 0; }
  .header__actions .icon-btn, .menu-toggle { padding: 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 22px 12px; }
  .cat-tile__name { font-size: 11px; letter-spacing: .08em; }
  .home { padding-top: 32px; }
  .hero__slide { aspect-ratio: 4 / 5; }
  .hero__slide img { object-position: 75% center; }
  .hero__content { bottom: 10%; right: var(--gutter); z-index: 1; }
  .hero__slide::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to bottom, rgba(251,233,237,0), rgba(251,233,237,.92) 55%); }
  .quick { display: none; }
  .card .lg { display: none; }
  .card__name, .card__price { font-size: 13px; }
  .card .btn { font-size: 10px; letter-spacing: .08em; padding: 11px 6px; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__box { grid-template-columns: 1fr; max-height: 94vh; }
  .modal__info { padding: 24px 20px 28px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}
