@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Roboto+Flex:opsz,wght,XOPQ,XTRA,YOPQ,YTDE,YTFI,YTLC,YTUC@8..144,100..1000,96,468,79,-203,738,514,712&display=swap');

/**
 * Спільні стилі карток товарів (product-preview) та слайдера (products-swiper)
 *
 * @package Idealist_Augsburg
 */

/* Контейнери */
.container,
.products-section {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
    width: 100%;
}
.products-section .h2 {
    font-family: "Roboto Flex", sans-serif;
    color: #1A1A1A;
    font-size: 32px;
    line-height: 140%;
    font-weight: 600;
    margin: 0 0 32px;
}

/* Стікери зі знижкою */
.product-preview .stickers,
.stickers {
    display: flex;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}
.product-preview .stickers span,
.stickers span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    background: #B11226;
    color: #fff;
    border-radius: 4px;
    padding: 7px 11px;
}

/* Картка товару */
.product-preview {
    font-family: 'Inter', sans-serif;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.product-preview .img {
    margin-bottom: 20px;
    width: 100%;
    display: block;
}
.product-preview .img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}
.product-preview .title {
    font-family: roboto, sans-serif;
    color: #202124;
    font-size: 20px;
    line-height: 28px;
    font-weight: 500;
    margin: 0 0 4px;
}
.product-preview a {
    text-decoration: none;
    color: inherit;
}
.product-preview a:hover {
    color: #000;
}
.product-preview .description {
    font-family: 'Inter', sans-serif;
    height: 44px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: 18px;
    line-height: 120%;
    margin: 0 0 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1A1A1A;
}

/* Рядок ціни та кнопки */
.product-preview .buy-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.product-preview .price,
.custom-products .product-preview .price,
.custom-products .price {
    font-family: roboto, 'Inter', sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    text-transform: none !important;
}
.product-preview .price *,
.custom-products .product-preview .price *,
.custom-products .price * {
    font-family: roboto, 'Inter', sans-serif !important;
    text-transform: none !important;
}
.product-preview .price.discount .price-new,
.custom-products .product-preview .price.discount .price-new {
    color: #B11226 !important;
}
.product-preview .price-new,
.custom-products .product-preview .price-new,
.custom-products .price .price-new {
    font-family: roboto, 'Inter', sans-serif !important;
    font-size: 26px !important;
    line-height: 26px !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
    font-style: normal !important;
    text-transform: none !important;
}
.product-preview .price-old,
.custom-products .product-preview .price-old,
.custom-products .price .price-old {
    font-family: roboto, 'Inter', sans-serif !important;
    color: #808080 !important;
    font-size: 18px !important;
    line-height: 26px !important;
    font-weight: 500 !important;
    text-decoration: line-through !important;
    font-style: normal !important;
    text-transform: none !important;
}

/* Кнопка додавання в кошик */
.product-preview .btn,
.product-preview .add_to_cart_button,
.custom-products .product-preview .btn,
.custom-products .product-preview .add_to_cart_button {
    color: #fff !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 14px !important;
    font-weight: 500 !important;
    background: #000 !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    padding: 19px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 58px !important;
    height: 58px !important;
    transition: background-color 0.2s ease !important;
    flex: none !important;
}
.product-preview .btn:hover,
.product-preview .add_to_cart_button:hover,
.custom-products .product-preview .btn:hover,
.custom-products .product-preview .add_to_cart_button:hover {
    background: #333 !important;
    color: #fff !important;
}
.product-preview .btn svg,
.product-preview .add_to_cart_button svg,
.custom-products .product-preview .btn svg,
.custom-products .product-preview .add_to_cart_button svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}

