/* --- 1. Variables & Base Setup --- */
:root {
    --hero-url: url('../images/hero-fell-running.webp');
    --primary-font: 'Bebas Neue', impact, sans-serif;
    --secondary-font: 'Manrope', sans-serif;
    --primary-color: #212529;
    --secondary-color: #ffffff;
    --highlight-color: #dc3545;
    --header-offset-mobile: 3.75px;
    --header-offset-desktop: 3.125px;
}

html {
    height: 100%;
}

body {
    font-family: var(--secondary-font);
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

h1 {
    font-family: var(--primary-font);
}

h2 {
    font-family: var(--secondary-font);
}

.text-shrink {
    font-size: clamp(0.3rem, 2.5vw, 0.8rem);
}

.site-content,
.delete-product {
    margin-top: 96px;
}

/* --- 2. Navigation & Global Elements --- */
.logo {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 50px 7px 0;
    position: relative;
    z-index: 1031;
}

#top-nav,
.main-nav-container {
    background-color: var(--primary-color);
}

#top-nav {
    min-height: 100px;
    display: flex;
    align-items: center;
}

#delivery-banner {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    padding: 5px 0;
    font-size: 20px;
}

.navbar-nav .nav-link {
    white-space: nowrap;
}

/* --- 3. Hero Section (Home) --- */
.hero-section {
    width: 100%;
}

.hero-boxed {
    min-height: 70vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--hero-url);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 800px;
    padding: 20px;
}

.hero-font {
    font-family: var(--primary-font);
    text-transform: uppercase;
    display: block;
    margin-top: 20px;
}

.endurance-line {
    display: block;
    font-size: clamp(6.5rem, 12vw, 8rem);
    line-height: 0.85;
}

.optimised-line {
    display: block;
    font-size: clamp(5.8rem, 10.6vw, 7.1rem);
    line-height: 0.85;
}

.endurance-line {
    font-weight: 900;
}

.optimised-line {
    font-weight: 400;
}

.home-page-headings  {
    font-family: var(--primary-font);
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
}

/* -- Newsletter Signup --*/

#newsletter {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/images/swimming.webp');
    background-size: cover;
}

.btn-custom-newsletter {
    font-family: var(--primary-font);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    max-width: 280px;
    white-space: nowrap;
    padding: 3px 35px;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    display: inline-block;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-radius: 0;
}

.btn-custom-newsletter:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* --- 6. UI Components (Buttons/Cards) --- */
.btn-custom,
.hero-btn {
    font-family: var(--primary-font);
    max-width: 280px;
    letter-spacing: 3px;
    white-space: nowrap;
    padding: 3px 35px;
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    display: inline-block;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border-radius: 0;
}

/* Custom Lab Category Badges */
.badge-lab-tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
}

.badge-lab-tag:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
}

.badge-lab-tag-checkout {
    background-color: var(--secondary-color);
    color: var(--highlight-color);
    border: 1px solid var(--highlight-color);
    border-radius: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
}



.badge-lab-tag-checkout:hover {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
    text-decoration: none;
}

.allauth-info-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.allauth-info-btn:hover {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.allauth-info-transparent-btn  {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.allauth-info-transparent-btn:hover  {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 1px solid var(--primary-color);
}

.allauth-danger-btn {
    border: 1px solid var(--highlight-color);
    color: var(--secondary-color);
    background-color: var(--highlight-color);
}

.allauth-danger-btn:hover {
    background-color: transparent !important;
    color: var(--highlight-color) !important;
}

.allauth-page {
    margin-top: 100px;
}


.btn-custom {
    border: 1.0px solid var(--primary-color);
    color: var(--primary-color);
}

.hero-btn {
    border: 2.0px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-custom:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.hero-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-custom i {
    font-size: 1rem;
    position: relative;
    top: -2px;
}

.top-rated-btn {
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: normal;
    padding: .4rem .5rem;
}

/* Sale Ribbon on Product Cards */
.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper a {
    display: block;
}

.image-wrapper img.card-img-top {
    display: block;
    width: 100%;
}

.sale-ribbon {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 35%;
    max-width: 240px;
    min-width: 120px;
    height: auto;
    z-index: 10;
}

.col-2 .sale-ribbon {
    width: 0.5rem;
    top: 0;
    left: 0;
}

/* Marketing Section */
.marketing .col-lg-4 {
    margin: 3.5rem 0;
    text-align: center;
}

/* Checkout Order Summary images */
.col-2 .image-wrapper .sale-ribbon {
    width: 50px !important;
    min-width: 0 !important;
    height: auto !important;
    top: 0 !important;
    left: 0 !important;
}

.col-2 .image-wrapper {
    display: block;
    position: relative;
    padding: 0;
}

/* Latest Banner */
.latest-banner {
    position: relative;
    padding: 64px 0;
    background: url('../images/mtb-latest-products.webp') center/cover no-repeat;
}

.latest-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.latest-banner__content {
    position: relative;
    z-index: 1;
}

.latest-banner__card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Message/Toast UI */
.message-container {
    position: fixed;
    top: 140px;
    right: 15px;
    z-index: 999999999;
}

.btt-button {
    height: 42px;
    width: 42px;
    position: fixed;
    bottom: 10px;
    right: 10px;
}


/* Ensure white stays white*/
.header-nav .nav-link.text-white {
    color: var(--secondary-color) !important;
    font-weight: 400;
}

#id-save-info {
    accent-color: red;
}

/* Cart */

.remove-item {
    color: var(--highlight-color) !important;
    border: 1px solid var(--highlight-color) !important;
    width: 32px;
    height: 32px;
}

.remove-item:hover {
    color: var(--secondary-color) !important;
    background-color: var(--highlight-color) !important;
    border: 1px solid var(--highlight-color) !important;
    width: 32px;
    height: 32px;
}

.update-link {
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    background-color: transparent;
    width: 32px;
    height: 32px;
}

.update-link:hover {
    color: var(--secondary-color) !important;
    background-color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    width: 32px;
    height: 32px;
}

/* Product Details*/

.custom-select-width {
    width: 100%;
    max-width: 25rem;
}

#id_product_variant option {
    white-space: normal;
}

/* Product Management*/

.product-management  {
    padding-top: 2rem;
}

/* My Profile */
.my-profile {
    padding-top: 2rem;
}

/* Media Queries*/

@media (min-width: 992px) {
    .site-content {
        margin-top: 96px;
    }
}

@media (max-width: 991px) {
    .hero-inner {
        padding-top: 0 !important;
    }

    .hero-boxed {
        min-height: 50vh;
        padding: 1.25rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .tag-text {
        white-space: normal;
        font-size: 1.1rem;
    }

    .allauth-page {
        padding-top: 24px;
        padding-bottom: 48px;
    }

    .hero-boxed {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .optimised-line {
        margin-left: -5px;
    }
}

@media (max-width: 576px) {

    .btn-custom,
    .hero-btn {
        max-width: 100%;
        font-size: 1.2rem;
    }
}

@media (min-width: 992px) {
    .hero-inner {
        padding-top: var(--header-offset-desktop);
    }

    .hero-content {
        padding: 36px 40px 44px;
    }

    .header-container {
        padding-top: 5rem;
    }

    .message-container {
        top: 220px;
    }

    .container {
        max-width: 80%;
    }

    .fixed-top-desktop-only {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }
}

@media (min-width: 992px) {
    .allauth-page {
        margin-top: 210px;
    }
}
