/* ==========================================================================
   Beta Store — site-wide design (from the Beta Store HTML design)
   Navy #082d55 · Orange #ff5b05 · Page #f5f8fb
   ========================================================================== */
:root {
    --bs-navy: #082d55;
    --bs-orange: #ff5b05;
    --bs-orange-dark: #e95400;
    --bs-page: #f5f8fb;
    --bs-line: #dfe7ef;
    --bs-muted: #516a82;
    --bs-soft-blue: #e0effa;
    /* Used by the checkout / delivery styles and the old theme's variable names. */
    --color-primary: #ff5b05;
}

body {
    background: var(--bs-page);
    color: var(--bs-navy);
    font-family: Arial, Helvetica, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-navy);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: var(--bs-navy);
}

a:hover,
a:focus {
    color: var(--bs-orange);
}

/* Buttons everywhere: WooCommerce, forms, GeneratePress */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce #place_order {
    background-color: var(--bs-orange);
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.button:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #place_order:hover,
button:focus,
a.button:focus {
    background-color: var(--bs-orange-dark);
    color: #fff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid #c0cfdd;
    border-radius: 6px;
    background-color: #fff;
    color: var(--bs-navy);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--bs-orange);
}

/* WooCommerce: prices, sale badge, stars, notices, product titles */
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce-Price-amount {
    color: var(--bs-navy);
}

.woocommerce ul.products li.product .price ins,
.woocommerce div.product p.price ins {
    color: var(--bs-orange);
}

.woocommerce span.onsale {
    background-color: var(--bs-orange);
    color: #fff;
}

.woocommerce .star-rating span::before {
    color: var(--bs-orange);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--bs-navy);
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--bs-orange);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--bs-orange);
}

/* GeneratePress boxes: the design's white cards on the light page */
.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header,
.sidebar .widget {
    border: 1px solid var(--bs-line);
    border-radius: 14px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.bs-wrap {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 22px;
    box-sizing: border-box;
}

.bs-top {
    background: #fff;
}

.bs-header {
    min-height: 91px;
    display: grid;
    grid-template-columns: 1fr 260px 1fr;
    align-items: center;
    gap: 20px;
}

.bs-nav,
.bs-tools {
    display: flex;
    align-items: center;
    gap: 25px;
    font-size: 14px;
}

.bs-nav a,
.bs-tools a {
    color: var(--bs-navy);
    text-decoration: none;
}

.bs-nav a[aria-current="page"] {
    color: #f45b09;
    border-bottom: 2px solid;
    padding: 14px 0;
}

.bs-tools {
    justify-content: flex-end;
}

.bs-logo-link {
    justify-self: center;
}

.bs-logo {
    display: block;
    width: 243px;
    height: auto;
}

.bs-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--bs-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.bs-cart-count[hidden] {
    display: none;
}

.bs-search-shell {
    background: #fff;
    border-bottom: 1px solid #e4eaf0;
    padding: 0 20px 20px;
}

.bs-search {
    display: flex;
    max-width: 780px;
    margin: auto;
    border: 1px solid var(--bs-orange);
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
}

.bs-search input[type="search"] {
    flex: 1;
    width: 0;
    border: 0;
    border-radius: 0;
    padding: 15px 22px;
    background: #fff;
}

.bs-search input[type="search"]:focus {
    outline: none;
}

.bs-search button {
    border-radius: 0;
    padding: 12px 27px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: none;
}

.bs-footer {
    background: var(--bs-navy);
    color: #fff;
    padding: 38px 0 20px;
    margin-top: 30px;
}

.bs-footer a {
    color: #fff;
    text-decoration: none;
}

.bs-footer a:hover {
    color: #ffb48a;
}

.bs-footer h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 17px;
}

.bs-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 45px;
}

.bs-footer-grid a {
    display: block;
    font-size: 14px;
    margin: 12px 0;
}

.bs-footer-grid p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 8px;
}

.bs-footer-logo {
    display: block;
    width: 250px;
    height: auto;
    margin-bottom: 10px;
}

.bs-parent {
    font-size: 12px !important;
    color: #c5d3df;
}

.bs-legal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #ffffff50;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 12px;
}

