/* Sunny Distributors storefront */

:root {
    /* Brand colours taken from the Sunny Distributors logo */
    --ink: #102a3c;
    --muted: #556b7a;
    --ocean: #0a4a72;        /* logo navy */
    --ocean-deep: #073654;
    --sun: #f8b414;          /* logo yellow */
    --sun-hover: #e3a200;
    --sun-soft: #fef4d8;
    --cream: #faf0e6;        /* logo background */
    --mist: #f1f5f8;
    --line: #d5dfe6;
    --white: #ffffff;
    --sale: #b3261e;
    --ok: #23714a;
    --warn: #9a5b00;

    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;

    --radius-sm: 4px;
    --radius: 8px;
    --container: 1240px;
    --gap: clamp(1rem, 2.5vw, 1.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean); text-underline-offset: 2px; }
a:hover { color: var(--ocean-deep); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .75em; }
button, input, select { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.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: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 40rem; }
.site-main { flex: 1; }
.section { margin: 3rem auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head .section-title { margin: 0; }
.section-title { font-size: 1.5rem; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .6rem 1.1rem; min-height: 2.6rem;
    border: 2px solid transparent; border-radius: var(--radius-sm);
    font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
    background: var(--mist); color: var(--ink);
}
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: var(--sun-hover); color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--ocean); color: var(--ocean); }
.btn-outline:hover { background: var(--ocean); color: var(--white); }
.btn-lg { padding: .8rem 1.5rem; min-height: 3rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--mist); color: var(--muted); border-color: transparent; cursor: not-allowed; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.icon-btn {
    width: 2.25rem; height: 2.25rem; border: 0; border-radius: var(--radius-sm);
    background: transparent; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--mist); }

/* ---------- Header ---------- */

.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex-shrink: 0; }

.topbar { background: var(--ocean-deep); color: #c9d8e3; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; }
.topbar p { margin: 0; display: flex; align-items: center; gap: .45rem; }
.topbar-note .icon { color: var(--sun); }
.topbar-contact { gap: 1.25rem !important; }
.topbar-contact a { display: inline-flex; align-items: center; gap: .35rem; color: var(--white); text-decoration: none; font-weight: 600; }
.topbar-contact a:hover { color: var(--sun); }

.site-header { background: var(--white); position: relative; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.header-bar { display: flex; align-items: center; gap: 2rem; padding-top: .75rem; padding-bottom: .75rem; }

.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 5.25rem; width: auto; }

.search { position: relative; flex: 1; display: flex; align-items: center; max-width: 44rem; margin: 0 auto; }
.search-icon { position: absolute; left: 1rem; width: 1.2rem; height: 1.2rem; fill: var(--muted); pointer-events: none; }
.search input {
    flex: 1; min-width: 0; height: 3rem; padding: 0 1rem 0 2.8rem;
    border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--mist);
}
.search input:focus { border-color: var(--ocean); background: var(--white); outline: none; }
.search-btn {
    height: 3rem; border: 0; padding: 0 1.4rem; background: var(--sun); color: var(--ink);
    border-radius: 0 999px 999px 0; font-weight: 700; cursor: pointer;
}
.search-btn:hover { background: var(--sun-hover); }

