@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* ============================================================
   SimplyKitchenLife — Design System  (skl.css)
   Reusable across every page. Pure CSS, no framework required.
   Pinterest-inspired · light theme.
   Sections:
     1. Tokens          9.  Hero slider
     2. Reset & base    10. Section header
     3. Typography      11. Masonry + pin card
     4. Layout          12. Category cards
     5. Buttons         13. Tags / rating / badge
     6. Forms           14. CTA / newsletter
     7. Header / nav    15. Footer
     8. Pills / filter  16. Breadcrumb / pagination / alert
     17. Utilities      18. Reveal     19. Reduced motion
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* color — light theme */
  --bg: #ffffff;
  --bg-soft: #f7f5f3;
  --surface: #ffffff;
  --text: #16110f;
  --text-2: #5a5550;
  --text-3: #8c8780;

  /* brand — Pinterest red */
  --brand: #e60023;
  --brand-700: #c30019;
  --brand-900: #a30015;
  --brand-tint: #ffe5e9;

  --ink: #181410;
  /* dark / "Visit" buttons */
  --gold: #e8a33d;
  /* rating stars */
  --ok: #0a7d33;

  --line: #ece9e6;
  --line-2: #ddd9d4;
  --field: #efece9;
  /* input background */

  /* radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* shadow */
  --sh-1: 0 1px 2px rgba(22, 17, 15, .05);
  --sh-2: 0 8px 22px -10px rgba(22, 17, 15, .18);
  --sh-3: 0 20px 48px -18px rgba(22, 17, 15, .30);

  /* type */
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* layout */
  --container: 1280px;
  --gap: 18px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection {
  background: var(--brand-tint);
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -.01em;
}

.h1,
h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.h2,
h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.h3,
h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.h4,
h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.075rem;
  color: var(--text-2);
  line-height: 1.6;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
}

.muted {
  color: var(--text-2);
}

.muted-2 {
  color: var(--text-3);
}

.text-brand {
  color: var(--brand);
}

small,
.small {
  font-size: .82rem;
}

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: 860px;
}

.container--wide {
  max-width: 1480px;
}

.section {
  padding-block: clamp(40px, 6vw, 76px);
}

.section--tight {
  padding-block: clamp(28px, 4vw, 48px);
}

.section--soft {
  background: var(--bg-soft);
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.stack>*+* {
  margin-top: var(--stack, 16px);
}

/* responsive auto grids */
.grid {
  display: grid;
  gap: var(--gap);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media(max-width:880px) {

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:560px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: .8rem 1.25rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: transform .15s var(--ease), background .18s, color .18s, box-shadow .18s;
}

.btn:active {
  transform: translateY(1px) scale(.99);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-700);
  box-shadow: 0 10px 24px -12px rgba(230, 0, 35, .7);
}

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

.btn--dark:hover {
  background: #000;
}

.btn--light {
  background: var(--field);
  color: var(--text);
}

.btn--light:hover {
  background: #e6e2de;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--sm {
  padding: .55rem .9rem;
  font-size: .85rem;
}

.btn--lg {
  padding: .95rem 1.6rem;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--field);
  color: var(--text);
  transition: background .18s, transform .15s;
}

.btn-icon:hover {
  background: #e6e2de;
}

.btn-icon svg {
  width: 22px;
  height: 22px;
}

