/*
 * Bear Activewear — storefront overrides
 * Loaded after Oscar's compiled oscar/css/styles.css and after tokens.css.
 * Bootstrap 4 doesn't expose every surface via CSS custom properties, so
 * several rules below target Bootstrap's default selectors directly.
 */

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
    border-radius: var(--radius-storefront);
    font-family: var(--font-heading);
    font-weight: 700;
    box-shadow: none;
}

.btn-primary,
.btn-primary:visited {
    background-color: var(--bear-off-black);
    border: 1px solid var(--bear-off-black);
    color: var(--bear-white);
}

.btn-primary:hover {
    background-color: var(--bear-black);
    border-color: var(--bear-black);
    color: var(--bear-white);
}

.btn-primary:focus,
.btn-primary.focus {
    box-shadow: none;
    outline: 2px solid var(--bear-off-black);
    outline-offset: 2px;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--bear-beige-dark);
    border-color: var(--bear-beige-dark);
    color: var(--bear-muted);
}

.btn-secondary,
.btn-outline-secondary {
    background-color: transparent;
    border: 1px solid var(--bear-off-black);
    color: var(--bear-off-black);
}

.btn-secondary:hover,
.btn-outline-secondary:hover {
    background-color: var(--bear-off-black);
    border-color: var(--bear-off-black);
    color: var(--bear-white);
}

.btn-secondary:focus,
.btn-outline-secondary:focus {
    box-shadow: none;
    outline: 2px solid var(--bear-off-black);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: none;
}

/* ---------------------------------------------------------------------- */
/* Forms / inputs                                                         */
/* ---------------------------------------------------------------------- */

.form-control,
select.form-control,
textarea.form-control {
    background-color: var(--bear-white);
    border: 1px solid var(--bear-beige-dark);
    border-radius: var(--radius-storefront);
    padding: 12px 8px;
    color: var(--bear-off-black);
    box-shadow: none;
}

.form-control:focus {
    border: 2px solid var(--bear-off-black);
    box-shadow: none;
    outline: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border: 2px solid var(--bear-error);
}

.error-block,
.invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    color: var(--bear-error);
}

label,
.col-form-label {
    font-family: var(--font-body);
    font-weight: 600;
}

label.required::after,
.col-form-label.required::after {
    content: " *";
    color: var(--bear-error);
}

/* ---------------------------------------------------------------------- */
/* Alerts / messages                                                      */
/* ---------------------------------------------------------------------- */

.alert {
    border-radius: var(--radius-storefront);
    border-width: 1px;
    border-style: solid;
    box-shadow: none;
}

.alert-danger {
    background-color: var(--bear-error-bg);
    border-color: var(--bear-error);
    color: var(--bear-error);
}

.alert-success {
    background-color: var(--bear-success-bg);
    border-color: var(--bear-success);
    color: var(--bear-success);
}

.alert-info,
.alert-warning {
    background-color: var(--bear-info-bg);
    border-color: var(--bear-info-border);
    color: var(--bear-off-black);
}

#messages {
    /* Announced by screen readers whenever content inside changes,
       e.g. add-to-basket confirmations, form error banners. */
}

/* ---------------------------------------------------------------------- */
/* Site header — single flat row (hamburger / brand / links / cart)       */
/* replaces Oscar's stock nav_accounts.html + brand/mini_basket row +     */
/* nav_primary.html navbar, see templates/oscar/layout.html.              */
/* ---------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: var(--bear-beige);
    border-bottom: 1px solid var(--bear-off-black);
    box-shadow: 0 0 0 rgba(17, 17, 17, 0);
    transition: box-shadow 0.25s ease;
}

/* Toggled by initHeaderScrollState() in storefront.js once the page has
   scrolled past the header — a subtle lift so the sticky header reads as
   "above" the content instead of just a static bar with a hard edge. */
.site-header--scrolled {
    box-shadow: 0 4px 16px rgba(17, 17, 17, 0.08);
}

.site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3);
}

@media (min-width: 768px) {
    .site-header__row {
        padding: var(--space-3) var(--space-5);
    }
}

.site-header__toggle {
    background: transparent;
    border: none;
    color: var(--bear-off-black);
    font-size: 20px;
    padding: var(--space-1);
    line-height: 1;
}

.site-header__toggle i {
    display: inline-block;
    transition: transform 0.2s ease;
}

/* Bootstrap's collapse plugin sets aria-expanded on the trigger button
   itself, so the hamburger-to-close rotation needs no extra JS. */
.site-header__toggle[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--bear-off-black);
    text-decoration: none;
}

/* Desktop only — the mobile lockup spacing (var(--space-3), same as this
   rule's base) was already confirmed to look right, so widen the gap just
   above the `lg` breakpoint instead of raising it globally. */
@media (min-width: 992px) {
    .site-header__brand {
        gap: var(--space-4);
    }
}

.site-header__brand:hover,
.site-header__brand:focus {
    color: var(--bear-off-black);
    text-decoration: none;
}

.site-header__brand-mark,
.site-header__brand-wordmark {
    display: block;
    height: 36px;
    width: auto;
}

/* Below Bootstrap's `lg` breakpoint (matches the `d-lg-*` classes used in
   the header markup) the nav is hidden, leaving just the toggle, brand and
   actions as direct flex children of .site-header__row. `space-between`
   spreads those three evenly across the row, shoving the brand away from
   the toggle button toward the middle — switch to flex-start so the
   toggle/brand sit together, and pin actions to the right manually. */
@media (max-width: 991.98px) {
    .site-header__row {
        justify-content: flex-start;
        gap: var(--space-2);
    }

    .site-header__actions {
        margin-left: auto;
    }
}

.site-header__nav {
    flex-grow: 1;
    justify-content: center;
}

.site-header__nav .nav-categories {
    gap: var(--space-2);
}

.site-header__nav .nav-link {
    position: relative;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bear-off-black);
    text-decoration: none;
}

/* Sliding underline on hover/focus/open, replacing an instant
   text-decoration toggle — same ::after-scaleX technique as
   .lang-toggle__option below, kept consistent across the header. */
