/*
Theme Name: B2R-GS-THEME
Theme URI: https://example.com/masala-export
Author: Custom AI-assisted theme
Description: B2R Venture custom export theme with product catalogue, blog, gallery and quote enquiries.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: masala-export
Tags: custom-logo, custom-menu, featured-images, translation-ready, wide-blocks
*/

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;500;600;700&display=swap');


@font-face {
    font-family: 'Zolina';
    src: url('assets/fonts/Zolina.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-heading: 'Zolina', Georgia, "Times New Roman", serif;
    --font-body: 'Lato', sans-serif;
}

:root {
    --mx-green: #244734;
    --mx-green-dark: #173326;
    --mx-gold: #d4a84f;
    --mx-ivory: #f6f0e4;
    --mx-cream: #fffdf8;
    --mx-terracotta: #8b392c;
    --mx-ink: #222820;
    --mx-muted: #6d746b;
    --mx-border: #e7dfd0;
    --mx-radius: 18px;
    --mx-shadow: 0 14px 40px rgba(23, 51, 38, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--mx-cream);
    color: var(--mx-ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mx-green); text-decoration: none; }
a:hover { color: var(--mx-terracotta); }
button, input, textarea, select { font: inherit; }
button, .button, .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: 999px;
    background: var(--mx-green);
    color: #fff;
    padding: 13px 23px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
button:hover, .button:hover, .wp-block-button__link:hover {
    background: var(--mx-green-dark);
    color: #fff;
    transform: translateY(-1px);
}
.button--outline {
    background: transparent;
    color: var(--mx-green);
    border: 1px solid var(--mx-green);
}
.button--outline:hover { color: #fff; }
.container { width: min(1480px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--mx-terracotta);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow:before { content: ""; width: 28px; height: 2px; background: var(--mx-gold); }
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.15;
    color: var(--mx-green-dark);
    margin: 0 0 18px;
    font-weight: 600;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.025em; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1rem; }
.section { padding: 88px 0; }
.section--ivory { background: var(--mx-ivory); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading p { color: var(--mx-muted); max-width: 620px; }

/* Header and navigation */
.top-bar { background: var(--mx-green-dark); color: #fff; font-size: .82rem; }
.top-bar-inner {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.top-bar a { color: #fff; }
.top-bar-contact { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-bar-markets { color: #e6f3e7; letter-spacing: .02em; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mx-border);
}
.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.site-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-brand img { max-height: 54px; width: auto; }
.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--mx-green-dark);
    line-height: 1.1;
}
.brand-tagline {
    display: block;
    font: .72rem 'Lato', sans-serif;
    color: var(--mx-muted);
    margin-top: 5px;
    letter-spacing: .05em;
}
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.primary-nav a { font-size: .91rem; font-weight: 700; color: var(--mx-ink); }
.primary-nav a:hover { color: var(--mx-terracotta); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: var(--mx-green); padding: 10px 14px; }

/* Homepage hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--mx-green-dark);
    color: #fff;
    padding: 95px 0 88px;
}
.hero:after {
    content: "";
    position: absolute;
    inset: 0 0 0 45%;
    opacity: .19;
    background: radial-gradient(ellipse at 70% 45%, #d4a84f 0, transparent 42%),
                radial-gradient(ellipse at 90% 85%, #8b392c 0, transparent 38%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
    gap: 55px;
}
.hero h1 { color: #fff; max-width: 720px; }
.hero p { font-size: 1.1rem; color: #e4e9e2; max-width: 620px; }
.hero .eyebrow { color: #f0cb79; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .button { background: var(--mx-gold); color: #1f3025; }
.hero .button:hover { background: #e3bb69; }
.hero .button--outline { background: transparent; border-color: #d9e1d8; color: #fff; }

.hero-art {
    position: relative;
    min-height: 390px;
    height: 390px;
    padding: 0;
    border-radius: 48% 48% 20px 20px;
    overflow: visible;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-art > img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}
.hero-art--has-image { overflow: visible; }
.hero-art-placeholder {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-align: center;
    color: #f1dfb7;
    padding: 35px;
}
.hero-art-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(16,43,31,.18), rgba(16,43,31,.35));
    border-radius: inherit;
    box-sizing: border-box;
}
.hero-art-overlay h2 {
    margin: 0;
    max-width: 24ch;
    color: #f5d9a0;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    line-height: 1.45;
}
.hero-art-stars {
    margin-top: 12px;
    color: #f5d9a0;
    font-size: 24px;
    letter-spacing: 5px;
}
.hero-stamp {
    position: absolute;
    z-index: 2;
    bottom: 22px;
    left: -24px;
    background: var(--mx-ivory);
    color: var(--mx-green);
    border-radius: 50%;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .9rem;
    line-height: 1.25;
    box-shadow: var(--mx-shadow);
    border: 4px solid var(--mx-green-dark);
    padding: 8px;
}
.hero-stamp--logo { padding: 0; overflow: hidden; }
}

.hero-stamp--logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--mx-border); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 23px 0; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--mx-green); font-size: .92rem; }
.trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--mx-ivory);
    color: var(--mx-terracotta);
    font-size: 1.1rem;
}

/* Cards and grids */
.grid { display: grid; gap: 24px; }
.grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card, .category-card {
    background: #fff;
    border: 1px solid var(--mx-border);
    border-radius: var(--mx-radius);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.product-card:hover, .category-card:hover { transform: translateY(-4px); box-shadow: var(--mx-shadow); }
.product-image { aspect-ratio: 4 / 3; background: var(--mx-ivory); overflow: hidden; display: block; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-image-placeholder {
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--mx-terracotta);
    font-family: Georgia, serif;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #f7f0e3, #ead8b7);
}
.product-card-content { padding: 22px; }
.product-card h3 { margin-bottom: 8px; }
.product-card p { color: var(--mx-muted); font-size: .93rem; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: .9rem; }
.category-card { padding: 25px 20px; text-align: center; background: var(--mx-ivory); }
.category-symbol {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: #fff;
    color: var(--mx-terracotta);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    border: 1px solid var(--mx-border);
}
.category-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.category-card p { font-size: .9rem; color: var(--mx-muted); margin: 0; }
.category-featured-image {
    display: block;
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 0 15px;
}

/* About section */
.split-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; }
.image-panel { min-height: 400px; border-radius: var(--mx-radius); background: var(--mx-ivory); overflow: hidden; }
.image-panel img { width: 100%; height: 100%; min-height: 400px; object-fit: cover; }
.image-panel-placeholder {
    min-height: 400px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 40px;
    color: var(--mx-green);
    font-family: Georgia, serif;
    font-size: 1.5rem;
    background: linear-gradient(145deg, #f5e8cb, #d7b87a);
}
.check-list { list-style: none; padding: 0; margin: 25px 0; }
.check-list li { position: relative; padding: 0 0 12px 30px; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--mx-terracotta); font-weight: 900; }

/* Process section */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: steps; }
.process-step { padding: 24px; border-top: 2px solid var(--mx-gold); background: rgba(255,255,255,.55); counter-increment: steps; }
.process-step:before { content: "0" counter(steps); display: block; font-family: Georgia, serif; font-size: 1.6rem; color: var(--mx-terracotta); margin-bottom: 15px; }

/* Enquiry call-to-action and form */
.cta-band {
    background: var(--mx-green);
    color: #fff;
    padding: 54px;
    border-radius: var(--mx-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 10px; }
.cta-band p { color: #e0e8df; margin: 0; }
.cta-band .button { background: var(--mx-gold); color: var(--mx-green-dark); white-space: nowrap; }
.quote-section { background: var(--mx-ivory); padding: 35px; border-radius: var(--mx-radius); margin-top: 35px; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 700; font-size: .9rem; color: var(--mx-green-dark); }
.form-field input, .form-field textarea, .form-field select {
    width: 100%;
    border: 1px solid #d5cebf;
    border-radius: 9px;
    padding: 12px 13px;
    background: #fff;
    color: var(--mx-ink);
}
.form-field textarea { min-height: 125px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--mx-gold); outline-offset: 1px; }
.form-notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; background: #e7f3e6; color: #24542d; }
.form-notice--error { background: #fae6e1; color: #7a251a; }

/* Footer */
.site-footer { background: #14291e; color: #e1e7e0; padding: 65px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-size: 1.2rem; color: #f3d58f; }
.site-footer p, .site-footer li, .site-footer a { color: #d1dbd1; font-size: .92rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    margin-top: 40px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #b8c5b8;
    font-size: .85rem;
}

/* Inner pages and product detail */
.page-hero { padding: 58px 0; background: var(--mx-ivory); border-bottom: 1px solid var(--mx-border); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 12px 0; }
.breadcrumbs { font-size: .85rem; color: var(--mx-muted); margin-bottom: 12px; }
.content-area { padding: 55px 0 85px; }
.content-area .container { max-width: 1480px; }
.content-area h2, .content-area h3 { margin-top: 1.5em; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.catalogue-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 30px; align-items: start; }
.catalogue-sidebar {
    background: #fff;
    border: 1px solid var(--mx-border);
    border-radius: var(--mx-radius);
    padding: 22px;
    position: sticky;
    top: 110px;
}
.catalogue-sidebar h2 { font-size: 1.35rem; margin-bottom: 15px; }
.catalogue-sidebar ul { list-style: none; padding: 0; margin: 0; }
.catalogue-sidebar li { margin: 0; border-bottom: 1px solid var(--mx-border); }
.catalogue-sidebar li:last-child { border-bottom: 0; }
.catalogue-sidebar a { display: block; padding: 10px 0; color: var(--mx-ink); font-weight: 600; }
.catalogue-sidebar a:hover, .catalogue-sidebar a.is-active { color: var(--mx-terracotta); }
.catalogue-sidebar a.is-active { font-weight: 800; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; align-items: start; }
.product-detail-image { border-radius: var(--mx-radius); overflow: hidden; background: var(--mx-ivory); }
.product-detail-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-main-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.product-detail-image .product-image-placeholder { min-height: 420px; }
.product-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 25px 0; }
.meta-item { padding: 15px; background: var(--mx-ivory); border-radius: 10px; }
.meta-item strong { display: block; color: var(--mx-green); font-size: .85rem; }
.meta-item span { font-size: .95rem; }
.product-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.product-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--mx-ivory); }
.product-gallery button { border: 2px solid transparent; background: transparent; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; }
.product-gallery button.is-active { border-color: var(--mx-gold); }
.product-gallery button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pagination { display: flex; gap: 8px; margin-top: 35px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 9px 14px; border: 1px solid var(--mx-border); border-radius: 8px; }
.pagination .current { background: var(--mx-green); color: #fff; }
.empty-state { padding: 35px; background: var(--mx-ivory); border-radius: var(--mx-radius); text-align: center; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.alignwide { max-width: 1480px; margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 15px; }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; }

/* Homepage product gallery and blog images */
.home-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-gallery-item { position: relative; overflow: hidden; border-radius: var(--mx-radius); background: var(--mx-ivory); aspect-ratio: 4 / 3; }
.home-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.home-gallery-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 13px;
    background: rgba(23,51,38,.88);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
}
.blog-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mx-ivory); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive layouts */
@media (max-width: 980px) {
    .top-bar-inner { padding-top: 7px; padding-bottom: 7px; }
    .top-bar-markets { display: none; }
    .primary-nav {
        display: none;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        background: var(--mx-cream);
        padding: 20px;
        border-bottom: 1px solid var(--mx-border);
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; }
    .menu-toggle { display: inline-flex; }
    .header-actions > .button { display: none; }
    .hero-inner { grid-template-columns: 1fr .8fr; gap: 30px; }
    .hero-art { min-height: 310px; }
    .hero-art > img { height: 310px; }
    .grid--categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .catalogue-layout { grid-template-columns: 1fr; gap: 20px; }
    .catalogue-sidebar { position: static; }
    .catalogue-sidebar ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
    .catalogue-sidebar h2 { font-size: 1.2rem; }
    .category-featured-image { height: 135px; }
}
@media (max-width: 700px) {
    .top-bar-contact { gap: 10px; }
    .top-bar-contact span:first-child { display: none; }
    .container { width: calc(100% - 32px); max-width: 1480px; }
    .section { padding: 60px 0; }
    .hero { padding: 65px 0; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-art { min-height: 260px; max-width: 430px; width: 100%; margin: 10px auto 0; }
    .hero-art > img { height: 260px; }
    .hero-art-overlay { padding: 18px; }
    .hero-art-overlay h2 { font-size: 1.15rem; }
    .hero-stamp { width: 88px; height: 88px; font-size: .75rem; left: -10px; bottom: 12px; }
    .hero-stamp--logo { padding: 0; }
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .product-card-content { padding: 15px; }
    .product-card h3 { font-size: 1.15rem; }
    .product-card .button { padding: 10px 14px; font-size: .85rem; }
    .split-section, .product-detail { grid-template-columns: 1fr; gap: 30px; }
    .image-panel, .image-panel img, .image-panel-placeholder { min-height: 280px; }
    .cta-band { padding: 30px; align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-bottom { flex-direction: column; }
    .quote-form { grid-template-columns: 1fr; }
    .form-field--full { grid-column: auto; }
    .product-meta { grid-template-columns: 1fr 1fr; }
    .archive-toolbar { align-items: flex-start; flex-direction: column; }
    .home-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-gallery { gap: 7px; }
}
@media (max-width: 430px) {
    .grid--products { grid-template-columns: 1fr; }
    .grid--categories { grid-template-columns: 1fr 1fr; }
    .trust-inner { grid-template-columns: 1fr 1fr; }
    .trust-item { font-size: .8rem; }
    .hero-actions .button { width: 100%; }
    .product-meta { grid-template-columns: 1fr; }
    .header-inner { min-height: 72px; }
    .primary-nav { top: 72px; }
}
/* Global typography weight correction */
body,
p,
li,
label,
input,
textarea,
select,
small,
.entry-content,
.product-description,
.product-summary,
.product-card p {
    font-weight: 400;
}

nav,
button,
.button,
input[type="submit"] {
    font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6,
.product-card h3,
.product-title {
    font-weight: 600;
}

strong,
b {
    font-weight: 600;
}

/* =========================================================
   B2R catalogue layout + typography refinements
   These rules intentionally preserve the rest of the theme.
   ========================================================= */

/* Use more of the available screen width */
.container,
.catalogue-container,
.content-area .container,
.page-hero .container {
    width: min(1480px, calc(100% - 48px));
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

.catalogue-page .page-hero {
    padding-block: 42px;
}

.catalogue-content {
    padding: 36px 0 76px;
}

.catalogue-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    width: 100%;
}

.catalogue-sidebar-wrap {
    min-width: 0;
}

.catalogue-sidebar {
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 20px;
}

.catalogue-sidebar a {
    font-weight: 400;
    line-height: 1.45;
}

.catalogue-sidebar a.is-active {
    font-weight: 600;
}

.catalogue-results {
    min-width: 0;
    width: 100%;
}

.catalogue-filter-toggle {
    display: none;
}

.catalogue-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.product-card--minimal {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(23, 51, 38, .045);
}

.product-card--minimal .product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
    overflow: hidden;
    background: #f7f3eb;
}

.product-card--minimal .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
    transition: transform .25s ease;
}

.product-card--minimal:hover .product-image img {
    transform: scale(1.035);
}

.product-card--minimal .product-card-content {
    padding: 14px 14px 16px;
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-card--minimal .product-card-content h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.product-card--minimal .product-card-content h3 a {
    color: var(--mx-green-dark);
    font-weight: 500;
}

.product-card--minimal .product-card-content h3 a:hover {
    color: var(--mx-terracotta);
}

.product-card--minimal p,
.product-card--minimal .text-link,
.product-card--minimal .button,
.product-card--minimal .eyebrow,
.product-card--minimal .product-description {
    display: none !important;
}

/* Typography: readable regular text, reserved emphasis for headings */
body {
    font-weight: 400;
}

p,
li,
label,
input,
textarea,
select,
small,
.entry-content,
.product-description,
.product-summary,
.meta-item span,
.catalogue-sidebar a,
.primary-nav a,
.top-bar,
.site-footer p,
.site-footer li,
.site-footer a {
    font-weight: 400;
}

button,
.button,
.wp-block-button__link,
input[type="submit"],
.form-field label,
.eyebrow,
.trust-item {
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6,
strong, b,
.product-meta strong {
    font-weight: 600;
}

.brand-text {
    font-weight: 600;
}

/* Keep product detail pages wide as well */
.single-mx_product .content-area .container,
.single-mx_product .page-hero .container {
    max-width: 1480px;
}

@media (max-width: 1200px) {
    .catalogue-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .catalogue-layout {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 980px) {
    .container,
    .catalogue-container,
    .content-area .container,
    .page-hero .container {
        width: calc(100% - 36px);
        max-width: 1480px;
    }

    .catalogue-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .catalogue-filter-toggle {
        display: inline-flex;
        justify-self: start;
        width: fit-content;
        align-items: center;
        gap: 10px;
        padding: 11px 16px;
        border: 1px solid var(--mx-border);
        border-radius: 10px;
        background: var(--mx-green);
        color: #fff;
        font-size: .95rem;
        font-weight: 500;
    }

    .catalogue-filter-toggle:hover {
        background: var(--mx-green-dark);
    }

    .catalogue-sidebar-wrap {
        display: none;
        width: 100%;
    }

    .catalogue-sidebar-wrap.is-open {
        display: block;
    }

    .catalogue-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        margin: 0 0 8px;
    }

    .catalogue-sidebar ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 18px;
    }

    .catalogue-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .container,
    .catalogue-container,
    .content-area .container,
    .page-hero .container {
        width: calc(100% - 28px);
    }

    .catalogue-content {
        padding: 24px 0 54px;
    }

    .catalogue-page .page-hero {
        padding-block: 30px;
    }

    .catalogue-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card--minimal {
        border-radius: 11px;
    }

    .product-card--minimal .product-image img {
        padding: 8px;
    }

    .product-card--minimal .product-card-content {
        padding: 11px 9px 13px;
    }

    .product-card--minimal .product-card-content h3,
    .product-card--minimal .product-card-content h3 a {
        font-size: .92rem;
        line-height: 1.35;
        font-weight: 500;
    }

    .catalogue-sidebar {
        padding: 16px;
    }

    .catalogue-sidebar ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 360px) {
    .catalogue-product-grid {
        gap: 9px;
    }

    .product-card--minimal .product-card-content h3,
    .product-card--minimal .product-card-content h3 a {
        font-size: .86rem;
    }
}


/* =========================================================
   B2R typography reset — Zolina is a single-weight font.
   Prevent synthetic bold from making the whole theme look heavy.
   Keep Zolina for display headings, but render it at normal weight.
   ========================================================= */
@font-face {
    font-family: 'Zolina';
    src: url('assets/fonts/Zolina.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Zolina display text: use the font's natural weight, not synthetic bold */
h1, h2, h3, h4, h5, h6,
.page-hero h1, .hero h1, .section-heading h2, .cta-band h2,
.site-footer h3, .brand-text, .hero-art-placeholder,
.hero-art-overlay h2, .hero-stamp, .product-detail h1,
.product-card h3, .category-card h3 {
    font-family: var(--font-heading);
    font-weight: 400 !important;
    text-shadow: none;
    -webkit-text-stroke: 0;
}

/* Use clean sans-serif typography for interface and body content */
body, p, li, label, input, textarea, select, small,
button, .button, .wp-block-button__link, .primary-nav a,
.top-bar, .trust-item, .product-description, .product-summary,
.product-meta, .meta-item, .catalogue-sidebar a, .product-card-content,
.category-card p, .text-link, .form-field label, .site-footer p,
.site-footer li, .site-footer a, .breadcrumbs, .pagination,
.archive-toolbar {
    font-family: var(--font-body);
    font-weight: 400;
}

/* Medium emphasis for navigation and controls */
button, .button, .wp-block-button__link, input[type="submit"],
.primary-nav a, .catalogue-filter-toggle,
.product-card--minimal .product-card-content h3,
.product-card--minimal .product-card-content h3 a {
    font-weight: 500;
}

/* Bold only for actual semantic emphasis */
strong, b, .product-meta strong, .form-field label {
    font-weight: 600;
}

/* Keep headings elegant without heavy synthetic bold */
h1 { letter-spacing: -.035em; }
h2 { letter-spacing: -.02em; }
h3, h4, h5, h6 { letter-spacing: -.01em; }

.product-card h3, .product-card h3 a,
.product-card--minimal .product-card-content h3,
.product-card--minimal .product-card-content h3 a,
.category-card h3 {
    font-weight: 400 !important;
}

.eyebrow, .hero-art-stars, .brand-tagline, .meta-item strong {
    font-family: var(--font-body);
    font-weight: 500;
}

/* Disable browser-synthesized faux bold/italic faces */
html { font-synthesis: none; }


/* Final font assignment */
body {
    font-family: var(--font-body);
}

/* Homepage typography */
.home .hero h1,
.home .section-heading h2,
.home .split-section h2,
.home .process-step h3,
.home .product-card h3,
.home .category-card h3,
.home .quote-section h2 {
    font-family: 'Zolina', Georgia, serif;
    font-weight: 400;
}

.home .hero-description,
.home .hero p,
.home .home-section-description,
.home .home-cta-description,
.home .process-step p,
.home .quote-section p {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    line-height: 1.75;
}

/* =========================================
   B2R HOMEPAGE — EXPLICIT FONT CORRECTION
========================================= */

/* Keep Zolina only for display headings */
.home #main-content .hero h1,
.home #main-content .section-heading h2,
.home #main-content .split-section h2,
.home #main-content .process-step h3,
.home #main-content .category-card h3,
.home #main-content .product-card h3,
.home #main-content .quote-section h2 {
    font-family: 'Zolina', Georgia, serif !important;
    font-weight: 400 !important;
}

/* Lato for all supporting content */
.home #main-content .hero p,
.home #main-content .hero .button,
.home #main-content .trust-item,
.home #main-content .section-heading p,
.home #main-content .category-card p,
.home #main-content .product-card p,
.home #main-content .split-section p,
.home #main-content .check-list li,
.home #main-content .process-step p,
.home #main-content .home-gallery-caption,
.home #main-content .quote-section p,
.home #main-content .quote-section label,
.home #main-content .quote-section input,
.home #main-content .quote-section textarea {
    font-family: 'Lato', sans-serif !important;
    font-weight: 400;
    line-height: 1.75;
}

/* Buttons should have a little more emphasis */
.home #main-content .hero .button {
    font-weight: 600 !important;
    letter-spacing: 0;
}


/* Product catalogue cards – edge-to-edge square images */
.catalogue-page .product-card--minimal {
    overflow: hidden;
    padding: 0 !important;
}

.catalogue-page .product-card--minimal .product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    line-height: 0;
    background: #f7f3eb;
}

.catalogue-page .product-card--minimal .product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.catalogue-page .product-card--minimal .product-card-content {
    margin: 0;
    padding: 14px 10px;
    text-align: center;
}


/* Footer typography – B2R Venture */
.site-footer h3 {
    font-family: 'Zolina', serif !important;
    font-weight: 400 !important;
    line-height: 1.2;
}

.site-footer p,
.site-footer li,
.site-footer a,
.site-footer span {
    font-family: 'Lato', sans-serif !important;
    font-weight: 400;
    line-height: 1.7;
}

.site-footer .footer-menu a {
    font-family: 'Lato', sans-serif !important;
    font-weight: 500;
}

.site-footer .footer-bottom {
    font-family: 'Lato', sans-serif !important;
    font-size: 13px;
}


/* Header typography – B2R Venture */

/* Brand name */
.site-header .brand-text {
    font-family: 'Zolina', serif !important;
    font-weight: 400;
}

/* Brand tagline */
.site-header .brand-tagline {
    font-family: 'Lato', sans-serif !important;
    font-weight: 400;
}

/* Main navigation */
.site-header .primary-nav,
.site-header .primary-nav a,
.site-header .header-actions a,
.site-header .menu-toggle {
    font-family: 'Lato', sans-serif !important;
}

.site-header .primary-nav a {
    font-weight: 500;
    letter-spacing: 0.2px;
}

/* Quote button */
.site-header .header-actions .button {
    font-weight: 600;
}

/* Top contact bar */
.top-bar,
.top-bar-contact,
.top-bar-contact a,
.top-bar-markets {
    font-family: 'Lato', sans-serif !important;
    font-weight: 400;
}

.top-bar {
    font-size: 13px;
}

/* B2R Venture – How We Work responsive grid correction */
.home .process-grid,
.process-grid {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.home .process-grid > .process-step,
.process-grid > .process-step {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.home .process-step h3,
.home .process-step p,
.process-step h3,
.process-step p {
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 980px) {
    .home .process-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home .process-grid,
    .process-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px;
    }

    .home .process-grid > .process-step,
    .process-grid > .process-step {
        width: 100%;
        padding: 22px 20px;
    }
}


/* =====================================================
   B2R VENTURE — MOBILE HOMEPAGE REFINEMENTS
   Mobile only. Desktop styling remains unchanged.
   ===================================================== */

@media (max-width: 700px) {

    /* Overall page spacing */
    #main-content .container {
        width: calc(100% - 36px) !important;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    #main-content .section {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    /* Trust strip */
    .b2r-home-trust-strip {
        padding: 18px 0 !important;
    }

    .b2r-home-trust-strip .trust-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px 12px !important;
    }

    .b2r-home-trust-strip .trust-item {
        font-size: 10px !important;
        line-height: 1.5;
        letter-spacing: .035em;
        padding: 5px 3px;
    }

    /* Catalogue section */
    .b2r-home-categories .section-heading,
    .b2r-home-featured .section-heading {
        margin-bottom: 20px !important;
    }

    .b2r-home-categories .section-heading h2,
    .b2r-home-featured .section-heading h2 {
        font-size: 27px !important;
        line-height: 1.15 !important;
    }

    .b2r-home-categories .section-heading p,
    .b2r-home-featured .section-heading p {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    .b2r-home-categories .grid--categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .b2r-home-categories .category-card {
        min-width: 0;
        border-radius: 11px !important;
    }

    .b2r-home-categories .category-card .category-featured-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        object-fit: cover;
    }

    .b2r-home-categories .category-card h3 {
        font-size: 14px !important;
        line-height: 1.3 !important;
        padding: 9px 5px 3px !important;
    }

    .b2r-home-categories .category-card p {
        font-size: 11px !important;
        padding: 0 5px 10px !important;
    }

    /* About / Our approach section */
    #main-content .split-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        gap: 24px !important;
    }

    #main-content .split-section .image-panel {
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 0;
        overflow: hidden;
    }

    #main-content .split-section .image-panel img {
        display: block;
        width: 100% !important;
        max-width: 240px !important;
        height: auto !important;
        max-height: 210px;
        object-fit: contain;
        margin: 0 auto !important;
    }

    #main-content .split-section > div:last-child {
        width: 100%;
        min-width: 0;
    }

    #main-content .split-section h2 {
        font-size: 27px !important;
        line-height: 1.15 !important;
        margin-bottom: 12px;
    }

    #main-content .split-section p {
        font-size: 13px !important;
        line-height: 1.65 !important;
    }

    #main-content .split-section .check-list {
        padding-left: 18px;
        margin: 16px 0;
    }

    #main-content .split-section .check-list li {
        font-size: 12px !important;
        line-height: 1.55 !important;
        margin-bottom: 9px;
    }

    #main-content .split-section .button {
        min-height: 42px;
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Featured products */
    .b2r-home-featured .grid--products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .b2r-home-featured .product-card,
    .b2r-home-featured .product-card--minimal {
        min-width: 0;
        border-radius: 10px !important;
    }

    .b2r-home-featured .product-card .product-image,
    .b2r-home-featured .product-card--minimal .product-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important;
        overflow: hidden;
    }

    .b2r-home-featured .product-card .product-image img,
    .b2r-home-featured .product-card--minimal .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .b2r-home-featured .product-card .product-card-content,
    .b2r-home-featured .product-card--minimal .product-card-content {
        min-height: 42px !important;
        padding: 8px 5px !important;
    }

    .b2r-home-featured .product-card .product-card-content h3,
    .b2r-home-featured .product-card .product-card-content h3 a,
    .b2r-home-featured .product-card--minimal .product-card-content h3,
    .b2r-home-featured .product-card--minimal .product-card-content h3 a {
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    /* How we work */
    #main-content .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    #main-content .process-step {
        padding: 14px 11px !important;
    }

    #main-content .process-step h3 {
        font-size: 15px !important;
    }

    #main-content .process-step p {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* Enquiry form */
    #main-content .quote-section {
        padding: 20px 14px !important;
        margin-top: 20px;
    }

    #main-content .quote-section h2 {
        font-size: 25px !important;
        line-height: 1.2 !important;
    }

    #main-content .quote-section input:not([type="checkbox"]),
    #main-content .quote-section select,
    #main-content .quote-section textarea {
        font-size: 16px !important;
        min-height: 46px;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {

    #main-content .container {
        width: calc(100% - 28px) !important;
    }

    .b2r-home-categories .grid--categories,
    .b2r-home-featured .grid--products {
        gap: 9px !important;
    }

    .b2r-home-categories .category-card h3 {
        font-size: 12px !important;
    }

    .b2r-home-featured .product-card .product-card-content h3,
    .b2r-home-featured .product-card .product-card-content h3 a {
        font-size: 12px !important;
    }

    #main-content .split-section .image-panel img {
        max-width: 210px !important;
        max-height: 185px;
    }
}