/* ---------- 6. FORMS ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.label {
  font-weight: 600;
  font-size: .85rem;
}

.input {
  width: 100%;
  background: var(--field);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  padding: .8rem 1.1rem;
  transition: border-color .18s, background .18s;
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--field);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  padding: .6rem 1rem;
  transition: border-color .18s, background .18s;
}

.search:focus-within {
  border-color: var(--ink);
  background: #fff;
}

.search svg {
  width: 20px;
  height: 20px;
  color: var(--text-3);
  flex: none;
}

.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  min-width: 0;
}

/* ---------- 7. HEADER / NAV ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  padding: .5rem 1rem;
}

.topbar a {
  text-decoration: underline;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  transition: box-shadow .25s, background .25s;
}

.header.is-stuck {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--sh-2);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  font-family: var(--font-head);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
}

.brand__mark svg {
  width: 22px;
  height: 22px;
}

.brand__name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand__name b {
  color: var(--brand);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .55rem .9rem;
  border-radius: var(--r-pill);
  color: var(--text);
  transition: background .18s, color .18s;
}

.nav a:hover {
  background: var(--field);
}

.nav a.is-active {
  background: var(--ink);
  color: #fff;
}

.header__search {
  flex: 1;
  max-width: 760px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-btn {
  display: none;
}

@media(max-width:1024px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
  }
}

@media(max-width:680px) {
  .header__search {
    display: none;
  }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s, visibility .25s;
}

.drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 15, .45);
}

.drawer__panel {
  position: absolute;
  inset: 10px;
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 18px;
  overflow: auto;
  transform: translateY(-10px);
  transition: transform .3s var(--ease);
}

.drawer.open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.drawer__nav a {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- 8. PILLS / FILTER ROW ---------- */
.pill-row {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pill-row::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  background: var(--field);
  color: var(--text);
  transition: background .18s, color .18s, transform .15s;
}

.pill:hover {
  background: #e6e2de;
}

.pill.is-active {
  background: var(--ink);
  color: #fff;
}

.pill svg {
  width: 16px;
  height: 16px;
}

/* ---------- 9. HERO SLIDER ---------- */
.slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-2);
}

.slides {
  display: flex;
  transition: transform .6s var(--ease);
}

.slider.no-anim .slides {
  transition: none;
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  min-height: clamp(300px, 38vw, 440px);
  display: flex;
  align-items: center;
  background: var(--slide-bg, #ffe8d6);
}

.slide__inner {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(28px, 5vw, 56px);
}

.slide__inner .eyebrow {
  color: var(--ink);
  opacity: .7;
}

.slide__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: .5rem 0 .6rem;
}

.slide__text {
  color: var(--text-2);
  font-size: 1.02rem;
  max-width: 430px;
  margin-bottom: 1.3rem;
}

.slide__art {
  position: absolute;
  right: -2%;
  bottom: -8%;
  width: min(46%, 360px);
  color: rgba(22, 17, 15, .10);
  z-index: 1;
}

.slide__art svg {
  width: 100%;
  height: 100%;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-2);
  transition: transform .15s, background .18s;
}

.slider-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
}

.slider-arrow--prev {
  left: 16px;
}

.slider-arrow--next {
  right: 16px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: rgba(22, 17, 15, .25);
  transition: width .25s, background .2s;
}

.slider-dots button.is-active {
  width: 26px;
  background: var(--ink);
}

@media(max-width:560px) {
  .slide__art {
    display: none;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slide__inner {
    max-width: 100%;
  }
}

/* ---------- 10. SECTION HEADER ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sec-head__title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
}

.sec-head__sub {
  color: var(--text-2);
  margin-top: 4px;
}

.sec-link {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}

.sec-link svg {
  width: 18px;
  height: 18px;
  transition: transform .18s;
}

.sec-link:hover svg {
  transform: translateX(3px);
}

/* ---------- 11. MASONRY + PIN CARD ---------- */
.masonry {
  column-count: 5;
  column-gap: var(--gap);
}

@media(max-width:1200px) {
  .masonry {
    column-count: 4;
  }
}

@media(max-width:920px) {
  .masonry {
    column-count: 3;
  }
}

@media(max-width:640px) {
  .masonry {
    column-count: 2;
  }
}

@media(max-width:420px) {
  .masonry {
    column-count: 2;
    column-gap: 12px;
  }
}

.masonry .pin {
  break-inside: avoid;
  margin-bottom: var(--gap);
}

.pin {
  display: block;
}

.pin[hidden] {
  display: none;
}

.pin-media {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: var(--ar, 3/4);
  background: var(--tint, #ffe8d6);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.pin-media__icon {
  width: 42%;
  height: 42%;
  color: var(--ic, #3a2f29);
  opacity: .85;
}

.pin-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 35%);
}

.pin-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(22, 17, 15, .30), rgba(22, 17, 15, 0) 32%, rgba(22, 17, 15, 0) 60%, rgba(22, 17, 15, .34));
  opacity: 0;
  transition: opacity .2s;
}