.site-header__nav .nav-link::after {
    content: '';
    position: absolute;
    left: var(--space-3);
    right: var(--space-3);
    bottom: 2px;
    height: 2px;
    background-color: var(--bear-off-black);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-header__nav .nav-link:hover::after,
.site-header__nav .nav-link:focus::after,
.site-header__nav .nav-item.show > .nav-link::after {
    transform: scaleX(1);
}

/* "Shop by Category" dropdown — groups the flat product-type categories
   (Leggings, Shorts, ...) apart from the gender links (Women/Men/Unisex)
   that sit beside it in .nav-categories; see templates/oscar/layout.html
   and apps/catalogue/templatetags/nav_categories.py. Styled to match the
   .address-controls dropdown-menu treatment used in checkout: sharp
   corners, no shadow, off-black border. */
.site-header__nav .dropdown-toggle::after {
    transition: transform 0.2s ease;
}

.site-header__nav .nav-item.show .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Bootstrap only toggles the `.show` class (display: none/block) with no
   transition of its own. The menu is absolutely positioned, so keeping it
   permanently `display: block` and animating opacity/transform/visibility
   instead costs nothing in layout and gives the fade + slide-down open. */
.site-header__nav .dropdown-menu {
    display: block;
    background-color: var(--bear-white);
    border: 1px solid var(--bear-off-black);
    border-radius: var(--radius-storefront);
    box-shadow: none;
    margin-top: var(--space-2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
}

.site-header__nav .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header__nav .dropdown-menu .dropdown-item {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bear-off-black);
    transition: background-color 0.15s ease;
}

.site-header__nav .dropdown-menu .dropdown-item:hover,
.site-header__nav .dropdown-menu .dropdown-item:focus {
    background-color: var(--bear-beige-light);
    color: var(--bear-off-black);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.site-header__account {
    color: var(--bear-off-black);
    font-size: 18px;
    text-decoration: none;
}

.site-header__account:hover,
.site-header__account:focus {
    color: var(--bear-off-black);
    text-decoration: none;
    opacity: 0.7;
}

/* Language toggle — flat, borderless EN/ES text control (no bordered-box
   look), see templates/oscar/partials/language_toggle.html. Desktop
   instance sits in .site-header__actions; .lang-toggle--mobile is the
   touch-sized duplicate in .site-header__mobile. The underline (::after)
   indicates the currently active language; it's a full-page-reload POST
   form, not an instant switch, so it must not appear on hover of the
   inactive option — that would misrepresent state before a real click. */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.lang-toggle__icon {
    font-size: 12px;
    color: var(--bear-muted);
    line-height: 1;
}

.lang-toggle__divider {
    color: var(--bear-beige-dark);
    font-size: 12px;
    user-select: none;
    pointer-events: none;
}

.lang-toggle__option {
    background: transparent;
    border: none;
    padding: var(--space-1) var(--space-1);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bear-muted);
    position: relative;
    cursor: pointer;
    transition: color 0.15s ease;
}

.lang-toggle__option::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background-color: var(--bear-off-black);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.lang-toggle__option:hover,
.lang-toggle__option:focus {
    color: var(--bear-off-black);
}

.lang-toggle__option:focus-visible {
    outline: 2px solid var(--bear-off-black);
    outline-offset: 2px;
}

.lang-toggle__option[aria-current="true"] {
    color: var(--bear-off-black);
    font-weight: 700;
}

.lang-toggle__option[aria-current="true"]::after {
    transform: scaleX(1);
}

.lang-toggle__option[aria-current="true"]:hover,
.lang-toggle__option[aria-current="true"]:focus {
    opacity: 0.7;
}

.lang-toggle--mobile {
    align-self: flex-start;
    margin-bottom: var(--space-3);
    gap: var(--space-2);
}

.lang-toggle--mobile .lang-toggle__icon {
    font-size: 14px;
}

.lang-toggle--mobile .lang-toggle__option {
    padding: var(--space-2) var(--space-1);
}

.site-header__mobile-label {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bear-muted);
    margin-bottom: var(--space-2);
}

.site-header__mobile {
    border-top: 1px solid var(--bear-off-black);
    padding: var(--space-3);
    background-color: var(--bear-beige);
}

.site-header__mobile .nav-categories--mobile {
    flex-direction: column;
    margin-top: var(--space-2);
}

.site-header__mobile .nav-categories--mobile .nav-link {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bear-off-black);
}

/* Flat top-level category nav (used both in the desktop row and the
   collapsed mobile panel; see .nav-categories--mobile above) */
.nav-categories {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-categories .nav-link {
    padding: var(--space-2) var(--space-3);
}

/* ---------------------------------------------------------------------- */
/* Mini-basket — unified across breakpoints, square badge overlapping the */
/* icon (top-right), matching the mockup's cart glyph treatment.          */
/* ---------------------------------------------------------------------- */

.basket-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--bear-off-black);
    text-decoration: none;
}

.basket-icon:hover,
.basket-icon:focus {
    color: var(--bear-off-black);
    opacity: 0.7;
    text-decoration: none;
}

.basket-icon__glyph {
    position: relative;
    display: inline-flex;
    font-size: 18px;
}

.basket-icon .basket-count {
    position: absolute;
    top: -6px;
    right: -8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    font-size: 10px;
    font-weight: 700;
    border-radius: 0;
    line-height: 1;
}

.basket-icon .basket-total {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------------------------------------------------------------------- */
/* Footer — full-bleed black band, .site-footer__inner controls the       */
/* inner content width via the shared .container class.                  */
/* ---------------------------------------------------------------------- */

.site-footer {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    border-top: 1px solid var(--bear-off-black);
    padding-top: var(--space-6);
    padding-bottom: var(--space-4);
    margin-top: var(--space-7);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.site-footer__brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--bear-white);
    margin-bottom: var(--space-3);
}

.site-footer__tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--bear-white-70);
    max-width: 32em;
    margin-bottom: var(--space-4);
}

.site-footer__social {
    display: flex;
    gap: var(--space-3);
}

.site-footer__social-link {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bear-white);
    color: var(--bear-white);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus {
    background-color: var(--bear-white);
    color: var(--bear-off-black);
    text-decoration: none;
}

.site-footer__heading {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bear-white);
    margin-bottom: var(--space-4);
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--bear-white-70);
}

