﻿/* Brand logos */
.brand-image-1 {
    height: 75px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    padding: 1px 6px;

    @media (max-width: 480px) {
        max-width: 140px;
    }
}

.brand-logo {
    min-width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 12px;
}

.brand-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brands-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 5px 18px;
    scrollbar-width: thin;
}

@media (max-width: 768px) {
    .brand-image-1 {
        height: 52px;
        max-width: 140px;
    }

    .brand-logo {
        min-width: 155px;
        height: 90px;
    }

    .brands-scroll {
        gap: 12px;
    }
}

/* ============================================================
   10. BANNER SLIDER  (Rayan: widget-a-d-s border-radius 16px, padding 0)
   ============================================================ */
.ads-widget {
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

.banner-slider {
    position: relative;
    overflow: hidden;
}

.banner-slide {
    display: none;
/*    min-height: 200px;*/
    position: relative;
    overflow: hidden;
}

    .banner-slide.active {
        display: flex;
        align-items: center;
    }

.banner-content {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 28px 20px 40px;
}

.banner-badge {
    display: inline-block;
    background: rgba(255,255,255,.25);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

    .banner-badge.sale {
        background: var(--red);
    }

.banner-content h1 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 6px;
}

.banner-content p {
    color: rgba(255,255,255,.85);
    font-size: 1.3rem;
    margin: 0 0 14px;
    line-height: 1.6;
}

.banner-btn {
    display: inline-block;
    background: var(--white);
    color: var(--blue-dark);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 100px;
}

    .banner-btn:hover {
        background: var(--blue-xlight);
        color: var(--blue-dark);
    }

.sale-btn {
    background: var(--red);
    color: var(--white);
}

    .sale-btn:hover {
        background: #c0392b;
        color: var(--white);
    }

.banner-deco {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
}

.c1 {
    width: 100px;
    height: 100px;
    bottom: -20px;
    left: -20px;
}

.c2 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 30px;
}

.c3 {
    width: 40px;
    height: 40px;
    top: 40px;
    left: -10px;
}

.banner-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 5rem;
    color: rgba(255,255,255,.15);
}

/* Rayan slider dots: bg #0c0c0c opacity .3, active bg #fff opacity 1 */
.banner-dots {
    position: absolute;
    bottom: 8px;
    right: 20px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.bdot {
    width: 24px;
    height: 6px;
    border-radius: 2px;
    background: #ffffffab;
    opacity: .5;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .2s ease-in-out;
}

    .bdot.active {
        width: 24px;
        background: var(--white);
        opacity: 1;
    }

/* ============================================================
   11. STORIES WIDGET  (Rayan: max-width 75px, gap 20px, preview 75x75)
   ============================================================ */
.stories-widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 28px;
}

.stories-scroll {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 8px 0;
}

/* On mobile: horizontal scroll */
@media (max-width: 991px) {
    .stories-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        .stories-scroll::-webkit-scrollbar {
            display: none;
        }
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
    max-width: 75px;
    color: var(--dark);
}

/* Rayan: item-preview background = accent, max-height 75px, border-radius 50% */
.story-circle {
    width: 75px;
    height: 75px;
    max-height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .2s;
}

.story-item:active .story-circle {
    transform: scale(.9);
}

.story-circle i {
    font-size: 2.8rem;
    color: var(--white);
}

/* Rayan: info margin-top .5em, font-weight 300, text-overflow ellipsis */
.story-label {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--dark);
    margin-top: .5em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}

/* ============================================================
   12. WIDGET COMMON  (Rayan: bg #fff, border 1px #e0e0e2, radius 8px, padding 12px 16px, mb 20px)
   ============================================================ */
.widget {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    padding: 12px 16px;
}

.widget-header {
    margin-bottom: 12px;
    /*  padding-bottom: 12px;*/
    transition: all .2s ease-in-out;
}

/* Rayan: widget-title font-size 1.5rem, line-height 1.8, space-between */
.widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.8;

    @media (max-width: 576px) {
        margin: 0px 6px;
    }
}

