/* Logo size override - more specific selectors */
.header-brand .logo img,
.header-brand a img,
.header-brand a.logo img,
.header-style-1 .header-brand .logo img,
.header-style-1 .header-brand a img,
.header-style-1 .header-brand a.logo img,
.axil-header .header-brand .logo img,
.axil-header .header-brand a img {
    height: 80px !important;
    max-height: 80px !important;
    width: auto !important;
}

@media only screen and (max-width: 320px) {
    .header-brand .logo img,
    .header-brand a img,
    .header-brand a.logo img,
    .header-style-1 .header-brand .logo img,
    .header-style-1 .header-brand a img,
    .header-style-1 .header-brand a.logo img {
        height: 65px !important;
        max-height: 65px !important;
    }
}

@media only screen and (max-width: 575px) {
    .header-brand .logo img,
    .header-brand a img,
    .header-brand a.logo img,
    .header-style-1 .header-brand .logo img,
    .header-style-1 .header-brand a img,
    .header-style-1 .header-brand a.logo img {
        height: 65px !important;
        max-height: 65px !important;
    }
   .header-style-1 .header-brand{
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 991px) {
    .header-brand .logo img,
    .header-brand a img,
    .header-brand a.logo img,
    .header-style-1 .header-brand .logo img,
    .header-style-1 .header-brand a img,
    .header-style-1 .header-brand a.logo img {
        height: 65px !important;
        max-height: 65px !important;
    }
    .header-style-1 .header-brand{
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Ensure Explore Products cards show two per row on small screens */
@media only screen and (max-width: 575px) {
    .explore-product-activation .row.row--15 > [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .explore-product-activation .axil-product.product-style-one {
        height: 100%;
    }
}

/* Normalize product thumbnails so images don't look stretched */
.explore-product-activation .axil-product .thumbnail img,
.new-arrivals-product-activation .axil-product .thumbnail img,
.new-arrivals-product-activation-2 .axil-product .thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Category circles - Make categories circular and smaller */
.category-item-wrapper {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.category-item-wrapper:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.categrie-product {
    min-width: 110px !important;
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 8px !important;
    padding: 8px !important;
    background-color: #cfc7c0 !important;
}

.categrie-product:before {
    border-radius: 50% !important;
    background-color: #5d5350 !important;
    border-color: #5d5350 !important;
}

.categrie-product .category-logo {
    width: 80px !important;
    height: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain !important;
    margin: 0 !important;
    filter: brightness(0) saturate(100%) invert(91%) sepia(5%) saturate(200%) hue-rotate(10deg) brightness(95%) contrast(90%) !important;
}

.category-item-wrapper .cat-title {
    font-size: 13px !important;
    line-height: 18px !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 120px !important;
    font-weight: 500 !important;
    color: var(--color-dark) !important;
    transition: color 0.3s ease !important;
}

.category-item-wrapper:hover .cat-title {
    color: var(--color-primary) !important;
}

.categrie-product:hover:before {
    transform: scale(1.05) !important;
}

/* Force 3 categories per row on mobile - Strong CSS rules */
@media only screen and (max-width: 767px) {
    /* Disable slick slider arrows on mobile */
    .categrie-product-activation .axil-slick-arrow,
    .categrie-product-activation .slide-arrow {
        display: none !important;
    }

    /* Force slick slider to show exactly 3 items */
    .categrie-product-activation {
        overflow: hidden !important;
    }

    .categrie-product-activation .slick-list {
        overflow: visible !important;
        margin: 0 -5px !important;
    }

    .categrie-product-activation .slick-track {
        display: flex !important;
        width: 100% !important;
        transform: translate3d(0, 0, 0) !important;
        left: 0 !important;
        opacity: 1 !important;
    }

    /* Force slick to recalculate properly */
    .categrie-product-activation.slick-initialized .slick-track {
        width: 100% !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Make sure all slides are visible and same width */
    .categrie-product-activation .slick-slide.slick-active,
    .categrie-product-activation .slick-slide.slick-cloned {
        width: 33.333% !important;
    }

    /* Force each slide to be exactly 33.333% width */
    .categrie-product-activation .slick-slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
        padding: 0 4px !important;
        margin: 0 !important;
        float: none !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .categrie-product-activation .slick-single-layout {
        width: 100% !important;
        padding: 0 5px !important;
        margin: 0 !important;
    }

    .slick-layout-wrapper--15 .slick-list {
        margin: 0 -5px !important;
    }

    .slick-layout-wrapper--15 .slick-single-layout {
        padding: 0 5px !important;
        width: 100% !important;
    }

    .slick-layout-wrapper--15 .slick-slide {
        width: calc(33.333% - 10px) !important;
    }

    .categrie-product {
        min-width: 70px !important;
        width: 70px !important;
        height: 70px !important;
        padding: 5px !important;
    }

    .categrie-product .category-logo {
        width: 55px !important;
        height: 55px !important;
        min-height: 55px !important;
        max-width: 55px !important;
        max-height: 55px !important;
        filter: brightness(0) saturate(100%) invert(91%) sepia(5%) saturate(200%) hue-rotate(10deg) brightness(95%) contrast(90%) !important;
    }

    .category-item-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .category-item-wrapper .cat-title {
        font-size: 9px !important;
        line-height: 12px !important;
        max-width: 70px !important;
    }
}

@media only screen and (max-width: 575px) {
    .categrie-product-activation .slick-list {
        margin: 0 -4px !important;
    }

    .categrie-product-activation .slick-slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
        padding: 0 3px !important;
        box-sizing: border-box !important;
    }

    .slick-layout-wrapper--15 .slick-list {
        margin: 0 -4px !important;
    }

    .slick-layout-wrapper--15 .slick-single-layout {
        padding: 0 4px !important;
    }

    .slick-layout-wrapper--15 .slick-slide {
        width: calc(33.333% - 8px) !important;
    }

    .categrie-product {
        min-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
        padding: 4px !important;
    }

    .categrie-product .category-logo {
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
        filter: brightness(0) saturate(100%) invert(91%) sepia(5%) saturate(200%) hue-rotate(10deg) brightness(95%) contrast(90%) !important;
    }

    .category-item-wrapper .cat-title {
        font-size: 8px !important;
        line-height: 10px !important;
        max-width: 60px !important;
    }
}

/* iPhone specific fixes - Force 3 columns */
@supports (-webkit-touch-callout: none) {
    @media only screen and (max-width: 767px) {
        .categrie-product-activation .slick-slide {
            width: 33.333% !important;
            min-width: 33.333% !important;
            max-width: 33.333% !important;
            box-sizing: border-box !important;
        }

        .categrie-product-activation .slick-track {
            transform: translate3d(0, 0, 0) !important;
        }
    }
}

/* Additional override for slick slider width calculation */
@media only screen and (max-width: 767px) {
    .categrie-product-activation .slick-slide > div {
        width: 100% !important;
    }

    .categrie-product-activation .slick-slide[aria-hidden="true"] {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Ensure container doesn't restrict width */
    .categrie-product-activation .slick-list.draggable {
        width: 100% !important;
    }

    /* Force slick slider to respect our width settings */
    .categrie-product-activation.slick-slider .slick-slide {
        width: 33.333% !important;
        min-width: 33.333% !important;
        max-width: 33.333% !important;
    }

    /* Override slick's internal width calculation */
    .categrie-product-activation.slick-initialized .slick-slide {
        width: 33.333% !important;
    }

    .categrie-product-activation.slick-initialized .slick-slide[data-slick-index] {
        width: 33.333% !important;
    }
}

.axil-product > .thumbnail > a
{
background-color: #ffffff !important;
}

