:root {
  --primary: #171717;
  --primary-dark: #000000;
  --primary-soft: #eeeeee;
  --accent: #171717;
  --ink: #171717;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f5f5;
  --line: #e5e5e5;
  --radius: 12px;
  --shadow: 0 16px 42px rgba(0, 0, 0, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans TC", system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
.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; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 200; padding: 10px 16px; color: white; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; padding: 0 clamp(16px, 3vw, 40px); background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 1.05rem; font-weight: 700; line-height: 1; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--primary); border-radius: 8px; font-size: .9rem; font-weight: 700; }
.brand small { display: none; }
.desktop-nav { display: flex; align-items: center; gap: 28px; font-size: .875rem; }
.desktop-nav a { padding: 22px 0; color: #5f5f5f; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav .is-active { color: var(--primary); }
.header-actions { display: flex; justify-content: flex-end; gap: 8px; }
.icon-button, .menu-button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: var(--surface-soft); border: 0; border-radius: 50%; cursor: pointer; transition: .2s; }
.icon-button:hover, .menu-button:hover { color: white; background: var(--primary); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.favorite-count { position: absolute; right: -1px; bottom: -1px; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; color: white; background: var(--primary); border: 2px solid white; border-radius: 9px; font-size: .625rem; font-weight: 700; }
.menu-button { display: none; gap: 4px; }
.menu-button span { display: block; width: 17px; height: 1.5px; background: currentColor; }

/* Home hero */
.hero { position: relative; display: grid; place-items: center; min-height: 560px; padding: 64px 20px 72px; overflow: hidden; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/hero-canvas.jpg") center/cover no-repeat; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(255,255,255,.48), rgba(255,255,255,.9)); }
.hero-content { width: min(760px, 100%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 12px; color: var(--primary-dark); background: rgba(200,119,59,.11); border-radius: 999px; font-size: .75rem; font-weight: 500; }
.eyebrow span { width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.hero h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-copy { max-width: 650px; margin: 18px auto 28px; color: #5f5f5f; font-size: 1rem; line-height: 1.8; }
.hero-search { display: flex; align-items: center; width: min(650px, 100%); margin: 0 auto; padding: 7px 7px 7px 18px; background: white; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 26px rgba(0, 0, 0, .08); }
.hero-search svg { width: 20px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.hero-search input { min-width: 0; flex: 1; padding: 11px 12px; background: transparent; border: 0; outline: 0; font-size: .875rem; }
.hero-search button { padding: 11px 22px; color: white; background: var(--primary); border: 0; border-radius: 999px; font-size: .875rem; font-weight: 500; cursor: pointer; }
.hero-search button:hover { background: var(--primary-dark); }
.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 17px; color: var(--muted); font-size: .75rem; }
.quick-links a { padding: 4px 10px; color: #4f4f4f; background: rgba(255,255,255,.75); border-radius: 999px; }
.quick-links a:hover { color: white; background: var(--primary); }

/* Sections */
.section-shell { width: 100%; padding: 58px clamp(16px, 3vw, 40px); }
.section-shell > * { max-width: 1280px; margin-inline: auto; }
.section-shell--white { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-index { color: var(--primary); font-size: .75rem; font-weight: 500; letter-spacing: .14em; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(1.65rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; }
.section-subtitle { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.text-link { color: var(--primary); font-size: .875rem; font-weight: 500; }
.text-link:hover { color: var(--primary-dark); }
.text-link span { margin-left: 5px; }
.campaign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.campaign-card { position: relative; height: 190px; overflow: hidden; color: white; background: var(--ink); border-radius: var(--radius); }
.campaign-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.campaign-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.16)); }
.campaign-card:hover img { transform: scale(1.045); }
.campaign-card > div { position: absolute; left: 22px; bottom: 21px; z-index: 2; text-align: left; }
.campaign-card p { margin: 0 0 5px; font-size: 1.15rem; font-weight: 700; }
.campaign-card h3 { margin: 0 0 12px; color: rgba(255,255,255,.9); font-size: .8125rem; font-weight: 400; line-height: 1.6; }
.campaign-card > div span { display: inline-block; padding: 6px 11px; color: var(--ink); background: white; border-radius: 999px; font-size: .7rem; font-weight: 500; }
.campaign-no { position: absolute; top: 15px; right: 17px; z-index: 2; font-size: .7rem; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
.product-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s, transform .2s; }
.product-card:hover { border-color: #a7a7a7; box-shadow: 0 10px 28px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.product-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface-soft); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.product-badges span { padding: 5px 8px; color: white; background: #3f3f3f; border-radius: 5px; font-size: .6875rem; font-weight: 500; }
.product-badges span:first-child { background: var(--primary); }
.favorite-button { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; cursor: pointer; backdrop-filter: blur(7px); }
.favorite-button svg { width: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.favorite-button:hover, .favorite-button.is-favorite { color: white; background: var(--primary); }
.favorite-button:hover svg, .favorite-button.is-favorite svg { stroke: white; }
.favorite-button.is-favorite svg { fill: white; }
.product-rank { display: none; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 14px 6px; color: var(--muted); font-size: .75rem; }
.product-rating { white-space: nowrap; }
.product-rating::before { content: "★"; margin-right: 4px; color: var(--accent); }
.product-card h3 { min-height: 44px; margin: 0 14px; font-size: .875rem; font-weight: 500; line-height: 1.55; }
.product-card h3 a:hover { color: var(--primary); }
.product-price { display: flex; align-items: baseline; gap: 8px; margin: 12px 14px 16px; }
.product-price strong { color: var(--primary); font-size: 1.15rem; font-weight: 700; }
.product-price del { color: #949494; font-size: .75rem; }

/* Affiliate explanation */
.manifesto { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: center; padding: 68px max(clamp(16px, 3vw, 40px), calc((100vw - 1280px) / 2)); background: var(--surface-soft); border-top: 1px solid var(--line); }
.manifesto h2 { margin: 9px 0 0; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.25; }
.manifesto h2 span { color: var(--primary); }
.manifesto-copy > p { margin: 0 0 24px; color: var(--muted); line-height: 1.8; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.principles > div { display: grid; grid-template-columns: auto 1fr; gap: 9px; padding-top: 13px; border-top: 1px solid #d8d8d8; }
.principles b { color: var(--primary); font-size: .75rem; }
.principles span { font-size: .8125rem; font-weight: 500; line-height: 1.5; }
.principles small { color: var(--muted); font-size: .7rem; font-weight: 400; }

/* Catalog */
.catalog-page { min-height: 80vh; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 52px clamp(16px, 3vw, 40px) 34px; }
.catalog-intro h1 { margin: 7px 0 0; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.2; }
.catalog-intro p { margin: 0; color: var(--muted); font-size: .875rem; }
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 4vw, 55px); max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 80px; }
.filter-panel { align-self: start; position: sticky; top: 88px; }
.filter-title { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: .875rem; font-weight: 600; }
.filter-title button { padding: 0; color: var(--primary); background: none; border: 0; font-size: .75rem; cursor: pointer; }
.filter-panel fieldset { margin: 0; padding: 21px 0; border: 0; border-bottom: 1px solid var(--line); }
.filter-panel legend { margin-bottom: 10px; font-size: .8125rem; font-weight: 600; }
.filter-options { display: grid; }
.check-option { display: flex; align-items: center; gap: 9px; padding: 7px 0; color: var(--muted); font-size: .8125rem; cursor: pointer; }
.check-option:hover { color: var(--ink); }
.check-option input { accent-color: var(--primary); }
.check-option input:checked + span { color: var(--primary-dark); font-weight: 500; }
.affiliate-mini { margin-top: 22px; padding: 17px; background: var(--primary-soft); border-radius: 10px; }
.affiliate-mini b { color: var(--primary-dark); font-size: .8125rem; }
.affiliate-mini p { margin: 6px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.7; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.catalog-search { display: flex; align-items: center; flex: 1; max-width: 390px; padding: 0 13px; background: white; border: 1px solid var(--line); border-radius: 999px; }
.catalog-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.catalog-search svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.catalog-search input { width: 100%; padding: 10px; background: transparent; border: 0; outline: 0; font-size: .8125rem; }
.toolbar-end { display: flex; align-items: center; gap: 14px; }
.toolbar-end > span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.sort-control select { padding: 9px 32px 9px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font-size: .75rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; min-height: 20px; margin-bottom: 14px; }
.filter-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; font-size: .7rem; }
.filter-chip button { padding: 0; color: inherit; background: none; border: 0; line-height: 1; cursor: pointer; }
.no-results { padding: 70px 20px; text-align: center; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.no-results > span { color: var(--primary-soft); font-size: 4rem; font-weight: 700; }
.no-results h2 { margin: 12px 0 7px; font-size: 1.3rem; }
.no-results p { color: var(--muted); font-size: .875rem; }
.no-results button { margin-top: 10px; padding: 10px 17px; color: white; background: var(--primary); border: 0; border-radius: 999px; cursor: pointer; }

/* Product detail */
.product-page { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0; color: var(--muted); font-size: .75rem; }
.breadcrumbs a:hover { color: var(--primary); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, .9fr); gap: clamp(38px, 6vw, 80px); align-items: start; }
.detail-gallery { position: sticky; top: 88px; }
.detail-image { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--surface-soft); border-radius: var(--radius); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-image::after { content: "精選商品"; position: absolute; right: 14px; bottom: 14px; padding: 6px 9px; color: white; background: var(--primary); border-radius: 5px; font-size: .6875rem; }
.gallery-note { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .6875rem; }
.detail-info { padding-top: 10px; }
.detail-category { color: var(--primary); font-size: .75rem; font-weight: 500; }
.detail-info h1 { margin: 12px 0 17px; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 700; line-height: 1.45; letter-spacing: -.015em; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 20px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .75rem; }
.detail-stats b { color: var(--ink); }
.stars { color: var(--accent); letter-spacing: .06em; }
.detail-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.detail-price small { display: block; margin-bottom: 6px; color: var(--muted); font-size: .75rem; }
.detail-price strong { color: var(--primary); font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
.detail-price del { margin-left: 9px; color: var(--muted); font-size: .8125rem; }
.discount-bubble { padding: 7px 10px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 7px; text-align: center; font-size: .7rem; font-weight: 600; line-height: 1.3; }
.purchase-note { margin: 0 0 22px; padding: 14px 16px; color: var(--muted); background: var(--surface-soft); border-radius: 8px; font-size: .75rem; line-height: 1.7; }
.detail-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.detail-actions button, .detail-actions a { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 8px; font-size: .875rem; font-weight: 500; cursor: pointer; }
.detail-actions button { color: var(--ink); background: white; border: 1px solid var(--line); }
.detail-actions button:hover, .detail-actions button.is-favorite { color: var(--primary); border-color: var(--primary); }
.detail-actions .buy-button { color: white; background: var(--primary); border: 1px solid var(--primary); }
.detail-actions .buy-button:hover { background: var(--primary-dark); }
.affiliate-note { margin: 13px 2px 0; color: var(--muted); font-size: .6875rem; line-height: 1.6; }
.detail-story { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(36px, 7vw, 100px); margin-top: 78px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-heading h2 { margin: 7px 0 0; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.story-content > p { margin: 0 0 26px; color: #5f5f5f; font-size: .9375rem; line-height: 1.9; }
.decision-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.decision-card { padding: 18px 19px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.decision-card--pros { border-top: 3px solid var(--primary); }
.decision-card--cons { border-top: 3px solid #9a9a9a; }
.decision-card-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.decision-card-heading > span { display: grid; place-items: center; width: 22px; height: 22px; color: white; background: var(--primary); border-radius: 50%; font-size: .9rem; line-height: 1; }
.decision-card--cons .decision-card-heading > span { background: #777; }
.decision-card h3 { margin: 0; font-size: .9rem; }
.decision-card ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #5f5f5f; font-size: .8125rem; line-height: 1.65; }
.highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; counter-reset: item; }
.highlight-item { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); font-size: .8125rem; counter-increment: item; }
.highlight-item::before { content: "0" counter(item); position: absolute; left: 0; color: var(--primary); font-size: .6875rem; }
.reviews-section { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(36px, 7vw, 100px); padding: 50px 0; border-bottom: 1px solid var(--line); }
.review-score strong { display: block; margin: 15px 0 4px; font-size: 4.2rem; line-height: 1; }
.review-score p { color: var(--muted); font-size: .75rem; }
.review-list article { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.review-list article:last-child { margin-bottom: 0; }
.review-list article > div { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 50%; font-size: .75rem; font-weight: 600; }
.avatar--lime { background: #e5e5e5; }
.avatar--coral { background: #d9d9d9; }
.review-list p { margin: 0; font-size: .8125rem; }
.review-list small { display: block; margin-top: 3px; color: var(--muted); font-size: .6875rem; font-weight: 400; }
.review-list blockquote { margin: 14px 0 0 51px; color: #5f5f5f; font-size: .8125rem; line-height: 1.8; }
.related-section { padding-top: 62px; }
.related-section .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Footer and overlays */
.site-footer { display: grid; grid-template-columns: 1fr 1.5fr 1fr auto; gap: 46px; align-items: start; padding: 46px max(clamp(16px, 3vw, 40px), calc((100vw - 1280px) / 2)); background: #f3f3f3; border-top: 1px solid var(--line); }
.brand--light .brand-mark { color: white; }
.site-footer p { max-width: 520px; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.8; }
.site-footer nav { display: flex; flex-direction: column; gap: 8px; color: #5f5f5f; font-size: .8125rem; }
.site-footer nav a:hover { color: var(--primary); }
.site-footer > small { color: #8a8a8a; font-size: .6875rem; }
.mobile-panel { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; color: white; background: var(--ink); opacity: 0; visibility: hidden; transition: .3s; }
.mobile-panel.is-open { opacity: 1; visibility: visible; }
.mobile-panel nav { display: flex; flex-direction: column; gap: 20px; text-align: center; font-size: 1.4rem; font-weight: 600; }
.panel-close, .drawer-close { position: absolute; top: 22px; right: 22px; color: inherit; background: none; border: 0; font-size: 2rem; cursor: pointer; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); }
.favorites-drawer { position: fixed; top: 0; right: 0; z-index: 90; width: min(420px, 100%); height: 100dvh; padding: 25px; background: var(--paper); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .3s ease; }
.favorites-drawer.is-open { transform: translateX(0); }
.drawer-heading { position: relative; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.drawer-heading span { color: var(--primary); font-size: .6875rem; letter-spacing: .13em; }
.drawer-heading h2 { margin: 5px 0 0; font-size: 1.3rem; }
.drawer-heading .drawer-close { top: -12px; right: -4px; color: var(--ink); }
.drawer-content { padding-top: 16px; }
.empty-state { display: grid; place-items: center; align-content: center; min-height: 65vh; text-align: center; }
.empty-state span { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 16px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; font-size: 2rem; }
.empty-state h3 { margin: 0 0 7px; font-size: 1rem; }
.empty-state p { max-width: 260px; margin: 0; color: var(--muted); font-size: .8125rem; line-height: 1.7; }
.drawer-product { display: grid; grid-template-columns: 70px 1fr auto; gap: 11px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.drawer-product img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; }
.drawer-product h3 { margin: 0; font-size: .75rem; line-height: 1.45; }
.drawer-product strong { display: block; margin-top: 5px; color: var(--primary); font-size: .8125rem; }
.drawer-product button { padding: 5px; color: var(--muted); background: none; border: 0; font-size: 1.1rem; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; padding: 11px 17px; color: white; background: var(--ink); border-radius: 999px; box-shadow: var(--shadow); font-size: .75rem; transform: translate(-50%, 80px); opacity: 0; transition: .3s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1050px) {
  .product-grid--home, .related-section .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr 1.5fr; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .campaign-grid { grid-template-columns: 1fr; }
  .campaign-card { height: 210px; }
  .product-grid, .product-grid--home, .related-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manifesto { grid-template-columns: 1fr; gap: 28px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .filter-panel fieldset:first-of-type { border-bottom: 0; }
  .filter-options { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .filter-options .check-option { flex: 0 0 auto; padding: 8px 12px; background: white; border: 1px solid var(--line); border-radius: 999px; }
  .filter-options .check-option input { display: none; }
  .filter-panel fieldset:nth-of-type(2), .affiliate-mini { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
  .detail-story { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 15px; }
  .icon-button:first-child { display: none; }
  .hero { min-height: 520px; padding-inline: 15px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-copy { font-size: .9375rem; }
  .hero-search { display: grid; grid-template-columns: auto 1fr; border-radius: 14px; }
  .hero-search button { grid-column: 1 / 3; width: 100%; }
  .section-shell { padding-block: 46px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .campaign-card { height: 190px; }
  .product-grid, .product-grid--home, .related-section .product-grid { gap: 12px 10px; }
  .product-card { border-radius: 9px; }
  .product-badges { top: 8px; left: 8px; }
  .product-badges span { padding: 4px 6px; font-size: .625rem; }
  .product-badges span:nth-child(n+2) { display: none; }
  .favorite-button { top: 7px; right: 7px; width: 33px; height: 33px; }
  .product-meta { align-items: start; flex-direction: column; gap: 3px; margin: 10px 10px 5px; font-size: .6875rem; }
  .product-card h3 { min-height: 60px; margin-inline: 10px; font-size: .8125rem; }
  .product-price { align-items: start; flex-direction: column; gap: 4px; margin: 9px 10px 12px; }
  .product-price strong { font-size: 1rem; }
  .principles { grid-template-columns: 1fr; }
  .catalog-intro { align-items: start; flex-direction: column; gap: 10px; padding-block: 38px 24px; }
  .catalog-layout { padding-bottom: 60px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-search { max-width: none; }
  .toolbar-end { justify-content: space-between; }
  .detail-info h1 { font-size: 1.4rem; }
  .detail-actions { grid-template-columns: 1fr; }
  .detail-story { margin-top: 58px; padding-block: 40px; }
  .decision-points { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; padding: 38px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