.widget-title-light span {
    border-bottom: 2px solid var(--blue);
    display: inline-block;
    line-height: 2.5;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    text-shadow: -2px 2px 1px white;
}

.widget-title span {
    border-bottom: 2px solid #00F3FF;
    display: inline-block;
    line-height: 2.5;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: -2px 2px 1px #000000;
}

.widget-title a {
    border-bottom: 2px solid #00E7FF;
    display: inline-block;
    line-height: 2.5;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f9ff3f;
    text-shadow: -2px 2px 1px #000;
}

    .widget-title a:hover {
        text-decoration: underline;
    }

.widget-products-slider .widget-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* ============================================================
   13. PRODUCT SLIDER  (Rayan owl item: width ~208px, img 235x235 border-radius 8px)
   ============================================================ */
.widget-products-slider {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 16px 0 12px;
    margin: 20px 30px 28px 30px;
}

@media screen and (max-width: 991px) {
    .widget-products-slider {
        margin: 20px 10px 28px 10px;
    }
}

.widget-products-slider .widget-header {
    padding: 0;
}

.widget-products-slider .widget-content {
    padding: 0;
}

.products-slider-wrap {
    position: relative;
}

.products-slider {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 4px 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-top: 10px;
}

    .products-slider::-webkit-scrollbar {
        display: none;
    }

/* Rayan owl item width: 208.233px — we use 160px on mobile */
.slider-item {
    flex-shrink: 0;
    width: 160px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-border);
    transition: box-shadow .2s;
    position: relative;
}

    .slider-item:hover {
        box-shadow: 0 1px 5px rgba(0,0,0,.2);
    }

.slider-item-wide {
    width: 190px;
}

/* Rayan: product img border-radius 8px, max-width 235px */
.product-img {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

    .product-img.tall {
        height: 160px;
    }

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius);
    }

    .product-img i {
        font-size: 5rem;
        color: rgba(0,163,224,.4);
    }

/* Rayan onsale: color var(--red) */
.onsale {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--red);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(255,255,255,.9);
    border-radius: var(--radius);
    z-index: 2;
}

.bike-type-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #ebfdffe8;
    color: var(--shimano-darkblue);
    font-size: 1rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    z-index: 2;
    border: 1px solid #bfbfff;
}

.item-title {
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    /*    max-height: 66px;*/
    padding: 8px 8px 4px;
    margin: 0;
    overflow: hidden;
    /*    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;*/
    color: black;
}

.item-specs {
    font-size: 1.1rem;
    color: var(--gray-text);
    padding: 0 8px 4px;
    margin: 0;
}

/* Wishlist action button */
.product-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
}

.add-wishlist {
    background: var(--white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .add-wishlist svg {
        width: 16px;
        height: 16px;
        fill: #81858b;
        transition: fill .2s;
    }

    .add-wishlist:hover svg,
    .add-wishlist.active svg {
        fill: var(--red);
    }

/* Slider arrows — hidden on mobile, visible on desktop hover */
.sl-arrow {
    display: none;
}

/* ============================================================
   14. PROMO BANNER
   ============================================================ */
.promo-banner {
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    overflow: hidden;
    padding: 0;
}

.promo-inner {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    min-height: 120px;
}

.promo-badge {
    display: inline-block;
    background: rgba(255,255,255,.2);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
}

.promo-text h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    margin: 0 0 6px;
    line-height: 1.4;
}

.promo-text p {
    color: rgba(255,255,255,.8);
    font-size: 1.3rem;
    margin: 0 0 12px;
}

.promo-icon i {
    font-size: 6rem;
    color: rgba(255,255,255,.2);
}

/* ============================================================
   15. CATEGORIES GRID  (Rayan widget-featured-links: icon max-width 52px, label font-size 1.2rem)
   ============================================================ */
.categories-grid-widget {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    padding: 16px 0 12px;
    margin: 20px 30px 28px 30px;
}

@media screen and (max-width: 991px) {
    .categories-grid-widget {
        margin: 20px 10px 28px 10px;
    }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.cat-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    padding: 12px 6px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-border);
    transition: all .2s;
    text-align: center;
}

    .cat-grid-item:hover {
        border-color: var(--blue);
        box-shadow: 0 1px 5px rgba(0,0,0,.1);
    }

