/*
 * Premium theme + Page Builder components (public site).
 * Colours and fonts come from Aspetto > Stile globale (--c-*, --f-* variables);
 * per-element values are printed by the builder in <style id="b-css">.
 */

body.theme-premium {
    font-family: var(--f-body, 'Montserrat', Arial, sans-serif);
    color: var(--c-text, #2b2420);
    background: var(--c-background, #f6efe5);
}

.theme-premium main {
    display: block;
}

/* ---------- Sections ---------- */

.b-section {
    position: relative;
    isolation: isolate;
}

.b-section.b-has-min-h {
    display: flex;
    flex-direction: column;
    justify-content: var(--b-valign, center);
}

.b-inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 1180px);
    margin-left: auto;
    margin-right: auto;
}

.b-w-wide {
    width: min(calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)), 1440px);
}

.b-w-narrow {
    width: min(calc(100% - 2rem), 820px);
}

.b-w-full {
    width: 100%;
}

.b-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.b-bg img,
.b-bg picture,
.b-bg-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.b-bg--fixed {
    background-size: cover;
    background-attachment: fixed;
}

.b-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.b-has-bg {
    overflow: hidden;
}

.b-measure {
    margin-left: var(--b-ml, 0);
    margin-right: var(--b-mr, auto);
}

.b-anchor {
    display: block;
    position: relative;
    top: -120px;
}

.b-text {
    margin-top: 0;
    margin-bottom: 0;
}

.b-text > p:first-child {
    margin-top: 0;
}

.b-text > p:last-child {
    margin-bottom: 0;
}

.b-prose p,
.b-prose ul,
.b-prose ol {
    margin: 0 0 1em;
}

.b-credit {
    position: absolute;
    right: 12px;
    bottom: 8px;
    z-index: 3;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
}

.b-credit a {
    color: inherit;
    text-decoration: underline;
}

.b-img .b-credit {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

@media (min-width: 1025px) {
    .b-hide-d {
        display: none !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .b-hide-t {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .b-hide-m {
        display: none !important;
    }
}

/* ---------- Headings, buttons ---------- */

.b-heading {
    margin-bottom: 26px;
}

.b-heading:empty {
    display: none;
}

.b-eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.b-subtitle {
    margin-top: 6px;
}

.b-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: var(--b-justify, flex-start);
    gap: 12px;
    margin-top: 28px;
}

.b-actions:empty {
    display: none;
}

.b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: var(--b-radius, 4px);
    background: var(--c-button);
    color: var(--c-button-text);
    font-family: var(--f-button);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.b-btn--outline {
    background: transparent;
    border-color: currentColor;
}

.b-btn--link {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.b-hover-lift:hover,
.b-hover-lift:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.b-hover-glow:hover,
.b-hover-glow:focus-visible {
    box-shadow: 0 0 0 4px rgba(212, 162, 76, 0.3);
}

.b-btn:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
}

.b-btn-icon {
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
}

.b-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Hero ---------- */

.b-hero {
    color: #fff;
}

.b-hero-title {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.b-line {
    display: block;
}

.b-hero .b-subtitle {
    margin-top: 18px;
}

/* ---------- Category grid ---------- */

.b-cat-grid {
    display: grid;
    grid-template-columns: repeat(var(--b-cols, 5), minmax(0, 1fr));
    gap: var(--b-gap, 10px);
}

.b-cat-grid.b-stretch {
    display: flex;
    flex-wrap: wrap;
}

.b-cat-grid.b-stretch > .b-cat-card {
    flex: 1 1 calc((100% - (var(--b-cols, 5) - 1) * var(--b-gap, 10px)) / var(--b-cols, 5));
    min-width: 0;
}

.b-cat-card {
    position: relative;
    display: block;
    height: 148px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 4px;
    background: #1a1411;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(20, 12, 6, 0.14);
}

.b-cat-card picture,
.b-cat-card .b-cat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.b-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(11, 8, 6, 0.86) 0%, rgba(11, 8, 6, 0.38) 45%, rgba(11, 8, 6, 0) 75%);
}

.b-cat-copy {
    position: absolute;
    left: 14px;
    right: 52px;
    bottom: 12px;
    z-index: 2;
    display: grid;
    gap: 2px;
}

.b-pos-center .b-cat-copy {
    top: 50%;
    bottom: auto;
    right: 14px;
    transform: translateY(-50%);
    text-align: center;
}

.b-pos-top .b-cat-copy {
    top: 12px;
    bottom: auto;
}

.b-cat-name {
    font-weight: 700;
    line-height: 1.2;
}

.b-cat-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    width: 30px;
    height: 30px;
    color: #fff;
    transition: color 0.2s ease, transform 0.2s ease;
}

