/* ============================================================
   Little Lane — page components & sections
   ============================================================ */

/* ---------- product card ---------- */
.grid-products { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media {
  position: relative; display: block; background: var(--media, var(--media-bg));
  aspect-ratio: 1 / 0.92; overflow: hidden;
}
.card-media img {
  width: 82%; height: 82%; object-fit: contain; margin: auto; position: absolute; inset: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.product-card:hover .card-media img { transform: scale(1.07) rotate(-2deg); }
.card-media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.wish-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); color: var(--ink-soft);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: all 0.2s ease; opacity: 0; transform: translateY(-6px);
}
.wish-btn svg { width: 18px; height: 18px; transition: fill 0.2s ease; }
.product-card:hover .wish-btn, .wish-btn:focus-visible, .wish-btn.is-active { opacity: 1; transform: none; }
.wish-btn:hover { color: var(--primary); transform: scale(1.1); }
.wish-btn.is-active { color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--surface), var(--shadow-sm); }
.wish-btn.is-active svg { fill: var(--primary); }
.card-actions {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  display: flex; gap: 8px;
  opacity: 0; transform: translateY(10px); transition: all 0.25s ease;
}
.product-card:hover .card-actions { opacity: 1; transform: none; }
.card-actions .btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 0.8rem; }
.card-actions .btn svg { width: 15px; height: 15px; }
.card-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }
.card-name { font-size: 1.02rem; }
.card-name a:hover { color: var(--primary); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-price strong { font-size: 1.08rem; color: var(--primary); }
.card-price s { color: var(--muted); font-size: 0.86rem; }

@media (max-width: 1080px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 460px) { .card-actions { opacity: 1; transform: none; } .wish-btn { opacity: 1; transform: none; } }
/* Hover-reveal only makes sense with a pointer: on touch the heart is always up. */
@media (hover: none) { .wish-btn { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { padding: 48px 0 30px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-copy .kicker { margin-bottom: 14px; }
.hero-copy h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero-copy h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: var(--sun); opacity: 0.5; border-radius: 6px; z-index: -1;
}
.hero-copy .lead { font-size: 1.08rem; margin: 18px 0 26px; max-width: 460px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-notes { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-notes .n { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; font-weight: 800; color: var(--ink-soft); }
.hero-notes svg { width: 19px; height: 19px; color: var(--teal); }
.hero-art { position: relative; }
.hero-art > img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 11px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 12px 16px; font-size: 0.84rem; font-weight: 800;
  animation: floaty 4.5s ease-in-out infinite;
}
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .fc-ic svg { width: 19px; height: 19px; }
.float-card small { display: block; color: var(--muted); font-weight: 700; }
.fc-1 { top: 26px; left: -26px; animation-delay: 0.6s; }
.fc-2 { bottom: 40px; right: -18px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fc-1 { left: 8px; } .fc-2 { right: 8px; }
}

/* ---------- Hero slider (section hero-slider) ---------- */
/* Full-width slideshow offered as an alternative to the two-column .hero above.
   Same contract as Arbor (.hs-track, .hs-slide states, arrows, dots) drawn with
   the Little Lane palette: pill controls, Baloo titles and the theme's own
   buttons. A slide without a picture keeps the illustration of the hero. Without
   JavaScript the track stays a native horizontal scroller and the controls ship
   hidden; app.js stacks the slides and drives the transition. */

.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  color: #fff;
  --hs-duration: 600ms;
  /* Veil drawn by .hs-scrim: the theme ink under light copy, its cream ground
     under dark copy, so the text always has a surface of its own. */
  --hs-veil: 49, 43, 69;
}
.hero-slider--tone-dark { color: var(--ink); }
/* A dark tone also faces the cream veil: the empty slide then reads like paper. */
.hero-slider--tone-dark .hs-slide { --hs-veil: 255, 250, 244; }
.hero-slider--compact { --hs-height: clamp(300px, 40vh, 420px); }
.hero-slider--medium { --hs-height: clamp(400px, 56vh, 560px); }
.hero-slider--tall { --hs-height: clamp(500px, 76vh, 740px); }

.hero-slider .hs-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hero-slider .hs-track::-webkit-scrollbar { display: none; }
.hero-slider .hs-track:focus-visible { outline: 3px solid var(--sun); outline-offset: -6px; border-radius: 0; }

.hero-slider .hs-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: var(--hs-height);
  display: grid;
  align-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding-block: 56px;
  overflow: hidden;
}

.hero-slider .hs-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slider .hs-slide--focal-top .hs-media { object-position: 50% 20%; }
.hero-slider .hs-slide--focal-bottom .hs-media { object-position: 50% 80%; }

.hero-slider .hs-scrim { position: absolute; inset: 0; }
.hero-slider .hs-scrim--soft { background: linear-gradient(100deg, rgba(var(--hs-veil), .84) 0%, rgba(var(--hs-veil), .52) 48%, rgba(var(--hs-veil), .06) 100%); }
.hero-slider .hs-scrim--strong { background: rgba(var(--hs-veil), .85); }
.hero-slider .hs-scrim--none { background: none; }
/* Centred copy reads better with the veil falling from the top. */
.hero-slider .hs-slide--center .hs-scrim--soft { background: linear-gradient(180deg, rgba(var(--hs-veil), .3) 0%, rgba(var(--hs-veil), .7) 100%); }

.hero-slider .hs-container { position: relative; }
.hero-slider .hs-inner { max-width: 600px; }
.hero-slider .hs-slide--center .hs-inner { max-width: 760px; margin-inline: auto; text-align: center; }

/* The theme's badge language: a rounded pill that carries the brand accent. */
.hero-slider .hs-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-slider .hs-slide--dark .hs-eyebrow { background: var(--ink); color: var(--bg); box-shadow: none; }

.hero-slider .hs-slide .hs-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin: 18px 0 0;
  color: inherit;
}
.hero-slider .hs-slide--center .hs-title { margin-inline: auto; }
.hero-slider .hs-slide .hs-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: inherit;
  opacity: .92;
  max-width: 48ch;
  margin-top: 14px;
}
.hero-slider .hs-slide--center .hs-text { margin-inline: auto; }
.hero-slider .hs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-slider .hs-slide--center .hs-ctas { justify-content: center; }