.site-footer__links a {
    color: var(--bear-white-70);
    text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
    color: var(--bear-white);
    text-decoration: underline;
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    border-top: 1px solid var(--bear-white-20);
    padding-top: var(--space-4);
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bear-white-50);
}

@media (min-width: 768px) {
    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.site-footer__credit {
    color: var(--bear-white-50);
    margin-left: var(--space-2);
}

.site-footer__legal {
    display: flex;
    gap: var(--space-3);
}

.site-footer__legal a {
    color: var(--bear-white-50);
    text-decoration: none;
}

.site-footer__legal a:hover,
.site-footer__legal a:focus {
    color: var(--bear-white);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Cards / product grid                                                    */
/* ---------------------------------------------------------------------- */

.card {
    border-radius: var(--radius-storefront);
    border: 1px solid var(--bear-beige-dark);
    box-shadow: none;
}

.card.bg-light {
    background-color: var(--bear-beige-light) !important;
}

.product_pod,
.card.product_pod {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    background-color: var(--bear-white);
    border: 1px solid var(--bear-off-black);
    border-radius: var(--radius-storefront);
    box-shadow: none;
    padding-bottom: var(--space-3);
    transition: border-color 0.15s ease;
}

.product_pod:hover,
.card.product_pod:hover {
    border-color: var(--bear-black);
    box-shadow: none;
}

.product_pod .image_container {
    height: 144px;
    margin: 0;
    border-bottom: 1px solid var(--bear-off-black);
    overflow: hidden;
    display: flex;
}

@media (min-width: 768px) {
    .product_pod .image_container {
        height: 200px;
    }
}

.product_pod .image_container a {
    display: block;
    width: 100%;
    height: 100%;
}

.product_pod .image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product_pod__body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex-grow: 1;
    padding: 0 var(--space-3);
}

.product_pod h3 {
    font-size: 13px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin: 0;
}

.product_pod h3 a {
    color: var(--bear-off-black);
    text-decoration: none;
}

.product_pod h3 a:hover,
.product_pod h3 a:focus {
    text-decoration: underline;
}

.product_pod .price_color {
    font-size: 14px;
    font-family: var(--font-heading);
}

.product_pod .product_price {
    margin-top: auto;
}

/* ---------------------------------------------------------------------- */
/* Price / availability                                                   */
/* ---------------------------------------------------------------------- */

.price_color {
    font-weight: 700;
    color: var(--bear-off-black);
}

.product_page .price_color {
    font-size: 28px;
    font-family: var(--font-heading);
}

.price-sale,
.was-price {
    text-decoration: line-through;
    color: var(--bear-muted);
    font-weight: 400;
}

p.availability {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
}

p.availability.instock,
p.availability.available {
    color: var(--bear-success);
}

p.availability.outofstock,
p.availability.unavailable {
    color: var(--bear-error);
}

/* ---------------------------------------------------------------------- */
/* Checkout gateway — three equal-weight cards                            */
/* ---------------------------------------------------------------------- */

.gateway-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    align-items: stretch;
}

@media (max-width: 767px) {
    .gateway-options {
        grid-template-columns: 1fr;
    }
}

.gateway-card {
    border: 1px solid var(--bear-beige-dark);
    background-color: var(--bear-white);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gateway-card--primary {
    border: 2px solid var(--bear-off-black);
    background-color: var(--bear-beige-light);
}

.gateway-card h3 {
    margin-bottom: var(--space-2);
}

.gateway-card .btn {
    margin-top: auto;
}

/* Checkout progress nav — superseded by the fuller ".nav-checkout" rules
   further down this file (flat off-black bar + square active-step badge +
   mobile summary line), which win the cascade since they come later at the
   same specificity. Old rules removed here rather than left as dead/
   conflicting rules. */

/* ---------------------------------------------------------------------- */
/* Login / register                                                       */
/* ---------------------------------------------------------------------- */

.login_form .card,
.register_form .card {
    border-radius: var(--radius-storefront);
}

.login_form .card {
    border: 2px solid var(--bear-off-black);
    background-color: var(--bear-beige-light) !important;
}

.register_form .card {
    border: 1px solid var(--bear-beige-dark);
    background-color: var(--bear-white) !important;
}

/* ---------------------------------------------------------------------- */
/* Homepage — hero, shop-by-category, featured collection, fabric         */
/* features, value props, promo. templates/home/home.html. Grid           */
/* breakpoints match Bootstrap's md (768px) / lg (992px) used elsewhere.  */
/* ---------------------------------------------------------------------- */

.section-kicker {
    font-family: var(--font-subtitle);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bear-muted);
    margin-bottom: var(--space-2);
}

.home {
    background-color: var(--bear-beige);
    padding: var(--space-3);
}

@media (min-width: 768px) {
    .home {
        padding: var(--space-5);
    }
}

.home-hero {
    margin-bottom: var(--space-7);
}

/* Hero media */

.home-hero__media {
    position: relative;
    height: 60vh;
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    overflow: hidden;
}

@media (min-width: 992px) {
    .home-hero__media {
        height: 80vh;
    }
}

.home-hero__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bear-gray);
    color: var(--bear-black-40);
    font-size: 96px;
}

.home-hero__media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-4);
    background: linear-gradient(to top, var(--bear-black-40), transparent);
}

@media (min-width: 768px) {
    .home-hero__overlay {
        padding: var(--space-6);
    }
}

.home-hero__title {
    font-size: 40px;
    /* H1/Hero tier per brand type spec: ExtraBold, one step heavier than
       H2's Bold even though this element is markup-level an <h2> (see
       templates/home/home.html) — it's the page's visual hero title. */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--bear-white);
    margin-bottom: var(--space-3);
    line-height: 1.05;
}

@media (min-width: 768px) {
    .home-hero__title {
        font-size: 64px;
    }
}

.home-hero__subtitle {
    font-family: var(--font-subtitle);
    font-weight: 600;
    font-size: 16px;
    color: var(--bear-white-70);
    max-width: 46ch;
    margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
    .home-hero__subtitle {
        font-size: 20px;
    }
}

.home-hero__cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--space-3);
}

@media (max-width: 767px) {
    .home-hero__cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }
}