/* Слайдер */
.products-swiper {
    padding: 0 60px;
    margin: 0 -60px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.products-swiper .swiper-slide {
    margin-right: 4.5%;
    height: auto;
    width: 220px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.products-swiper .swiper-slide:last-child {
    margin-right: 0;
}
.products-swiper .swiper-pagination {
    margin-top: 32px;
}
.home-top-products {
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Стрілки свайпера */
.products-swiper .swiper-button-prev,
.products-swiper .swiper-button-next {
    background: #000000;
    border-radius: 8px;
    height: 40px;
    width: 28px;
    top: 26%;
    margin-top: -20px;
    user-select: none;
    z-index: 10;
}
.products-swiper .swiper-button-prev::after,
.products-swiper .swiper-button-next::after {
    font-size: 14px;
    color: #fff;
}
.products-swiper .swiper-button-next.swiper-button-disabled,
.products-swiper .swiper-button-prev.swiper-button-disabled {
    display: none;
}
.products-swiper .swiper-button-prev {
    left: 0;
}
.products-swiper .swiper-button-next {
    right: 0;
}

/* Точки пагінації */
.products-swiper .swiper-pagination {
    position: static;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    transform: none;
}
.products-swiper .swiper-pagination .swiper-pagination-bullet {
    background: #ccc;
    margin: 0 !important;
    border-radius: 100px;
    opacity: 1;
    height: 10px;
    width: 10px;
    transition: all .3s ease-in-out;
}
.products-swiper .swiper-pagination .swiper-pagination-bullet-active {
    background: #1A1A1A;
    width: 40px;
}

/* Сітка каталогу / списку товарів */
.custom-products {
    list-style: none;
    padding: 0;
}
.custom-products li.product {
    max-width: 260px;
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
    list-style: none;
}

/* Контейнер */
.container {
    margin-left: auto;
    margin-right: auto;
    max-width: 1360px;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

/* Хлібні крихти */
.breadcrumbs,
.product-list .breadcrumbs {
    font-family: roboto, sans-serif;
    font-weight: 100 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px auto 10px;
    overflow-x: auto;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}
.breadcrumbs::-webkit-scrollbar,
.product-list .breadcrumbs::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}
.breadcrumbs .item,
.product-list .breadcrumbs .item {
    font-family: roboto, sans-serif;
    font-weight: 100 !important;
    color: #1A1A1A;
    font-size: 14px;
    line-height: 16.4px;
    list-style: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}
.breadcrumbs .item a,
.product-list .breadcrumbs .item a {
    font-family: roboto, sans-serif;
    font-weight: 100 !important;
    color: #808080;
    text-decoration: none;
    align-items: center;
    display: inline-flex;
    transition: color 0.2s ease;
}
.breadcrumbs .item a:hover,
.product-list .breadcrumbs .item a:hover {
    color: #1A1A1A;
}
.breadcrumbs .separator,
.product-list .breadcrumbs .separator {
    font-family: roboto, sans-serif;
    font-weight: 100 !important;
    color: #808080;
    font-size: 14px;
    line-height: 16.4px;
    list-style: none;
    user-select: none;
    display: inline-block;
}

/* Адаптивність */
@media (max-width: 980px) {
    .products-section .h2 {
        font-size: 27px;
    }
    .home-top-products {
        margin-top: 32px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .container,
    .products-section {
        padding-left: 12px;
        padding-right: 12px;
    }
    .products-section .swiper-slide {
        margin-right: 12px;
        width: calc(50% - 6px);
    }
    .products-section .swiper-slide:last-child {
        margin-right: 0;
    }
    .products-swiper {
        margin: 0;
        padding: 0;
    }
    .products-swiper .swiper-button-next,
    .products-swiper .swiper-button-prev {
        display: none;
    }
    .products-swiper .swiper-pagination {
        display: flex;
    }
    .product-preview .title {
        font-size: 16px;
        line-height: 140%;
    }
    .product-preview .description {
        height: 40px;
        font-size: 14px;
        line-height: 140%;
    }
    .product-preview .price,
    .custom-products .product-preview .price,
    .custom-products .price {
        height: 44px;
    }
    .product-preview .price-old,
    .custom-products .product-preview .price-old,
    .custom-products .price .price-old {
        font-size: 16px !important;
        line-height: 16px !important;
    }
    .product-preview .price-new,
    .custom-products .product-preview .price-new,
    .custom-products .price .price-new {
        font-size: 20px !important;
        line-height: 24px !important;
    }
    .product-preview .btn,
    .product-preview .add_to_cart_button,
    .custom-products .product-preview .btn,
    .custom-products .product-preview .add_to_cart_button {
        padding: 12px !important;
        width: 44px !important;
        height: 44px !important;
    }
    .product-preview .btn svg,
    .product-preview .add_to_cart_button svg {
        width: 18px;
        height: 18px;
    }
    .custom-products {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-column-gap: 12px !important;
        grid-row-gap: 24px !important;
        margin: 0 !important;
    }
    .custom-products li.product {
        max-width: 100%;
        margin-bottom: 0;
        padding-left: 0;
    }
    .breadcrumbs,
    .product-list .breadcrumbs {
        margin: 12px -12px;
        padding: 0 12px;
        gap: 12px;
    }
    .breadcrumbs .item,
    .breadcrumbs .separator,
    .product-list .breadcrumbs .item,
    .product-list .breadcrumbs .separator {
        font-size: 12px;
        line-height: 14px;
    }
}