/* The template's own pill buttons, softened so the photo shows through. */
.hero-slider .hs-ctas .btn { border-radius: 999px; }
.hero-slider .hs-slide--light .hs-ctas .btn-outline {
  background: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .9);
  color: var(--ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero-slider .hs-slide--light .hs-ctas .btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary-600);
}
.hero-slider .hs-slide--dark .hs-ctas .btn-outline {
  background: transparent;
  border-color: rgba(49, 43, 69, .38);
  color: var(--ink);
}
.hero-slider .hs-slide--dark .hs-ctas .btn-outline:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.hero-slider .hs-nav { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-slider .hs-nav[hidden], .hero-slider .hs-dots[hidden] { display: none; }
.hero-slider .hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(49, 43, 69, .34);
  color: #fff;
  pointer-events: auto;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-slider .hs-arrow:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-50%) scale(1.06); }
.hero-slider .hs-arrow .icon { width: 20px; height: 20px; }
.hero-slider .hs-arrow--prev { left: 18px; }
.hero-slider .hs-arrow--next { right: 18px; }
/* Dark tone: the ground is cream, so the arrows turn ink like the dots do. */
.hero-slider--tone-dark .hs-arrow { border-color: rgba(49, 43, 69, .28); background: rgba(255, 255, 255, .78); color: var(--ink); }
.hero-slider--tone-dark .hs-arrow:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.hero-slider .hs-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-slider .hs-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-slider .hs-dot:hover { background: rgba(255, 255, 255, .85); }
.hero-slider .hs-dot[aria-current="true"] { width: 28px; background: var(--primary); }
.hero-slider--tone-dark .hs-dot { background: rgba(49, 43, 69, .25); }
.hero-slider--tone-dark .hs-dot:hover { background: rgba(49, 43, 69, .45); }
.hero-slider--tone-dark .hs-dot[aria-current="true"] { background: var(--primary); }

/* app.js stacks the slides and drives the transition itself; until it runs (and
   without JavaScript) the track above stays a native horizontal scroller. */