.bs-legal div {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   Home page (front-page.php)
   ========================================================================== */
.home .site-content {
    display: block;
}

.bs-home img {
    display: block;
    max-width: 100%;
}

.bs-btn {
    display: inline-block;
    border: 0;
    border-radius: 7px;
    background: var(--bs-orange);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
    text-decoration: none;
}

.bs-btn:hover {
    background: var(--bs-orange-dark);
    color: #fff;
}

.bs-btn--outline {
    background: #fff;
    color: var(--bs-orange);
    border: 1px solid var(--bs-orange);
}

.bs-btn--outline:hover {
    background: var(--bs-orange);
    color: #fff;
}

.bs-hero-row {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 16px;
}

.bs-finder,
.bs-panel {
    background: #fff;
    border: 1px solid var(--bs-line);
    border-radius: 14px;
    padding: 20px;
}

/* Hero: background artwork (no text) + real heading / button on top, as tall as the finder. */
.bs-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bs-navy);
    isolation: isolate;
}

.bs-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
}

.bs-hero-copy {
    padding: 36px 5%;
    max-width: 50%;
    color: #fff;
}

.bs-hero-title {
    margin: 0 0 14px;
    color: #fff;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 2.9vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px #0006;
}

.bs-hero-text {
    margin: 0 0 18px;
    color: #e3edf7;
    font-size: clamp(14px, 1.2vw, 18px);
    line-height: 1.45;
}

.bs-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 10px;
    padding: 13px 26px;
    border-radius: 9px;
    background: var(--bs-orange);
    color: #fff;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: clamp(15px, 1.4vw, 21px);
    text-decoration: none;
    box-shadow: 0 6px 18px #ff5b0540;
    transition: background 0.2s, transform 0.2s;
}

.bs-hero-btn:hover,
.bs-hero-btn:focus {
    background: var(--bs-orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

.bs-section {
    margin-top: 28px;
}

.bs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 15px;
}

.bs-section-head h2 {
    font-size: 24px;
    margin: 0;
    border-left: 5px solid var(--bs-orange);
    padding-left: 12px;
    line-height: 1.3;
}

.bs-section-head > a {
    color: var(--bs-orange-dark);
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
}

.bs-tile {
    border: 1px solid #e0e7ee;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.bs-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px #082d5512;
}

.bs-tile img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    background: #f6f7f8;
}

.bs-tile h3 {
    font-size: 15px;
    margin: 12px 14px;
}

.bs-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border: 1px solid #dfe7ed;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    color: var(--bs-navy);
    text-decoration: none;
}

.bs-app img {
    height: 52px;
    width: 90px;
    object-fit: contain;
}

.bs-brand {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 50%;
    box-shadow: 0 3px 6px #082d5510;
    scroll-snap-align: start;
    padding: 22px;
    box-sizing: border-box;
}

.bs-brand img {
    max-height: 90px;
    object-fit: contain;
}

.bs-promo {
    border-radius: 12px;
    overflow: hidden;
    display: block;
    margin-top: 25px;
}

.bs-promo img {
    width: 100%;
}

.bs-product {
    background: #fff;
    border: 1px solid #dce5ee;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bs-product img {
    height: 170px;
    width: 100%;
    object-fit: contain;
    background: #f7f8fa;
}

.bs-product > div {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bs-product h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.bs-product p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 16px;
    color: var(--bs-muted);
}

.bs-product .bs-btn {
    margin-top: auto;
    text-align: center;
    font-size: 13px;
}

.bs-support {
    margin: 28px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px;
    border-radius: 12px;
    background: linear-gradient(105deg, var(--bs-soft-blue) 72%, var(--bs-navy) 72%);
}

.bs-support h2 {
    margin: 0 0 7px;
    font-size: 25px;
}

.bs-support p {
    margin: 0;
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .bs-tile {
        animation: none !important;
        transition: none !important;
    }

}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .bs-header {
        grid-template-columns: 1fr 210px 1fr;
    }

    .bs-nav,
    .bs-tools {
        gap: 12px;
        font-size: 12px;
    }

    .bs-hero-row {
        grid-template-columns: 300px 1fr;
    }

    .bs-app {
        gap: 12px;
        padding: 15px;
    }

    .bs-footer-grid {
        gap: 25px;
    }

    .bs-support {
        background: var(--bs-soft-blue);
    }
}

