/* Pet Rações prototype. Brand from the client's own logo/site: red #DA2625, site red #F42C37, footer dark red #630202,
   soft pink #FCDFEE and soft green #EAF8E6 from the original home, Poppins (self-hosted). */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(fonts/poppins-700.woff2) format('woff2'); }

:root {
  --red: #DA2625; --red-hi: #F42C37; --red-dk: #B81D1C; --wine: #630202; --wine-2: #4A0101;
  --pink: #FCDFEE; --green: #EAF8E6; --green-dk: #0E7A2A; --cream: #FFF6F4;
  --ink: #221A1A; --ink-2: #5A5050; --line: #EBDCDC; --white: #FFFFFF;
  --r: 12px; --wrap: 1280px;
  --shadow: 0 6px 24px rgb(99 2 2 / .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; color: var(--ink); background: var(--white); line-height: 1.6; font-size: 16px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dk); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
:focus-visible { outline: 3px solid var(--red-hi); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 600 .95rem/1.1 'Poppins', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dk); }
.btn.primary:disabled { background: #C9B9B9; cursor: not-allowed; }
.btn.dark { background: var(--wine); color: #fff; }
.btn.dark:hover { background: var(--wine-2); }
.btn.light { background: #fff; color: var(--wine); }
.btn.light:hover { background: var(--pink); }
.btn.outline-light { border-color: rgb(255 255 255 / .7); color: #fff; }
.btn.outline-light:hover { background: rgb(255 255 255 / .12); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--red); color: var(--red-dk); }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red-dk); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Top bar + header */
.topbar { background: var(--wine); color: #fff; font-size: .85rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 38px; }
.topbar p { margin: 0; display: flex; gap: .45em; align-items: center; }
.topbar a { color: #fff; text-decoration: none; display: flex; gap: .45em; align-items: center; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand img { width: 64px; height: 64px; }
.search { position: relative; flex: 1; display: flex; max-width: 640px; margin-left: auto; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.search:focus-within { border-color: var(--red); }
.search input { flex: 1; min-width: 0; border: 0; padding: .7em 1.1em; font: inherit; background: transparent; border-radius: 999px 0 0 999px; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--red); color: #fff; padding: 0 1.1em; cursor: pointer; border-radius: 0 999px 999px 0; }
.search button:hover { background: var(--red-dk); }
.cart-link { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--ink); background: var(--cream); }
.cart-link:hover { color: var(--red); }
.cart-link .icon { width: 26px; height: 26px; }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.menu-btn .icon { width: 28px; height: 28px; }
.nav { border-top: 1px solid var(--line); }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red-dk); }

/* Hero */
.hero { background: var(--red); color: #fff; overflow: hidden; background-image: radial-gradient(circle at 85% 30%, var(--red-hi) 0, transparent 45%), radial-gradient(circle at 10% 110%, var(--red-dk) 0, transparent 40%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 32px; min-height: 480px; }
.hero-copy { padding: 56px 0; align-self: center; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); margin-bottom: .35em; }
.hero-copy > p { font-size: 1.15rem; max-width: 34ch; opacity: .95; }
.hero-search { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; max-width: 560px; margin-top: 24px; }
.hero-search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 0 1em; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--wine); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.hero-links a { display: inline-block; color: #fff; text-decoration: none; border: 1.5px solid rgb(255 255 255 / .55); border-radius: 999px; padding: .4em 1em; font-size: .9rem; font-weight: 500; }
.hero-links a:hover { background: #fff; color: var(--red-dk); }
.hero-art img { width: 100%; max-width: 440px; margin-left: auto; filter: drop-shadow(0 18px 30px rgb(74 1 1 / .35)); }

/* Trust strip */
.trust { background: var(--wine); color: #fff; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; font-size: .9rem; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .icon { width: 30px; height: 30px; color: #FFC9C9; }
.trust strong { display: block; }

/* Bands */
.band { padding: 64px 0; }
.band.pink { background: var(--pink); }
.band.green { background: var(--green); }
.band.soft { background: var(--cream); }
.band.dark { background: var(--wine); color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.sec-head h2 { margin: 0; }
.more { display: inline-flex; gap: .35em; align-items: center; font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

.species-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; list-style: none; padding: 0; margin: 20px 0 0; }
.species-row a { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border-radius: var(--r); padding: 22px 12px; text-decoration: none; color: var(--ink); font-weight: 600; transition: transform .2s, box-shadow .2s; }
.species-row a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.species-row img { width: 72px; height: 72px; }
.species-row small { color: var(--ink-2); font-weight: 400; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 18px; overflow-x: auto; list-style: none; padding: 4px 2px 14px; margin: 0; scroll-snap-type: x mandatory; }
.row-scroll > li { scroll-snap-align: start; }
.card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.card a:hover { border-color: var(--red); box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 10px; }
.card-img { overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.badge { position: absolute; top: 0; left: 0; background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; }
.badge.out { background: var(--ink-2); }
.card-brand { font-size: .75rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.card-name { font-weight: 500; font-size: .92rem; line-height: 1.35; margin: 2px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { margin-top: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.price.sale { color: var(--red-dk); }
.price s { color: var(--ink-2); font-weight: 400; font-size: .85rem; margin-left: 4px; }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; list-style: none; padding: 0; margin: 20px 0 0; }
.tiles a { display: grid; grid-template-columns: 110px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; background: #fff; border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); transition: box-shadow .2s; }
.tiles a:hover { box-shadow: var(--shadow); }
.tile-img { grid-row: span 2; aspect-ratio: 1; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-name { font-weight: 600; font-size: 1.05rem; align-self: end; }
.tile-count { color: var(--green-dk); font-size: .9rem; align-self: start; }

/* Clube */
.clube { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--wine); color: #fff; }
.clube-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.clube-copy { padding: 56px 48px; align-self: center; max-width: 560px; }
.clube-copy p { font-size: 1.05rem; opacity: .95; }

.brand-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.brand-chips a { display: inline-block; background: #fff; color: var(--ink); text-decoration: none; padding: .55em 1.1em; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.brand-chips a:hover { background: var(--red); color: #fff; }

.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hours { margin: 16px 0; display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgb(255 255 255 / .18); padding-bottom: 6px; }
.hours dt { font-weight: 600; } .hours dd { margin: 0; text-align: right; }
.visit-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.quote { margin: 0; background: rgb(255 255 255 / .08); border-radius: var(--r); padding: 32px; }
.quote blockquote { margin: 0; font-size: 1.2rem; font-weight: 500; line-height: 1.5; }
.quote figcaption { margin-top: 12px; opacity: .85; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.post-card a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.post-img { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--pink); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card a:hover img { transform: scale(1.03); }
.post-date { color: var(--ink-2); font-size: .85rem; margin-top: 6px; }
.post-title { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.post-card a:hover .post-title { color: var(--red-dk); }

/* Listing */
.list-hero { background: var(--red); color: #fff; padding: 22px 0 30px; background-image: radial-gradient(circle at 90% 0, var(--red-hi) 0, transparent 50%); }
.list-hero h1 { margin: 6px 0 .25em; }
.list-hero p { margin: 0; opacity: .95; max-width: 70ch; }
.list-hero .btn { margin-top: 16px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.crumbs li + li::before { content: '›'; margin-right: 4px; opacity: .7; }
.crumbs a { color: inherit; opacity: .9; }
.list-hero .crumbs a, .article-head .crumbs a, .list-hero .crumbs span, .article-head .crumbs span { color: #fff; }
.wrap > .crumbs { padding: 16px 0; color: var(--ink-2); }
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding-top: 28px; padding-bottom: 64px; }
.filters { align-self: start; position: sticky; top: 140px; max-height: calc(100dvh - 160px); overflow: auto; padding-right: 4px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 1.2rem; margin: 0; }
.filters-close, .filters-open { display: none; }
.filter-block { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-block h3 { font-size: .95rem; margin-bottom: 8px; }
.cat-tree, .brand-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.cat-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.cat-tree a:hover { background: var(--pink); }
.cat-tree span, .brand-list span { color: var(--ink-2); font-size: .8rem; }
.cat-up { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; margin-bottom: 6px; text-decoration: none; }
.brand-list label, .check { display: flex; align-items: center; gap: 8px; font-size: .92rem; padding: 4px 0; cursor: pointer; }
.brand-list label span { margin-left: auto; }
.brand-list.collapsible:not(.open) li:nth-child(n+9) { display: none; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-range label { font-size: .82rem; color: var(--ink-2); display: grid; gap: 4px; }
input, select, textarea { font: inherit; color: var(--ink); }
.price-range input, .sort select, .field input, .field textarea { border: 1.5px solid #CBB9B9; border-radius: 10px; padding: .55em .7em; background: #fff; width: 100%; }
.price-range input:focus, .sort select:focus, .field input:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid rgb(218 38 37 / .2); }
.filters > .btn { margin-top: 16px; width: 100%; }
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.results-bar p { margin: 0 auto 0 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.sort select { width: auto; }
.empty { padding: 40px; text-align: center; background: var(--cream); border-radius: var(--r); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 32px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.pager span { border: 0; }
.pager a:hover { border-color: var(--red); }
.pager a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

/* Product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; padding: 24px; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.thumbs button { width: 76px; height: 76px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pbrand { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; text-decoration: none; }
.buybox h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: 6px 0 12px; }
.pprice { font-size: 1.9rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.pprice .sale { color: var(--red-dk); }
.pprice s { font-size: 1.1rem; color: var(--ink-2); font-weight: 400; }
.vat { color: var(--ink-2); font-size: .85rem; }
.variants { border: 0; padding: 0; margin: 18px 0; }
.variants legend { font-weight: 600; margin-bottom: 8px; }
.variant-list { display: flex; flex-wrap: wrap; gap: 10px; }
.variant { background: rgb(255 255 255 / .5); position: relative; display: flex; flex-direction: column; min-width: 120px; padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .2s; }
.variant input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.variant span { font-weight: 500; }
.variant strong { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.variant:hover { border-color: #E9A3A3; }
.variant:has(input:checked) { border-color: var(--red); background: #fff; box-shadow: inset 0 0 0 1px var(--red); }
.variant:has(input:focus-visible) { outline: 3px solid var(--red-hi); outline-offset: 2px; }
.variant.is-out { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.stock { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 8px 0 16px; }
.stock.in { color: var(--green-dk); } .stock.out { color: var(--ink-2); }
.add-row { display: flex; gap: 12px; flex-wrap: wrap; }
.qty { display: flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; cursor: pointer; color: var(--ink); display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { color: var(--red); }
.qty input { background: transparent; width: 44px; text-align: center; border: 0; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.add { flex: 1; min-width: 220px; }
.added { margin-top: 12px; color: var(--green-dk); font-weight: 600; }
.perks { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .92rem; }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .icon { color: var(--red); width: 22px; height: 22px; }
.pdesc { grid-column: 1 / -1; background: var(--cream); border-radius: var(--r); padding: 32px; }
.prose { max-width: 75ch; }
.prose h2 { margin-top: 1.4em; } .prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }
.prose img { border-radius: var(--r); }
.related { padding: 48px 0; }

/* Article */
.article-head { background: var(--red); color: #fff; padding: 24px 0 36px; }
.article-head h1 { margin: 10px 0 6px; }
.article-head .post-date { color: #fff; opacity: .9; margin: 0; }
.article-img { margin: -12px 0 28px; }
.article-img img { width: 100%; border-radius: var(--r); max-height: 460px; object-fit: cover; }
.article .prose { font-size: 1.05rem; padding-bottom: 24px; }
.article-cta { background: var(--pink); border-radius: var(--r); padding: 24px; margin: 8px 0 56px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.article-cta p { margin: 0; font-weight: 600; }

/* Simple pages */
.page-body { padding-top: 40px; padding-bottom: 64px; }
.brand-index { columns: 4 220px; column-gap: 32px; }
.brand-index section { break-inside: avoid; margin-bottom: 20px; }
.brand-index h2 { color: var(--red); font-size: 1.4rem; border-bottom: 2px solid var(--pink); padding-bottom: 4px; }
.brand-index ul { list-style: none; padding: 0; margin: 0; }
.brand-index a { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink); text-decoration: none; }
.brand-index a:hover { color: var(--red-dk); }
.brand-index span { color: var(--ink-2); font-size: .85rem; }
.posts-all { row-gap: 36px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 48px; align-items: start; }
.about-side { background: var(--pink); border-radius: var(--r); overflow: hidden; }
.about-side img { width: 70%; margin: 24px auto 0; }
.side-card { background: var(--wine); color: #fff; padding: 24px; }
.contact-info h2 { font-size: 1.2rem; margin-top: 1.4em; }
.contact-info h2:first-child { margin-top: 0; }
.contact-info .hours div { border-color: var(--line); }
.contact-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.contact-list a { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; }
.contact-form { background: var(--cream); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.err { color: #A3151B; font-size: .85rem; margin: 0; }
.field.invalid input, .field.invalid textarea { border-color: #A3151B; }
.policy { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.policy-nav ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 140px; display: grid; gap: 4px; }
.policy-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.policy-nav a[aria-current="page"] { background: var(--pink); color: var(--red-dk); font-weight: 600; }

/* Cart */
.cart { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cart-items ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.cart-line img { width: 80px; height: 80px; object-fit: contain; }
.cart-line a { color: var(--ink); font-weight: 500; text-decoration: none; }
.cart-line small { display: block; color: var(--ink-2); }
.cart-line .rm { background: none; border: 0; color: var(--ink-2); cursor: pointer; padding: 8px; }
.cart-line .rm:hover { color: var(--red); }
.cart-empty { background: var(--cream); border-radius: var(--r); padding: 40px; text-align: center; }
.cart-summary { background: var(--cream); border-radius: var(--r); padding: 24px; position: sticky; top: 140px; }
.cart-summary dl { display: grid; gap: 8px; margin: 0 0 12px; }
.cart-summary dl div { display: flex; justify-content: space-between; }
.cart-summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-summary .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 8px; }
.ship-note { font-size: .9rem; color: var(--green-dk); font-weight: 500; }

/* Footer */
.site-footer { background: var(--wine-2); color: #F3E3E3; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 6px; margin-bottom: 14px; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #F3E3E3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #D9BDBD; }
.footer-contact a { display: inline-flex; gap: 6px; align-items: center; }
.social { display: flex; gap: 12px; }
.social .icon { width: 26px; height: 26px; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .15); padding-top: 18px; padding-bottom: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #D9BDBD; }
.footer-legal p { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: span 3; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .species-row { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); max-height: none; background: #fff; z-index: 40; padding: 20px; transform: translateX(-105%); transition: transform .25s; box-shadow: 0 0 40px rgb(0 0 0 / .2); top: 0; }
  .filters.open { transform: none; }
  .filters-close, .filters-open { display: inline-flex; }
  .filters-close { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
  .product, .about-grid, .contact-grid, .cart, .visit-grid, .policy { grid-template-columns: 1fr; gap: 28px; }
  .policy-nav ul { position: static; display: flex; flex-wrap: wrap; }
  .clube { grid-template-columns: 1fr; }
  .clube-copy { padding: 36px 20px 44px; }
  .posts { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hide-sm { display: none !important; }
  .topbar-row { justify-content: center; }
  .header-row { flex-wrap: wrap; gap: 10px 12px; min-height: 64px; padding-top: 8px; padding-bottom: 10px; }
  .menu-btn { display: block; }
  .brand img { width: 52px; height: 52px; }
  .cart-link { margin-left: auto; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav a { border-bottom: 1px solid var(--line); }
  /* Header scrolls with the page on mobile; the prototype banner script may set an inline top offset meant for sticky headers, so neutralise it here. */
  .site-header { position: relative; top: auto !important; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 32px 0 12px; }
  .hero-copy > p { font-size: 1rem; }
  .hero-search { display: none; }
  .hero-search input { padding: .7em 1em; }
  .hero-art img { max-width: 230px; margin: 0 auto; }
  .species-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card a { padding: 8px; }
  .tiles { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .band { padding: 44px 0; }
  .sec-head { flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: span 2; }
  .results-bar { flex-wrap: wrap; }
  .results-bar p { flex-basis: 100%; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line img { width: 64px; height: 64px; }
  .pdesc { padding: 20px; }
  .clube-photo img { min-height: 220px; }
  .quote { padding: 22px; }
  .hours div { flex-direction: column; gap: 0; }
  .hours dd { text-align: left; }
}

/* Product top area on the brand soft pink (keeps the page from reading as a blank sheet) */
.product-band { background: var(--pink); padding-bottom: 8px; }
.product-band .wrap > .crumbs { color: var(--ink); }
.pdesc { background: var(--green); }

/* Search suggestions (header combobox) */
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 40px rgb(99 2 2 / .16); padding: 6px; z-index: 30; max-height: min(70vh, 520px); overflow: auto; }
.suggest-h { margin: 6px 10px 2px; font-size: .75rem; font-weight: 600; color: var(--ink-2); }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.suggest a small { color: var(--ink-2); font-size: .8rem; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--cream); color: var(--red-dk); }
.suggest-prod img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.suggest-prod span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-prod b { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.suggest a.suggest-all { justify-content: center; font-weight: 600; color: var(--red-dk); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* Search results page */
.page-search { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; max-width: 620px; margin-top: 18px; }
.page-search input { flex: 1; min-width: 0; border: 0; font: inherit; padding: 0 1em; color: var(--ink); background: transparent; }
.page-search input:focus { outline: none; }
.page-search:focus-within { box-shadow: 0 0 0 3px var(--wine); }
.filters .brand-list input[type="radio"] { width: 18px; height: 18px; accent-color: var(--red); }
.brand-list input, .check input { flex: none; }
.search-empty { background: var(--pink); border-radius: var(--r); padding: 32px; }
.search-empty h2 { font-size: 1.35rem; }
.search-empty h3 { font-size: 1rem; margin-top: 1.4em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1em; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.chips a:hover { background: var(--red); color: #fff; }
.search-help { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid rgb(99 2 2 / .12); }
.search-help .icon { color: var(--green-dk); margin-top: 2px; }

/* Checkout */
.checkout-hero { padding-bottom: 26px; }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-top: 32px; padding-bottom: 64px; }
.checkout > .cart-empty { grid-column: 1 / -1; }
.co-form { display: grid; gap: 20px; min-width: 0; }
.co-step { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 24px; margin: 0; min-width: 0; background: #fff; }
.co-step legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; }
.co-step legend h2 { font-size: 1.25rem; margin: 0; }
.co-step legend + * { clear: both; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.field .hint { margin: 0; font-size: .82rem; color: var(--ink-2); }
.field input, .field textarea { min-height: 46px; }
.field.invalid input { background: #FFF7F7; }
.field label small, .check small { font-weight: 400; color: var(--ink-2); }
.ship-options, .pay-options { display: grid; gap: 10px; margin-bottom: 16px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.opt:hover { border-color: #D9A9A9; }
.opt:has(input:checked) { border-color: var(--red); background: var(--cream); }
.opt input { width: 20px; height: 20px; accent-color: var(--red); margin: 0; }
.opt-body { display: grid; gap: 2px; min-width: 0; }
.opt-body strong { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.opt-body small { color: var(--ink-2); font-size: .85rem; }
.opt-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-note { display: flex; gap: 10px; align-items: flex-start; background: var(--green); color: #134A20; border-radius: var(--r); padding: 12px 14px; font-size: .9rem; margin: 0 0 14px; }
.sim-note .icon { color: var(--green-dk); margin-top: 2px; }
.co-final { display: grid; gap: 10px; background: var(--cream); border-radius: var(--r); padding: 20px 24px; }
.co-final p { margin: 0; }
.consent { align-items: flex-start; font-size: .92rem; }
.consent input { margin-top: 3px; flex: none; }
.co-submit { min-height: 54px; font-size: 1.02rem; justify-self: start; }
.err-summary { border: 2px solid #A3151B; background: #FFF7F7; border-radius: var(--r); padding: 16px 20px; }
.err-summary h2 { font-size: 1.05rem; color: #A3151B; margin: 0 0 6px; }
.err-summary ul { margin: 0; padding-left: 1.2em; }
.err-summary a { color: #A3151B; font-weight: 500; }
.co-summary h2, .order-grid .cart-summary h2 { font-size: 1.2rem; }
.co-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.co-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; }
.co-lines img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; }
.co-lines b { display: block; font-weight: 500; font-size: .88rem; line-height: 1.3; }
.co-lines small { display: block; color: var(--ink-2); font-size: .8rem; }
.co-lines strong { font-variant-numeric: tabular-nums; font-size: .92rem; white-space: nowrap; }
.coupon { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 14px; }
.coupon label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; border: 1.5px solid #CBB9B9; border-radius: 10px; padding: .55em .7em; background: #fff; text-transform: uppercase; }
.coupon-row input:focus { border-color: var(--red); outline: 2px solid rgb(218 38 37 / .2); }
.coupon-row .btn { min-height: 44px; padding: .5em 1em; }
.coupon p { margin: 6px 0 0; }
.coupon .ok { color: var(--green-dk); font-weight: 500; }
.coupon .err { color: #A3151B; }
.cart-summary dt small { font-weight: 400; color: var(--ink-2); }
.cart-summary .btn + .btn { margin-top: 10px; }

/* Order confirmation */
.order-hero { background: var(--wine); color: #fff; padding: 22px 0 34px; background-image: radial-gradient(circle at 88% 0, #8E0B0B 0, transparent 55%); }
.order-hero .crumbs a, .order-hero .crumbs span { color: #fff; }
.order-hero h1 { margin: 8px 0 .3em; }
.order-hero p { margin: 0; max-width: 70ch; }
.order-hero .order-ok { display: inline-flex; gap: 8px; align-items: center; background: var(--green); color: #134A20; font-weight: 600; font-size: .9rem; border-radius: 999px; padding: .35em 1em; margin-top: 14px; }
.order-ok .icon { color: var(--green-dk); }
.order-body { padding-top: 32px; padding-bottom: 64px; }
.order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.order-grid > div { display: grid; gap: 18px; min-width: 0; }
.order-card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.order-card h2 { font-size: 1.2rem; }
.order-card p { margin: 0 0 .6em; }
.pay-card { background: var(--pink); border: 0; }
.pay-card .sim-note { margin-top: 8px; }
.mb-ref { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 6px 28px; margin: 4px 0 12px; }
.mb-ref div { display: grid; }
.mb-ref dt { font-size: .8rem; color: var(--ink-2); }
.mb-ref dd { margin: 0; font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.order-steps { margin: 0 0 12px; padding-left: 1.3em; display: grid; gap: 6px; }

@media (max-width: 900px) {
  /* Filter drawer: bound it to the viewport so its own scroll reaches the last filters */
  .filters { height: 100dvh; max-height: 100dvh; }
  .checkout, .order-grid { grid-template-columns: minmax(0, 1fr); }
  .co-summary { position: static; order: -1; }
  .order-grid .cart-summary { position: static; }
}
@media (max-width: 760px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-step { padding: 18px 16px 20px; }
  .co-final { padding: 18px 16px; }
  .co-submit { justify-self: stretch; white-space: nowrap; padding-inline: 1em; font-size: .98rem; }
  .opt { grid-template-columns: auto 1fr; }
  .opt-price { grid-column: 2; }
  .page-search { display: none; }
  .search-empty { padding: 22px 18px; }
  .mb-ref { grid-template-columns: 1fr 1fr; }
}

/* ---------- Detail pass (fase 5/6) ---------- */
html { scroll-padding-top: 150px; }
.stock.in { color: #0B6623; }
.qty button { flex: none; }
.cart-line > div { min-width: 0; }
.cart-line a { overflow-wrap: anywhere; }
.co-grid > *, .co-step .field { min-width: 0; }
.co-step .field input, .co-step .field textarea { min-width: 0; }
.site-footer li a { display: inline-block; padding: 3px 0; }
.crumbs li { display: flex; align-items: center; }
.crumbs a, .crumbs span[aria-current] { display: inline-block; padding: 3px 0; }
.list-hero .crumbs, .article-head .crumbs, .order-hero .crumbs { color: #fff; }
.card-name, .cart-line a { text-wrap: pretty; }
.co-form, .cart-items ul { grid-template-columns: minmax(0, 1fr); }
.cart-items { min-width: 0; }
@media (max-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr); } }
.co-final { grid-template-columns: minmax(0, 1fr); min-width: 0; }
@media (max-width: 360px) { .co-submit { white-space: normal; font-size: .95rem; } }
@media (max-width: 760px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; row-gap: 10px; }
  .cart-line > div:not(.qty) { grid-column: 2 / -1; }
  .cart-line .qty { grid-column: 1 / 3; justify-self: start; }
  .cart-line .rm { grid-column: 3; }
}