.hero-slider[data-hs-mode] .hs-track { display: grid; overflow: hidden; touch-action: pan-y; }
.hero-slider[data-hs-mode] .hs-slide {
  grid-area: 1 / 1;
  transition: transform var(--hs-duration) ease, opacity var(--hs-duration) ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-slider[data-hs-mode] .hs-slide[data-hs-state="active"] { pointer-events: auto; z-index: 2; }
.hero-slider[data-hs-booting] .hs-slide { transition: none; }

/* Horizontal: the entering slide waits on the right. */
.hero-slider[data-hs-mode="horizontal"] .hs-slide { transform: translateX(100%); }
.hero-slider[data-hs-mode="horizontal"] .hs-slide[data-hs-state="prev"] { transform: translateX(-100%); }
.hero-slider[data-hs-mode="horizontal"] .hs-slide[data-hs-state="active"] { transform: none; }

/* Vertical: the entering slide waits above, so the slideshow moves downwards. */
.hero-slider[data-hs-mode="vertical"] .hs-slide { transform: translateY(-100%); }
.hero-slider[data-hs-mode="vertical"] .hs-slide[data-hs-state="prev"] { transform: translateY(100%); }
.hero-slider[data-hs-mode="vertical"] .hs-slide[data-hs-state="active"] { transform: none; }

/* Fade: every slide shares the same box and only the active one is opaque. */
.hero-slider[data-hs-mode="fade"] .hs-slide { opacity: 0; }
.hero-slider[data-hs-mode="fade"] .hs-slide[data-hs-state="active"] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-slider .hs-track { scroll-behavior: auto; }
  .hero-slider .hs-dot { transition: none; }
  /* The shared reduced-motion rule of the theme keeps a 0.01ms duration for
     everything; the slideshow is instant instead. */
  .hero-slider[data-hs-mode] .hs-slide { transition-duration: 0s !important; }
}

@media (max-width: 860px) {
  /* The copy spans the full width here, so the soft veil falls vertically
     instead of fading out under the last lines. */
  .hero-slider .hs-slide--left .hs-scrim--soft { background: linear-gradient(180deg, rgba(var(--hs-veil), .34) 0%, rgba(var(--hs-veil), .74) 100%); }
  .hero-slider .hs-arrow { display: none; }
  .hero-slider .hs-dots { bottom: 16px; }
}

/* While the arrows are on and the container is still narrow, the copy steps in
   so the round buttons never sit on the title. */
@media (min-width: 861px) and (max-width: 1240px) {
  .hero-slider .hs-inner { padding-inline: 46px; }
}

@media (max-width: 640px) {
  .hero-slider .hs-slide { padding-block: 44px; }
  .hero-slider .hs-inner, .hero-slider .hs-slide--center .hs-inner { max-width: none; }
  .hero-slider .hs-slide .hs-title { font-size: clamp(1.8rem, 8vw, 2.4rem); max-width: none; }
  .hero-slider .hs-slide .hs-text { font-size: 1rem; }
  .hero-slider .hs-ctas { margin-top: 20px; }
  .hero-slider .hs-ctas .btn { flex: 1 1 auto; padding: 13px 22px; }
}