.b-zoom:hover .b-cat-img,
.b-zoom:focus-visible .b-cat-img {
    transform: scale(1.06);
}

.b-cat-card:hover .b-cat-arrow,
.b-cat-card:focus-visible .b-cat-arrow {
    color: var(--c-accent);
    transform: translateX(2px);
}

.b-cat-card:focus-visible {
    outline: 3px solid var(--c-accent);
    outline-offset: 2px;
}

/* Full-width banner card (e.g. Box degustazione closing the grid). */
.b-cat-grid > .b-cat-card--wide {
    grid-column: 1 / -1;
    height: 340px;
}

.b-cat-grid.b-stretch > .b-cat-card--wide {
    flex-basis: 100%;
}

.b-cat-card--wide::after {
    background:
        linear-gradient(90deg, rgba(11, 8, 6, 0.86) 0%, rgba(11, 8, 6, 0.52) 38%, rgba(11, 8, 6, 0) 75%),
        linear-gradient(0deg, rgba(11, 8, 6, 0.6) 0%, rgba(11, 8, 6, 0) 55%);
}

.b-cat-card--wide.b-pos-bottom .b-cat-copy {
    left: clamp(18px, 4vw, 56px);
    right: clamp(76px, 10vw, 140px);
    bottom: clamp(18px, 3.4vw, 44px);
    gap: 6px;
}

/* Title and count sizes of the banner card are in the grid's own CSS (render.php). */
.b-cat-grid .b-cat-card--wide .b-cat-arrow {
    right: clamp(18px, 4vw, 56px);
    bottom: clamp(18px, 3.4vw, 44px);
    width: clamp(38px, 4vw, 54px);
    height: clamp(38px, 4vw, 54px);
}

/* ---------- Product cards ---------- */

.b-grid {
    display: grid;
    grid-template-columns: repeat(var(--b-cols, 4), minmax(0, 1fr));
    gap: var(--b-gap, 22px);
}

.b-pcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: var(--b-card-radius, 6px);
    background: var(--c-surface);
    box-shadow: 0 10px 26px rgba(30, 20, 10, 0.07);
    text-align: left;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.b-pcard:hover {
    box-shadow: 0 16px 34px rgba(30, 20, 10, 0.12);
}

.b-pcard-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #efe6da;
}

.b-pcard-media img,
.b-pcard-media picture {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.b-pcard:hover .b-pcard-img {
    transform: scale(1.04);
}

.b-pcard-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--c-accent);
    color: #1a1411;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.b-pcard-fav {
    position: absolute;
    top: 8px;
    right: 8px;
    margin: 0;
}

.b-pcard-fav button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}

.b-pcard-fav svg {
    width: 24px;
    height: 24px;
}

.b-pcard-fav button[aria-pressed="true"] svg {
    fill: var(--c-primary);
    stroke: #fff;
}

.b-pcard-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
    padding: 14px 14px 16px;
}

