/* Consolidated Homepage & Application Styles */

/* The mobile filter off-canvas panel (#rightOffcanvas) is positioned with a
   literal `left` offset rather than a transform, so even while "hidden" it
   still sits just past the right edge of the viewport and expands the page's
   scrollable width — causing horizontal scroll on category/product pages on
   mobile. Clipping at the viewport boundary is the standard fix. */
html,
body {
    overflow-x: hidden;
}

/* Homepage H1: shown as a small caption bar pinned to the bottom of the hero
   carousel so it stays fixed in place across slides instead of duplicating
   per-slide. The standalone variant covers the no-hero-slides fallback.
   Positioned against .hero-banner-wrapper (not .hero-banner-carousel
   directly) because the carousel's slider JS treats every direct child of
   .hero-banner-carousel as a slide — the H1 has to live outside it. */
.hero-banner-wrapper {
    position: relative;
}

.hero-banner-h1-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 8px 12px;
    background-color: #000;
    color: #797979;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.4;
}

.hero-banner-h1-bar-standalone {
    position: static;
    padding: 8px 12px;
}

/* Brand logos in the "Shop By Brand" nav dropdown were cropped because the
   shared .img-fit utility uses object-fit: cover (fill the box, crop
   overflow) — correct for product thumbnails, wrong for brand wordmarks
   where the whole logo needs to stay visible. Scoped to this menu only so
   .img-fit's behavior elsewhere (product cards etc.) is untouched. */
.brand-menu-card img.img-fit {
    max-width: 100%;
    object-fit: contain;
}

/* Home banner 1 (promo carousel): object-fit: cover crops these promo
   graphics to fill the box, which can hide edge content (logos/text placed
   near the border) whenever the banner's own aspect ratio doesn't exactly
   match the slide box's. Switched to contain so the full banner is always
   visible; the dark fill keeps any resulting letterbox gap unobtrusive
   against these banners' dark backgrounds. */

.home-banner-1 img.img-fit {
    object-fit: contain;
}

#section_featured .slick-list,
#section_trending .slick-list,
#section_value_picks .slick-list,
#section_testimonials .slick-list {
    background: #fff;
}

#section_featured .slick-slide,
#section_trending .slick-slide,
#section_value_picks .slick-slide,
#section_testimonials .slick-slide,
#section_best_selling .slick-slide,
#section_newest .slick-slide,
#section_newest_preorder_products .slick-slide,
#section_featured_preorder_products .slick-slide {
    margin-bottom: -5px;
}

.instagram-reels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.instagram-reel-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.instagram-reel-card iframe {
    display: block;
    width: 100%;
    height: 600px;
    border: 0;
}

.homepage-blog-card {
    padding-bottom: 4px;
}

.homepage-blog-image {
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 4px;
    background: #f4f5f7;
}

.homepage-blog-image img {
    object-fit: contain;
}

.homepage-blog-image img:hover {
    transform: scale(1.04);
}

.homepage-blog-title {
    min-height: 48px;
    line-height: 1.3;
}

.homepage-blog-description {
    display: -webkit-box;
    min-height: 58px;
    overflow: hidden;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.homepage-faq-item:first-child {
    border-top: 0;
}

.homepage-faq-button {
    text-decoration: none !important;
}

.homepage-faq-button i {
    flex: 0 0 auto;
    transition: transform .2s ease;
}

.homepage-faq-button:not(.collapsed) i {
    transform: rotate(45deg);
}

.homepage-brand-card {
    height: 105px;
    padding: 16px 24px;
}

.homepage-brand-card img {
    width: auto;
    max-height: 72px;
    object-fit: contain;
    filter: grayscale(0);
}

.homepage-brand-card:hover img {
    transform: scale(1.05);
}

.homepage-blog-section,
.homepage-faq-section,
.homepage-brands-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

@media (max-width: 991px) {
    .instagram-reels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .instagram-reels-grid {
        display: flex;
        gap: 12px;
        margin-right: -15px;
        padding-right: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .instagram-reels-grid::-webkit-scrollbar {
        display: none;
    }

    .instagram-reel-card {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }

    .instagram-reel-card iframe {
        height: 580px;
    }

    .homepage-brand-card {
        height: 90px;
        padding: 12px;
    }

    .homepage-brand-card img {
        max-height: 62px;
    }
}

:root {
    --primary-color: #C70909;
    --primary-hover: #D81413;
    --dark-color: #111111;
    --dark-secondary: #1A1A1A;
    --topbar-color: #222222;
    --text-white: #FFFFFF;
    --text-muted: #BDBDBD;
    --light-bg: #F9F9F9;
}

.hero-banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-banner-carousel:not(.slick-initialized)>.hero-slide:not(:first-child) {
    display: none;
}

/* Keep hero navigation available without any sliding motion. */
.hero-banner-carousel .slick-track {
    transition-duration: 0ms !important;
}

.hero-slide {
    --hero-overlay-opacity: .45;
    position: relative;
    width: 100%;
    height: 440px;
    overflow: hidden;
    isolation: isolate;
    background: var(--dark-color);
}

.hero-slide-picture,
.hero-slide-image,
.hero-slide-overlay,
.hero-slide-legacy-link {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-picture {
    display: block;
    z-index: 0;
}

.hero-slide-image {
    object-fit: cover;
    transform: scale(1.001);
    transition: none !important;
    animation: none !important;
}

.hero-slide-overlay {
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg,
            rgba(0, 0, 0, var(--hero-overlay-opacity)) 0%,
            rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * .82)) 43%,
            rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * .25)) 100%);
}