/* B2R — Restore desktop layout on wider browser viewports */

@media screen and (min-width: 701px) {

    /* Main catalogue: 4 columns */
    .b2r-home-categories .grid--categories {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 20px !important;
    }

    /* Featured products: 3 columns */
    .b2r-home-featured .grid--products {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    /* Restore horizontal About section */
    #main-content .split-section {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: center !important;
        gap: 48px !important;
    }

    #main-content .split-section .image-panel img {
        max-width: 100% !important;
        max-height: none !important;
    }

    /* Restore four-item trust strip */
    .b2r-home-trust-strip .trust-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* B2R — Centre content with balanced desktop margins */

@media screen and (min-width: 701px) {

    #main-content .container {
        width: calc(100% - 80px) !important;
        max-width: 1320px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

}

/* B2R — Fix About section in Chrome Desktop Site on phones */
@media screen and (min-width: 701px) and (max-device-width: 700px) {

    #main-content .section--ivory > .container.split-section {
        width: calc(100% - 100px) !important;
        max-width: 1180px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 45px !important;
    }

    #main-content .split-section .image-panel {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
    }

    #main-content .split-section .image-panel img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
    }

    #main-content .split-section h2 {
        font-size: 34px !important;
        line-height: 1.15 !important;
    }

    #main-content .split-section p,
    #main-content .split-section .check-list li {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
}