.home-hero__cta {
    display: inline-block;
    align-self: flex-start;
    border: 2px solid var(--bear-white);
    color: var(--bear-white);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (max-width: 767px) {
    .home-hero__cta {
        align-self: stretch;
    }
}

.home-hero__cta:hover,
.home-hero__cta:focus {
    background-color: var(--bear-white);
    color: var(--bear-off-black);
    text-decoration: none;
}

.home-hero__cta--primary {
    background-color: var(--bear-white);
    color: var(--bear-off-black);
}

.home-hero__cta--primary:hover,
.home-hero__cta--primary:focus {
    background-color: transparent;
    color: var(--bear-white);
    border-color: var(--bear-white);
}

.home-bestsellers--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    padding: var(--space-6) var(--space-3);
    text-align: center;
}

.home-bestsellers--empty p {
    font-family: var(--font-heading);
    color: var(--bear-muted);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
}

/* Shop by Category */

.home-categories {
    margin-bottom: var(--space-7);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-tile {
    display: block;
    text-decoration: none;
}

.category-tile__image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
}

.category-tile__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-tile:hover .category-tile__image img {
    transform: scale(1.04);
}

.category-tile__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bear-gray);
    color: var(--bear-black-40);
    font-size: 48px;
}

.category-tile__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: var(--space-3);
    background: linear-gradient(to top, var(--bear-black-70), transparent);
}

.category-tile__label {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bear-white);
}

@media (min-width: 768px) {
    .category-tile__label {
        font-size: 16px;
    }
}

/* Featured Collection */

.home-featured {
    margin-bottom: var(--space-7);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product card */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    transition: border-width 0.15s ease;
}

.product-card:hover {
    border-width: 2px;
}

/* Only scale the image on hover when the product has a single image (the
   common case today) — a real gallery still swaps images via the product
   detail page, this is a lightweight "alive" cue on the card itself. */
.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    z-index: 1;
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    font-family: var(--font-heading);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px var(--space-2);
}

.product-card__image {
    height: 192px;
    border-bottom: 1px solid var(--bear-off-black);
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-card__image {
        height: 256px;
    }
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: var(--space-3);
}

.product-card__title {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
    .product-card__title {
        font-size: 16px;
    }
}

.product-card__title a {
    color: var(--bear-off-black);
    text-decoration: none;
}

.product-card__meta {
    font-family: var(--font-subtitle);
    font-weight: 600;
    font-size: 12px;
    color: var(--bear-black-70);
    margin-bottom: var(--space-3);
}

.product-card__colour {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bear-muted);
    margin-bottom: var(--space-3);
}

/* 14x14px colour swatch for the Featured Collection product cards — code
   comes straight off the "color" AttributeOptionGroup (see
   apps/catalogue/migrations/0035_clothing_product_class_and_attributes.py).
   A 1px border keeps the white swatch visible against the card's white
   background without introducing a drop shadow. */
.product-card__colour-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 1px solid var(--bear-gray);
    flex-shrink: 0;
}

.product-card__colour-swatch--black {
    background-color: var(--bear-black);
}

.product-card__colour-swatch--white {
    background-color: var(--bear-white);
}

.product-card__colour-swatch--beige {
    background-color: var(--bear-beige);
}

/* "sage" isn't a standard CSS3 colour keyword, so it needs an explicit hex
   fallback rather than `background-color: sage`. */
.product-card__colour-swatch--sage {
    background-color: #9CAF88;
}

.product-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

@media (min-width: 768px) {
    .product-card__footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.product-card__price {
    font-family: var(--font-heading);
    font-weight: 700;
}

.product-card__form {
    width: 100%;
}

@media (min-width: 768px) {
    .product-card__form {
        width: auto;
    }
}

/* SimpleAddToBasketForm renders a hidden quantity input wrapped in a <p>
   via .as_p — hide it so it doesn't add stray spacing above the button. */
.product-card__form p {
    display: none;
    margin: 0;
}

.product-card__add {
    display: block;
    width: 100%;
    border: 1px solid var(--bear-off-black);
    background-color: transparent;
    color: var(--bear-off-black);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (min-width: 768px) {
    .product-card__add {
        width: auto;
    }
}

.product-card__add:hover,
.product-card__add:focus {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    text-decoration: none;
}

/* Fabric Features checklist */

.home-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    margin-bottom: var(--space-7);
}

@media (min-width: 992px) {
    .home-features {
        grid-template-columns: 7fr 5fr;
        gap: var(--space-6);
        align-items: center;
    }
}

.home-features__media {
    position: relative;
    height: 320px;
    border: 1px solid var(--bear-off-black);
    overflow: hidden;
}

@media (min-width: 992px) {
    .home-features__media {
        height: 100%;
        min-height: 420px;
    }
}

.home-features__list h3 {
    margin-bottom: var(--space-3);
}

.feature-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-checklist__item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border-bottom: 1px solid var(--bear-beige-dark);
    padding: var(--space-3) 0;
}

.feature-checklist__item i {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--bear-off-black);
}

.feature-checklist__item span {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--bear-off-black);
}

/* Value props strip */

.home-values {
    border-top: 1px solid var(--bear-off-black);
    border-bottom: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    padding: var(--space-5) 0;
    margin: var(--space-7) 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: center;
}