@media (max-width: 720px) {
    .bs-wrap {
        padding: 0 14px;
    }

    .bs-header {
        grid-template-columns: 1fr auto;
        padding-top: 15px;
        padding-bottom: 12px;
        gap: 16px;
    }

    .bs-logo {
        width: 185px;
    }

    .bs-logo-link {
        grid-row: 1;
        grid-column: 1;
        justify-self: start;
    }

    .bs-tools {
        grid-column: 2;
        grid-row: 1;
    }

    .bs-tools a:not(.bs-cart-link) {
        display: none;
    }

    .bs-nav {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-content: space-between;
        font-size: 13px;
        overflow-x: auto;
    }

    .bs-nav a[aria-current="page"] {
        padding: 0 0 5px;
    }

    .bs-search-shell {
        padding: 0 14px 15px;
    }

    .bs-hero-row {
        display: flex;
        flex-direction: column;
    }

    .bs-hero {
        order: -1;
        min-height: 210px;
    }

    .bs-hero-copy {
        padding: 22px 20px;
        max-width: 70%;
    }

    .bs-hero-text {
        font-size: 13px;
    }

    .bs-hero-btn {
        font-size: 14px;
        padding: 9px 14px;
    }

    .bs-hero-btn svg {
        width: 16px;
        height: 16px;
    }

    .bs-finder {
        padding: 17px;
    }

    .bs-app {
        flex-direction: column;
        gap: 10px;
        font-size: 14px;
    }

    .bs-product img {
        height: 130px;
    }

    .bs-product h3 {
        font-size: 15px;
    }

    .bs-section {
        margin-top: 24px;
    }

    .bs-section-head h2 {
        font-size: 21px;
    }

    .bs-brand {
        flex-basis: 120px;
        width: 120px;
        height: 120px;
        padding: 18px;
    }

    .bs-promo img {
        min-height: 85px;
        object-fit: cover;
    }

    .bs-support {
        display: block;
        padding: 23px;
    }

    .bs-support h2 {
        font-size: 22px;
    }

    .bs-support .bs-btn {
        margin-top: 18px;
    }

    .bs-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .bs-footer-logo {
        width: 210px;
    }

    .bs-legal {
        flex-direction: column;
    }
}

/* GeneratePress's container already has a 20px gutter; the home wrapper inside it doesn't add another. */
#page .bs-wrap {
    padding-left: 0;
    padding-right: 0;
}

/* GeneratePress sets light heading weights; the design's headings are bold. */
.bs-section-head h2,
.bs-tile h3,
.bs-product h3,
.bs-support h2,
.bs-footer h3,
.bs-finder .filter-title {
    font-weight: 700;
}

/* Keep a side gutter at every width (GeneratePress drops it below the container width). */
#page.grid-container {
    padding-left: 22px;
    padding-right: 22px;
}

@media (max-width: 720px) {
    #page.grid-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* WooCommerce price filter slider in brand orange. */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--bs-orange);
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: #ffd9c2;
}

/* ==========================================================================
   Dynamic home content (banners from Appearance → Home Page, products from WooCommerce)
   ========================================================================== */
.bs-hero-row--finder-only {
    grid-template-columns: 1fr;
}

.bs-product > a {
    display: block;
}

.bs-product h3 a {
    color: inherit;
    text-decoration: none;
}

.bs-product h3 a:hover {
    color: var(--bs-orange);
}

.bs-product .bs-price {
    display: block;
    margin: 0 0 14px;
    font-weight: 700;
    color: var(--bs-navy);
}

.bs-product .bs-price del {
    color: var(--bs-muted);
    font-weight: 400;
    margin-right: 4px;
}

.bs-product .bs-price ins {
    text-decoration: none;
    color: var(--bs-orange-dark);
}

.bs-social {
    display: flex;
    gap: 10px;
    margin: 0 0 14px;
}

.bs-social a {
    display: inline-block !important;
}

.bs-social img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.bs-brand-track {
    scrollbar-width: none;
}

/* Part number on product cards and the product page. */
.bs-part-no {
    display: block;
    font-size: 12px;
    color: var(--bs-muted);
    margin: 0 0 8px;
}