/* ---------- trust strip ---------- */
.trust { padding: 26px 0 8px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item {
  display: flex; gap: 13px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.trust-item .t-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.trust-item .t-ic svg { width: 21px; height: 21px; }
.trust-item b { display: block; font-size: 0.93rem; }
.trust-item span { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-tile {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--media, var(--surface-2)); aspect-ratio: 1 / 1.06;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease; text-align: center;
}
.cat-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.cat-tile img { position: absolute; top: 12%; width: 62%; transition: transform 0.35s ease; }
.cat-tile:hover img { transform: scale(1.08) rotate(3deg); }
.cat-tile .ct-body { position: relative; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); width: 100%; padding: 14px 10px 18px; }
.cat-tile b { font-family: var(--font-head); font-size: 1.08rem; }
.cat-tile span { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.cat-tile .go { display: inline-flex; align-items: center; gap: 5px; color: var(--primary); font-weight: 800; font-size: 0.84rem; margin-top: 5px; }
@media (max-width: 900px) { .cat-tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- promo banner ---------- */
.promo {
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  background: linear-gradient(120deg, var(--primary) 0%, #ff9776 55%, var(--sun) 130%);
  color: #fff; padding: 54px 30px; text-align: center;
}
[data-theme="dark"] .promo { color: #2b1414; }
.promo h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.promo p { color: inherit; opacity: 0.92; margin: 10px auto 22px; max-width: 440px; font-weight: 600; }
.promo-code {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.25); border: 2px dashed rgba(255, 255, 255, 0.65);
  padding: 10px 22px; border-radius: 14px; font-weight: 800; letter-spacing: 0.12em; font-size: 1.05rem;
  margin-bottom: 22px; cursor: pointer; transition: all 0.2s ease;
}
.promo-code:hover { background: rgba(255, 255, 255, 0.4); }
[data-theme="dark"] .promo-code { border-color: rgba(43, 20, 20, 0.5); }
.promo .bubbles span { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }

/* ---------- testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm); position: relative;
}
.testi .q-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 14px; }
.testi .q-ic svg { width: 19px; height: 19px; }
.testi p { font-size: 0.95rem; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 0.95rem; flex: none; }
.testi-who b { display: block; font-size: 0.92rem; }
.testi-who span { font-size: 0.78rem; color: var(--muted); }
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 46px 30px; text-align: center; box-shadow: var(--shadow-sm);
}
.newsletter p { max-width: 430px; margin: 8px auto 22px; }
.news-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.news-form input {
  flex: 1; padding: 13px 20px; border-radius: 999px; border: 2px solid var(--border-strong);
  background: var(--bg); outline: none; font-size: 0.95rem;
}
.news-form input:focus { border-color: var(--primary); }
@media (max-width: 520px) { .news-form { flex-direction: column; } }

/* ---------- blog teaser ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.25s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .pc-media { aspect-ratio: 4 / 2.6; overflow: hidden; display: block; }
.post-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .pc-media img { transform: scale(1.06); }
.pc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pc-meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.pc-meta .cat { color: var(--teal); text-transform: uppercase; letter-spacing: 0.07em; }
.pc-body h3 { font-size: 1.12rem; line-height: 1.35; }
.pc-body h3 a:hover { color: var(--primary); }
.pc-body p { font-size: 0.9rem; }
.pc-more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 800; font-size: 0.88rem; }
.pc-more:hover { gap: 11px; }
.pc-more svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(600px 200px at 15% 0%, var(--primary-soft), transparent),
    radial-gradient(500px 220px at 85% 10%, var(--lav-soft), transparent),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 54px 0 44px; text-align: center;
}
.page-hero h1 { margin: 10px 0 12px; }
.page-hero p { max-width: 520px; margin: 0 auto; }

/* ---------- shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--border); }
.f-group:first-child { padding-top: 0; }
.f-group:last-child { border-bottom: 0; padding-bottom: 0; }
.f-group h4 { font-size: 0.95rem; margin-bottom: 12px; }
.f-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.f-opt input { accent-color: var(--primary); width: 17px; height: 17px; }
.f-opt:hover { color: var(--primary); }
.f-opt .n { margin-left: auto; font-size: 0.76rem; color: var(--muted); }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.shop-toolbar .count { font-size: 0.9rem; color: var(--muted); font-weight: 700; }
.select {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  padding: 8px 16px; font-weight: 700; font-size: 0.88rem; color: var(--ink-soft);
}
.select select { border: 0; background: none; outline: none; font-weight: 800; color: var(--ink); cursor: pointer; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.active-filters .chip.is-active { background: var(--surface-2); border-color: var(--border-strong); color: var(--ink-soft); }
.active-filters .chip.is-active:hover { border-color: var(--danger); color: var(--danger); }
@media (max-width: 940px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 7px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.92rem; color: var(--ink-soft);
  border: 2px solid var(--border); background: var(--surface); transition: all 0.2s ease;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.is-active { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.page-btn[disabled] { opacity: 0.4; pointer-events: none; }
.page-btn svg { width: 15px; height: 15px; }
.page-dots { align-self: end; padding-bottom: 10px; color: var(--muted); }

/* ---------- product detail ---------- */
.pd-layout { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 46px; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-main-img {
  border-radius: var(--r-lg); background: var(--media, var(--media-bg));
  aspect-ratio: 1 / 0.9; display: grid; place-items: center; overflow: hidden;
}
.pd-main-img img { width: 84%; height: 84%; object-fit: contain; transition: transform 0.3s ease; }
.pd-main-img:hover img { transform: scale(1.05); }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pd-thumb { border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; border: 3px solid transparent; overflow: hidden; transition: all 0.2s ease; }
.pd-thumb img { width: 74%; }
.pd-thumb:hover { transform: translateY(-3px); }
.pd-thumb.is-active { border-color: var(--primary); }
.pd-info .card-cat { font-size: 0.78rem; }
.pd-info h1 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 8px 0 12px; }
.pd-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 0.9rem; }
.pd-rating a { color: var(--teal); font-weight: 800; text-decoration: underline; }
.pd-price { font-size: 1.9rem; font-weight: 800; color: var(--primary); display: flex; gap: 12px; align-items: baseline; }
.pd-price s { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.pd-price .save { font-size: 0.78rem; background: var(--primary-soft); color: var(--primary-600); padding: 4px 10px; border-radius: 99px; align-self: center; }
.pd-short { margin: 16px 0 22px; font-size: 0.97rem; }
.pd-opt { margin-bottom: 20px; }
.stock-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 800; color: var(--green); margin-bottom: 18px; }
.stock-hint svg { width: 15px; height: 15px; }
.pd-buy { display: flex; gap: 12px; margin: 22px 0 10px; flex-wrap: wrap; }
.pd-buy .btn-primary { flex: 1; min-width: 200px; }
.pd-wish { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; color: var(--ink-soft); transition: all 0.2s ease; flex: none; }
.pd-wish:hover, .pd-wish.is-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pd-wish.is-active svg { fill: var(--primary); }
.pd-wish svg { width: 21px; height: 21px; }
.pd-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border-strong); }
.pd-meta .m { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted); font-weight: 700; }
.pd-meta svg { width: 17px; height: 17px; color: var(--teal); }
@media (max-width: 940px) { .pd-layout { grid-template-columns: 1fr; } .pd-gallery { position: static; } }

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin: 60px 0 0; flex-wrap: wrap; }
.tab-btn { padding: 13px 22px; font-weight: 800; color: var(--muted); border-radius: 12px 12px 0 0; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { color: var(--primary); }
.tab-btn.is-active { color: var(--primary); border-color: var(--primary); }
.tab-panel { padding: 28px 4px; display: none; }
.tab-panel.is-active { display: block; animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.tab-panel h3 { margin-bottom: 12px; }
.tab-panel p { margin-bottom: 12px; max-width: 760px; }
.tab-panel ul { margin: 10px 0 0 4px; padding-left: 18px; color: var(--ink-soft); }
.tab-panel li { margin-bottom: 8px; }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.review-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.review-summary .big { font-family: var(--font-head); font-size: 3rem; font-weight: 800; line-height: 1; }
.r-bar { display: grid; grid-template-columns: 34px 1fr 30px; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--muted); font-weight: 700; margin-top: 9px; }
.r-bar .bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.r-bar .bar i { display: block; height: 100%; background: var(--star); border-radius: 99px; }
.review { padding: 22px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-head .who b { display: block; font-size: 0.94rem; }
.review-head .who span { font-size: 0.78rem; color: var(--muted); }
.review-head .verified { margin-left: auto; }
.review p { font-size: 0.94rem; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } .review-summary { position: static; } }

/* ---------- cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.cart-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.cart-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.ci-thumb { width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center; background: var(--media, var(--media-bg)); }
.ci-thumb img { width: 78%; }
.ci-info .cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ci-info .n { font-weight: 800; font-size: 1rem; }
.ci-info .n:hover { color: var(--primary); }
.ci-info .v { font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ci-price { font-weight: 800; font-size: 1.05rem; color: var(--primary); }
.ci-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); font-weight: 700; }
.ci-remove:hover { color: var(--danger); }
.ci-remove svg { width: 15px; height: 15px; }
@media (max-width: 700px) { .cart-item { grid-template-columns: 70px 1fr; } .ci-thumb { width: 70px; height: 70px; } .ci-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; } }

.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.summary-card h3 { margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.94rem; color: var(--ink-soft); font-weight: 600; }
.sum-row.total { border-top: 2px solid var(--border-strong); margin-top: 10px; padding-top: 15px; font-size: 1.12rem; font-weight: 800; color: var(--ink); }
.sum-row .free { color: var(--green); font-weight: 800; }
.sum-row .off { color: var(--green); }
.promo-row { display: flex; gap: 8px; margin: 14px 0; }
.promo-row input { flex: 1; padding: 10px 14px; border: 2px solid var(--border-strong); border-radius: 10px; background: var(--surface); outline: none; font-size: 0.88rem; text-transform: uppercase; }
.promo-row input:focus { border-color: var(--primary); }
@media (max-width: 940px) { .cart-layout { grid-template-columns: 1fr; } .summary-card { position: static; } }

/* ---------- checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 34px; align-items: start; }
.steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 36px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 0.88rem; color: var(--muted); }
.step .s-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 0.82rem; }
.step.is-active { color: var(--primary); }
.step.is-active .s-n { background: var(--primary); color: var(--on-primary); }
.step.is-done { color: var(--green); }
.step.is-done .s-n { background: var(--green); color: #fff; }
.step-sep { width: 34px; height: 2px; background: var(--border-strong); }
@media (max-width: 620px) { .step span.lbl { display: none; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.panel h3 .p-n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 0.85rem; }
.pay-methods { display: grid; gap: 10px; }
.mini-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.mini-item { display: flex; gap: 12px; align-items: center; }
.mini-item .mi-thumb { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; flex: none; position: relative; background: var(--media, var(--media-bg)); }
.mini-item .mi-thumb img { width: 76%; }
.mini-item .mi-thumb .q { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--ink); color: var(--bg); border-radius: 50%; font-size: 0.68rem; font-weight: 800; display: grid; place-items: center; }
.mini-item .n { font-weight: 800; font-size: 0.88rem; }
.mini-item .v { font-size: 0.76rem; color: var(--muted); }
.mini-item .p { margin-left: auto; font-weight: 800; font-size: 0.9rem; }
@media (max-width: 940px) { .checkout-layout { grid-template-columns: 1fr; } }

/* ---------- wishlist ---------- */
.wish-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.wish-head h1 { margin: 6px 0 8px; }
.wish-lede { max-width: 46ch; margin: 0; }
.wish-count {
  margin: 0; padding: 9px 18px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-600);
  font-size: 0.86rem; font-weight: 800;
}
.wish-count strong { font-family: var(--font-head); font-size: 1.06rem; }
.wishlist-list { margin: 0; padding: 0; list-style: none; border-top: 2px dashed var(--border-strong); }
/* Rows keep the theme's dashed divider instead of a table: the same quiet
   rhythm as the account summaries, with the product photo on cream media. */