@media (min-width: 768px) {
    .home-values {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-values__item {
    padding: var(--space-3) var(--space-3) 0;
}

@media (min-width: 768px) {
    .home-values__item {
        padding: 0 var(--space-3);
        border-left: 1px solid var(--bear-off-black);
    }

    /* Leftmost item of each 3-column row shouldn't carry a left border —
       :nth-child(3n+1) covers row 1 (item 1) and row 2 (item 4), not just
       :first-child, now that there are 6 items wrapping to 2 rows. */
    .home-values__item:nth-child(3n+1) {
        border-left: none;
    }

    /* Second row gets its own top divider + breathing room instead of
       running straight into row 1. */
    .home-values__item:nth-child(n+4) {
        border-top: 1px solid var(--bear-beige-dark);
        padding-top: var(--space-5);
    }
}

.home-values__item h5 {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.home-values__item p {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--bear-black-70);
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------- */
/* Site-wide radio/checkbox accent (basket, checkout gateway, account      */
/* pages) — Bootstrap 4 doesn't theme native controls, they defaulted to   */
/* browser/OS blue everywhere.                                            */
/* ---------------------------------------------------------------------- */

input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--bear-off-black);
}

/* ---------------------------------------------------------------------- */
/* Checkout — header/footer chrome (templates/oscar/checkout/layout.html)  */
/* ---------------------------------------------------------------------- */

.site-header--checkout .site-header__row {
    justify-content: space-between;
}

.site-footer--checkout {
    padding-top: var(--space-4);
    margin-top: 0;
}

.site-footer--checkout .site-footer__bottom {
    border-top: none;
}

/* ---------------------------------------------------------------------- */
/* Checkout progress nav — flat off-black bar, square active-step badge,   */
/* collapses to a single summary line at md and below.                     */
/* ---------------------------------------------------------------------- */

.nav-checkout {
    background-color: var(--bear-off-black);
    border-radius: 0;
    padding: 0 var(--space-4);
}

.nav-checkout .navbar-nav {
    width: 100%;
}

.nav-checkout .nav-item {
    padding: var(--space-3) var(--space-4);
    border-right: 1px solid var(--bear-white-20);
    color: var(--bear-white-50);
}

.nav-checkout .nav-item:last-child {
    border-right: none;
}

.nav-checkout .nav-item .navbar-text,
.nav-checkout .nav-item a.nav-link {
    color: var(--bear-white-50);
    padding: 0;
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-checkout .nav-item.visited .navbar-text,
.nav-checkout .nav-item.previous .navbar-text,
.nav-checkout .nav-item.visited a.nav-link,
.nav-checkout .nav-item.previous a.nav-link {
    color: var(--bear-white-70);
}

.nav-checkout .nav-item a.nav-link:hover,
.nav-checkout .nav-item a.nav-link:focus {
    color: var(--bear-white);
    text-decoration: underline;
}

.nav-checkout .nav-item.active .navbar-text,
.nav-checkout .nav-item.active a.nav-link {
    color: var(--bear-white);
    font-weight: 700;
}

.nav-checkout .nav-item[aria-disabled="true"] .navbar-text {
    color: var(--bear-white-50);
}

.nav-checkout__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: var(--space-2);
    background-color: var(--bear-white);
    color: var(--bear-off-black);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.nav-checkout__mobile-summary {
    margin: 0;
    padding: var(--space-3) var(--space-4);
    color: var(--bear-white);
    font-family: var(--font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------- */
/* Address book — edit/delete/set-default dropdown                         */
/* ---------------------------------------------------------------------- */

.address-controls .dropdown-menu {
    background-color: var(--bear-white);
    border: 1px solid var(--bear-off-black);
    border-radius: var(--radius-storefront);
    box-shadow: none;
}

.address-controls .dropdown-menu .dropdown-item {
    color: var(--bear-off-black);
}

.address-controls .dropdown-menu .dropdown-item:hover,
.address-controls .dropdown-menu .dropdown-item:focus {
    background-color: var(--bear-beige-light);
    color: var(--bear-off-black);
}

/* ---------------------------------------------------------------------- */
/* Checkout — confirmation / thank-you page                                */
/* ---------------------------------------------------------------------- */

.order-confirmation .lead {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--bear-off-black);
}

/* ---------------------------------------------------------------------- */
/* Basket — line items, quantity stepper, line actions                     */
/* ---------------------------------------------------------------------- */

.basket-items {
    border-bottom: 1px solid var(--bear-beige-dark);
    padding: var(--space-4) 0;
}

.basket-items .img-thumbnail {
    border: 1px solid var(--bear-beige-dark);
    border-radius: var(--radius-storefront);
}

.basket-items h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--bear-off-black);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

/* Quantity stepper — shared with product-detail's add-to-basket form, see
   static/js/storefront.js (initQtySteppers) for the increment/decrement
   behaviour. Markup contract: .qty-stepper > .qty-stepper__btn(--decrease|
   --increase) + .qty-stepper__input. */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--bear-off-black);
}

.qty-stepper__btn {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: none;
    color: var(--bear-off-black);
    font-family: var(--font-heading);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.qty-stepper__btn:first-child {
    border-right: 1px solid var(--bear-off-black);
}

.qty-stepper__btn:last-child {
    border-left: 1px solid var(--bear-off-black);
}

.qty-stepper__btn:hover,
.qty-stepper__btn:focus {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
}

.qty-stepper__input {
    width: 48px;
    height: 40px;
    border: none;
    text-align: center;
    -moz-appearance: textfield;
    color: var(--bear-off-black);
    font-family: var(--font-body);
    font-weight: 600;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.checkout-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.basket-update-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--bear-off-black);
    font-family: var(--font-body);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}

.basket-update-link:hover,
.basket-update-link:focus {
    color: var(--bear-black);
}

.basket-line-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.basket-line-actions button {
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bear-muted);
    cursor: pointer;
}

.basket-line-actions__sep {
    color: var(--bear-beige-dark);
}

.basket-line-actions__remove:hover,
.basket-line-actions__remove:focus {
    color: var(--bear-error);
}

.basket-line-actions__save:hover,
.basket-line-actions__save:focus {
    color: var(--bear-off-black);
}

/* Voucher panel — native <details>/<summary> disclosure, degrades to
   "always visible" rather than "always hidden" without JS. */
#voucher_form_container[open] #voucher_form {
    border: 1px solid var(--bear-beige-dark);
    background-color: var(--bear-beige-light);
    padding: var(--space-3);
    margin-top: var(--space-2);
}

#voucher_form_link {
    cursor: pointer;
    list-style: none;
}

#voucher_form_link::-webkit-details-marker {
    display: none;
}

/* Empty basket state — bordered panel matching .home-bestsellers--empty,
   "Continue shopping" stays an underlined text link (low-stakes recovery
   action), not a button. */
.basket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    padding: var(--space-6) var(--space-3);
    text-align: center;
}