.b-pcard-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.b-pcard-name {
    margin: 0;
    font-family: var(--f-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.b-pcard-name a {
    color: inherit;
    text-decoration: none;
}

.b-pcard-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: 2px 0 6px;
    color: var(--c-primary);
}

.b-unit {
    font-weight: 500;
    font-size: 0.85em;
    color: #7a6d63;
}

.b-compare {
    font-size: 0.8em;
    font-weight: 500;
    color: #8b8079;
}

.b-pcard-buy {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.b-qty {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    justify-self: center;
    width: min(100%, 150px);
    border: 1px solid var(--c-border);
    border-radius: 4px;
    background: #fbf8f4;
}

.b-qty button {
    display: grid;
    place-items: center;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--c-heading);
    cursor: pointer;
}

.b-qty button svg {
    width: 16px;
    height: 16px;
}

.b-qty output {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.b-pcard-cart {
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- Features strip ---------- */

.b-features {
    display: grid;
    grid-template-columns: repeat(var(--b-cols, 3), minmax(0, 1fr));
    gap: 18px 0;
}

.b-feat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    padding: 6px 22px;
    color: inherit;
    text-decoration: none;
}

.b-feat--stacked .b-feat {
    flex-direction: column;
    text-align: center;
}

.b-dividers > .b-feat + .b-feat {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.b-feat-icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    color: var(--c-accent);
}

.b-feat-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.b-feat-title {
    display: block;
}

/* ---------- Promo banner ---------- */

.b-promo-banner {
    color: #fff;
}

.b-promo-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.1em 0.45em;
    margin: 0;
}

.b-script {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    text-transform: none;
}

/* ---------- Split, media ---------- */

.b-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--b-gap, 56px);
}

.b-split-40 {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
}

.b-split-60 {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
}

.b-split--left .b-split-media {
    order: -1;
}

.b-heading--left {
    text-align: left;
}

.b-img {
    position: relative;
    overflow: hidden;
}

.b-img img,
.b-img picture {
    width: 100%;
    height: 100%;
    display: block;
}

.b-img--empty,
.b-video--empty {
    display: grid;
    place-items: center;
    min-height: 200px;
    border: 2px dashed var(--c-border);
    color: #7a6d63;
}

.b-figure {
    margin: 0;
}

.b-figure figcaption,
.b-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #6f6259;
}

.b-video {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0b0a0a;
}

.b-video video,
.b-video iframe,
.b-video picture,
.b-video .b-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.b-video-poster--plain {
    background: radial-gradient(circle at 30% 30%, #3a1a14, #0b0a0a);
}

.b-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(11, 10, 10, 0.55);
    color: #fff;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.b-video-play svg {
    width: 100%;
    height: 100%;
}

/* ---------- Carousels and slider ---------- */

.b-carousel {
    position: relative;
}

.b-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--b-per, 3) - 1) * var(--b-gap, 20px)) / var(--b-per, 3));
    gap: var(--b-gap, 20px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.b-track::-webkit-scrollbar {
    display: none;
}

.b-track--full {
    grid-auto-columns: 100%;
    gap: 0;
}

.b-slide {
    min-width: 0;
    scroll-snap-align: start;
}

.b-car-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1411;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    cursor: pointer;
}

.b-car-btn svg {
    width: 20px;
    height: 20px;
}

.b-car-prev {
    left: -14px;
}

.b-car-prev svg {
    transform: rotate(180deg);
}

.b-car-next {
    right: -14px;
}

.b-carousel[data-scrollable="false"] .b-car-btn {
    display: none;
}

.b-hslide {
    position: relative;
    height: 460px;
    overflow: hidden;
    color: #fff;
}

.b-hslide picture,
.b-hslide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-hslide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.b-hslide-copy {
    position: absolute;
    left: clamp(20px, 6vw, 72px);
    right: 20px;
    bottom: clamp(24px, 8%, 64px);
    z-index: 2;
    max-width: 620px;
    text-align: left;
}

.b-slide-text {
    margin: 10px 0 0;
}

.b-hslide-copy .b-btn {
    margin-top: 20px;
}

.b-card {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: inherit;
    text-decoration: none;
    text-align: left;
}

.b-card picture,
.b-card-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.b-card-body {
    padding: 16px 18px 20px;
}

.b-card-title {
    margin: 0 0 6px;
}

.b-card-text {
    margin: 0;
}

/* ---------- Gallery, FAQ, reviews, contact, map ---------- */

.b-gallery {
    display: grid;
    grid-template-columns: repeat(var(--b-cols, 4), minmax(0, 1fr));
    gap: var(--b-gap, 10px);
}

.b-gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.b-gallery-item a,
.b-gallery-item picture,
.b-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.b-gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 13px;
    text-align: left;
}

.b-lightbox {
    width: min(94vw, 1200px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
}

.b-lightbox::backdrop {
    background: rgba(8, 6, 5, 0.9);
}

.b-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    margin: 0 auto;
    object-fit: contain;
}

.b-lightbox button {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
}

