/* ===== Homepage Slider (BlazeSlider) ===== */
.home-slider .main-slider {
    overflow: hidden;
    max-height: 475px;
    margin-bottom: 30px !important;
}

.home-slider .main-slider .blaze-container,
.home-slider .main-slider .blaze-track-container,
.home-slider .main-slider .blaze-track,
.home-slider .main-slider .slide-item,
.home-slider .main-slider picture {
    max-height: 475px;
}

.home-slider .main-slider img {
    width: 100%;
    max-height: 475px;
    object-fit: cover;
}

/* ===== Slide text overlay ===== */
.home-slider .slide-item {
    position: relative;
}

.home-slider .slide-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.home-slider .slide-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1430px;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 40px 15px;
    pointer-events: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-slider .slide-overlay--left {
    justify-content: flex-start;
    text-align: left;
}

.home-slider .slide-overlay--center {
    justify-content: center;
    text-align: center;
}

.home-slider .slide-overlay--right {
    justify-content: flex-end;
    text-align: right;
}

.home-slider .slide-overlay__content {
    max-width: 600px;
}

.home-slider .slide-overlay__subtitle {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.home-slider .slide-overlay__heading {
    font-size: 35px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 15px;
}

.home-slider .slide-overlay__desc {
    font-size: 17px;
    line-height: 1.4;
}

.home-slider .slide-overlay__extra {
    font-size: 14px;
    margin-top: 10px;
}

.home-slider .slide-overlay__btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    border: 2px solid currentColor;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.home-slider .slide-link:hover .slide-overlay__btn {
    background-color: rgba(255, 255, 255, 0.2);
}

.itemgrid-5col .product-image-wrapper {
    height: 0;
    overflow: hidden;
    padding-top: 67%;
    background: white;
    position: relative;
}

.itemgrid-5col .product-image-wrapper .product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.home-categories-section {
    padding: 0 0 32px;
}

.home-categories-container {
    max-width: 1430px;
    margin: 0 auto;
    padding: 0 15px;
}

.home-categories-title {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

.home-categories-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    /*margin: 0 0 16px;*/
    margin: 0px 0px 30px 0px;
    padding: 0px 0px 15px 0px;
    border-style: solid;
    border-width: 0px 0px 1px 0px;
    border-color: #e5e5e5;
}

.home-categories-slogan {
    margin: 0;
    font-family: var(--body-font-family);
    font-size: var(--body-font-size);
    font-weight: var(--body-weight);
    line-height: var(--body-line-height);
    letter-spacing: var(--body-letter-spacing);
    text-transform: var(--body-text-transform);
    text-align: left;
}

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

.home-category-card {
    color: #222;
    text-decoration: none;
}

.home-category-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 370 / 220;
    overflow: hidden;
    border-radius: 12px;
    background: #f1f1f1;
}

.home-category-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    pointer-events: none;
}

.home-category-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-category-card:hover .home-category-image {
    transform: scale(1.03);
}

.home-category-card:hover .home-category-image-wrap::after {
    animation: homeCardShine 0.8s ease;
}

.home-category-name {
    display: block;
    margin-top: 8px;
    text-align: center;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.2;
}

.home-departments-section {
    padding: 0 0 36px;
}

.home-bestsellers-section {
    padding: 0 0 24px;
}

.home-departments-section .product-cat {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 18px 12px;
}

.home-departments-section .cat-image {
    text-align: center;
}

.home-departments-section .cat-image > a {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    border: 3px solid rgb(229, 229, 229);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.25s ease, border-bottom-width 0.25s ease, transform 0.25s ease;
}

.home-departments-section .cat-image > a:hover {
    border: 3px solid rgb(254, 189, 105);
    transform: translateY(-2px);
}

.home-departments-section .cat-image img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    display: block;
}

.home-departments-section .cat-image-more > a {
    background: #f2f2f2;
}

.home-departments-section .cat-more-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    font-weight: 700;
    color: #7a7a7a;
    line-height: 1;
}

.home-departments-section .cat-heading {
    margin-top: 8px;
}

.home-departments-section .cat-heading a {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    line-height: 1.25;
}

.home-departments-section .cat-heading a:hover {
    color: #000;
    text-decoration: underline;
}

.home-seo-section {
    margin: 34px 0 20px;
}

.home-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.home-seo-column {
    min-width: 0;
}

.home-seo-title,
.home-seo-subtitle {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
    text-align: left;
}

.home-seo-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.home-seo-column .home-seo-text:last-child {
    margin-bottom: 0;
}

/* Collapsible toggle – hidden on desktop */
.home-seo-toggle {
    display: none;
}

.home-blog-section {
    padding: 8px 0 22px;
}

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-blog-card {
    min-width: 0;
}

.home-blog-link {
    display: block;
    text-decoration: none;
    color: #111;
}

.home-blog-image-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f2f2f2;
    margin-bottom: 10px;
}

.home-blog-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-blog-link:hover .home-blog-image {
    transform: scale(1.03);
}

.home-blog-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 7px 9px;
    border-radius: 6px;
}

.home-blog-title {
    margin: 0;
    color: #000000;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
}

.home-blog-link:hover .home-blog-title {
    text-decoration: underline;
}

.home-manufacturers-section {
    padding: 8px 0 24px;
}

.home-manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.home-manufacturer-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-manufacturer-tile:hover {
    border-color: #d4d4d4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.home-manufacturer-tile img {
    max-width: 100%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.home-manufacturer-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    text-align: center;
    line-height: 1.3;
}

@media (max-width: 991px) {
    #header.site-header {
        height: auto !important;
    }

    .home-slider .main-slider {
        margin-bottom: 18px !important;
        max-height: 250px;
    }

    .home-slider .main-slider .blaze-container,
    .home-slider .main-slider .blaze-track-container,
    .home-slider .main-slider .blaze-track,
    .home-slider .main-slider .slide-item,
    .home-slider .main-slider picture,
    .home-slider .main-slider img {
        max-height: 250px;
    }

    .home-slider .slide-overlay {
        padding: 20px 30px;
    }

    .home-slider .slide-overlay__heading {
        font-size: 24px;
    }

    .home-slider .slide-overlay__desc {
        font-size: 14px;
    }

    .home-slider .slide-overlay__subtitle {
        font-size: 12px;
    }

    .home-slider .slide-overlay__btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .home-categories-header {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .home-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .home-departments-section .product-cat {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 10px;
    }

    .home-departments-section .cat-image > a {
        width: 92px;
        height: 92px;
    }

    .home-seo-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-seo-heading {
        font-size: 22px;
    }

    .home-seo-title,
    .home-seo-subtitle {
        font-size: 20px;
    }

    .home-seo-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-blog-image {
        height: 210px;
    }

    .home-manufacturers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* SEO section: collapsible on mobile */
    .home-seo-collapse {
        max-height: 200px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease;
    }

    .home-seo-collapse::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), #fff);
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .home-seo-collapse.is-expanded {
        max-height: 3000px;
    }

    .home-seo-collapse.is-expanded::after {
        opacity: 0;
    }

    .home-seo-toggle {
        display: inline-block;
        margin-top: 10px;
        font-size: 14px;
        font-weight: 600;
        color: #f97130;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0;
    }

    .home-seo-toggle:hover {
        text-decoration: underline;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .home-categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-departments-section .product-cat {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px;
    }

    .home-departments-section .cat-image > a {
        width: 80px;
        height: 80px;
    }

    .home-bestsellers-section .home-bestsellers-grid .product {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .home-manufacturers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@keyframes homeCardShine {
    100% {
        left: 150%;
    }
}