.basket-empty__message {
    font-family: var(--font-heading);
    color: var(--bear-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    margin-bottom: 0;
}

.basket-empty__link {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--bear-off-black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Saved-for-later section */
.basket-saved {
    border-top: 1px solid var(--bear-off-black);
    margin-top: var(--space-5);
    padding-top: var(--space-3);
}

.basket-saved .sub-header {
    border-bottom: 1px solid var(--bear-beige-dark);
    padding-bottom: var(--space-2);
    margin: var(--space-5) 0 var(--space-3);
}

/* ---------------------------------------------------------------------- */
/* Totals table — basket + order confirmation share this template.         */
/* ---------------------------------------------------------------------- */

.basket-totals-table,
.basket-totals-table td,
.basket-totals-table th {
    border: none;
}

.basket-totals-table td,
.basket-totals-table th {
    font-size: 14px;
    color: var(--bear-off-black);
}

.basket-totals-table th.total,
.basket-totals-table td.total {
    text-align: right;
}

.basket-totals-table__order-total th,
.basket-totals-table__order-total td {
    border-top: 2px solid var(--bear-off-black);
    padding-top: var(--space-3);
}

.basket-totals-table__order-total h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

.badge-success {
    background-color: var(--bear-success-bg);
    color: var(--bear-success);
    border-radius: var(--radius-storefront);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------------- */
/* Account pages — nav tabs, order history tables, profile/address        */
/* tables and forms (profile, profile edit, change password, delete       */
/* profile, address book, address form/delete — see                       */
/* templates/oscar/customer/profile/ and                                  */
/* templates/oscar/customer/address/). .account-table/.account-empty-state */
/* reuse the exact .order-history-table/.order-history-empty treatment;    */
/* .account-form-actions gives save/cancel and delete/cancel button pairs  */
/* consistent spacing across those pages.                                  */
/* ---------------------------------------------------------------------- */

.nav.nav-pills.flex-column .nav-link {
    border-radius: var(--radius-storefront);
    color: var(--bear-off-black);
    padding: var(--space-2) var(--space-3);
}

.nav.nav-pills.flex-column .nav-link:hover,
.nav.nav-pills.flex-column .nav-link:focus {
    background-color: var(--bear-beige-light);
}

.nav.nav-pills.flex-column .nav-link.active {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
}

.order-history-table,
.account-table {
    border-collapse: collapse;
}

.order-history-table,
.order-history-table td,
.order-history-table th,
.account-table,
.account-table td,
.account-table th {
    border: none;
}

.order-history-table tr,
.account-table tr {
    border-top: 1px solid var(--bear-beige-dark);
}

.order-history-table thead tr,
.order-history-table tr:first-child,
.account-table thead tr,
.account-table tr:first-child {
    border-top: none;
}

.order-history-table th,
.account-table th {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 12px;
    color: var(--bear-muted);
    border-bottom: 1px solid var(--bear-off-black) !important;
    padding-bottom: var(--space-2);
}

.order-history-table td,
.account-table td {
    padding: var(--space-2) var(--space-2);
}

.order-history-table__number {
    text-decoration: none;
}

.order-history-table__number:hover,
.order-history-table__number:focus {
    text-decoration: underline;
}

.account-table address {
    margin-bottom: 0;
}

.order-history-empty,
.account-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    padding: var(--space-6) var(--space-3);
    text-align: center;
}

.order-history-empty__message,
.account-empty-state__message {
    font-family: var(--font-heading);
    color: var(--bear-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    margin-bottom: 0;
}

.account-form-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

/* ---------------------------------------------------------------------- */
/* Foundational patterns — page header, breadcrumbs, sub-header, cards,   */
/* badges, star rating, checkboxes/radios. Applied site-wide.             */
/* ---------------------------------------------------------------------- */

.page-header {
    border-bottom: none;
    margin-bottom: 0;
}

.page-header h1 {
    border-bottom: 1px solid var(--bear-off-black);
    padding-bottom: var(--space-3);
    margin-bottom: var(--space-5);
}

.sub-header {
    border-bottom: none;
    margin-bottom: 0;
}

.sub-header h2,
.sub-header h3,
.sub-header h4 {
    border-bottom: 1px solid var(--bear-beige-dark);
    padding-bottom: var(--space-2);
    margin: var(--space-5) 0 var(--space-3);
}

.breadcrumb {
    background-color: transparent;
    padding: 0 0 var(--space-3) 0;
    margin-bottom: 0;
}

.breadcrumb-item {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--bear-beige-dark);
}

.breadcrumb-item a {
    color: var(--bear-off-black);
    text-decoration: none;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--bear-muted);
}

.card-body {
    padding: var(--space-4);
}

/* .badge-success already covered above ("Account pages" section) — reused
   as-is here. */

.star-rating {
    color: var(--bear-beige-dark);
}

.star-rating.One i:first-child,
.star-rating.Two i:first-child,
.star-rating.Two i:first-child + i,
.star-rating.Three i:first-child,
.star-rating.Three i:first-child + i,
.star-rating.Three i:first-child + i + i,
.star-rating.Four i:first-child,
.star-rating.Four i:first-child + i,
.star-rating.Four i:first-child + i + i,
.star-rating.Four i:first-child + i + i + i,
.star-rating.Five i {
    color: var(--bear-off-black);
}

/* input[type="checkbox"]/[type="radio"] accent-color already covered above
   ("Site-wide radio/checkbox accent" section) — applies here too. */

/* ---------------------------------------------------------------------- */
/* Catalogue listing / category / search results — shared layout_2_col    */
/* shell: collapsible sidebar disclosure, category tree, facets, toolbar, */
/* dense product_pod grid (see Cards section above), pagination, empty    */
/* state. See templates/oscar/layout_2_col.html and                       */
/* templates/oscar/catalogue/browse.html for the markup these hook into.  */
/* ---------------------------------------------------------------------- */

.sidebar-filter__disclosure {
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
}

.sidebar-filter__summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: var(--space-3);
    background-color: var(--bear-beige-light);
}

.sidebar-filter__summary::-webkit-details-marker {
    display: none;
}

.sidebar-filter__summary::after {
    content: "+";
    float: right;
}

.sidebar-filter__disclosure[open] > .sidebar-filter__summary::after {
    content: "\2212";
}

.sidebar-filter__body {
    padding: var(--space-3);
}

@media (min-width: 992px) {
    .sidebar-filter__disclosure {
        border: none;
    }

    .sidebar-filter__disclosure > .sidebar-filter__summary {
        display: none;
    }

    .sidebar-filter__disclosure > .sidebar-filter__body {
        display: block !important;
        padding: 0;
    }
}

.side_categories.card.bg-light {
    background-color: var(--bear-beige-light) !important;
}