.bs-part-no strong {
    color: var(--bs-navy);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bs-part-no--single {
    font-size: 14px;
    margin: -4px 0 12px;
}

.woocommerce ul.products li.product .bs-part-no {
    margin-top: -4px;
}

/* Phones: the banner is short, so the photo sits behind the text — darken its left side. */
@media (max-width: 720px) {
    .bs-hero-bg {
        object-position: 70% center;
    }

    .bs-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg, #082d55f2 0%, #082d55cc 45%, #082d5500 85%);
    }
}

/* ==========================================================================
   Carousels (betastore_carousel_start()): [‹] track [›] — arrows, swipe and mouse drag
   ========================================================================== */
.bs-carousel {
    --bs-gap: 14px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.bs-carousel-track {
    display: flex;
    gap: var(--bs-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* room for card shadows / hover lift (vertical only, so the start is scrollLeft 0) */
    padding: 6px 0 10px;
    margin: -6px 0 -10px;
}

.bs-carousel-track::-webkit-scrollbar {
    display: none;
}

.bs-carousel-track > * {
    scroll-snap-align: start;
}

.bs-carousel-track img {
    -webkit-user-drag: none;
    user-select: none;
}

/* While dragging with the mouse: follow the pointer exactly, no snapping. */
.bs-carousel-track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.bs-carousel-track.is-dragging a {
    pointer-events: none;
}

.bs-carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #bacada;
    border-radius: 50%;
    background: #fff;
    color: var(--bs-navy);
    box-shadow: 0 2px 6px #082d5512;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.bs-carousel-btn:hover:not(:disabled),
.bs-carousel-btn:focus-visible:not(:disabled) {
    background: var(--bs-orange);
    border-color: var(--bs-orange);
    color: #fff;
}

.bs-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

/* Items per view: as many as fit the design's grid, the rest scroll. */
.bs-track--tiles > *    { flex: 0 0 calc((100% - 5 * var(--bs-gap)) / 6); }
.bs-track--apps > *     { flex: 0 0 calc((100% - 3 * var(--bs-gap)) / 4); }
.bs-track--products > * { flex: 0 0 calc((100% - 4 * var(--bs-gap)) / 5); }

.bs-track--brands {
    --bs-gap: 24px;
}

/* 7 brands fill the row; more than that scroll. */
.bs-track--brands > .bs-brand {
    flex: 0 0 calc((100% - 6 * var(--bs-gap)) / 7);
    width: auto;
    height: auto;
    aspect-ratio: 1;
}

/* Category bar: a row of links in a white pill, small arrows at its ends. */
.bs-category-nav {
    margin: 18px 0;
    padding: 8px 10px;
    border: 1px solid #dce5ed;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
}

.bs-category-nav .bs-carousel {
    gap: 8px;
}

.bs-track--links {
    --bs-gap: 30px;
    align-items: center;
    white-space: nowrap;
    scroll-snap-type: x proximity;
    padding: 9px 0;
    margin: 0;
}

.bs-track--links a {
    color: var(--bs-navy);
    text-decoration: none;
}

.bs-track--links a:hover,
.bs-track--links a.bs-category-all {
    color: var(--bs-orange);
}

.bs-category-nav .bs-carousel-btn {
    width: 30px;
    height: 30px;
    box-shadow: none;
}

.bs-category-nav .bs-carousel-btn svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 1100px) {
    .bs-track--tiles > *    { flex-basis: calc((100% - 3 * var(--bs-gap)) / 4); }
    .bs-track--apps > *     { flex-basis: calc((100% - 2 * var(--bs-gap)) / 3); }
    .bs-track--products > * { flex-basis: calc((100% - 2 * var(--bs-gap)) / 3); }
    .bs-track--brands > .bs-brand { flex-basis: calc((100% - 4 * var(--bs-gap)) / 5); }
}

@media (max-width: 720px) {
    .bs-carousel {
        --bs-gap: 10px;
        gap: 6px;
    }

    .bs-carousel-btn {
        width: 30px;
        height: 30px;
    }

    .bs-carousel-btn svg {
        width: 16px;
        height: 16px;
    }

    .bs-track--tiles > *,
    .bs-track--apps > *,
    .bs-track--products > * {
        flex-basis: calc((100% - var(--bs-gap)) / 2);
    }

    .bs-track--brands {
        --bs-gap: 14px;
    }

    .bs-track--brands > .bs-brand {
        flex-basis: calc((100% - 2 * var(--bs-gap)) / 3);
        padding: 14px;
    }

    .bs-category-nav {
        margin: 12px 0;
        padding: 6px;
    }

    .bs-track--links {
        --bs-gap: 22px;
    }

    .bs-category-nav .bs-carousel-btn {
        width: 26px;
        height: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bs-carousel-track {
        scroll-behavior: auto;
    }
}

/* ==========================================================================
   Product lists (shop, categories, search, related / upsells): the home card in a grid
   ========================================================================== */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

/* WooCommerce's float clearfix would become empty grid cells. */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    display: flex;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    text-align: left;
}

.woocommerce ul.products li.product .bs-product {
    flex: 1;
    min-width: 0;
}

.bs-product-media {
    position: relative;
    display: block;
}

.bs-product-media img {
    display: block;
}

.bs-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.bs-badge--sale {
    background: var(--bs-orange);
}

/* Related / up-sell products on the product page */
.related.products > h2,
.upsells.products > h2 {
    font-size: 24px;
    border-left: 5px solid var(--bs-orange);
    padding-left: 12px;
    margin: 30px 0 16px;
}

@media (max-width: 1100px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* Same image box on every card (WooCommerce's list styles would make it height:auto). */
.bs-product .bs-product-media img,
.woocommerce ul.products li.product .bs-product-media img {
    width: 100%;
    height: 170px;
    margin: 0;
    object-fit: contain;
    background: #f7f8fa;
}

.woocommerce ul.products li.product .bs-part-no strong,
.bs-part-no strong {
    display: inline;
}

.woocommerce ul.products li.product .bs-product h3 {
    padding: 0;
    margin: 0 0 8px;
    font-size: 17px;
}

@media (max-width: 720px) {
    .bs-product .bs-product-media img,
    .woocommerce ul.products li.product .bs-product-media img {
        height: 130px;
    }

    .woocommerce ul.products li.product .bs-product h3 {
        font-size: 15px;
    }
}

/* WooCommerce's float-grid widths (incl. its small-screen "48%" rule) don't apply to our grid. */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
.woocommerce ul.products[class*="columns-"] li.product:nth-child(2n),
.woocommerce-page ul.products[class*="columns-"] li.product:nth-child(2n) {
    float: none;
    clear: none;
    width: auto;
    margin: 0;
}

@media (max-width: 720px) {
    .bs-product .bs-btn {
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
        font-size: 12px;
    }
}

/* Card photos: flush with the top of the card at their natural shape (no crop, no empty band);
   very tall photos are capped and shrink to fit. Buttons stay aligned (pinned to the bottom). */
.bs-product .bs-product-media img,
.woocommerce ul.products li.product .bs-product-media img,
.bs-shop ul.products.is-list .bs-product-media img {
    height: auto;
    min-height: 0;
    max-height: 240px;
    object-fit: contain;
    object-position: center top;
    background: transparent;
}

/* Category tiles: every photo fills the same wide box edge to edge (no bands; the design's
   category photos are this shape, others are centred), so all tiles are the same height. */
.bs-tile img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    object-position: center;
    background: transparent;
}

/* ==========================================================================
   Card photos — final rule: a fixed box shaped like the design's photos; the WHOLE photo is
   always shown inside it (never cropped), centred. Same height on every card, so titles line up.
   ========================================================================== */
.bs-product .bs-product-media img,
.woocommerce ul.products li.product .bs-product-media img,
.bs-shop ul.products.is-list .bs-product-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 2 / 1;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

.bs-tile img {
    aspect-ratio: 2 / 1;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

/* Text: name max 2 lines, description max 2 lines; price + button sit at the bottom of the
   card so they line up across the row. */
.bs-product h3,
.woocommerce ul.products li.product .bs-product h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.bs-product p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.bs-product .bs-price {
    margin-top: auto;
}

.bs-product .bs-price + .bs-btn {
    margin-top: 0;
}

/* List view: the photo column keeps its own height. */
.bs-shop ul.products.is-list .bs-product-media img {
    height: 100%;
    aspect-ratio: auto;
}

/* Brand circle for a brand with no logo uploaded yet: its name instead. */
.bs-brand-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    color: var(--bs-navy);
    overflow-wrap: anywhere;
}