.wishlist-row {
  display: grid; grid-template-columns: 104px minmax(0, 1fr) auto 40px;
  align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 2px dashed var(--border-strong);
}
.wishlist-media {
  position: relative;
  display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 1 / 0.92; border-radius: var(--r-md);
  background: var(--media, var(--media-bg));
}
.wishlist-media img { width: 82%; height: 82%; object-fit: contain; }
.wishlist-info { min-width: 0; }
.wishlist-name { font-size: 1.05rem; }
.wishlist-name a:hover { color: var(--primary); }
.wishlist-variant { margin-top: 3px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.wishlist-stock { margin-top: 8px; }
.wishlist-buy { display: grid; justify-items: end; gap: 9px; }
.wishlist-price { font-size: 1.08rem; font-weight: 800; color: var(--primary); }
.wishlist-remove { margin: 0; }
.wishlist-remove-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  transition: all 0.2s ease;
}
.wishlist-remove-btn svg { width: 15px; height: 15px; }
.wishlist-remove-btn:hover { border-color: var(--danger); color: var(--danger); background: var(--surface-2); }
.wishlist-foot { display: flex; justify-content: flex-end; margin-top: 26px; }
.wishlist-empty { margin-top: 6px; }
/* The empty favorites card is the one place the heart leads the page. */
.wishlist-empty .e-ic { background: var(--primary-soft); }
.wishlist-empty .e-ic svg { color: var(--primary); }
@media (max-width: 760px) {
  .wishlist-row { grid-template-columns: 80px minmax(0, 1fr) 38px; row-gap: 12px; }
  .wishlist-media { grid-row: 1 / span 2; }
  .wishlist-info { grid-column: 2; }
  .wishlist-remove { grid-column: 3; grid-row: 1; align-self: start; }
  .wishlist-buy { grid-column: 2 / span 2; grid-row: 2; justify-items: stretch; }
  .wishlist-buy .btn, .wishlist-foot .btn { width: 100%; justify-content: center; }
  .wishlist-foot { justify-content: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .wish-btn, .wish-btn svg, .pd-wish, .product-card, .wishlist-remove-btn, a.stat-card { transition: none; }
  .product-card:hover, a.stat-card:hover { transform: none; }
  .product-card:hover .card-media img { transform: none; }
}

/* ---------- search page ---------- */
.search-bar-lg { display: flex; gap: 10px; max-width: 620px; margin: 0 auto 26px; }
.search-bar-lg input { flex: 1; padding: 15px 24px; border-radius: 999px; border: 2px solid var(--border-strong); background: var(--surface); outline: none; font-size: 1rem; }
.search-bar-lg input:focus { border-color: var(--primary); }
.search-suggest { text-align: center; margin-bottom: 30px; }
.search-suggest .chips { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 50px 0; }
.auth-card { width: min(460px, 94vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 38px 36px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.7rem; text-align: center; }
.auth-card .sub { text-align: center; margin: 8px 0 26px; font-size: 0.93rem; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.auth-alt a { color: var(--primary); font-weight: 800; }
.demo-box { margin-top: 18px; background: var(--teal-soft); border-radius: 12px; padding: 13px 16px; font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; }
.demo-box b { color: var(--teal); }
.auth-bear { width: 68px; margin: 0 auto 14px; display: block; }

/* ---------- account ---------- */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 34px; align-items: start; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.account-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.account-user .avatar { width: 46px; height: 46px; }
.account-user b { display: block; font-size: 0.95rem; }
.account-user span { font-size: 0.78rem; color: var(--muted); }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-weight: 800; font-size: 0.92rem; color: var(--ink-soft); transition: all 0.15s ease; }
.account-nav a:hover { background: var(--surface-2); color: var(--primary); }
.account-nav a.is-active { background: var(--primary-soft); color: var(--primary); }
.account-nav a svg { width: 18px; height: 18px; }
.account-nav .out { color: var(--danger); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 14px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.stat-cards.stat-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .stat-cards.stat-cards-4 { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow-sm); }
.stat-card .s-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.stat-card .s-ic svg { width: 21px; height: 21px; }
.stat-card b { font-size: 1.4rem; font-family: var(--font-head); display: block; line-height: 1.1; }
.stat-card span { font-size: 0.8rem; color: var(--muted); font-weight: 700; }
a.stat-card { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
a.stat-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-md); }
@media (max-width: 900px) { .account-layout { grid-template-columns: 1fr; } .account-nav { position: static; } .stat-cards { grid-template-columns: 1fr; } }

/* ---------- orders table ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; }
.table th { text-align: left; padding: 16px 20px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); border-bottom: 2px solid var(--border); background: var(--surface-2); }
.table td { padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table .o-id { font-weight: 800; color: var(--ink); }
.table .o-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 800; font-size: 0.85rem; }
.table .o-link:hover { gap: 10px; }
.table .o-link svg { width: 14px; height: 14px; }
.table .p-thumb { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--media, var(--media-bg)); }
.table .p-thumb img { width: 76%; }
.table .p-cell { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 800; }

/* ---------- order detail ---------- */
.timeline { display: flex; gap: 0; margin: 26px 0 10px; }
.tl-step { flex: 1; text-align: center; position: relative; }
.tl-step .dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--surface-2); border: 3px solid var(--border-strong);
  display: grid; place-items: center; color: var(--muted); position: relative; z-index: 2;
}
.tl-step .dot svg { width: 15px; height: 15px; }
.tl-step b { font-size: 0.84rem; display: block; }
.tl-step span { font-size: 0.74rem; color: var(--muted); }
.tl-step::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--border-strong); }
.tl-step:first-child::before { display: none; }
.tl-step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.done::before { background: var(--green); }
.tl-step.current .dot { background: var(--sun); border-color: var(--sun); color: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 30%, transparent); }
.tl-step.current b { color: var(--ink); }
.order-banner { background: linear-gradient(120deg, var(--teal-soft), var(--lav-soft)); border-radius: var(--r-lg); padding: 30px; margin-bottom: 24px; display: flex; gap: 16px; align-items: center; }
.order-banner .o-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.order-banner .o-ic svg { width: 25px; height: 25px; }
.order-banner h2 { font-size: 1.3rem; }
.order-banner p { font-size: 0.9rem; }

