/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ==========================================
   WERREN LOTAS - PRODUCT GRID
   Blocksy Child Theme
========================================== */

.bottega-product-grid {
    display: grid !important;
    grid-template-columns:
        repeat(4, minmax(0, 1fr)) !important;

    gap: 35px 24px !important;

    width: 100% !important;
    max-width: 1290px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* Product card */

.bottega-product-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
    box-sizing: border-box !important;
}

/* Product image */

.bottega-product-image {
    display: block !important;
    width: 100% !important;

    aspect-ratio: 4 / 5;
    overflow: hidden;

    background: #f6f6f6;
}

.bottega-product-image img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;

    object-fit: cover;
    margin: 0 !important;

    transition: transform .25s ease;
}

@media (hover: hover) {
    .bottega-product-image:hover img {
        transform: scale(1.025);
    }
}

/* Product title */

.bottega-product-title {
    margin: 12px 0 5px !important;

    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    overflow-wrap: anywhere;
}

.bottega-product-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Product price */

.bottega-product-price {
    margin: 0 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
}

/* ==========================================
   TABLET - 3 COLUMNS
========================================== */

@media (max-width: 991px) {

    .bottega-product-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr)) !important;

        gap: 28px 16px !important;
    }

}

/* ==========================================
   MOBILE - 2 COLUMNS
========================================== */

@media (max-width: 767px) {

    .bottega-product-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 22px 10px !important;
    }

    .bottega-product-title {
        font-size: 13px !important;
        line-height: 1.3 !important;

        margin: 8px 0 4px !important;
    }

    .bottega-product-price {
        font-size: 13px !important;
    }

}

/* ==========================================
   CATEGORY CAROUSEL
========================================== */

.bottega-cat-wrap {
    position: relative;

    width: 100%;
    padding: 10px 45px;

    box-sizing: border-box;
}

.bottega-cat-carousel {
    display: flex;
    gap: 20px;

    overflow-x: auto;
    scroll-behavior: smooth;

    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.bottega-cat-carousel::-webkit-scrollbar {
    display: none;
}

.bottega-cat-item {
    flex: 0 0 calc(25% - 15px);
    min-width: 0;

    text-decoration: none;
    color: inherit;

    text-align: center;
    scroll-snap-align: start;
}

.bottega-cat-image {
    width: 100%;
    aspect-ratio: 1 / 1.15;

    overflow: hidden;
    background: #f5f5f5;
}

.bottega-cat-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    transition: transform .35s ease;
}

@media (hover: hover) {
    .bottega-cat-item:hover img {
        transform: scale(1.04);
    }
}

.bottega-cat-item h3 {
    font-size: 16px;
    font-weight: 600;

    margin: 12px 0 0;
    line-height: 1.3;
}

.bottega-cat-arrow {
    position: absolute;
    top: 45%;

    transform: translateY(-50%);

    width: 36px;
    height: 36px;

    border: 1px solid #ddd;
    border-radius: 50%;

    background: #fff;
    color: #111;

    cursor: pointer;
    z-index: 5;

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
}

.bottega-cat-wrap .prev {
    left: 0;
}

.bottega-cat-wrap .next {
    right: 0;
}

/* Category carousel mobile */

@media (max-width: 768px) {

    .bottega-cat-wrap {
        padding: 10px 30px;
    }

    .bottega-cat-item {
        flex: 0 0 calc(50% - 10px);
    }

    .bottega-cat-arrow {
        width: 30px;
        height: 30px;
    }

    .bottega-cat-item h3 {
        font-size: 13px;
    }

}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {

    .bottega-cat-carousel {
        scroll-behavior: auto;
    }

    .bottega-product-image img,
    .bottega-cat-image img {
        transition: none;
    }

}

/* Homepage information icons - Pure Black */

.wl-info-icon {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0 auto 15px;
    color: #000000 !important;
    stroke: #000000 !important;
    fill: none !important;
}

.wl-info-icon path,
.wl-info-icon circle,
.wl-info-icon line,
.wl-info-icon polyline {
    stroke: #000000 !important;
}

/* WERREN LOTAS - HOMEPAGE FAQ */

.wl-home-faq {
    max-width: 850px;
    margin: 0 auto;
    padding: 60px 20px;
}

.wl-home-faq details {
    border-bottom: 1px solid #e5e5e5;
    padding: 18px 0;
}

.wl-home-faq summary {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    list-style: none;
}

.wl-home-faq summary::-webkit-details-marker {
    display: none;
}

.wl-home-faq summary::after {
    content: "+";
    float: right;
    margin-left: 16px;
    font-size: 22px;
    font-weight: 400;
}

.wl-home-faq details[open] summary::after {
    content: "−";
}

.wl-home-faq details p {
    margin: 14px 0 0;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .wl-home-faq {
        padding: 35px 15px;
    }

    .wl-home-faq summary {
        font-size: 14px;
    }
}