.side_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side_categories ul ul {
    padding-left: var(--space-3);
}

.side_categories a {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--bear-off-black);
    text-decoration: none;
    padding: var(--space-1) 0;
}

.side_categories a:hover,
.side_categories a:focus {
    text-decoration: underline;
}

.category-image {
    border: 1px solid var(--bear-off-black);
}

dt.nav-header {
    font-family: var(--font-heading);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bear-muted);
    margin-top: var(--space-4);
}

dt.nav-header:first-child {
    margin-top: 0;
}

.facet-disabled {
    color: var(--bear-muted);
    cursor: not-allowed;
}

.catalogue-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    gap: var(--space-2);
}

.catalogue-toolbar__count {
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--bear-muted);
    margin: 0;
}

.catalogue-toolbar .sort_by .form-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: 0;
}

.catalogue-toolbar .sort_by select {
    display: inline-block;
    width: auto;
}

.pagination .page-link {
    border-radius: var(--radius-storefront);
    border: 1px solid var(--bear-beige-dark);
    color: var(--bear-off-black);
}

.pagination .page-item:not(.disabled) .page-link:hover {
    background-color: var(--bear-beige-light);
}

.pagination .page-item.disabled .page-link {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    border-color: var(--bear-off-black);
}

.catalogue-empty {
    border: 1px solid var(--bear-off-black);
    background-color: var(--bear-white);
    padding: var(--space-6) var(--space-3);
    text-align: center;
}

.catalogue-empty p {
    font-family: var(--font-heading);
    color: var(--bear-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    margin-bottom: var(--space-3);
}

.catalogue-empty__suggestion {
    display: block;
    margin-top: var(--space-2);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
}

.catalogue-empty__link,
.catalogue-empty__suggestion a {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--bear-off-black);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ---------------------------------------------------------------------- */
/* Product detail — gallery, price/availability, divider, quantity        */
/* stepper, variants, description, info table, reviews.                   */
/* ---------------------------------------------------------------------- */

.product_page hr {
    border: 0;
    border-top: 1px solid var(--bear-beige-dark);
    margin: var(--space-4) 0;
}

.product_page p.availability {
    margin-top: var(--space-2);
}

.product_page p.availability i {
    font-size: 16px;
}

#product_gallery .img-thumbnail {
    border: 1px solid var(--bear-off-black);
    border-radius: var(--radius-storefront);
    padding: 0;
}

#product_gallery .carousel-item img {
    width: 100%;
    display: block;
}

#product_gallery .carousel-control-prev,
#product_gallery .carousel-control-next {
    top: 50%;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    background-color: var(--bear-black-40);
    border-radius: var(--radius-storefront);
    opacity: 1;
}

#product_gallery .carousel-control-prev {
    left: var(--space-2);
}

#product_gallery .carousel-control-next {
    right: var(--space-2);
}

#product_gallery .carousel-control-prev:hover,
#product_gallery .carousel-control-next:hover,
#product_gallery .carousel-control-prev:focus,
#product_gallery .carousel-control-next:focus {
    background-color: var(--bear-black-70);
    opacity: 1;
}

.product-gallery__indicators {
    display: flex;
    gap: var(--space-2);
    list-style: none;
    position: static;
    margin: var(--space-3) 0 0;
    padding: 0;
}

.product-gallery__indicators li {
    width: 65px;
    height: 55px;
    box-sizing: content-box;
    border: 1px solid var(--bear-beige-dark);
    text-indent: 0;
    opacity: 1;
    padding: 0;
    cursor: pointer;
}

.product-gallery__indicators li.active {
    border: 2px solid var(--bear-off-black);
}

.product-gallery__indicators img {
    width: 65px;
    height: 55px;
    object-fit: cover;
    display: block;
}

/* .qty-stepper / .qty-stepper__btn(--decrease|--increase) / .qty-stepper__input
   are defined once, in the "Basket" section above, and reused here on the
   product-detail add-to-basket form (see
   templates/oscar/catalogue/partials/add_to_basket_form.html) — the
   ":first-child"/":last-child" border rules there already match this
   markup's button order (decrease first, increase last), so no
   detail-page-specific override is needed. */

.add-to-basket__submit {
    width: 100%;
}

@media (min-width: 768px) {
    .add-to-basket__submit {
        width: auto;
        max-width: 320px;
    }
}

.stock-alert-note {
    font-size: 14px;
    color: var(--bear-muted);
}

.variant-chips {
    display: flex;
    flex-wrap: wrap;
}

.variant-chips__item {
    display: inline-block;
    border: 1px solid var(--bear-off-black);
    padding: var(--space-2) var(--space-3);
    margin: 0 var(--space-2) var(--space-2) 0;
    color: var(--bear-off-black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.variant-chips__item:hover,
.variant-chips__item:focus {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    text-decoration: none;
}

#product_description + p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--bear-off-black);
    max-width: 65ch;
    margin-bottom: var(--space-5);
}

.product_page table.table th {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--bear-muted);
    border: none;
    border-top: 1px solid var(--bear-beige-dark);
    padding: var(--space-2) 0;
}

.product_page table.table td {
    font-size: 14px;
    color: var(--bear-off-black);
    border: none;
    border-top: 1px solid var(--bear-beige-dark);
    padding: var(--space-2) 0;
}

.product_page table.table-striped tbody tr:nth-of-type(odd) {
    background-color: transparent;
}

.review-list li {
    list-style: none;
    border-bottom: 1px solid var(--bear-beige-dark);
    padding: var(--space-3) 0;
}

/* ---------------------------------------------------------------------- */
/* Contact page — templates/home/contact.html. Single centered column.     */
/* ---------------------------------------------------------------------- */

.contact-page {
    max-width: 640px;
    margin: 0 auto;
}

.contact-page__intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--bear-off-black);
    margin-bottom: var(--space-5);
}

.contact-page__whatsapp {
    margin-bottom: var(--space-6);
}

.contact-page__whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.contact-page__social h4 {
    margin-bottom: var(--space-3);
}

/* Mirrors .site-footer__social-link sizing up (32px -> 40px) per the
   design spec, but on this page's white background rather than the
   footer's black one — off-black border/icon instead of white. */
.contact-social {
    display: flex;
    gap: var(--space-3);
}