.pin-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.pin:hover .pin-overlay,
.pin:focus-within .pin-overlay {
  opacity: 1;
}

.pin-cta {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.pin-cta .btn {
  box-shadow: var(--sh-2);
}

.pin-save {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .95);
  display: grid;
  place-items: center;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s, background .18s;
}

.pin:hover .pin-save,
.pin:focus-within .pin-save {
  opacity: 1;
  transform: none;
}

.pin-save svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.pin-save.is-saved {
  background: var(--ink);
}

.pin-save.is-saved svg {
  color: #fff;
  fill: #fff;
}

.pin-source {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  opacity: 0;
  transition: opacity .2s;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .74rem;
  font-weight: 700;
  color: #fff;
  background: rgba(22, 17, 15, .55);
  padding: .25rem .55rem;
  border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}

.pin:hover .pin-source {
  opacity: 1;
}

.pin-body {
  padding: 10px 6px 2px;
}

.pin-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pin-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pin-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
}

.pin-price s {
  font-weight: 600;
  font-size: .8rem;
  color: var(--text-3);
  margin-left: 5px;
}

/* ---------- 12. CATEGORY CARDS ---------- */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
  padding: 16px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--tint, #ffe8d6);
  transition: transform .2s, box-shadow .2s;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.cat-card__icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
  opacity: .8;
}

.cat-card__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.02rem;
}

.cat-card__sub {
  font-size: .78rem;
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- 13. TAGS / RATING / BADGE ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: var(--r-pill);
  background: var(--field);
  color: var(--text-2);
}

.tag--brand {
  background: var(--brand-tint);
  color: var(--brand-900);
}

.tag--dark {
  background: var(--ink);
  color: #fff;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  color: var(--text-2);
}

.stars {
  position: relative;
  display: inline-block;
  font-size: .95rem;
  line-height: 1;
  letter-spacing: 1px;
}

.stars::before {
  content: "★★★★★";
  color: var(--line-2);
}

.stars::after {
  content: "★★★★★";
  color: var(--gold);
  position: absolute;
  inset: 0;
  width: var(--pct, 100%);
  overflow: hidden;
  white-space: nowrap;
}

/* ---------- 14. CTA / NEWSLETTER ---------- */
.cta {
  border-radius: var(--r-xl);
  background: var(--bg-soft);
  padding: clamp(28px, 5vw, 52px);
}

.cta--dark {
  background: var(--ink);
  color: #fff;
}

.cta--dark .lead {
  color: rgba(255, 255, 255, .72);
}

.newsletter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter .input {
  flex: 1;
  min-width: 220px;
  background: #fff;
}

/* ---------- 15. FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
}

.footer a {
  color: rgba(255, 255, 255, .72);
  transition: color .18s;
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-block: clamp(40px, 5vw, 60px);
}

.footer__title {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .92rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  margin: 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .5);
  max-width: 640px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
}

.socials a:hover {
  background: var(--brand);
  color: #fff;
}

.socials svg {
  width: 18px;
  height: 18px;
}

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

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

.disclosure {
  font-size: .78rem;
  color: var(--text-3);
}

/* ---------- 16. BREADCRUMB / PAGINATION / ALERT (extra, reusable) ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  font-size: .86rem;
  color: var(--text-2);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .sep {
  color: var(--text-3);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--field);
  font-weight: 700;
}

.pagination .is-active {
  background: var(--ink);
  color: #fff;
}

.alert {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.alert--brand {
  background: var(--brand-tint);
  border-color: #ffd0d8;
}

.alert svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- 16b. BLOG / ARTICLES ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--gap);
  align-items: start;
}

@media(max-width:880px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.article {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}

.article:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}

.article__media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--tint, #ffe8d6);
  display: grid;
  place-items: center;
}

.article__media .ico {
  width: 30%;
  height: 30%;
  color: var(--ic, #3a2f29);
  opacity: .5;
}

.article__media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.article__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.article__title {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -.01em;
  font-size: 1.1rem;
}

.article__title a:hover {
  color: var(--brand);
}

.article--feature .article__media {
  aspect-ratio: 16/9;
}

.article--feature .article__title {
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
}

.article__excerpt {
  color: var(--text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 8px;
  font-size: .82rem;
  color: var(--text-2);
}

.avatar {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-pill);
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .72rem;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-3);
}

/* compact list (sidebar of recent posts) */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-mini {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 10px;
  transition: transform .2s, box-shadow .2s;
}