/* ---------- addresses ---------- */
.addr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.addr-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); position: relative; }
.addr-card .a-tag { position: absolute; top: 18px; right: 18px; }
.addr-card h3 { margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.addr-card h3 svg { width: 18px; height: 18px; color: var(--primary); }
.addr-card p { font-size: 0.92rem; }
.addr-actions { display: flex; gap: 8px; margin-top: 16px; }
.addr-add { border: 2px dashed var(--border-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: var(--muted); font-weight: 800; min-height: 190px; border-radius: var(--r-lg); transition: all 0.2s ease; background: transparent; }
.addr-add:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.addr-add svg { width: 30px; height: 30px; }
@media (max-width: 700px) { .addr-grid { grid-template-columns: 1fr; } }

/* ---------- blog list ---------- */
.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.featured-post .fp-media { min-height: 320px; }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; }
.fp-body { padding: 40px 38px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.fp-body h2 { font-size: 1.65rem; }
.fp-body h2 a:hover { color: var(--primary); }
@media (max-width: 860px) { .featured-post { grid-template-columns: 1fr; } }

/* ---------- blog post ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article-hero { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow-md); }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.article h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.article .body h2 { font-size: 1.45rem; margin: 34px 0 14px; }
.article .body h3 { margin: 26px 0 10px; }
.article .body p { margin-bottom: 16px; font-size: 1.01rem; }
.article .body ul, .article .body ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.article .body li { margin-bottom: 9px; }
.pull-quote {
  margin: 30px 0; padding: 26px 30px; border-radius: var(--r-md);
  background: var(--surface-2); border-left: 5px solid var(--primary);
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--ink);
}
.tip-box { display: flex; gap: 14px; background: var(--teal-soft); border-radius: var(--r-md); padding: 20px 22px; margin: 24px 0; }
.tip-box .t-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--teal); color: #fff; display: grid; place-items: center; flex: none; }
.tip-box .t-ic svg { width: 19px; height: 19px; }
.tip-box b { display: block; margin-bottom: 4px; }
.tip-box p { margin: 0; font-size: 0.92rem; }
.share-row { display: flex; align-items: center; gap: 10px; margin: 34px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.author-box { display: flex; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin: 30px 0; }
.author-box .avatar { width: 62px; height: 62px; font-size: 1.3rem; }
.comment { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border: 0; }
.comment .c-body .who { font-weight: 800; font-size: 0.92rem; }
.comment .c-body .when { font-size: 0.76rem; color: var(--muted); margin-left: 8px; font-weight: 600; }
.comment .c-body p { font-size: 0.92rem; margin-top: 5px; }

/* ---------- content page ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 34px 0; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm); }
.value-card .v-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 14px; }
.value-card .v-ic svg { width: 24px; height: 24px; }
.value-card b { display: block; font-family: var(--font-head); margin-bottom: 5px; }
.value-card p { font-size: 0.85rem; }
@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr 1fr; } }

.timeline-v { position: relative; margin: 30px 0 10px; padding-left: 34px; }
.timeline-v::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--border-strong); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--primary); border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--primary-soft); }
.tl-item .yr { font-size: 0.78rem; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; }
.tl-item b { display: block; font-family: var(--font-head); font-size: 1.05rem; margin: 2px 0 4px; }
.tl-item p { font-size: 0.92rem; max-width: 560px; }

.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-weight: 800; text-align: left; font-size: 0.98rem; }
.faq-q .chev { width: 17px; height: 17px; flex: none; transition: transform 0.25s ease; color: var(--primary); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a > div { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.94rem; }
.faq-item.open .faq-a { max-height: 260px; }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow-sm); }
.contact-card .c-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; }
.contact-card .c-ic svg { width: 20px; height: 20px; }
.contact-card b { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.contact-card p, .contact-card a { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.contact-card a:hover { color: var(--primary); }
.map-box { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.map-box svg, .map-box img { width: 100%; height: auto; }
.hours { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.hours li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--border); list-style: none; }
.hours li span { text-align: right; }
.hours li b { color: var(--ink); }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 60px 0 80px; }
.err-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 18vw, 11rem); line-height: 1; background: linear-gradient(120deg, var(--primary), var(--lav), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err-bear { width: 110px; margin: 0 auto 8px; animation: floaty 4s ease-in-out infinite; }
.err-wrap h1 { margin: 14px 0 10px; }
.err-wrap p { max-width: 420px; margin: 0 auto 26px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* modal form (address) */
.modal-form { width: min(560px, 94vw); padding: 30px; }
.modal-form h3 { margin-bottom: 20px; }