.hero-slide-text-center .hero-slide-overlay {
    background:
        radial-gradient(circle at center,
            rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * .88)) 0%,
            rgba(0, 0, 0, var(--hero-overlay-opacity)) 100%);
}

.hero-slide-text-right .hero-slide-overlay {
    background:
        linear-gradient(270deg,
            rgba(0, 0, 0, var(--hero-overlay-opacity)) 0%,
            rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * .82)) 43%,
            rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * .25)) 100%);
}

.hero-slide-content-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: clamp(20px, 2.5vw, 40px);
    padding-bottom: clamp(20px, 2.5vw, 40px);
    pointer-events: none;
}

.hero-slide-content {
    width: min(650px, 100%);
    color: var(--text-white);
    pointer-events: auto;
}

.hero-content-left {
    margin-right: auto;
    text-align: left;
}

.hero-content-center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.hero-content-right {
    margin-left: auto;
    text-align: right;
}

.hero-slide-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    margin-bottom: clamp(14px, 2vw, 22px);
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(17, 17, 17, .62);
    color: #e5e5e5;
    font-size: clamp(10px, .85vw, 12px);
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1.35;
    text-transform: uppercase;
    backdrop-filter: blur(7px);
}

.hero-slide-eyebrow::before {
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 12px rgba(199, 9, 9, .85);
    content: "";
}

.hero-slide-title {
    position: relative;
    max-width: 650px;
    margin: 0 0 clamp(12px, 1.8vw, 22px);
    padding-bottom: clamp(12px, 1.5vw, 18px);
    color: var(--text-white);
    font-size: clamp(32px, 3.8vw, 54px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.05;
    text-wrap: balance;
}

.hero-slide-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 82px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary-color);
    box-shadow: 0 0 14px rgba(199, 9, 9, .65);
    content: "";
}

.hero-content-center .hero-slide-title {
    margin-right: auto;
    margin-left: auto;
}

.hero-content-center .hero-slide-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.hero-content-right .hero-slide-title {
    margin-left: auto;
}

.hero-content-right .hero-slide-title::after {
    right: 0;
    left: auto;
}

.hero-title-white,
.hero-title-red {
    display: block;
}

.hero-title-red {
    color: var(--primary-hover);
    text-shadow: 0 0 28px rgba(199, 9, 9, .28);
}

.hero-slide-description {
    max-width: 620px;
    margin: 0 0 clamp(14px, 2vw, 24px);
    color: #dedede;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.55;
    text-wrap: pretty;
}

.hero-content-center .hero-slide-description {
    margin-right: auto;
    margin-left: auto;
}

.hero-content-right .hero-slide-description {
    margin-left: auto;
}

.hero-slide-actions,
.hero-trust-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-content-center .hero-slide-actions,
.hero-content-center .hero-trust-items {
    justify-content: center;
}

.hero-content-right .hero-slide-actions,
.hero-content-right .hero-trust-items {
    justify-content: flex-end;
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 25px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-primary-btn {
    background: var(--primary-color);
    box-shadow: 0 8px 25px rgba(199, 9, 9, .38);
    color: var(--text-white) !important;
}

.hero-primary-btn:hover,
.hero-primary-btn:focus {
    background: var(--primary-hover);
    box-shadow: 0 10px 30px rgba(216, 20, 19, .48);
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

.hero-secondary-btn {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(17, 17, 17, .3);
    color: var(--text-white) !important;
    backdrop-filter: blur(5px);
}

.hero-secondary-btn:hover,
.hero-secondary-btn:focus {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, .12);
    color: var(--text-white) !important;
    transform: translateY(-2px);
}

.hero-primary-btn:focus-visible,
.hero-secondary-btn:focus-visible,
.hero-slide-legacy-link:focus-visible {
    outline: 3px solid var(--text-white);
    outline-offset: 3px;
}

.hero-trust-items {
    margin-top: clamp(14px, 2vw, 24px);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 8px;
    background: rgba(17, 17, 17, .58);
    text-align: left;
    backdrop-filter: blur(7px);
}

.hero-trust-item>i {
    flex: 0 0 auto;
    margin-right: 9px;
    color: var(--primary-hover);
    font-size: 22px;
}

.hero-trust-copy {
    display: flex;
    flex-direction: column;
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.hero-trust-copy small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 500;
}

.hero-slide-legacy-link {
    z-index: 3;
    display: block;
}

.hero-banner-carousel .slick-dots {
    bottom: 48px;
    z-index: 4;
}

.hero-banner-carousel .slick-dots li {
    width: auto;
    height: auto;
    margin: 0 4px;
}

.hero-banner-carousel .slick-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    background: transparent;
    transition: width .2s ease, background-color .2s ease;
}