.b-faq {
    display: grid;
    gap: 10px;
    text-align: left;
}

.b-faq-item {
    border: 1px solid var(--c-border);
    border-radius: 6px;
    background: var(--c-surface);
}

.b-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    cursor: pointer;
    list-style: none;
}

.b-faq-item summary::-webkit-details-marker {
    display: none;
}

.b-faq-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: var(--c-accent);
    transition: transform 0.2s ease;
}

.b-faq-item[open] .b-faq-icon {
    transform: rotate(45deg);
}

.b-faq-item .b-prose {
    padding: 0 18px 16px;
}

.b-reviews {
    text-align: left;
}

.b-review {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--c-border);
    border-radius: 6px;
}

.b-stars {
    color: var(--c-accent);
    letter-spacing: 2px;
}

.b-review blockquote {
    margin: 10px 0 14px;
}

.b-review figcaption {
    display: grid;
    gap: 2px;
    font-size: 14px;
}

.b-contact {
    display: grid;
    gap: 32px;
    text-align: left;
}

.b-contact--form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.b-contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.b-contact-list svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--c-accent);
}

.b-contact-form {
    display: grid;
    gap: 12px;
}

.b-contact-form label {
    display: grid;
    gap: 4px;
    font-weight: 600;
}

.b-map {
    position: relative;
    height: 380px;
    overflow: hidden;
    background: #e9e1d6;
}

.b-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.b-map-consent {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.b-divider {
    position: relative;
    height: var(--b-thick, 1px);
    background: var(--b-line, var(--c-border));
}

.b-divider--ornament {
    background: linear-gradient(90deg, transparent, var(--b-line) 20%, var(--b-line) 80%, transparent);
}

.b-divider--ornament span {
    position: absolute;
    top: 50%;
    left: 50%;
    padding: 0 12px;
    background: var(--c-background);
    color: var(--b-line);
    font-size: 12px;
    transform: translate(-50%, -50%);
}

.b-divider--dots {
    height: 6px;
    background: radial-gradient(circle, var(--b-line) 1.5px, transparent 2px) 0 0 / 14px 6px repeat-x;
}

.b-count {
    margin: 12px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.b-page-hero {
    color: #fff;
}

.b-empty-section {
    min-height: 1px;
}

/* ---------- Global: top bar ---------- */

.b-topbar {
    position: relative;
    z-index: 130;
    color: #fff;
}

.b-topbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
}

.b-topbar--center {
    justify-content: center;
}

.b-topbar-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-topbar-item {
    display: flex;
    align-items: center;
}

.b-topbar-item + .b-topbar-item::before {
    content: '';
    width: 1px;
    height: 14px;
    margin: 0 18px;
    background: currentColor;
    opacity: 0.55;
}

.b-topbar a {
    color: inherit;
    text-decoration: none;
}

.b-topbar-item a,
.b-topbar-item > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.b-topbar-icon {
    width: 20px;
    height: 20px;
}

.b-topbar-right {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 20px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

@media (max-width: 1024px) and (min-width: 641px) {
    .b-topbar-right {
        gap: 14px;
    }

    .b-topbar-item + .b-topbar-item::before {
        margin: 0 12px;
    }
}

.b-topbar-icon-link {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
}

.b-topbar-icon-link svg {
    width: 20px;
    height: 20px;
}

.b-topbar-count {
    position: absolute;
    top: -2px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--c-accent);
    color: #1a1411;
    font-size: 10px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .b-topbar-row {
        justify-content: center;
        text-align: center;
    }

    .b-topbar-right {
        display: none;
    }

    .b-topbar--scroll .b-topbar-items {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
}

/* ---------- Global: footer ---------- */

.b-footer {
    color: #d9cfc2;
}

.b-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.25fr);
    gap: 40px;
    padding-bottom: 40px;
}

.b-footer-brand {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
}

.b-footer-logo {
    width: 96px;
    height: auto;
    border-radius: 6px;
}

.b-footer-name {
    font-family: var(--f-heading);
    font-size: 26px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--c-accent);
}

.b-footer-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.b-footer-desc {
    font-size: 14px;
}

.b-footer-company {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    line-height: 1.7;
    color: #b9aea2;
}

