/* ========================================
   HOMEPAGE - Main Title
   ======================================== */

.home-main-title {
    margin: 24px 0 20px;
}


/* ========================================
   HOMEPAGE - Category Block (per level 1)
   ======================================== */

.home-cat-block {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    margin-bottom: 20px;
    padding: 20px 0 20px;
    overflow: hidden;
}

.home-cat-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 14px;
    padding: 0 24px;
}

.home-cat-title a {
    color: #373737;
    text-decoration: none;
}

.home-cat-title a:hover {
    color: #1565c0;
    text-decoration: none;
}


/* ========================================
   HOMEPAGE - Level 2 Horizontal Scroll
   ======================================== */

.home-cat2-scroll-wrapper {
    position: relative;
    padding: 0 24px;
}

.home-cat2-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 4px;

    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.home-cat2-scroll::-webkit-scrollbar {
    display: none;
}

/* Cards - equal width */
.home-cat2-card {
    flex: 0 0 150px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #444;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
}

.home-cat2-card:hover {
    background: #f5f8fc;
    color: #1565c0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.home-cat2-photo {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.home-cat2-photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.home-cat2-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border-radius: 8px;
}

.home-cat2-name {
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
    max-width: 100%;
}


/* ========================================
   Scroll Buttons (only visible when needed)
   ======================================== */

.home-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 2;
    transition: all 0.2s;
}

.home-scroll-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.home-scroll-left {
    left: 6px;
}

.home-scroll-right {
    right: 6px;
}


/* ========================================
   HOMEPAGE - Info Teasers
   ======================================== */

.home-teasers {
    display: flex;
    gap: 20px;
    margin: 10px 0 40px;
}

.home-teaser {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    text-align: center;
}

.home-teaser-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1565c0;
    margin-bottom: 16px;
}

.home-teaser h3 {
    font-size: 17px;
    font-weight: 700;
    color: #373737;
    margin: 0 0 10px;
}

.home-teaser p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .home-cat-block {
        padding: 16px 0;
    }

    .home-cat-title {
        padding: 0 16px;
        font-size: 16px;
    }
    
    .home-cat2-scroll-wrapper {
        padding: 0 16px;
    }

    .home-cat2-card {
        flex: 0 0 120px;
        width: 120px;
    }

    .home-cat2-photo {
        width: 85px;
        height: 85px;
    }
    
    .home-teasers {
        flex-direction: column;
        gap: 16px;
    }
}

/* NAUJI produktai*/
.home-new-scroll-wrapper {
    position: relative;
}

.home-new-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 12px;
    padding-bottom: 4px;
}
.home-new-scroll::-webkit-scrollbar { display: none; }

/*.home-new-scroll .product-card {
    flex: 0 0 180px;
    width: 180px;
    min-width: 180px;
}*/
.home-new-scroll .product-card {
    flex: 0 0 calc((100% - 5 * 12px) / 6);
    width: calc((100% - 5 * 12px) / 6);
    min-width: calc((100% - 5 * 12px) / 6);
}

@media (max-width: 1400px) {
    .home-new-scroll .product-card {
        flex: 0 0 calc((100% - 4 * 12px) / 5);
        width: calc((100% - 4 * 12px) / 5);
        min-width: calc((100% - 4 * 12px) / 5);
    }
}

@media (max-width: 1200px) {
    .home-new-scroll .product-card {
        flex: 0 0 calc((100% - 3 * 12px) / 4);
        width: calc((100% - 3 * 12px) / 4);
        min-width: calc((100% - 3 * 12px) / 4);
    }
}

@media (max-width: 991px) {
    .home-new-scroll .product-card {
        flex: 0 0 calc((100% - 2 * 12px) / 3);
        width: calc((100% - 2 * 12px) / 3);
        min-width: calc((100% - 2 * 12px) / 3);
    }
}

@media (max-width: 767px) {
    .home-new-scroll .product-card {
        flex: 0 0 calc((100% - 1 * 12px) / 2);
        width: calc((100% - 1 * 12px) / 2);
        min-width: calc((100% - 1 * 12px) / 2);
    }
}

.home-new-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    /*border: 1px solid #ddd;
    border-radius: 50%;  */
	border: none;  
    width: 44px;
    height: 84px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
    color: var(--color-brand);
}
.home-new-scroll-btn:hover {
    background: rgba(255, 255, 255, 1.0);
}
.home-new-scroll-btn-left  { left: -16px; }
.home-new-scroll-btn-right { right: -16px; }

.home-new-scroll-btn.visible { display: flex; }