.cat-grid-icon {
    width: 165px;
    height: 160px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s;
    margin: 0 auto;

    @media (max-width: 410px) {
        width: 135px;
        height: 135px;
    }
}

.cat-grid-item:hover .cat-grid-icon {
    transform: scale(1.08);
}

.cat-grid-icon i {
    font-size: 2.2rem;
    color: var(--white);
}

/* Rayan: label font-size 1.2rem, margin-top 4px */
.cat-grid-name {
    font-size: 1.2rem;
    color: var(--dark);
    line-height: 1.4;
    margin-top: 4px;
}

/* ============================================================
   17. BLOG POSTS
   ============================================================ */
.blog-widget {
    margin-bottom: 20px;
}

.blog-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-border);
    margin-bottom: 12px;
    transition: box-shadow .2s;
}

    .blog-post-item:hover {
        box-shadow: var(--shadow);
    }

.blog-post-img {
    width: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

    .blog-post-img i {
        font-size: 32px;
        color: rgba(255,255,255,.8);
    }

    .blog-post-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.blog-post-body {
    flex: 1;
    padding: 12px 12px 12px 0;
}

.blog-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-xlight);
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 6px;
}

.blog-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 11px;
    color: var(--gray-text);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    font-size: 1.3rem;
    color: var(--gray-text);
    padding: 20px 0;
}

/* ============================================================
   17. BLOG POSTS  (Rayan widget-posts-slider: bg #fff, border 1px #e0e0e2, radius 8px)
   ============================================================ */
.blog-widget {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    padding: 20px 0;
}

    .blog-widget .widget-header {
        padding: 0;
    }

.blog-post-item {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-border);
    margin-bottom: 12px;
    transition: box-shadow .2s;
    text-decoration: none;
}

    .blog-post-item:hover {
        box-shadow: 0 1px 5px rgba(0,0,0,.2);
    }

/* Rayan post img: height auto, max-width fit-content */
.blog-post-img {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

    .blog-post-img i {
        font-size: 3.2rem;
        color: rgba(255,255,255,.8);
    }

    .blog-post-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.blog-post-body {
    flex: 1;
    padding: 12px;
}

.blog-cat {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-xlight);
    padding: 2px 8px;
    border-radius: 100px;
    margin-bottom: 4px;
}

/* Rayan item-title: font-size 1.3rem, font-weight 400, line-height 22px */
.blog-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--dark);
    margin: 0 0 4px;
    line-height: 1.7;
    max-height: 58px;
    overflow: hidden;
}

.blog-excerpt {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.6;
    margin: 0;
    max-height: 58px;
    overflow: hidden;
}

/* dino biker */
.scene {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.background {
    width: 100%;
    object-fit: cover;
    display: block;
}

.bike {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 50px;
    animation: ride 12s linear infinite;

    @media (max-width: 1100px) {
        bottom: 7px;
        width: 40px;
    }

    @media (max-width: 992px) {
        bottom: 6px;
        width: 37px;
    }

    @media (max-width: 576px) {
        bottom: 2px;
        width: 35px;
    }
}

@keyframes ride {
    from {
        transform: translateX(-80px);
    }

    to {
        transform: translateX(calc(100vw + 80px));
    }
}

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .25s, box-shadow .25s;
}

    .blog-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
    }

.blog-card-img {
    height: 190px;
    overflow: hidden;
}

    .blog-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .35s;
    }

.blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    min-height: 48px;
}

.blog-card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-link {
    font-size: 13px;
    font-weight: 600;
    color: #00a651;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.top-slider {
    @media (max-width: 576px) {
        margin-top: 10px;
        margin-bottom: -10px;
    }
}

