/* =========================================================
   MAHALAXMI TRADERS  –  BRANDS PAGE
   File : css/brands.css   (loaded after style.css)
   Every class starts with "br-" so nothing here can clash
   with the rest of the site.
   ========================================================= */

.brands-page {
    --br-green: #0f3d2e;
    --br-gold: #c99a44;
    --br-gold-soft: #d9a94f;
    --br-page: #fcfaf5;
    --br-ink: #1b221e;
    --br-mute: #56605a;
    --br-serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --br-script: "Caveat", "Segoe Script", "Brush Script MT", cursive;

    background: var(--br-page);
    color: var(--br-ink);
}

/* style.css gives every <section> 80px of vertical padding – reset it */
.brands-page main > section { padding-block: 0; }

.br-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.brands-page svg { display: block; }
.brands-page main img { max-width: 100%; }

.br-wrap { width: min(1400px, 96.5%); margin-inline: auto; }

.brands-page h1,
.brands-page h2 {
    font-family: var(--br-serif);
    color: var(--br-green);
    font-weight: 700;
    line-height: 1.15;
}

.brands-page main a:focus-visible {
    outline: 2px solid var(--br-gold);
    outline-offset: 3px;
}

.br-swash { width: 100%; height: .4em; }

.br-btn,
.br-btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.br-btn svg,
.br-btn-light svg { width: 17px; height: 17px; transition: transform .25s ease; }
.br-btn:hover svg,
.br-btn-light:hover svg { transform: translateX(4px); }

.br-btn {
    min-height: 50px;
    padding: 0 40px;
    font-size: 16px;
    color: #fff;
    background: var(--br-green);
}

.br-btn:hover { background: #0a3024; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15, 61, 46, .28); }

.br-btn-light {
    min-height: 54px;
    padding: 0 40px;
    font-size: 16px;
    color: #12241c;
    background: #fcfaf5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.br-btn-light:hover { background: #fff; transform: translateY(-2px); }


/* =========================================================
   HERO
   ========================================================= */

.br-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(330px, 26.5vw, 384px);
    background: var(--br-page);
}

.br-hero-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 66%;
    background: url("../assets/brands/hero-bowl.jpg") right -40px bottom / auto 120% no-repeat;
}

.br-hero-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fcfaf5 0%, rgba(252, 250, 245, .92) 14%, rgba(252, 250, 245, .4) 40%, rgba(252, 250, 245, 0) 64%);
}

.br-hero-inner { position: relative; z-index: 1; padding: 24px 0 30px clamp(0px, 2vw, 30px); }

.br-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--br-green); }
.br-breadcrumb a:hover { text-decoration: underline; }

.br-hero h1 { margin-top: clamp(16px, 2.2vw, 32px); font-size: clamp(38px, 4vw, 58px); letter-spacing: -.01em; }

.br-hero-sub {
    margin-top: 8px;
    font-family: var(--br-serif);
    font-weight: 700;
    font-size: clamp(19px, 1.85vw, 26px);
    color: var(--br-gold);
}

.br-hero-text {
    max-width: clamp(320px, 39vw, 560px);
    margin-top: 12px;
    font-size: clamp(14.5px, 1.2vw, 17px);
    line-height: 1.7;
    color: #232a26;
}

.br-badges {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px clamp(16px, 2.4vw, 36px);
    margin-top: clamp(18px, 2vw, 28px);
}

.br-badges li { display: flex; align-items: center; gap: 12px; font-size: clamp(13px, 1vw, 14.5px); color: var(--br-green); }

.br-badge-ico {
    flex: none;
    width: clamp(40px, 3.3vw, 48px);
    height: clamp(40px, 3.3vw, 48px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--br-green);
    color: var(--br-gold-soft);
}

.br-badge-ico svg { width: 52%; height: 52%; }

.br-hero-script {
    position: absolute;
    z-index: 2;
    left: 45.5%;
    top: clamp(28px, 3.4vw, 50px);
    font-family: var(--br-script);
    font-weight: 500;
    font-size: clamp(28px, 3.1vw, 44px);
    line-height: 1.08;
    color: #171c19;
    transform: rotate(-12deg);
    transform-origin: left bottom;
    pointer-events: none;
}