.article-mini:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
}

.article-mini__thumb {
  aspect-ratio: 1/1;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--tint, #ffe8d6);
  display: grid;
  place-items: center;
}

.article-mini__thumb .ico {
  width: 40%;
  height: 40%;
  color: var(--ic);
  opacity: .55;
}

.article-mini__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-mini__title a:hover {
  color: var(--brand);
}

.article-mini__meta {
  font-size: .76rem;
  color: var(--text-3);
  margin-top: 5px;
}

/* ---------- 16c. PRODUCT DETAIL ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

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

.gallery {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

@media(max-width:880px) {
  .gallery {
    position: static;
  }
}

.gallery__main {
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--tint, #ffe8d6);
  display: grid;
  place-items: center;
}

.gallery__main .ico {
  width: 42%;
  height: 42%;
  color: var(--ic, #3a2f29);
  opacity: .85;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.gallery__thumb {
  aspect-ratio: 1/1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--tint2, #f0ece8);
  display: grid;
  place-items: center;
  border: 2px solid transparent;
}

.gallery__thumb.is-active {
  border-color: var(--ink);
}

.gallery__thumb .ico {
  width: 40%;
  height: 40%;
  color: var(--ic, #3a2f29);
  opacity: .6;
}

.product-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.price-now {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
}

.price-was {
  color: var(--text-3);
  text-decoration: line-through;
  font-weight: 600;
}

.buybox {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--ok);
  flex: none;
  margin-top: 1px;
}

.specs {
  width: 100%;
  border-collapse: collapse;
}

.specs th,
.specs td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
  vertical-align: top;
}

.specs th {
  width: 38%;
  color: var(--text-2);
  font-weight: 600;
}

.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.proscons__col {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}

.proscons__col h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.proscons li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 9px;
  font-size: .93rem;
  color: var(--text-2);
}

.proscons li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
}

.proscons .ok {
  color: var(--ok);
}

.proscons .no {
  color: var(--brand);
}

/* ---------- 16d. PROSE / ARTICLE BODY ---------- */
.post-header {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.post-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.post-dek {
  font-size: 1.15rem;
  color: var(--text-2);
}

.post-cover {
  aspect-ratio: 16/7;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--tint, #ffe8d6);
  display: grid;
  place-items: center;
}

.post-cover .ico {
  width: 14%;
  height: 14%;
  color: var(--ic);
  opacity: .5;
}

.share {
  display: flex;
  gap: 8px;
  align-items: center;
}

.share a {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--field);
  display: grid;
  place-items: center;
  transition: background .18s, color .18s;
}

.share a:hover {
  background: var(--ink);
  color: #fff;
}

.share svg {
  width: 18px;
  height: 18px;
}

.prose {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--text);
}

.prose>*+* {
  margin-top: 1.1em;
}

.prose h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.25;
  margin-top: 1.8em;
  letter-spacing: -.01em;
}

.prose h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: .5em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .btn {
  text-decoration: none;
}

.prose .btn--primary,
.prose .btn--dark {
  color: #fff;
}

.prose .btn--ghost,
.prose .btn--light {
  color: var(--text);
}

.prose strong {
  font-weight: 700;
}

.prose blockquote {
  border-left: 4px solid var(--brand);
  padding: .3em 0 .3em 1.1em;
  margin-left: 0;
  color: var(--text-2);
  font-style: italic;
  font-size: 1.15rem;
}

.prose figure {
  margin: 0;
}

.prose .ph-img {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  color: var(--text-3);
}