.contact-social__link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bear-off-black);
    background-color: transparent;
    color: var(--bear-off-black);
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.contact-social__link:hover,
.contact-social__link:focus {
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    text-decoration: none;
}

/* ---------------------------------------------------------------------- */
/* FAQ page — templates/home/faq.html. Native <details>/<summary>,         */
/* lighter per-item treatment than .sidebar-filter__disclosure (no box/    */
/* fill per item, just a bottom divider) — reuses that pattern's           */
/* interaction language (the "+"/"−" toggle glyph) only.                   */
/* ---------------------------------------------------------------------- */

.faq-list {
    max-width: 720px;
}

.faq-item {
    border-bottom: 1px solid var(--bear-beige-dark);
}

.faq-item__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--bear-off-black);
    padding: var(--space-3) 0;
}

@media (min-width: 768px) {
    .faq-item__summary {
        font-size: 18px;
    }
}

.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__summary::after {
    content: "+";
    font-family: var(--font-heading);
    font-weight: 400;
    flex: 0 0 auto;
}

.faq-item[open] > .faq-item__summary::after {
    content: "\2212";
}

.faq-item__summary:hover {
    background-color: var(--bear-beige-light);
}

.faq-item__summary:focus-visible {
    outline: 2px solid var(--bear-off-black);
    outline-offset: 2px;
}

.faq-item__answer {
    max-width: 65ch;
    padding: var(--space-2) 0 var(--space-4);
}

.faq-item__answer p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--bear-off-black);
    margin-bottom: 0;
}

/* ---------------------------------------------------------------------- */
/* Terms & Conditions page — templates/home/terms.html. Dense legal text,  */
/* so comfortable line-length (~70ch) and generous section spacing rather  */
/* than any exciting/marketing treatment. Bilingual content is rendered   */
/* language-conditionally in the template, not through {% trans %}.        */
/* ---------------------------------------------------------------------- */

.terms-page {
    max-width: 760px;
    margin: 0 auto;
}

.terms-page__updated {
    color: var(--bear-muted);
    font-size: 14px;
    margin-bottom: var(--space-6);
}

.terms-page__section {
    margin-bottom: var(--space-6);
}

.terms-page__section h3 {
    margin-bottom: var(--space-3);
}

.terms-page__section p {
    max-width: 70ch;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bear-off-black);
    margin-bottom: var(--space-3);
}

.terms-page__section p:last-child {
    margin-bottom: 0;
}

/* Sitewide floating WhatsApp button — fixed bottom-right, follows scroll.
   Kept small and monochrome (off-black, not WhatsApp green) so it reads as
   part of the brand rather than a bolted-on widget; a circular shape is a
   deliberate exception to the storefront's square radius token since a fab
   is expected to read as a floating affordance, not a page element. */
.whatsapp-fab {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    font-size: 24px;
    text-decoration: none;
    z-index: 1040;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus {
    background-color: var(--bear-black);
    color: var(--bear-white);
    text-decoration: none;
    transform: scale(1.06);
}

@media (max-width: 575.98px) {
    .whatsapp-fab {
        right: var(--space-3);
        bottom: var(--space-3);
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

.terms-page__address {
    max-width: 70ch;
    font-style: normal;
    font-size: 16px;
    line-height: 1.6;
    color: var(--bear-off-black);
}

/* ---------------------------------------------------------------------- */
/* Maintenance gate splash page (templates/home/maintenance_gate.html)    */
/* Standalone document — doesn't extend layout.html/base.html, so it      */
/* only ever loads tokens.css + storefront.css (no Oscar/Bootstrap CSS),  */
/* which is why .gate__input / .gate__submit below carry their own full   */
/* box model instead of reusing .form-control/.btn-primary (those rules   */
/* only override Bootstrap's base styling, they don't replace it).       */
/* ---------------------------------------------------------------------- */

.gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background-color: var(--bear-white);
}

.gate__inner {
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.gate__media {
    display: inline-block;
    max-width: 100%;
    margin: 0 auto var(--space-5);
}

.gate__media-img {
    display: block;
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
}

.gate__heading {
    margin-bottom: var(--space-3);
}

.gate__message {
    margin-bottom: var(--space-5);
    color: var(--bear-muted);
    font-size: 18px;
    line-height: 1.5;
}

.gate__error {
    margin-bottom: var(--space-4);
    padding: var(--space-3);
    border: 1px solid var(--bear-error);
    background-color: var(--bear-error-bg);
    color: var(--bear-error);
    font-family: var(--font-body);
    font-weight: 600;
    text-align: left;
}

.gate__form {
    text-align: left;
}

.gate__field {
    margin-bottom: var(--space-4);
}

.gate__label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
}

.gate__input {
    display: block;
    width: 100%;
    padding: 12px 8px;
    background-color: var(--bear-white);
    border: 1px solid var(--bear-beige-dark);
    border-radius: var(--radius-storefront);
    color: var(--bear-off-black);
    font-family: var(--font-body);
    font-size: 16px;
    box-sizing: border-box;
}

.gate__input:focus {
    border: 2px solid var(--bear-off-black);
    outline: none;
}

.gate__submit {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background-color: var(--bear-off-black);
    border: 1px solid var(--bear-off-black);
    border-radius: var(--radius-storefront);
    color: var(--bear-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: none;
}

.gate__submit:hover {
    background-color: var(--bear-black);
    border-color: var(--bear-black);
}

.gate__submit:focus {
    outline: 2px solid var(--bear-off-black);
    outline-offset: 2px;
}

/* Model-size photos: gallery caption and "has model photos" chip hint     */
.product-gallery__caption {
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border-top: 1px solid var(--bear-off-black);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--bear-off-black);
}

.variant-chips__item--photo::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: var(--space-2);
    vertical-align: middle;
    background-color: currentColor;
}

/* Sale pricing: struck-through original, sale price, flat off-black tag.   */
.sale-price {
    font-weight: 700;
    color: var(--bear-off-black);
}

.price_color--sale .was-price {
    margin-right: var(--space-1);
    font-size: 0.8em;
}

.sale-tag {
    display: inline-block;
    margin-left: var(--space-1);
    padding: 2px var(--space-2);
    background-color: var(--bear-off-black);
    color: var(--bear-white);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
