/*
Theme Name: Smart Pet Manufacturer
Description: B2B manufacturer storefront for the Smart Pet Catalog & Inquiries plugin.
Version: 0.2.2
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: smart-pet-manufacturer
*/
:root {
    --ink: #213027;
    --muted: #4c5d50;
    --accent: #254b35;
    --wash: #eef2e9;
    --line: #dce3d8;
    --width: 76rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 system-ui, sans-serif; }
img { display: block; height: auto; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #279c90; outline-offset: 4px; }
h1, h2, h3 { line-height: 1.16; margin: 0 0 .8rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--width), calc(100% - 2.5rem)); margin-inline: auto; }
.prose { max-width: 48rem; }
.section { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.surface { background: var(--wash); }
.topbar, .footer { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.footer { border-top: 1px solid var(--line); border-bottom: 0; }
.bar { display: flex; align-items: center; gap: 1rem 2rem; justify-content: space-between; flex-wrap: wrap; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.4rem; font-weight: 850; letter-spacing: -.06em; }
.custom-logo { max-width: 12rem; max-height: 3.5rem; object-fit: contain; }
.nav ul { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; list-style: none; padding: 0; margin: 0; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; }
.nav li { position: relative; }
.nav ul ul { display: block; padding-inline-start: 1rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.button, button { display: inline-block; background: var(--accent); color: white; border: 1px solid var(--accent); border-radius: .4rem; padding: .65rem 1rem; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.button.secondary, .spm-quote-item button { background: transparent; color: var(--accent); }
[hidden] { display: none !important; }
.hero-layout, .model-layout { display: grid; align-items: center; gap: 2.25rem; }
.hero-layout:has(img), .model-layout:has(img) { grid-template-columns: 1.1fr 1fr; }
.hero-layout img, .model-layout img { border-radius: .65rem; width: 100%; }
.model-layout { align-items: start; }
.lead { max-width: 42rem; color: var(--muted); font-size: 1.13rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.card { background: #fcfdf9; border: 1px solid var(--line); border-radius: .65rem; padding: 1rem; }
.card img { aspect-ratio: 4 / 3; object-fit: contain; width: 100%; margin-bottom: 1rem; background: var(--wash); border-radius: .4rem; }
.card a { color: var(--ink); }
.catalog-controls { margin-block: 1.5rem; }
.filter-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: 0; }
.pagination { margin-top: 2rem; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 650; }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.spm-quote label { display: block; font-weight: 600; }
.spm-quote fieldset { margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--line); }
.spm-quote form > label { margin-bottom: 1rem; }
input, select, textarea { border: 1px solid #8ca5a2; border-radius: .35rem; padding: .55rem; font: inherit; color: var(--ink); background: white; }
.spm-quote input:not([type=hidden]), .spm-quote select, .spm-quote textarea { display: block; width: 100%; margin-top: .3rem; }
.spm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.spm-quote-item { display: flex; align-items: end; gap: .65rem; margin-bottom: 1rem; }
.spm-quote-item label { flex: 1; }
.spm-notice { background: var(--wash); border-left: .25rem solid var(--accent); padding: .75rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.screen-reader-text:focus { z-index: 10; left: 1rem; top: 1rem; width: auto; height: auto; clip-path: none; padding: .5rem; background: white; }
@media (max-width: 44rem) {
    .hero-layout:has(img), .model-layout:has(img), .spm-form-grid { grid-template-columns: 1fr; }
}

/* FUFUPET catalog visual language. */
.topbar { background: #fcfdf9; }
.fufu-hero { background: #e8efe3; }
.fufu-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.fufu-hero-grid:has(.fufu-hero-media) { grid-template-columns: 1fr 1fr; }
.fufu-hero h1 { max-width: 11ch; font-size: clamp(3rem, 6vw, 5.7rem); }
.eyebrow { font-size: .76rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.fufu-hero-media > img { width: 100%; border-radius: 1rem; }
.hero-products { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); min-height: 22rem; gap: .8rem; }
.hero-products a { display: grid; place-items: center; background: #fafbf7; border-radius: .8rem; overflow: hidden; }
.hero-products a:first-child { grid-row: span 2; }
.hero-products a:only-child { grid-column: span 2; }
.hero-products img { width: 100%; height: 100%; max-height: 20rem; object-fit: contain; mix-blend-mode: multiply; }
.hero-products a:not(:first-child) img { max-height: 10rem; }
.card img { mix-blend-mode: multiply; }
.card h2 { font-size: 1.3rem; }
.model-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.model-gallery img { width: 100%; max-height: 20rem; object-fit: contain; background: white; }
@media (max-width: 48rem) {
    .fufu-hero-grid:has(.fufu-hero-media) { grid-template-columns: 1fr; }
    .hero-products { min-height: 16rem; }
    .hero-products img { max-height: 15rem; }
    .hero-products a:not(:first-child) img { max-height: 7.5rem; }
}

.page-cover { margin: 1.5rem 0; width: 100%; max-height: 30rem; object-fit: contain; background: var(--wash); border-radius: .65rem; }
.prose h2 { margin-top: 1.75rem; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
