/* LEPUNUO — prettygarden.com design language
   Source tokens: font Arimo, black/white, 3px button corners,
   sand hover #ddd3c6, footer #f7f7f7, uppercase section titles */

:root {
  --ink: #000000;
  --ink-2: #333333;
  --ink-3: #999999;
  --line: #e5e5e5;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --sand: #ddd3c6;
  --sale: #c60808;
  --font: "Arimo", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 3px;
  --wrap: 1920px; /* 放宽内容区，填满宽屏两侧空白 */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- Marquee ---------- */
.marquee {
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: 8px 0;
}
.marquee__track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee__track span {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee--foot { border-top: 1px solid #000; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header__row {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 28px 8px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.menu-btn {
  display: none;
  font-size: 22px;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 6px 10px 6px 0;
  justify-self: start;
}
.brand { justify-self: center; line-height: 1; }
.brand__logo {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 6px;
}
.header__actions { justify-self: end; }
.search { width: 320px; position: relative; }
.search__input {
  width: 100%;
  padding: 8px 0;
  font-size: 15px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  outline: none;
  color: var(--ink);
  transition: border-color .2s;
}
.search__input::placeholder { color: var(--ink-3); }
.search__input:focus { border-color: var(--ink); }

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav__link {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
/* SALE 促销入口：暂无促销数据，先占位灰显，接入促销识别后激活 */
.nav__link--sale { color: var(--ink-3); cursor: default; }
.nav__link--sale:hover { color: var(--ink-3); background: none; }

/* ---------- Hero (full-bleed cinematic banner like prettygarden) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #f4f1ec; /* 兜底浅色：图文加载失败时深色文字仍可读 */
  height: 92vh;
  min-height: 600px;
}
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }

/* Full-bleed cover: brand banner fills the whole viewport, no dead space. */
.hero__wall {
  position: absolute;
  inset: 0;
  display: block;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the entire banner */
  object-position: center 28%;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 78%, rgba(255,255,255,.94) 100%),
    linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 30%, rgba(255,255,255,.5) 54%, rgba(255,255,255,.08) 78%, rgba(255,255,255,0) 88%);
}
.hero__cap {
  position: absolute;
  left: 0;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 max(28px, calc((100vw - var(--wrap)) / 2 + 28px)) 0 0;
  margin-left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  width: 42%;
  text-align: left;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero__eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(0,0,0,.62);
}
.hero__title {
  font-size: clamp(32px, 4.6vw, 62px);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.06;
  color: var(--ink);
}
.hero__sub {
  font-size: 17px;
  color: rgba(0,0,0,.78);
  max-width: 460px;
  line-height: 1.6;
}
.hero__cap::after {
  content: "Free U.S. Shipping Over $49 · Free 30-Day Returns";
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(0,0,0,.72);
}
.hero__cap .btn {
  background: #000;
  color: #fff;
  border-color: #000;
  padding: 15px 40px;
  font-size: 14px;
}
.hero__cap .btn:hover {
  background: var(--sand);
  color: var(--ink);
  border-color: var(--sand);
}
.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity .2s, background .2s;
}
.hero__dot.is-active { background: #000; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 38px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: var(--sand); color: var(--ink); }

/* ---------- Sections ---------- */
.block { max-width: var(--wrap); margin: 0 auto; padding: 40px 28px 44px; }
.block--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 100%; padding: 40px calc(50% - (var(--wrap) - 56px) / 2) 44px; }

.sec__eyebrow {
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ink-3);
}
.sec__title {
  text-align: center;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 6px;
}
.block__more { margin-top: 26px; text-align: center; }

/* ---------- Category tiles ---------- */
.cats { padding-top: 44px; }
.cats__grid { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.catstile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: var(--bg-soft);
  cursor: pointer;
}
.catstile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .3s;
}
.catstile:hover .catstile__img { transform: scale(1.05); opacity: .92; }
.catstile__ov {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 34px 16px 16px;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%);
}
.catstile__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.catstile__sub {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* ---------- Product rows (grid) ---------- */
.prow {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px 14px;
}
@media (max-width: 1200px) { .prow { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px)  { .prow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .prow { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; } }

/* ---------- Product card (borderless) ---------- */
.card { display: flex; flex-direction: column; }
.card__imgwrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
/* image placeholder fallback (image failed to load) */
.imgph {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(45deg, #fff7ef 0 14px, #ffeddb 14px 28px);
  border: 2px dashed #e0913c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.imgph::before {
  content: "NO IMAGE";
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #b96a1c;
}
.imgph::after {
  content: "Image coming soon";
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #c08a4e;
  text-transform: uppercase;
}
.imgph--hero { aspect-ratio: 3 / 4; }
.imgph--review { aspect-ratio: 16 / 10; }
.catstile .imgph, .ig__item .imgph { aspect-ratio: auto; }
.catstile .imgph { height: 100%; }
.card:hover .card__img { transform: scale(1.05); }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius);
}
.card__body {
  padding: 12px 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  flex: 1;
}
.card__name {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 2px; }
.card__price { font-size: 17px; font-weight: 700; letter-spacing: .3px; }
.card__price small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
  vertical-align: 1px;
}
.card__cta {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity .25s;
}
.card:hover .card__cta { opacity: 1; }