.b-footer-company strong {
    color: #e8dfd4;
}

.b-footer-heading {
    margin: 0 0 14px;
    font-family: var(--f-body);
}

.b-footer-links {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.b-footer-links a {
    color: #d9cfc2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.b-footer-news p {
    margin: 0 0 14px;
    font-size: 14px;
}

.b-news-row {
    display: flex;
    overflow: hidden;
    border-radius: 4px;
    background: #fff;
}

.b-news-row .field {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #1a1411;
    font-size: 15px;
}

.b-news-row button {
    display: grid;
    place-items: center;
    width: 48px;
    border: 0;
    background: var(--c-accent);
    color: #1a1411;
    cursor: pointer;
}

.b-news-row button svg {
    width: 20px;
    height: 20px;
}

.b-news-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #b9aea2;
}

.b-news-consent a {
    color: inherit;
    text-decoration: underline;
}

.b-socials {
    display: flex;
    gap: 14px;
    margin-top: 18px;
}

.b-socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
}

.b-socials svg {
    width: 18px;
    height: 18px;
}

.b-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #a99d91;
}

.b-footer-bottom p {
    margin: 0;
}

.b-footer-bottom a {
    color: inherit;
}

.b-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.b-payments span {
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
    .b-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .b-car-prev {
        left: 4px;
    }

    .b-car-next {
        right: 4px;
    }

    .b-features {
        gap: 18px 0;
    }
}

@media (max-width: 760px) {
    .b-split,
    .b-split-40,
    .b-split-60,
    .b-contact--form {
        grid-template-columns: minmax(0, 1fr);
    }

    .b-stack-media-first .b-split-media {
        order: -1;
    }

    .b-stack-text-first .b-split-media {
        order: 2;
    }
}

@media (max-width: 640px) {
    .b-dividers > .b-feat + .b-feat {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 18px;
    }

    .b-feat {
        justify-content: flex-start;
        padding: 0 4px;
    }

    .b-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .b-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .b-pcard-body {
        padding: 10px 10px 12px;
    }

    .b-pcard-cart {
        font-size: 11px;
        letter-spacing: 0.02em;
        padding: 10px 6px;
    }

    .b-pcard-cart .b-btn-icon {
        display: none;
    }

    .b-cat-copy {
        left: 10px;
        right: 42px;
        bottom: 10px;
    }

    .b-cat-arrow {
        width: 26px;
        height: 26px;
        right: 10px;
        bottom: 10px;
    }

    .b-actions {
        margin-top: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .b-btn,
    .b-cat-img,
    .b-pcard-img,
    .b-track {
        transition: none;
        scroll-behavior: auto;
    }
}

/* ---------- Existing storefront pages in the premium palette ---------- */

.theme-premium :where(.page-hero h1, .storefront-section-title h2, .storefront-product-summary h1, .storefront-panel h2, .storefront-panel h3,
    .storefront-guide-card h3, .storefront-filter-group h3, .product-title, .storefront-category-visual h3) {
    font-family: var(--f-heading);
}

.theme-premium .button {
    border-radius: var(--b-radius, 4px);
    background: var(--c-button);
    color: var(--c-button-text);
    box-shadow: none;
}

.theme-premium .button-secondary {
    background: transparent;
    color: var(--c-heading);
    border: 1px solid var(--c-border);
}

.theme-premium .button-ghost {
    background: transparent;
    color: var(--c-primary);
    border: 1px solid var(--c-primary);
}

.theme-premium .storefront-product-card,
.theme-premium .storefront-panel,
.theme-premium .storefront-product-summary,
.theme-premium .storefront-product-hero-gallery,
.theme-premium .content-card,
.theme-premium .summary-card,
.theme-premium .form-card {
    border-radius: var(--b-card-radius, 6px);
    border-color: var(--c-border);
    background: var(--c-surface);
}

.theme-premium .eyebrow {
    color: var(--c-accent);
}

.theme-premium .page-hero-storefront .page-hero-panel {
    border-radius: var(--b-card-radius, 6px);
    background: linear-gradient(135deg, #0b0a0a, #2a0d10 60%, var(--c-primary) 100%);
}

.theme-premium .storefront-mobile-bar {
    background: rgba(11, 10, 10, 0.97);
}
