/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.timtim-slider-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 479px) {

.timtim-category-text p {
    font-size:16px!important;}
    .timtim-slide{
        max-height: 180px!important;
    }
}
    
.timtim-slider {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
    padding-top: 20px;

}

.timtim-slider::-webkit-scrollbar {
    display: none;
}

/* Each item = the colored card + label below */
.timtim-slide-item {
    flex: 0 0 calc(25% - 12px); /* 4 items, 3 gaps of 16px = 48px total / 4 = 12px per item */
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The colored card */
.timtim-slide {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
        max-height: 620px;
}

/* Product image inside the card */
.timtim-product-image {
    width: 105%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timtim-slide-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}
@media (min-width: 768px) {
    .timtim-product-image img {
    min-height: 500px;}
}

    
.timtim-product-image img {

    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease-in-out;
}

.timtim-slide:hover .timtim-product-image img {
    transform: scale(1.05) rotate(5deg);
}

/* Text label below the card */
.timtim-category-text {
    text-align: center;
}

.timtim-category-text p {
    font-family: "Poppins";
    margin: 0;
    font-size: 1.2rem;
    color: black;
    font-weight: 500;
}

/* Navigation buttons — positioned at center of the card area */
.timtim-slider-button {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.timtim-slider-button.prev {
    left: 10px;
}

.timtim-slider-button.next {
    right: 10px;
}

.timtim-slider-button svg {
    width: 128px;
    height: 128px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

/* Tablet: show 2 slides */
@media (max-width: 900px) {
    .timtim-slide-item {
        flex: 0 0 calc(50% - 8px);
    }
}

/* Mobile: show 3.5 slides — use finger scroll */
@media (max-width: 600px) {
    .timtim-slide-item {
        flex: 0 0 calc(40.5% - 11px)
    }

    .timtim-slider-button {
        display: none !important;
    }
}

/* 2K screens: show 6 slides */
@media (min-width: 2000px) {
    .timtim-slide-item {
flex: 0 0 calc(17.666% - -70px);
    }
}

/* 4K screens: show 8 slides */
@media (min-width: 3000px) {
    .timtim-slide-item {
        flex: 0 0 calc(12.5% - 14px);
    }
}

/* =============================================
   PERSONALIZATOR SLIDER
   ============================================= */

.pers-slider-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.pers-slider {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 16px;
}

.pers-slider::-webkit-scrollbar {
    display: none;
}

.pers-slide-item {
    flex: 0 0 calc(44% - 8px); /* 2 full items + hint of 3rd */
    min-width: 0;
    scroll-snap-align: start;
}

.pers-slide {
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    padding: 32px;
    box-sizing: border-box;
    background: #e7e7e7;
    justify-content: flex-end;
}



.pers-slide-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.pers-slide-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pers-slide-text h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #111;
}

.pers-slide-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

/* Nav row sits below the slider */
.pers-slider-nav {
    display: flex;
    gap: 10px;
    margin-top: 40px;
}

.pers-slider-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.pers-slider-button:hover {
    opacity: 0.6;
}

.pers-slider-button svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 900px) {
    .pers-slide-item {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .pers-slide-item {
        flex: 0 0 calc(80% - 8px);
    }
}

@media (min-width: 2000px) {
    .pers-slide-item {
        flex: 0 0 calc(38% - 12px);
    }
}

/* =============================================
   PRODUCT CATEGORIES LIST
   ============================================= */

.timtim-categories-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: "Poppins", sans-serif;
}

.timtim-cat-group {
    padding: 20px 0;
    border-bottom: 2px solid; /* thickness of border */
    border-image: linear-gradient(to right, #FC7645, #FD372F) 1;
}

.timtim-cat-group:first-child {
    padding-top: 0;
}

.timtim-cat-parent {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: #E8511F;
    text-decoration: none;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

.timtim-cat-parent:hover {
    opacity: 0.7;
}

.timtim-cat-parent.active {
    text-decoration: underline;
}

.timtim-cat-children {
    list-style: none;
    margin: 4px 0 0 0;
    padding: 0 0 0 16px;
}

.timtim-cat-children > li {
    margin-bottom: 2px;
}

.timtim-cat-child {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.timtim-cat-child:hover {
    color: #E8511F;
}

.timtim-cat-child.active {
    color: #E8511F;
    font-weight: 600;
}

.timtim-cat-grandchildren {
    list-style: none;
    margin: 2px 0 0 0;
    padding: 0 0 0 16px;
}

.timtim-cat-grandchildren > li {
    margin-bottom: 1px;
}

.timtim-cat-grandchild {
    display: block;
    font-size: 0.88rem;
    font-weight: 400;
    color: #444;
    text-decoration: none;
    padding: 2px 0;
    transition: color 0.2s ease;
}

.timtim-cat-grandchild:hover {
    color: #E8511F;
}

.timtim-cat-grandchild.active {
    color: #E8511F;
    font-weight: 500;
}

/* Mobile toolbar — hidden on desktop */
.timtim-mobile-toolbar {
    display: none;
}

/* Close button inside panel — hidden on desktop */
.timtim-categories-close {
    display: none;
}

/* Overlay — hidden on desktop */
.timtim-panel-overlay {
    display: none;
}

/* Filter dropdown — hidden by default */
.timtim-filter-dropdown {
    display: block;
}

/* Mobile styles */
@media (max-width: 768px) {
    .wpfMainWrapper{
        margin-left: 12px;
    }
    .timtim-mobile-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
    }

    .timtim-categories-toggle,
    .timtim-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        font-family: "Poppins", sans-serif;
        font-size: 1rem;
        font-weight: 600;
        color: #111;
        cursor: pointer;
        padding: 8px 0;
    }

    .timtim-categories-toggle svg,
    .timtim-filter-toggle svg {
        flex-shrink: 0;
    }

    /* Category panel — slide from left */
    .timtim-categories-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 320px;
        height: 100%;
        background: #fff;
        z-index: 9999;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .timtim-categories-list.open {
        transform: translateX(0);
    }

    /* Filter dropdown — inline below toolbar */
    .timtim-filter-dropdown {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-16px);
        transition: max-height 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s, transform 0.3s;
        padding: 0 0;
    }
    .timtim-filter-dropdown.open {
        max-height: 1000px;
        opacity: 1;
        transform: translateY(0);
        padding: 16px 0;
    }

    .timtim-filter-dropdown .wpfMainWrapper {
        display: grid !important;
        gap: 4px !important;
        grid-template-columns: 1fr 2fr;
        margin:0px;
        
    }

    .timtim-filter-dropdown .wpfFilterWrapper {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        width:100%!important;
    }

    .timtim-filter-dropdown select {
        width: 100%;
    }

    .timtim-categories-close {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        line-height: 1;
        cursor: pointer;
        color: #111;
        padding: 0;
        margin-bottom: 12px;
    }

    .timtim-panel-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 9998;
    }

    .timtim-panel-overlay.open {
        display: block;
    }
}
