body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  transition: background .2s ease, color .2s ease;
  padding-bottom: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: var(--surface);
  color: var(--text);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.page-section { padding: 3.5rem 0; }
.page-section--tight { padding: 2rem 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.15; }
.section-heading p { color: var(--text-soft); max-width: 60ch; margin-top: .35rem; }
.eyebrow { color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--text-soft); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: flex; align-items: center; gap: .75rem; min-width: max-content; }
.brand img { filter: drop-shadow(0 4px 8px rgba(11,107,83,.18)); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font-size: 1.06rem; }
.brand-copy small { margin-top: .22rem; color: var(--text-soft); font-size: .68rem; }
.desktop-nav { display: flex; align-items: center; gap: .25rem; }
.desktop-nav a { padding: .7rem .85rem; border-radius: var(--radius-pill); color: var(--text-soft); font-weight: 700; font-size: .9rem; transition: .18s ease; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--primary); background: var(--primary-soft); }
.nav-count { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; margin-left: .2rem; padding: 0 .3rem; background: var(--accent); color: #2c2108; border-radius: var(--radius-pill); font-size: .72rem; }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); transition: .18s ease; }
.icon-button:hover { transform: translateY(-1px); border-color: var(--primary); color: var(--primary); }
.mobile-menu-button { display: none; }
.mobile-menu { position: absolute; top: calc(100% + 1px); inset-inline: 0; padding: .8rem 1rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
.mobile-menu a { display: block; padding: .9rem; border-radius: var(--radius-sm); font-weight: 700; }
.mobile-menu a:hover { background: var(--surface-soft); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .75rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(11, 107, 83, .22); }
:root[data-theme="dark"] .button--primary { color: #08251c; }
.button--primary:hover { background: var(--primary-dark); }
.button--secondary { background: var(--accent); color: #302307; }
.button--secondary:hover { background: color-mix(in srgb, var(--accent) 87%, black); }
.button--ghost { background: transparent; color: var(--primary); border-color: var(--border); }
.button--ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.button--danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); background: transparent; }
.button--compact { min-height: 40px; padding: .65rem .9rem; font-size: .86rem; }
.button--wide { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .55; transform: none; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.badge { display: inline-flex; align-items: center; gap: .32rem; padding: .35rem .62rem; border-radius: var(--radius-pill); font-size: .74rem; font-weight: 800; white-space: nowrap; }
.badge--verified { color: var(--primary); background: var(--primary-soft); }
.badge--best { color: #664000; background: #fff0bf; }
.badge--neutral { color: var(--text-soft); background: var(--surface-soft); }
.badge--danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.badge--info { color: var(--info); background: color-mix(in srgb, var(--info) 10%, transparent); }

.search-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .8rem; box-shadow: var(--shadow-md); }
.search-grid { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(160px, .8fr) minmax(160px, .8fr) auto; gap: .65rem; }
.search-control { position: relative; display: flex; align-items: center; min-height: 50px; padding: 0 .85rem; border-radius: var(--radius-md); background: var(--bg); border: 1px solid transparent; }
.search-control:focus-within { border-color: var(--primary); background: var(--surface); }
.search-control > span { margin-right: .55rem; color: var(--primary); }
.search-control input, .search-control select { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-control select { cursor: pointer; }
.search-control select option { background: var(--surface); color: var(--text); }
.search-submit { min-width: 120px; }

.chip-row { display: flex; gap: .55rem; overflow-x: auto; padding: .2rem .1rem .65rem; scrollbar-width: thin; }
.chip { flex: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 38px; padding: .5rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-soft); font-weight: 700; font-size: .83rem; }
.chip:hover, .chip.is-active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.product-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.product-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-soft); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__media img { transform: scale(1.035); }
.product-card__badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.favorite-button { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #31423c; box-shadow: 0 5px 15px rgba(0,0,0,.1); font-size: 1.2rem; }
.favorite-button.is-active { color: #d23152; }
.product-card__body { padding: 1rem; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--text-soft); font-size: .78rem; }
.product-card h3 { margin-top: .55rem; font-size: 1.05rem; line-height: 1.3; }
.product-card h3 a:hover { color: var(--primary); }
.price-line { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.price { color: var(--primary); font-size: 1.22rem; font-weight: 900; }
.old-price { color: var(--text-soft); font-size: .78rem; text-decoration: line-through; }
.offer-count { color: var(--accent-dark); font-size: .78rem; font-weight: 800; }
.seller-line { display: flex; align-items: center; gap: .55rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .8rem; }
.seller-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 900; }

.avatar { display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary-soft), var(--surface-warm)); color: var(--primary); font-weight: 900; }
.avatar--sm { width: 38px; height: 38px; }
.avatar--md { width: 54px; height: 54px; font-size: 1.1rem; }
.avatar--lg { width: 86px; height: 86px; font-size: 1.65rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; }
.stat-card { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.stat-card strong { display: block; font-size: 1.55rem; line-height: 1.1; }
.stat-card span { color: var(--text-soft); font-size: .8rem; }

.form-card { padding: clamp(1rem, 2vw, 1.6rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-group { display: grid; gap: .42rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-size: .82rem; font-weight: 800; }
.form-group small { color: var(--text-soft); }
.input, .textarea, .select { width: 100%; min-height: 47px; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); outline: 0; }
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); background: var(--surface); }
.input.is-invalid, .textarea.is-invalid, .select.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .76rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .7rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.checkbox-row { display: flex; align-items: flex-start; gap: .65rem; }
.checkbox-row input { margin-top: .25rem; accent-color: var(--primary); }

.empty-state { display: grid; place-items: center; min-height: 310px; text-align: center; padding: 2rem; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state__icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 50%; background: var(--surface-soft); font-size: 2rem; }
.empty-state h2 { font-size: 1.45rem; }
.empty-state p { max-width: 50ch; margin: .5rem auto 1.2rem; color: var(--text-soft); }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; background: rgba(5, 18, 14, .62); backdrop-filter: blur(5px); }
.modal { position: relative; width: min(100%, 600px); max-height: min(90vh, 760px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: modalIn .18s ease; }
.modal-close { position: sticky; float: right; top: .75rem; right: .75rem; z-index: 2; width: 38px; height: 38px; margin: .75rem .75rem 0 0; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.4rem; }
.modal-content-inner { padding: 1.4rem; clear: both; }
.modal-content-inner h2 { font-size: 1.5rem; }
.modal-content-inner > p { margin-top: .4rem; color: var(--text-soft); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 1200; display: grid; gap: .6rem; width: min(360px, calc(100% - 2rem)); }
.toast { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-md); animation: toastIn .2s ease; }
.toast--danger { border-left-color: var(--danger); }
.toast--success { border-left-color: var(--success); }
.toast__icon { font-size: 1.1rem; }
.toast p { font-size: .85rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: none; } }

.segmented { display: inline-flex; padding: .25rem; gap: .2rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); }
.segmented button { border: 0; border-radius: var(--radius-pill); padding: .55rem .85rem; background: transparent; color: var(--text-soft); font-weight: 800; }
.segmented button.is-active { color: var(--primary); background: var(--primary-soft); }

.vote-controls { display: inline-flex; gap: .4rem; }
.vote-button { display: inline-flex; align-items: center; gap: .35rem; min-height: 38px; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-soft); font-weight: 800; }
.vote-button:hover, .vote-button.is-active { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.vote-button.vote-down:hover, .vote-button.vote-down.is-active { border-color: var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }

.mobile-bottom-nav { display: none; }
.noscript-message { margin: 2rem; padding: 1rem; background: #fff4ce; color: #4e3a00; border-radius: 10px; text-align: center; }

.skeleton { background: linear-gradient(90deg, var(--surface-soft), var(--surface), var(--surface-soft)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-md); }
.skeleton--title { width: 38%; height: 34px; margin-bottom: 1.4rem; }
.skeleton--card { height: 360px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