.br-hero-script span { display: block; }
.br-hero-script span:nth-child(2) { margin-left: .35em; }
.br-hero-script span:nth-child(3) { margin-left: .7em; }
.br-hero-script .br-swash { width: 4.6em; height: .4em; margin: .25em 0 0 .5em; }

/* round "Rooted in Mithila" seal */
.br-seal {
    position: absolute;
    z-index: 2;
    right: clamp(14px, 3.8vw, 56px);
    top: clamp(18px, 2vw, 30px);
    width: clamp(112px, 11vw, 160px);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 50%;
    text-align: center;
    font-family: var(--br-script);
    font-weight: 500;
    font-size: clamp(17px, 1.75vw, 25px);
    line-height: 1.02;
    color: #1d2320;
    background: radial-gradient(circle at 35% 30%, #fbf1dc, #f1e2c4);
    box-shadow: 0 10px 26px rgba(70, 45, 10, .22), inset 0 0 0 1px rgba(201, 154, 68, .35);
    pointer-events: none;
}

.br-seal span:nth-child(2) { padding-top: 7px; border-top: 1.5px solid var(--br-gold); }


/* =========================================================
   PANELS  (packaged / loose)
   ========================================================= */

.brands-page main > .br-block { padding-block: clamp(8px, .9vw, 12px) 0; }

.br-panel {
    padding: clamp(16px, 1.9vw, 26px) clamp(14px, 1.6vw, 22px) clamp(18px, 2vw, 28px);
    border-radius: 10px;
}

.br-panel--mint { background: linear-gradient(180deg, #ecf2ea, #e4ede2); border: 1px solid #dbe6d8; }
.br-panel--sand { background: linear-gradient(180deg, #f8f1e2, #f4ead5); border: 1px solid #ece1c8; }

.br-panel-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(14px, 1.6vw, 22px);
    padding-inline: clamp(4px, .8vw, 12px);
}

.br-panel-ico { width: clamp(38px, 3.6vw, 52px); height: clamp(44px, 4.2vw, 60px); color: #1c2621; }

.br-panel h2 { font-size: clamp(24px, 2.3vw, 33px); }
.br-panel-sub { margin-top: 4px; font-size: clamp(16px, 1.45vw, 21px); color: #1c2621; }
.br-panel-note { margin-top: 3px; font-size: clamp(13px, 1vw, 14.5px); color: #3d4640; }

.br-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: clamp(13.5px, 1.1vw, 16px);
    color: #26302a;
}

.br-points li + li::before { content: "|"; margin: 0 clamp(8px, 1vw, 14px); color: #59635c; }

/* card rows */
.br-cards {
    list-style: none;
    display: grid;
    gap: clamp(8px, .8vw, 12px);
    margin-top: clamp(14px, 1.6vw, 22px);
}

.br-cards--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.br-cards--loose { grid-template-columns: repeat(5, minmax(0, 1fr)); padding-inline: clamp(0px, .6vw, 8px); }

.br-cards > li { display: flex; }

.br-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e1d0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(23, 63, 53, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.br-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(23, 63, 53, .16); }

.br-card-img { display: flex; align-items: center; justify-content: center; overflow: hidden; background: #fbf9f4; aspect-ratio: 126 / 159; padding: 10px; }
.br-card--loose .br-card-img { aspect-ratio: 176 / 172; }

.br-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.br-card:hover .br-card-img img { transform: scale(1.08) rotate(-1.2deg); }

.br-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 9px 6px 12px;
    text-align: center;
}

.br-card-body strong { font-size: clamp(14.5px, 1.2vw, 17px); font-weight: 700; color: #141a17; }
.br-sizes { font-size: clamp(12.5px, 1vw, 14.5px); color: #2e3630; }
.br-card-body em { font-style: normal; font-size: clamp(11.5px, .92vw, 13px); color: #4b544e; }

.br-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 14px;
    text-align: center;
    border: 1.5px dashed #d4cbb3;
    border-radius: 6px;
    background: rgba(255, 253, 248, .55);
}

.br-soon-ico {
    display: grid;
    place-items: center;
    width: clamp(46px, 4.4vw, 62px);
    height: clamp(46px, 4.4vw, 62px);
    border: 1.5px solid #a39c84;
    border-radius: 50%;
    color: #8d8670;
    transition: transform .5s cubic-bezier(.3, 1.5, .5, 1), color .3s ease, border-color .3s ease;
}

.br-soon-ico svg { width: 64%; height: 64%; }
.br-soon:hover .br-soon-ico { transform: rotate(180deg) scale(1.08); color: var(--br-green); border-color: var(--br-green); }
.br-soon strong { font-size: clamp(15px, 1.25vw, 18px); line-height: 1.3; color: #141a17; }
.br-soon p { font-size: clamp(12.5px, .98vw, 14px); line-height: 1.55; color: #4b544e; }

.br-more { display: flex; justify-content: center; margin-top: clamp(14px, 1.6vw, 22px); }


/* =========================================================
   FROM MITHILA TO EVERY HOME
   ========================================================= */

.br-banner {
    position: relative;
    overflow: hidden;
    margin-top: clamp(10px, 1.1vw, 16px);
    color: #fff;
    background: linear-gradient(90deg, #0c3527, #0f3d2e 55%, #114031);
}

.br-banner-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 36%;
    background: url("../assets/brands/basket.jpg") center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 55%, transparent 100%);
}

.br-banner-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1.6fr);
    align-items: center;
    gap: clamp(16px, 2.4vw, 40px);
    min-height: clamp(190px, 16.6vw, 240px);
    padding: 24px 0;
}

.br-banner h2 { font-size: clamp(26px, 2.6vw, 38px); color: #fff; }

.br-banner-copy p {
    max-width: 420px;
    margin-top: 12px;
    font-size: clamp(14px, 1.15vw, 16.5px);
    line-height: 1.65;
    color: #e6eee8;
}

.br-banner-icons {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.br-banner-icons li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: clamp(13px, 1.05vw, 15.5px);
    line-height: 1.35;
}

.br-ico {
    display: grid;
    place-items: center;
    width: clamp(42px, 3.6vw, 52px);
    height: clamp(42px, 3.6vw, 52px);
    color: #fff;
    transition: transform .4s cubic-bezier(.3, 1.5, .5, 1);
}

.br-ico svg { width: 62%; height: 62%; }
.br-ico--disc { border-radius: 50%; color: var(--br-green); background: #fbf8ef; }
.br-ico--disc svg { width: 56%; height: 56%; }
.br-ico--gold { color: #c99a44; }

.br-banner-icons li:hover .br-ico { transform: translateY(-5px) scale(1.1); }


/* =========================================================
   CTA
   ========================================================= */

.br-cta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, #0c3527, #0e3a2c 60%, #0f3d2e); border-top: 1px solid rgba(255, 255, 255, .06); }

.br-cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto minmax(150px, .7fr);
    align-items: center;
    gap: clamp(16px, 2.4vw, 40px);
    min-height: clamp(110px, 8.6vw, 124px);
    padding: 16px 0;
}

.br-cta h2 { font-size: clamp(22px, 2.05vw, 29px); color: #fff; }
.br-cta-copy p { margin-top: 8px; font-size: clamp(13.5px, 1.1vw, 16px); color: #eaf0ea; }

.br-cta-pile {
    justify-self: end;
    width: clamp(120px, 12vw, 176px);
    aspect-ratio: 2;
    background: url("../assets/brands/pile.jpg") center / cover no-repeat;
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 62%, transparent 100%);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35));
}


/* =========================================================
   MOTION  (only when has-anim is set: JS on + motion allowed)
   ========================================================= */

.has-anim [data-in] {
    opacity: 0;
    animation: br-rise .85s cubic-bezier(.2, .7, .2, 1) forwards;
    animation-delay: calc(var(--n, 0) * 95ms + 120ms);
}

@keyframes br-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.has-anim .br-hero-photo { animation: br-zoom 1.9s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes br-zoom { from { transform: scale(1.08); opacity: .55; } to { transform: none; opacity: 1; } }

.has-anim .br-hero-script { animation: br-script 1s .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes br-script { from { opacity: 0; transform: rotate(-12deg) translateY(16px); } to { opacity: 1; transform: rotate(-12deg); } }

.has-anim .br-hero-script .br-swash path {
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    animation: br-draw 1s 1.2s ease forwards;
}

@keyframes br-draw { to { stroke-dashoffset: 0; } }

/* seal: spins in, then breathes very slowly */
.has-anim .br-seal { animation: br-seal-in 1.1s 1s cubic-bezier(.3, 1.4, .5, 1) both, br-float 7s 2.2s ease-in-out infinite; }
@keyframes br-seal-in { from { opacity: 0; transform: rotate(-160deg) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes br-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-7px) rotate(2deg); } }

.has-anim [data-reveal] { opacity: 0; transform: translateY(28px); }

.has-anim [data-reveal].is-in {
    opacity: 1;
    transform: none;
    transition: opacity .65s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0ms);
}

.has-anim [data-reveal].is-done { transition-delay: 0ms; transition-duration: .3s; }

/* banner icons pop in one after another */
.has-anim .br-banner-icons li[data-reveal] { transform: translateY(20px) scale(.9); }
.has-anim .br-banner-icons li[data-reveal].is-in { transform: none; }

/* the makhana pile drifts gently */
.has-anim .br-cta-pile { animation: br-drift 8s ease-in-out infinite; }
@keyframes br-drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
    .br-cards--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .br-cards--loose { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .br-panel-head { grid-template-columns: auto 1fr; }
    .br-points { grid-column: 1 / -1; justify-content: flex-start; }
    .br-banner-inner { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr) minmax(0, 1.5fr); }
}

@media (max-width: 900px) {
    .br-hero-photo { width: 100%; opacity: .55; }
    .br-hero-photo::before { background: linear-gradient(180deg, rgba(252, 250, 245, .95), rgba(252, 250, 245, .72) 60%, rgba(252, 250, 245, .5)); }
    .br-hero-script { display: none; }
    .br-seal { width: 96px; font-size: 15px; top: 14px; }

    .br-banner-photo { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; }
    .br-banner-inner { grid-template-columns: 1fr; padding: 30px 0 34px; }
    .br-banner-space { display: none; }
    .br-banner-icons { max-width: 560px; }

    .br-cta-inner { grid-template-columns: 1fr auto; }
    .br-cta-pile { display: none; }
}

@media (max-width: 720px) {
    .br-points { gap: 4px 16px; }
    .br-points li + li::before { display: none; }
    .br-cards--7 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .br-cards--loose { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .br-cta-inner { grid-template-columns: 1fr; padding: 24px 0 28px; }
    .br-btn-light { width: 100%; }
    .br-banner-icons { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}

@media (max-width: 520px) {
    .br-cards--7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .br-badges li { flex: 1 1 100%; }
    .br-btn { width: 100%; padding: 0 18px; }
    .br-seal { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .brands-page * { transition: none !important; animation: none !important; }
}

/* =========================================================
   ALL BRANDS BIG POPUP MODAL (Luxury Mithila Emerald & Gold)
   ========================================================= */

.br-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(8, 26, 19, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.br-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.br-modal-dialog {
    width: 100%;
    max-width: 1140px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 154, 68, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.94) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.br-modal-overlay.is-active .br-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Header */
.br-modal-head {
    background: linear-gradient(135deg, #0b3326 0%, #134d3a 60%, #1c5f48 100%);
    color: #ffffff;
    padding: 24px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    border-bottom: 2px solid #c99a44;
}

.br-modal-head-info {
    flex: 1;
}

.br-modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(201, 154, 68, 0.22);
    border: 1px solid rgba(201, 154, 68, 0.45);
    color: #e5b967;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.br-modal-head h2 {
    color: #ffffff;
    font-family: var(--br-serif);
    font-size: clamp(22px, 2.4vw, 30px);
    margin: 0 0 4px;
    font-weight: 700;
}

.br-modal-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    margin: 0;
    max-width: 680px;
    line-height: 1.45;
}

.br-modal-close {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.br-modal-close:hover {
    background: #c99a44;
    color: #0b3326;
    transform: rotate(90deg);
}

/* Modal Controls: Filter Tabs & Search */
.br-modal-controls {
    background: #f8f6f0;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e7e2d3;
    flex-wrap: wrap;
}

.br-modal-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.br-tab-btn {
    background: #ffffff;
    border: 1px solid #d5cebf;
    color: #2b332f;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.br-tab-btn:hover {
    border-color: #0f3d2e;
    color: #0f3d2e;
    background: #f3f0e8;
}

.br-tab-btn.active {
    background: #0f3d2e;
    border-color: #0f3d2e;
    color: #ffffff;
}

.br-tab-count {
    background: rgba(0, 0, 0, 0.08);
    color: inherit;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.br-tab-btn.active .br-tab-count {
    background: #c99a44;
    color: #0f3d2e;
}

.br-modal-search {
    position: relative;
    min-width: 250px;
    flex: 1;
    max-width: 320px;
}

.br-modal-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8c9690;
    pointer-events: none;
}

.br-modal-search input {
    width: 100%;
    padding: 9px 12px 9px 36px;
    background: #ffffff;
    border: 1px solid #d5cebf;
    border-radius: 20px;
    font-size: 13px;
    color: #1b221e;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.br-modal-search input:focus {
    border-color: #c99a44;
    box-shadow: 0 0 0 3px rgba(201, 154, 68, 0.18);
}

/* Modal Body */
.br-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    background: #fdfcf9;
}

/* Custom Scrollbar */
.br-modal-body::-webkit-scrollbar {
    width: 7px;
}
.br-modal-body::-webkit-scrollbar-track {
    background: #f1ede3;
}
.br-modal-body::-webkit-scrollbar-thumb {
    background: #c99a44;
    border-radius: 4px;
}

/* Modal Brands Grid */
.br-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
}

/* Brand Card inside Modal */
.br-modal-card {
    background: #ffffff;
    border: 1px solid #eae5d8;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.br-modal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 61, 46, 0.12);
    border-color: #c99a44;
}

.br-modal-card-media {
    height: 190px;
    background: #faf8f4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    position: relative;
    border-bottom: 1px solid #f0ecdf;
    overflow: hidden;
}

.br-modal-card-media img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.br-modal-card:hover .br-modal-card-media img {
    transform: scale(1.05);
}

.br-modal-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 9px;
    border-radius: 12px;
}

.br-modal-card-tag--pack {
    background: #0f3d2e;
    color: #ffffff;
}

.br-modal-card-tag--loose {
    background: #9d7529;
    color: #ffffff;
}

.br-modal-card-info {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.br-modal-card-title {
    font-family: var(--br-serif);
    font-size: 19px;
    color: #0f3d2e;
    margin: 0 0 6px;
    font-weight: 700;
}

.br-modal-card-sizes {
    display: inline-block;
    align-self: flex-start;
    font-size: 11.5px;
    font-weight: 700;
    color: #c99a44;
    background: rgba(201, 154, 68, 0.12);
    border: 1px solid rgba(201, 154, 68, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.br-modal-card-desc {
    font-size: 13px;
    color: #555f59;
    line-height: 1.45;
    margin: 0 0 16px;
    flex: 1;
}

.br-modal-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.br-modal-act-wa {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 12px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.br-modal-act-wa:hover {
    background: #1fa851;
    color: #ffffff;
    transform: translateY(-1px);
}

.br-modal-act-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f3d2e;
    color: #ffffff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.br-modal-act-view:hover {
    background: #09261c;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Modal Footer */
.br-modal-foot {
    background: #f5f2e9;
    border-top: 1px solid #e5dfd0;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.br-modal-foot-call {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #333d37;
}

.br-modal-foot-call svg {
    color: #0f3d2e;
}

.br-modal-foot-call a {
    color: #0f3d2e;
    text-decoration: none;
}

.br-modal-foot-call a:hover {
    color: #c99a44;
    text-decoration: underline;
}

.br-modal-btn-done {
    background: #0f3d2e;
    color: #ffffff;
    border: none;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

.br-modal-btn-done:hover {
    background: #0a2d21;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .br-modal-dialog {
        max-height: 94vh;
        border-radius: 14px;
    }
    .br-modal-head {
        padding: 18px 20px;
    }
    .br-modal-controls {
        padding: 12px 20px;
        flex-direction: column;
        align-items: stretch;
    }
    .br-modal-search {
        max-width: 100%;
    }
    .br-modal-body {
        padding: 16px 20px;
    }
    .br-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    .br-modal-foot {
        padding: 12px 20px;
        flex-direction: column;
        text-align: center;
    }
}