/* color swatches (like prettygarden "+N more") */
.card__swatches {
  display: flex;
  justify-content: center;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.card__swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg-soft);
  display: inline-block;
}
.card__swatch--more {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  width: auto;
  height: auto;
  border: none;
  background: none;
  letter-spacing: 0.5px;
  align-self: center;
}

/* ---------- Trust Bar (prettygarden bottom strip) ---------- */
.trustbar {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 28px;
}
.trustbar__in {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.trustbar__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}
@media (max-width: 640px) {
  .trustbar__in { gap: 16px; }
  .trustbar__item { font-size: 11px; letter-spacing: 1px; }
}

/* ---------- Toolbar + grid ---------- */
.toolbar { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar__count { font-size: 14px; color: var(--ink-3); letter-spacing: .5px; }
.select {
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  cursor: pointer;
}
.select:focus { border-color: var(--ink); }

.empty { text-align: center; padding: 56px 0; font-size: 17px; color: var(--ink-3); }

/* ---------- Category groups (horizontal carousels) ---------- */
.catgroup { padding: 44px 0; border-top: 1px solid var(--line); }
.catgroup:first-child { border-top: none; }
.catgroup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.catgroup__head h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}
.catgroup__title {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.catgroup__count {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink-3);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  flex: 0 0 auto;
}
.carow__btns { display: flex; gap: 8px; flex: 0 0 auto; }
.carow__btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.carow__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* horizontal scroll row */
.carow {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 0 6px;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  scroll-padding-left: 0;
}
.carow::-webkit-scrollbar { display: none; }
.carow > .card {
  flex: 0 0 calc((100% - 32px) / 3); /* 桌面：每页 3 张大卡，放大产品展示 */
  scroll-snap-align: start;
}
@media (max-width: 960px) {
  .carow > .card { flex: 0 0 calc((100% - 32px) / 3); } /* 平板：每页 3 个 */
}

/* ---------- Reviews ---------- */
.reviews__in { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.review__imgwrap { aspect-ratio: 16 / 10; overflow: hidden; }
.review__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.review:hover .review__img { transform: scale(1.04); }
.review__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.review__stars { font-size: 17px; letter-spacing: 3px; }
.review__text { font-size: 16px; line-height: 1.65; color: var(--ink-2); flex: 1; font-style: italic; }
.review__author { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 900px) { .reviews__in { grid-template-columns: 1fr; } }

/* ---------- Instagram ---------- */
.ig { padding: 44px 0; }
.ig .sec__title { position: relative; }
.ig__handle {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-2);
}
.ig__handle:hover { text-decoration: underline; }
.ig__grid { margin-top: 26px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.ig__item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.ig__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.ig__item:hover img { transform: scale(1.06); opacity: .85; }
.ig__item span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  opacity: 0;
  background: rgba(0,0,0,.25);
  transition: opacity .3s;
}
.ig__item:hover span { opacity: 1; }

/* ---------- Newsletter ---------- */
.news { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 44px 28px; text-align: center; }
.news__title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.news__sub { margin-top: 10px; font-size: 16px; color: var(--ink-3); }
.news__form {
  margin: 26px auto 0;
  max-width: 500px;
  display: flex;
  gap: 12px;
}
.news__input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  outline: none;
}
.news__input:focus { border-color: var(--ink); }
.news__ok { margin-top: 16px; font-size: 16px; font-weight: 600; }

/* ---------- Footer (light) ---------- */
.foot { background: var(--bg-soft); border-top: 1px solid var(--line); }
.foot__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 28px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot__brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
}
.foot__about { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 260px; }
.foot__col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.foot__links { display: flex; flex-direction: column; gap: 9px; }
.foot__links a { font-size: 15px; color: var(--ink-2); }
.foot__links a:hover { text-decoration: underline; }
.foot__bar {
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
}
.foot__bar p + p { margin-top: 6px; }
@media (max-width: 900px) {
  .foot__in { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header__row { grid-template-columns: auto 1fr auto; gap: 10px; padding: 14px 16px 8px; }
  .menu-btn { display: block; }
  .search { display: none; }
  .hero__title { font-size: 30px; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    padding: 12px 20px 18px;
    align-items: stretch;
    z-index: 70;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 10px 0; text-align: center; }
  .cats__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cats__grid .catstile:nth-child(n+5) { display: none; }
  .ig__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .hero__cap { text-align: center; align-items: center; gap: 12px; padding: 0 20px; }
  .hero__title { font-size: 28px; }
  .hero__sub { font-size: 15px; }
  .carow { margin: 0; padding-left: 0; padding-right: 0; scroll-padding-left: 0; }
  .carow > .card { flex: 0 0 calc((100% - 16px) / 2); } /* 手机：每页正好 2 个 */
  .carow__btn { width: 36px; height: 36px; }
  .block { padding: 40px 16px 44px; }
  .block--alt { padding: 40px 16px 44px; }
  .ig { padding: 48px 0; }
  .brand__logo { font-size: 30px; letter-spacing: 4px; }
  .news__form { flex-direction: column; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .trustbar__in { gap: 16px; }
  .trustbar__item { font-size: 11px; letter-spacing: 1px; }
}
/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.to-top:hover { background: var(--ink-2); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}
