:root {
    --ink: #202124;
    --muted: #8a8f98;
    --line: #eceef1;
    --paper: #fff;
    --soft: #f6f7f8;
    --green: #20b26b;
    --radius: 10px;
    --shell: 1460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #f7f8f9;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-row { min-height: 68px; display: grid; grid-template-columns: 220px minmax(300px, 620px) 120px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: 20px; font-weight: 760; letter-spacing: -.025em; }
.site-search { display: flex; height: 40px; border: 1px solid #e3e6e9; border-radius: 7px; overflow: hidden; background: var(--soft); }
.site-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 15px; background: transparent; font: inherit; font-size: 14px; }
.site-search button { border: 0; padding: 0 22px; background: var(--green); color: white; cursor: pointer; font-weight: 650; }
.language-switch { display: flex; justify-content: flex-end; gap: 8px; color: var(--muted); font-size: 13px; }
.language-switch .active { color: var(--green); font-weight: 700; }
.category-nav { border-top: 1px solid var(--line); background: #fff; }
.category-row { display: flex; align-items: center; justify-content: center; gap: 30px; min-height: 44px; overflow: visible; font-size: 14px; }
.category-item { position: relative; }
.category-row > a, .category-item > a { display: block; padding-block: 12px; white-space: nowrap; }
.category-row > a:hover, .category-item > a:hover { color: var(--green); }
.subcategory-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 44px rgba(23,31,38,.12); }
.subcategory-menu a { display: block; padding: 9px 11px; border-radius: 6px; }
.subcategory-menu a:hover { background: var(--soft); color: var(--green); }
.category-item:hover .subcategory-menu, .category-item:focus-within .subcategory-menu { display: block; }

.site-main { padding-bottom: 28px; }
.hero { padding-top: 24px; }
.hero-inner { min-height: 176px; display: flex; align-items: center; gap: 24px; padding: 30px 36px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, #fff 0%, #f2f5f3 100%); }
.hero-badge { width: 82px; height: 82px; flex: 0 0 82px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 34px; font-weight: 760; text-transform: uppercase; }
.eyebrow { margin: 0 0 6px; color: var(--green); font-size: 11px; font-weight: 750; letter-spacing: .16em; }
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.hero-copy { max-width: 760px; margin: 11px 0 0; color: var(--muted); font-size: 15px; }

.section-block { padding-block: 28px 22px; }
.category-section { padding-bottom: 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.025em; }
.section-heading a { color: var(--green); font-size: 14px; }

.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.category-grid.compact { margin-bottom: 28px; }
.category-tile { min-height: 76px; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s ease, transform .2s ease; }
.category-tile:hover { transform: translateY(-2px); border-color: #bfe8d1; }
.category-tile span { font-size: 15px; font-weight: 650; }
.category-tile small { margin-top: 3px; color: var(--muted); font-size: 12px; }

.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; }
.product-card { min-width: 0; padding: 8px 8px 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(26,34,40,.08); }
.product-card h2 { margin: 10px 3px 2px; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.product-card p { margin: 0 3px; color: var(--muted); font-size: 12px; }
.product-image-wrap { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 7px; background: var(--soft); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover img { transform: scale(1.02); }
.image-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #f5f6f7, #eceff1); }

.product-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); gap: 42px; padding-block: 34px 70px; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.product-gallery a:first-child { grid-column: 1 / -1; }
.product-gallery img { width: 100%; height: auto; border-radius: 8px; background: var(--soft); }
.product-summary { position: sticky; top: 130px; align-self: start; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.product-summary h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.04em; }
.sku, .description, .original-note { color: var(--muted); }
.description { margin-top: 24px; }
.whatsapp-button { display: block; margin-top: 26px; padding: 14px 20px; border-radius: 7px; background: var(--green); color: white; text-align: center; font-weight: 700; }
.original-note { font-size: 12px; text-align: center; }
.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 38px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.page-numbers.current { background: var(--green); color: white; border-color: var(--green); }
.empty-state { min-height: 60vh; padding-block: 100px; text-align: center; }
.empty-state h1 { margin: 0; font-size: 100px; }
.text-link { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 12px; }
.footer-row { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }

@media (max-width: 1120px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .header-row { grid-template-columns: 1fr auto; padding-block: 12px; }
    .site-search { grid-column: 1 / -1; grid-row: 2; }
    .category-row { justify-content: flex-start; overflow-x: auto; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .product-detail { grid-template-columns: 1fr; }
    .product-summary { position: static; }
}

@media (max-width: 560px) {
    .shell { width: min(calc(100% - 20px), var(--shell)); }
    .header-row { gap: 10px; }
    .brand { font-size: 18px; }
    .site-search button { padding-inline: 16px; }
    .hero { padding-top: 12px; }
    .hero-inner { min-height: 132px; gap: 14px; padding: 22px 18px; }
    .hero-badge { width: 58px; height: 58px; flex-basis: 58px; font-size: 24px; }
    .hero h1 { font-size: 27px; }
    .hero-copy { font-size: 13px; }
    .section-block { padding-block: 22px 10px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 7px; }
    .product-card { padding: 5px 5px 10px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .category-tile { min-height: 66px; padding: 11px 12px; }
    .product-gallery { grid-template-columns: 1fr; }
    .product-gallery a:first-child { grid-column: auto; }
    .footer-row { flex-direction: column; justify-content: center; text-align: center; padding-block: 20px; }
}