.prose figcaption {
  font-size: .85rem;
  color: var(--text-3);
  margin-top: .6em;
  text-align: center;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2em 0;
}

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--r);
  padding: 16px 18px;
}

.author-box {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  max-width: 760px;
  margin-inline: auto;
}

.author-box .avatar {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}

/* ---------- 16e. MEGA MENU ---------- */
.nav .mega-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.nav .mega-wrap>a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mega-chev {
  display: block;
  flex: none;
  margin-top: 1px;
  transition: transform .2s;
}

.mega-wrap:hover .mega-chev,
.mega-wrap:focus-within .mega-chev {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 55;
  width: min(580px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}

.mega::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.mega-wrap:hover .mega,
.mega-wrap:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mega__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r);
  transition: background .15s;
}

.nav .mega__item:hover {
  background: var(--bg-soft);
}

.mega__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--field);
  flex: none;
}

.mega__ico svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}

.mega__txt {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.mega__txt b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}

.mega__txt small {
  color: var(--text-3);
  font-size: .78rem;
}

.nav .mega__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: 8px;
  padding: 13px;
  border-radius: var(--r);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
}

.nav .mega__all:hover {
  background: #000;
  color: #fff;
}

.mega__all svg {
  width: 18px;
  height: 18px;
}

@media(max-width:1024px) {
  .mega-wrap .mega {
    display: none;
  }
}

/* deal badges */
.pin-discount {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .78rem;
  padding: .3rem .6rem;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-2);
}

.deal-ribbon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--brand-tint);
  color: var(--brand-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
}

/* product grid — tidy uniform (non-masonry) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media(max-width:1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width:720px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.product-grid .pin-media {
  aspect-ratio: 4/5;
}

.article[hidden] {
  display: none;
}

/* ---------- 16f. PAGES / SIDEBAR DOC ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media(max-width:880px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
}

.page-side {
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

@media(max-width:880px) {
  .page-side {
    position: static;
  }
}

.page-side__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 14px 10px;
}

.page-side__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--line);
}

.page-side__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--text-2);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 0 var(--r) var(--r) 0;
  transition: background .15s, color .15s;
}

.page-side__link svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.page-side__link:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.page-side__link.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
  background: var(--brand-tint);
}

@media(max-width:880px) {
  .page-side__menu {
    border-left: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .page-side__link {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 8px 14px;
  }

  .page-side__link.is-active {
    border-color: var(--brand);
  }
}

.page-doc>section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-doc>section+section {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

/* ---------- 17. UTILITIES ---------- */
.d-none {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

.d-grid {
  display: grid !important;
}

.d-block {
  display: block !important;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-end {
  justify-content: flex-end;
}

.flex-1 {
  flex: 1;
}

.gap-6 {
  gap: 6px;
}

.gap-8 {
  gap: 8px;
}

.gap-10 {
  gap: 10px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-20 {
  gap: 20px;
}

.gap-24 {
  gap: 24px;
}

.gap-32 {
  gap: 32px;
}

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

.text-left {
  text-align: left;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.mt-0 {
  margin-top: 0;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.p-16 {
  padding: 16px;
}

.p-24 {
  padding: 24px;
}

.p-32 {
  padding: 32px;
}

.w-full {
  width: 100%;
}

.mx-auto {
  margin-inline: auto;
}

.maxw-560 {
  max-width: 560px;
}

.maxw-680 {
  max-width: 680px;
}

.rounded {
  border-radius: var(--r);
}

.rounded-lg {
  border-radius: var(--r-lg);
}

.rounded-pill {
  border-radius: var(--r-pill);
}

.shadow-1 {
  box-shadow: var(--sh-1);
}

.shadow-2 {
  box-shadow: var(--sh-2);
}

.bg-soft {
  background: var(--bg-soft);
}

.bg-white {
  background: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

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

.hide-mobile {}

.hide-desktop {
  display: none;
}

@media(max-width:768px) {
  .hide-mobile {
    display: none !important;
  }

  .hide-desktop {
    display: revert;
  }
}

/* back-to-top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--sh-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- 18. REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 19. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}