.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(10, 74, 114, .14); overflow: hidden; z-index: 30;
}
.suggest-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; text-decoration: none; color: var(--ink); }
.suggest-item img { width: 44px; height: 44px; object-fit: contain; background: var(--mist); border-radius: var(--radius-sm); }
.suggest-item .suggest-name { flex: 1; font-weight: 500; }
.suggest-item .suggest-price { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.suggest-item:hover, .suggest-item.is-active { background: var(--mist); }
.suggest-all { display: block; padding: .6rem .75rem; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.suggest-empty { padding: .75rem; color: var(--muted); margin: 0; }
.suggest-note { margin: 0; padding: .5rem .75rem; font-size: .85rem; background: var(--sun-soft); }
.suggest-group { padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
.suggest-type { flex: 0 0 4.2rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.search-note { margin: 0 0 1rem; padding: .7rem 1rem; border-radius: var(--radius-sm); background: var(--sun-soft); }

.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.action {
    display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem .7rem;
    border-radius: var(--radius); text-decoration: none; color: var(--ink); font-size: .82rem; font-weight: 600;
}
.action .icon { width: 1.6rem; height: 1.6rem; color: var(--ocean); }
.action:hover { background: var(--mist); color: var(--ocean); }
.cart-icon { position: relative; display: inline-flex; }
.cart-count {
    position: absolute; top: -.35rem; right: -.6rem;
    display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem;
    border-radius: 999px; background: var(--sun); color: var(--ink); font-size: .72rem; font-weight: 700;
    box-shadow: 0 0 0 2px var(--white);
}
.cart-count.is-bumped { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.3); } }

.category-nav { border-top: 1px solid var(--line); }
.category-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.category-menu::-webkit-scrollbar { display: none; }
.category-menu > li { position: relative; }
.category-menu a {
    display: block; padding: .8rem .9rem; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.category-menu > li > a:hover, .category-menu > li:focus-within > a, .category-menu a[aria-current="page"] {
    color: var(--ocean); border-bottom-color: var(--sun);
}
/* Sale comes first when something is on sale; More holds categories that don't fit */
.menu-more[hidden] { display: none; }
.more-btn {
    display: block; padding: .8rem .9rem; border: 0; border-bottom: 3px solid transparent; background: none;
    font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap;
}
.more-btn:hover, .menu-more:focus-within .more-btn, .more-btn[aria-expanded="true"] { color: var(--ocean); border-bottom-color: var(--sun); }
.more-list { left: auto; right: 0; min-width: 16rem; max-height: 70vh; overflow-y: auto; }
.more-list > li > a { font-weight: 600; }
/* Categories moved into More show their subcategories underneath */
.more-list .submenu { display: block; position: static; min-width: 0; padding: 0 0 .35rem .75rem; border: 0; box-shadow: none; border-radius: 0; }
.more-list .submenu a { padding: .3rem 1rem; font-size: .92rem; color: var(--muted); }
.menu-more.is-open .more-list { display: block; }
.category-menu .nav-sale { color: var(--sale); }
.submenu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 14rem; list-style: none; margin: 0; padding: .4rem 0;
    background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 28px rgba(10, 74, 114, .14);
}
.submenu a { padding: .5rem 1rem; border: 0; font-weight: 500; }
.submenu a:hover { background: var(--mist); color: var(--ocean); }
@media (hover: hover) and (min-width: 900px) {
    /* Without JavaScript, extra categories wrap onto a second line instead of going off screen */
    .category-menu { overflow: visible; flex-wrap: wrap; }
    .js .category-menu { flex-wrap: nowrap; }
    .has-children:hover .submenu, .has-children:focus-within .submenu { display: block; }
}

.flash { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 500; }
.flash-ok { background: #e3f3ea; color: var(--ok); }
.flash-error { background: #fbe9e7; color: var(--sale); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--ocean); color: var(--white); }
/* Yellow sweep along the bottom, like the banner */
.hero::after {
    content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 3.5rem;
    background: var(--sun); clip-path: ellipse(60% 100% at 70% 100%); opacity: .95;
}
.hero-image { background: var(--ocean-deep) var(--hero-img) center / cover no-repeat; }
.hero-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 54, 84, .88), rgba(7, 54, 84, .25)); }
.hero-inner {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem;
    padding-top: clamp(2.25rem, 5vw, 3.5rem); padding-bottom: clamp(3.5rem, 7vw, 5rem);
}
.hero-title { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 700; letter-spacing: -0.025em; margin-bottom: .75rem; }
.hero-text { font-size: 1.1rem; max-width: 46ch; margin-bottom: 1.5rem; color: #d6e5f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ocean); }
.btn-ghost .icon { width: 1.2rem; height: 1.2rem; }
.hero-art { justify-self: center; position: relative; border-radius: 50%; }
.hero-art img {
    /* Round badge already has its own circle and ring, so no padding or clipping here */
    position: relative; z-index: 1;
    display: block; width: clamp(10rem, 18vw, 13.5rem); height: auto; border-radius: 50%;
    box-shadow: 0 0 0 .6rem rgba(248, 180, 20, .3), 0 0 0 1.2rem rgba(248, 180, 20, .12);
    animation: hero-glow 4s ease-in-out infinite;
}
/* Slow-turning dashed ring, like sun rays */
.hero-art::before {
    content: ""; position: absolute; inset: -1.9rem; border-radius: 50%;
    border: 3px dashed rgba(248, 180, 20, .55);
    animation: hero-spin 40s linear infinite;
}
/* Yellow ripple pulsing out from the badge */
.hero-art::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--sun);
    animation: hero-ripple 3.2s ease-out infinite;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@keyframes hero-ripple {
    0%   { transform: scale(1);    opacity: .8; }
    80%  { opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}
@keyframes hero-glow {
    0%, 100% { box-shadow: 0 0 0 .6rem rgba(248, 180, 20, .3), 0 0 0 1.2rem rgba(248, 180, 20, .12); }
    50%      { box-shadow: 0 0 0 .8rem rgba(248, 180, 20, .38), 0 0 0 1.6rem rgba(248, 180, 20, .16); }
}
@media (max-width: 760px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { display: none; }
}

/* ---------- Promise strip under the hero ---------- */

.promise { background: var(--cream); border-bottom: 1px solid var(--line); }
.promise-list { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.promise-list li { display: flex; flex-direction: column; padding-left: .9rem; border-left: 3px solid var(--sun); }
.promise-list strong { color: var(--ocean); }
.promise-list span { font-size: .9rem; color: var(--muted); }
@media (max-width: 800px) { .promise-list { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Product carousels ---------- */

.carousel-controls { display: flex; align-items: center; gap: .5rem; }
.see-all { font-weight: 600; margin-right: .5rem; }
.carousel-btn {
    width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 50%;
    border: 2px solid var(--line); background: var(--white); color: var(--ocean); cursor: pointer;
}
.carousel-btn:hover:not(:disabled) { border-color: var(--ocean); background: var(--ocean); color: var(--white); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-btn .icon { width: 1.2rem; height: 1.2rem; }
.carousel-track {
    --per-view: 5;
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
    gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding-bottom: .5rem; scrollbar-width: thin;
}
.carousel-track > * { scroll-snap-align: start; }
@media (max-width: 1200px) { .carousel-track { --per-view: 4; } }
@media (max-width: 900px)  { .carousel-track { --per-view: 3; } }
@media (max-width: 640px)  { .carousel-track { --per-view: 1.6; } .carousel-btn { display: none; } }

/* ---------- Category tiles & brands ---------- */

.category-tiles {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--gap);
}
.category-tile {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category-tile:hover { border-color: var(--sun); box-shadow: 0 10px 24px rgba(10, 74, 114, .1); transform: translateY(-2px); }
.category-tile-media {
    display: grid; place-items: center; aspect-ratio: 16 / 9;
    background: var(--cream); border-bottom: 3px solid var(--sun);
}
.category-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.category-tile-icon {
    display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%;
    background: var(--sun); box-shadow: 0 0 0 .45rem rgba(248, 180, 20, .22);
    transition: transform .2s;
}
.category-tile:hover .category-tile-icon { transform: scale(1.06); }
.category-tile-icon .icon { width: 2.3rem; height: 2.3rem; fill: var(--ocean-deep); }
.category-tile-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.category-tile-name { font-size: 1.15rem; margin: 0 0 .15rem; }
.category-tile-name a { color: var(--ink); text-decoration: none; }
.category-tile-name a:hover { color: var(--ocean); }
.category-tile-count { margin: 0 0 .7rem; font-size: .85rem; color: var(--muted); }
.category-tile-subs { list-style: none; margin: 0 0 .9rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.category-tile-subs a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.category-tile-subs a::before { content: ""; display: inline-block; width: .35rem; height: .35rem; margin-right: .5rem; border-radius: 50%; background: var(--sun); vertical-align: middle; }
.category-tile-subs a:hover { color: var(--ocean); text-decoration: underline; }
.category-tile-subs .more { font-size: .85rem; color: var(--muted); padding-left: .85rem; }
.category-tile-all { margin-top: auto; font-weight: 700; color: var(--ocean); text-decoration: none; }
.category-tile-all:hover { color: var(--ocean-deep); text-decoration: underline; }
@media (max-width: 640px) {
    .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .category-tile-body { padding: .8rem; }
    .category-tile-subs { display: none; }   /* phones: name, count and Shop all only */
    .category-tile-icon { width: 3.5rem; height: 3.5rem; }
    .category-tile-icon .icon { width: 1.8rem; height: 1.8rem; }
}

.brand-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.brand-chip {
    display: flex; align-items: center; justify-content: center; min-width: 8rem; height: 3.5rem; padding: .5rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600;
}
.brand-chip img { max-height: 2.25rem; width: auto; }
.brand-chip:hover { border-color: var(--ocean); }

/* ---------- Breadcrumb ---------- */

.breadcrumb ol { list-style: none; margin: 1.25rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .9rem; color: var(--muted); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ocean); }

/* ---------- Listing ---------- */

.listing-head { margin-bottom: 1.5rem; }
.listing-intro { color: var(--muted); max-width: 65ch; }
.listing-layout { display: grid; grid-template-columns: 15.5rem 1fr; gap: 2rem; align-items: start; margin-bottom: 3rem; }

.filters { position: sticky; top: 1rem; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-head h2 { font-size: 1.15rem; margin: 0; }
.filters-close, .filters-toggle { display: none; }
.filter-group { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1rem 0; }
.filter-group h3, .filter-group legend { font-family: var(--font-body); font-size: .95rem; font-weight: 700; padding: 0; margin-bottom: .6rem; }
.filter-group legend { float: left; width: 100%; }
.filter-group legend + * { clear: both; }
.check { display: flex; align-items: center; gap: .55rem; padding: .2rem 0; cursor: pointer; }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--ocean); margin: 0; }
.price-range { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.price-range input { width: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.filter-actions { padding-top: .5rem; }
.js .filter-actions { display: none; }

.category-tree ul { list-style: none; margin: 0; padding: 0; }
.category-tree ul ul { padding-left: .9rem; border-left: 2px solid var(--line); margin: .15rem 0 .25rem .2rem; }
.category-tree a { display: block; padding: .2rem 0; text-decoration: none; color: var(--ink); }
.category-tree a:hover { color: var(--ocean); }
.category-tree a.is-current { font-weight: 700; color: var(--ocean); }

.results { min-width: 0; transition: opacity .15s; }
.results.is-loading { opacity: .5; }
.results-toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.results-count { margin: 0; color: var(--muted); }
.sort { display: flex; align-items: center; gap: .5rem; margin-left: auto; font-size: .95rem; }
.sort select { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }

.chips { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem;
    border-radius: 999px; background: var(--sun-soft); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500;
}
.chip:hover { background: var(--sun); color: var(--ink); }
.chip-clear { font-size: .9rem; }

.empty-results, .empty-page { padding: 3rem 0; }
.empty-results h2 { font-size: 1.3rem; }

.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span {
    min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; display: inline-grid; place-items: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
}
.pagination a:hover { border-color: var(--ocean); color: var(--ocean); }
.pagination .is-current { background: var(--ocean); border-color: var(--ocean); color: var(--white); font-weight: 700; }
.pagination .gap { border: 0; min-width: 1rem; padding: 0; }

/* ---------- Product cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: var(--gap); }

.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.product-card:hover { border-color: #b3c6ca; }
.product-card-media { position: relative; display: block; aspect-ratio: 1; background: var(--mist); }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.badge-sale {
    display: inline-block; padding: .2rem .5rem; border-radius: var(--radius-sm);
    background: var(--sale); color: var(--white); font-size: .8rem; font-weight: 700;
}
.product-card-media .badge-sale { position: absolute; top: .6rem; left: .6rem; }

.product-card-body { display: flex; flex-direction: column; flex: 1; padding: .9rem 1rem 1rem; }
.product-card-brand { font-size: .85rem; color: var(--muted); margin-bottom: .2rem; }
.product-card-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.35; margin-bottom: .5rem; }
.product-card-title a { color: var(--ink); text-decoration: none; }
.product-card-title a:hover { color: var(--ocean); text-decoration: underline; }
.product-card-action { margin-top: auto; padding-top: .5rem; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin-bottom: .35rem; }
.price-from { font-size: .85rem; color: var(--muted); }
.price-now { font-weight: 700; font-size: 1.15rem; }
.price-now.is-sale { color: var(--sale); }
.price-was { color: var(--muted); font-size: .95rem; }

.stock { font-size: .9rem; margin-bottom: .25rem; display: flex; align-items: center; gap: .4rem; }
.stock::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.stock:empty::before { display: none; }
.stock-in { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--sale); }

.card-add { display: grid; grid-template-columns: 4.25rem 1fr; gap: .5rem; }
.card-add .form-msg { grid-column: 1 / -1; }
.qty-input { width: 100%; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; -moz-appearance: textfield; }
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-msg { margin: 0; font-size: .9rem; color: var(--sale); }
.form-msg:empty { display: none; }

/* ---------- Product page ---------- */

.product-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }

.gallery-stage { aspect-ratio: 1; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; }
.gallery-thumb { flex: 0 0 4.5rem; aspect-ratio: 1; padding: .25rem; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--mist); cursor: pointer; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.is-active { border-color: var(--ocean); }

.buy-brand { display: inline-block; font-weight: 600; margin-bottom: .35rem; text-decoration: none; }
.product-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.product-codes { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; color: var(--muted); font-size: .9rem; }
.product-codes strong { color: var(--ink); font-weight: 600; }

.price-block { margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--sun); background: var(--sun-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.price-lg .price-now { font-size: 2rem; font-family: var(--font-head); }
.price-lg .price-was { font-size: 1.1rem; }
.price-per, .sale-ends, .tax-note { margin: 0; font-size: .92rem; }
.sale-ends { color: var(--sale); font-weight: 600; }
.tax-note { color: var(--muted); }

.option-group { border: 0; margin: 0 0 1.1rem; padding: 0; }
.option-group legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.option-chosen { font-weight: 400; color: var(--muted); }
.option-values, .unit-options { display: flex; flex-wrap: wrap; gap: .5rem; }

.option-btn {
    min-width: 3rem; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); cursor: pointer; font-weight: 500;
}
.option-btn:hover { border-color: var(--ocean); }
.option-btn.is-selected, .unit-option:has(input:checked) { border-color: var(--ocean); background: var(--ocean); color: var(--white); }
.swatch {
    width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--line);
    background: var(--swatch); cursor: pointer; box-shadow: inset 0 0 0 3px var(--white);
}
.swatch.is-selected { border-color: var(--ocean); box-shadow: inset 0 0 0 3px var(--white), 0 0 0 2px var(--ocean); }
.option-btn.is-out, .swatch.is-out { opacity: .45; }
.option-btn.is-out { text-decoration: line-through; }
.swatch.is-out { background-image: linear-gradient(135deg, transparent 46%, var(--muted) 46%, var(--muted) 54%, transparent 54%); }
.option-btn:disabled, .swatch:disabled { opacity: .25; cursor: not-allowed; }

.unit-option {
    display: flex; flex-direction: column; padding: .5rem .9rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
    cursor: pointer; line-height: 1.3;
}
.unit-option input { position: absolute; opacity: 0; pointer-events: none; }
.unit-option:hover { border-color: var(--ocean); }
.unit-option:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.unit-name { font-weight: 600; }
.unit-size { font-size: .85rem; opacity: .8; }

.buy-row { display: flex; gap: .75rem; margin: .75rem 0 .5rem; }
.qty-stepper { display: flex; border: 2px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper .qty-input { width: 4.5rem; border: 0; border-radius: 0; font-weight: 600; }
.qty-btn { width: 2.75rem; border: 0; background: var(--mist); font-size: 1.2rem; cursor: pointer; }
.qty-btn:hover { background: var(--line); }
.buy-btn { flex: 1; }
.short-desc { margin-top: 1.25rem; color: var(--muted); max-width: 60ch; }

.product-tabs { margin: 3rem 0; }
.tab-list { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); }
.tab-list [role="tab"] {
    padding: .75rem 1.1rem; border: 0; background: none; font-weight: 600; cursor: pointer; color: var(--muted);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab-list [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }
.tab-panel { padding: 1.5rem 0; }
.long-desc { max-width: 70ch; }
.spec-table { border-collapse: collapse; width: 100%; max-width: 44rem; }
.spec-table th, .spec-table td { text-align: left; padding: .65rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; background: var(--mist); }

/* ---------- Cart panel ---------- */

.cart-panel {
    position: fixed; top: 1rem; right: 1rem; width: min(24rem, calc(100vw - 2rem)); z-index: 50;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(7, 54, 84, .22); padding: 1.1rem 1.25rem 1.25rem;
    animation: panel-in .2s ease-out;
}
@keyframes panel-in { from { transform: translateY(-8px); opacity: 0; } }
.cart-panel[hidden] { display: none; }
.cart-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.cart-panel-head h2 { font-size: 1.1rem; margin: 0; }
.cart-panel-item { display: flex; gap: .85rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.cart-panel-item img { width: 4rem; height: 4rem; object-fit: contain; background: var(--mist); border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-panel-item p { margin: 0; }
.cart-panel-item .item-name { font-weight: 600; }
.cart-panel-item .item-meta { font-size: .9rem; color: var(--muted); }
.cart-panel-total { display: flex; justify-content: space-between; padding: .9rem 0 .25rem; font-size: 1.05rem; }
.cart-panel-note { font-size: .85rem; color: var(--muted); }
.cart-panel-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

/* ---------- Information pages ---------- */

.info-page { padding-bottom: 2rem; }
.info-page h1 { margin-bottom: 1.25rem; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35rem; }
.contact-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.contact-cards li { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.contact-cards strong { display: block; color: var(--ocean); }
.contact-cards .fc-icon { flex: 0 0 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.contact-cards .fc-icon .icon { width: 1.2rem; height: 1.2rem; fill: var(--ocean-deep); }

/* ---------- Cart and quotes ---------- */

.cart-page { padding-bottom: 3rem; }
.cart-page > h1 { margin-bottom: 1.25rem; }
.cart-page > .flash { margin: 0 0 1rem; }
.narrow-text { max-width: 60ch; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 2rem; align-items: start; }
.cart-lines.is-loading { opacity: .6; pointer-events: none; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .85rem; color: var(--muted); padding: .5rem; border-bottom: 2px solid var(--line); }
.cart-table td { padding: .9rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-thumb { width: 4.5rem; }
.cart-thumb img { width: 4rem; height: 4rem; object-fit: contain; background: var(--mist); border-radius: var(--radius-sm); }
.cart-item { min-width: 12rem; }
.cart-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-name:hover { color: var(--ocean); text-decoration: underline; }
.cart-meta { display: block; font-size: .88rem; color: var(--muted); }
.cart-meta.stock-low { color: var(--warn); font-weight: 600; }
.cart-table .price-was { display: block; font-size: .85rem; }
.cart-qty { width: 5.5rem; }
.cart-line-total { font-weight: 700; }
.cart-remove:hover { background: #fbe9e7; color: var(--sale); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; }
.js .js-hide { display: none; }

.cart-summary { position: sticky; top: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; gap: .75rem; }
.cart-summary h2 { font-size: 1.2rem; margin: 0; }
.cart-summary dl { margin: 0; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: .35rem 0; }
.cart-summary dt { color: var(--muted); }
.cart-summary dd { margin: 0; font-weight: 600; }
.cart-total { border-top: 2px solid var(--line); margin-top: .35rem; padding-top: .6rem !important; }
.cart-total dt, .cart-total dd { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.cart-note { margin: 0; font-size: .88rem; color: var(--muted); }
.mini-lines { list-style: none; margin: 0; padding: 0; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.mini-lines small { color: var(--muted); }

.quote-form { max-width: 36rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quote-done { max-width: 48rem; }
.quote-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin: 0 0 1.25rem; }
.quote-facts div { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--cream); }
.quote-facts dt { font-size: .85rem; color: var(--muted); }
.quote-facts dd { margin: 0; font-weight: 600; }
.quote-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .quote-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .cart-table thead { display: none; }
    .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; }
    .cart-table tr { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; column-gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .cart-table td { border: 0; padding: .15rem 0; }
    .cart-table .cart-thumb { grid-row: span 4; }
    .cart-table td.num { text-align: left; }
    .cart-table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
    .cart-table td:last-child { position: absolute; top: .6rem; right: 0; }
}

/* ---------- Checkout and order pages ---------- */

.checkout-steps { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.checkout-step { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.checkout-step h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin-bottom: 1rem; }
.step-no { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--ocean); color: var(--white); font-size: .95rem; }
.method-list { display: flex; flex-direction: column; gap: .6rem; }
.method { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.method:hover { border-color: #9fb6c4; }
.method:has(input:checked) { border-color: var(--ocean); background: #f4f8fb; }
.method input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--ocean); flex-shrink: 0; }
.method-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.method-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.method-fee { font-weight: 700; white-space: nowrap; }
.method-fee.is-tbc { font-weight: 500; color: var(--muted); }
.method-desc { font-size: .9rem; color: var(--muted); }
.checkout-summary .btn-lg { margin-top: .25rem; }

.placed-banner { padding: 1.5rem 1.6rem; margin-bottom: 1.5rem; border-radius: var(--radius); background: #e3f3ea; border-left: 5px solid var(--ok); }
.placed-banner h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.placed-banner p { margin: .35rem 0 0; }
.order-page > h1 { margin-bottom: 1.25rem; }
.order-status { margin-bottom: 1.5rem; }
.status-steps { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .4rem; counter-reset: step; }
.status-steps li { position: relative; padding: .6rem .5rem .6rem 2.2rem; border-radius: var(--radius-sm); background: var(--mist); font-size: .88rem; font-weight: 600; color: var(--muted); counter-increment: step; }
.status-steps li::before { content: counter(step); position: absolute; left: .55rem; top: 50%; transform: translateY(-50%); width: 1.3rem; height: 1.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-size: .75rem; }
.status-steps .is-done { background: #e3f3ea; color: var(--ok); }
.status-steps .is-done::before { content: "✓"; background: var(--ok); color: var(--white); }
.status-steps .is-current { background: var(--sun-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--sun); }
.pay-box { margin-bottom: 1.25rem; padding: 1.1rem 1.3rem; border-radius: var(--radius); background: var(--sun-soft); border-left: 5px solid var(--sun); }
.pay-box h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.pay-box p { margin: .35rem 0 0; }
.invoice-link { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.summary-sub { font-family: var(--font-body); font-size: .95rem; margin: .75rem 0 .15rem; }
.cart-summary p { margin: 0; }
.cancel-box { margin-top: 1.5rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.cancel-box summary { cursor: pointer; font-weight: 600; color: var(--sale); }
.cancel-box form { display: flex; flex-direction: column; gap: .75rem; margin-top: .9rem; max-width: 26rem; }
@media (max-width: 760px) {
    .status-steps { grid-template-columns: 1fr; }
}

/* ---------- Customer accounts ---------- */

.muted { color: var(--muted); }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--ocean); text-decoration: underline; cursor: pointer; }
.link-danger { color: var(--sale); }
.inline-form { display: inline; margin-left: .35rem; }

.auth-wrap { display: flex; justify-content: center; padding-top: 2.5rem; padding-bottom: 3rem; }
.auth-box {
    width: min(28rem, 100%); padding: 2rem; background: var(--white);
    border: 1px solid var(--line); border-top: 5px solid var(--sun); border-radius: var(--radius);
}
.auth-box h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.auth-sub { color: var(--muted); margin-bottom: 1.25rem; }
.auth-foot { margin: 1.25rem 0 0; text-align: center; font-size: .95rem; }
.auth-box .flash { margin: 0 0 1rem; }
.wait-status { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--sun-soft); font-weight: 500; }
.wait-status.is-done { background: #e3f3ea; color: var(--ok); }
.wait-dot { flex: 0 0 .7rem; height: .7rem; border-radius: 50%; background: var(--sun); animation: wait-pulse 1.4s ease-in-out infinite; }
@keyframes wait-pulse { 50% { opacity: .3; transform: scale(.7); } }

.form-grid { display: flex; flex-direction: column; gap: 1rem; }
.form-grid.narrow { max-width: 30rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-weight: 600; }
.form-label small { font-weight: 400; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; background: var(--white); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--ocean); outline: none; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--sale); background: #fdf4f3; }
.form-error { color: var(--sale); font-weight: 600; }
.form-note { margin: 0; font-size: .9rem; color: var(--muted); }

.account-page { padding-bottom: 3rem; }
.account-layout { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; align-items: start; }
.account-nav { position: sticky; top: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.account-hello { margin: 0 0 .75rem; }
.account-nav ul { list-style: none; margin: 0 0 .75rem; padding: 0; }
.account-nav a { display: block; padding: .5rem .65rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
.account-nav a:hover { background: var(--white); color: var(--ocean); }
.account-nav a[aria-current="page"] { background: var(--ocean); color: var(--white); }
.account-nav form { padding: 0 .65rem; }
.account-main { min-width: 0; }
.account-main h1 { margin-bottom: 1.25rem; }
.account-main > .flash { margin: 0 0 1.25rem; }
.account-section { margin-top: 2rem; }
.account-section h2 { font-size: 1.2rem; margin: 0; }

.account-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.account-card { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); }
.account-card.is-default { border-color: var(--ocean); }
.account-card h2 { font-size: 1.05rem; margin-bottom: .5rem; font-family: var(--font-body); }
.account-card p { flex: 1; }
.account-card > a { font-weight: 600; }
.tag { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 999px; background: var(--sun-soft); font-size: .75rem; vertical-align: middle; }
.card-actions { display: flex; gap: 1rem; align-items: center; }
.card-actions form { margin: 0; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; font-size: .85rem; color: var(--muted); padding: .55rem .6rem; border-bottom: 2px solid var(--line); }
.data-table td { padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table small { display: block; }
.status { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--mist); }
.status-submitted, .status-under_review { background: #fdf0d6; color: var(--warn); }
.status-approved { background: var(--sun-soft); }
.status-paid, .status-completed { background: #e3f3ea; color: var(--ok); }
.status-rejected, .status-cancelled { background: #fbe9e7; color: var(--sale); }

@media (max-width: 820px) {
    .account-layout { grid-template-columns: 1fr; }
    .account-nav { position: static; }
    .account-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ocean-deep); color: #c9d8e3; margin-top: 3rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }

/* Contact bar: echoes the bottom band of the Sunny Distributors banner */
.footer-contact-bar { background: var(--ocean); border-top: 4px solid var(--sun); }
.footer-contacts {
    list-style: none; margin: 0 auto; display: grid;
    grid-template-columns: auto auto auto minmax(0, 18rem);   /* size to content, address may wrap */
    justify-content: space-between;
    padding-top: 1.4rem; padding-bottom: 1.4rem;
}
.footer-contacts li { display: flex; align-items: center; gap: .8rem; padding: .25rem 1.1rem; min-width: 0; }
.footer-contacts li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.footer-contacts li:first-child { padding-left: 0; }
.fc-icon {
    flex: 0 0 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sun);
    display: grid; place-items: center;
}
.fc-icon svg { width: 1.25rem; height: 1.25rem; fill: var(--ocean-deep); }
.fc-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .35rem; min-width: 0; line-height: 1.35; }
.fc-label { flex-basis: 100%; font-size: .82rem; color: #a9c2d4; }
.fc-text a { font-weight: 600; white-space: nowrap; }
.footer-contacts li:last-child .fc-text a { white-space: normal; }   /* address can wrap, at spaces only */
.fc-sep { color: #a9c2d4; }

.footer-main {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
    padding-top: 2.5rem; padding-bottom: 2.25rem;
}
.footer-about { display: flex; align-items: center; gap: 1.25rem; max-width: 30rem; }
.footer-logo { flex: 0 0 6rem; width: 6rem; height: 6rem; }
.footer-tagline { margin: 0 0 .35rem; color: var(--sun); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.footer-blurb { margin: 0; font-size: .95rem; }
.footer-head { font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #c9d8e3; }
.footer-links a:hover { color: var(--sun); }

.footer-base { border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer-base-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding-top: 1rem; padding-bottom: 1.1rem; }
.footer-base p { margin: 0; }
.footer-social { display: inline-flex; align-items: center; gap: .45rem; color: #c9d8e3; }
.footer-social svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

@media (max-width: 1000px) {
    .footer-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; row-gap: 1rem; }
    .fc-text a { white-space: normal; overflow-wrap: break-word; }
    .footer-contacts li:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
    .footer-contacts { grid-template-columns: 1fr; }
    .footer-contacts li { border-left: 0 !important; padding-left: 0; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .listing-layout { grid-template-columns: 1fr; }
    .filters {
        position: fixed; inset: 0 auto 0 0; width: min(21rem, 88vw); z-index: 60;
        background: var(--white); padding: 1rem 1.25rem 2rem; overflow-y: auto;
        box-shadow: 8px 0 32px rgba(7, 54, 84, .25);
        transform: translateX(-105%); transition: transform .2s ease-out;
    }
    .filters.is-open { transform: none; }
    .filters-close, .filters-toggle { display: inline-flex; }
    .js .filter-actions { display: block; }
    body.filters-open { overflow: hidden; }
    body.filters-open::after { content: ""; position: fixed; inset: 0; background: rgba(7, 54, 84, .4); z-index: 55; }
}

@media (max-width: 820px) {
    .product-main { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .header-bar { flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between; }
    .brand img { height: 3.75rem; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .topbar-note { display: none !important; }
    .topbar-inner { justify-content: center; }
        .results-toolbar { flex-wrap: wrap; }
    .results-count { flex-basis: 100%; }
    .sort { margin-left: auto; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .product-card-body { padding: .75rem; }
    .card-add { grid-template-columns: 1fr; }
    .buy-row { flex-direction: column; }
    .qty-stepper { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}