.hero-banner-carousel .slick-dots button::before {
    display: none;
}

.hero-banner-carousel .slick-dots .slick-active button {
    width: 27px;
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.homepage-disabled-link[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
}

.homepage-product-image {
    inset: 0;
    width: 100%;
    height: 100%;
}

.homepage-section-title {
    line-height: 1.3;
}

.hov-animate-outline:hover::before,
.hov-animate-outline:hover::after {
    width: calc(100% - 2px);
}

#view-more-btn:disabled {
    cursor: not-allowed;
    opacity: .72;
}

@media (max-width: 575px) {
    #flash_deal .flash-deals-baner {
        height: 203px !important;
    }
}

@media (max-width: 991.98px) {
    .hero-slide {
        height: clamp(260px, 28vw, 360px);
        min-height: 260px;
        aspect-ratio: auto;
    }

    .hero-slide-content {
        width: min(560px, 88%);
    }

    .hero-slide-title {
        font-size: clamp(34px, 5.5vw, 44px);
    }

    .hero-trust-item {
        padding: 9px 10px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: clamp(220px, 55vw, 320px);
        min-height: 220px;
        max-height: 340px;
        aspect-ratio: auto;
    }

    .hero-slide-overlay,
    .hero-slide-text-right .hero-slide-overlay,
    .hero-slide-text-center .hero-slide-overlay {
        background:
            linear-gradient(180deg,
                rgba(0, 0, 0, calc(var(--hero-overlay-opacity) * .72)) 0%,
                rgba(0, 0, 0, .74) 100%);
    }

    .hero-slide-content-wrapper {
        align-items: center;
        padding: 42px 20px 54px;
    }

    .hero-slide-content {
        width: 100%;
        max-width: 520px;
    }

    .hero-slide-title {
        margin-bottom: 17px;
        padding-bottom: 17px;
        font-size: clamp(15px, 4vw, 20px);
        line-height: 1.06;
    }

    .hero-slide-description {
        margin-bottom: 21px;
        font-size: 7px;
        line-height: 1.55;
    }

    .hero-slide-eyebrow {
        min-height: 28px;
        margin-bottom: 13px;
        padding: 5px 10px;
        font-size: 9px;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        min-height: 46px;
        padding: 11px 18px;
    }

    .hero-trust-items {
        display: none;
    }
}

@media (max-width: 420px) {
    .hero-slide-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
    }
}

@media (min-width: 992px) {
    .aiz-count-down-box-div {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

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

    .hero-banner-carousel *,
    .hero-banner-carousel *::before,
    .hero-banner-carousel *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* SEO section — plain background */
.homepage-seo-intro {
    position: relative;
    overflow: hidden;
    background: #ffffff;
}

/* Animated lighting effect inside H1 text */
.homepage-seo-intro h1 {
    display: inline-block;
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.25;
    letter-spacing: -0.5px;
    color: #2d2d35;
}

/* Apply text racing effect only where supported */
@supports (-webkit-background-clip: text) {
    .homepage-seo-intro h1 {
        background: linear-gradient(105deg,
                #2d2d35 0%,
                #2d2d35 36%,
                #C70909 44%,
                #ff6b6b 48%,
                #ffffff 50%,
                #ff6b6b 52%,
                #D81413 56%,
                #2d2d35 64%,
                #2d2d35 100%);

        background-size: 260% 100%;
        background-position: 130% center;

        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;

        filter: drop-shadow(0 2px 5px rgba(17, 17, 17, 0.12));
        animation: homepageTextLightRace 4s linear infinite;
    }
}

/* Light moves from left to right through text */
@keyframes homepageTextLightRace {
    0% {
        background-position: 130% center;
    }

    100% {
        background-position: -130% center;
    }
}

/* Description */
.homepage-seo-intro-copy {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    font-size: 14px;
    line-height: 1.7;
}

/* Mobile */
@media (max-width: 767.98px) {
    .homepage-seo-intro h1 {
        font-size: 23px;
        line-height: 1.3;
    }

    .homepage-seo-intro-copy {
        font-size: 13px;
        line-height: 1.6;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .homepage-seo-intro h1 {
        animation: none;
        background-position: center;
    }
}
