/*
Theme Name: Dierenkanjer Thema
Theme URL: innovatiemedia.nl
Author: Innovatie Media
Description: Een Innovatie Media thema op maat voor Dierenkanjer.
Version: 1.0
*/

.product-wrapper .image-wrapper .product-image {
    object-fit: contain;
}

/* WooCommerce Archive - Gelijke kolom breedtes */
.products-archive-wrapper .inner-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.products-archive-wrapper .inner-wrapper > a {
    width: 100%;
}

.products-archive-wrapper .inner-wrapper > a .product {
    width: 100%;
}

/* Responsive: 2 kolommen op tablet */
@media (max-width: 992px) {
    .products-archive-wrapper .inner-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 kolom op mobiel */
@media (max-width: 576px) {
    .products-archive-wrapper .inner-wrapper {
        grid-template-columns: 1fr;
    }
}

/* YITH Filter - Toon meer functionaliteit */
.yith-wcan-filter .filter-items li:nth-child(n+6) {
    display: none;
}

.yith-wcan-filter.show-all .filter-items li:nth-child(n+6) {
    display: block;
}

.yith-wcan-filter .show-more-brands {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 18px;
    background: #B9C725;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(185, 199, 37, 0.3);
}

.payment_method_mollie_wc_gateway_ideal {
    display: none;
}

.yith-wcan-filter .show-more-brands:hover {
    background: #a5b220;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185, 199, 37, 0.4);
}

.yith-wcan-filter .show-more-brands:active {
    transform: translateY(0);
}

.yith-wcan-filter.show-all .show-more-brands .more-text {
    display: none;
}

.yith-wcan-filter .show-more-brands .less-text {
    display: none;
}

.yith-wcan-filter.show-all .show-more-brands .less-text {
    display: inline;
}

/* Knowledge base spacing op archive pagina */
.products main.products .knowledge-base,
.category-overview-page main.products .knowledge-base {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

/* Flexible Content - Page wrapper */
.fc-page-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.fc-page-content h1,
.fc-page-content h2,
.fc-page-content h3,
.fc-page-content h4,
.fc-page-content h5,
.fc-page-content h6 {
    font-weight: 500;
}

/* Flexible Content - Content Editor */
.fc-content-editor {
    width: 100%;
}

.fc-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.fc-content-wrapper .fc-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.fc-content-wrapper .fc-text {
    font-size: 16px;
    line-height: 1.7;
}

.fc-content-wrapper .fc-text h2,
.fc-content-wrapper .fc-text h3 {
    margin-top: 0;
}

/* Alleen afbeelding */
.fc-image-wrapper {
    width: 100%;
}

.fc-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.fc-image-wrapper.fc-align-left {
    text-align: left;
}

.fc-image-wrapper.fc-align-right {
    text-align: right;
}

.fc-image-wrapper.fc-align-center {
    text-align: center;
}

/* Alleen tekst */
.fc-text-only {
    max-width: 800px;
    font-size: 16px;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-content-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fc-image-left .fc-content-wrapper .fc-image {
        order: -1;
    }
}

/* Navigation submenu letter groups */
.has-submenu:hover .sub-menu .sub-wrapper .groups-wrapper .letter-group {
    justify-content: normal;
}

/* Navigation featured image */
.sub-wrapper .featured-image img {
    max-height: 170px;
    width: auto;
    object-fit: contain;
}

/* Product Variants Selector */
.product-variants {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-variants .variants-label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.product-variants .variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-variants .variant-btn {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.product-variants .variant-btn:hover {
    border-color: #B9C725;
    color: #B9C725;
}

.product-variants .variant-btn.active {
    background: #B9C725;
    border-color: #B9C725;
    color: #fff;
    cursor: default;
}

.product-variants .variant-btn.out-of-stock {
    opacity: 0.5;
    text-decoration: line-through;
}

.product-variants .variant-btn.out-of-stock:hover {
    border-color: #e0e0e0;
    color: #999;
}

/* Related Variants (Zie ook) */
.product-related-variants {
    margin: 10px 0 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-related-variants .variants-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.product-related-variants .variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-related-variants .variant-btn {
    display: inline-block;
    padding: 6px 12px;
    border: 1px dashed #ccc;
    border-radius: 20px;
    background: #f9f9f9;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-related-variants .variant-btn:hover {
    border-color: #B9C725;
    border-style: solid;
    background: #fff;
    color: #B9C725;
}

/* Fix mobile title not overlapped by image */
@media screen and (max-width: 1024px) {
    .sp-info-mobile {
        position: relative;
        z-index: 1;
    }
}

/* Mobile variants wrapper - hidden on desktop, visible on mobile */
.mobile-variants-wrapper {
    display: none;
}

@media screen and (max-width: 1024px) {
    .mobile-variants-wrapper {
        display: block;
        margin: 20px 0;
    }

    .mobile-variants-wrapper .product-variants,
    .mobile-variants-wrapper .product-related-variants {
        margin: 10px 0;
    }

    .mobile-variants-wrapper .product-variants .variant-btn,
    .mobile-variants-wrapper .product-related-variants .variant-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* YITH Autocomplete Suggestions */
.autocomplete-suggestion .yith_wcas_result_image img {
    max-width: 80px;
    max-height: 70px;
    height: auto !important;
    mix-blend-mode: multiply;
    object-fit: contain;
}

/* Search - Product of the week image */
.product-of-the-week .product-image-wrapper img {
    max-height: 90px;
    object-fit: contain;
}

/* Footer - Company info bar */
.company-info-bar {
    background-color: #243745;
    padding: 15px 0;
}

.company-info-bar .company-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 25px;
    font-size: 13px;
    color: #fff;
}

.company-info-bar .company-details a {
    color: #B9C725;
    text-decoration: none;
}

.company-info-bar .company-details a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .company-info-bar .company-details {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Klantenservice - Full width FAQ */
.service-faq.service-faq-fullwidth {
    display: block;
}

.service-faq.service-faq-fullwidth .faq-container {
    width: 100%;
}

.service-faq.service-faq-fullwidth .faq-container .title {
    font-size: 24px;
    font-weight: 600;
    color: #243745;
    margin-bottom: 25px;
}

.service-faq.service-faq-fullwidth .faq {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.service-faq.service-faq-fullwidth .faq-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-faq.service-faq-fullwidth .faq-item:hover {
    border-color: #B9C725;
    box-shadow: 0 4px 15px rgba(185, 199, 37, 0.15);
}

.service-faq.service-faq-fullwidth .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s ease;
}

.service-faq.service-faq-fullwidth .faq-question:hover {
    background: #f0f1f2;
}

.service-faq.service-faq-fullwidth .faq-question h3 {
    font-size: 15px;
    font-weight: 500;
    color: #243745;
    margin: 0;
    line-height: 1.4;
}

.service-faq.service-faq-fullwidth .faq-question .icon {
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.service-faq.service-faq-fullwidth .faq-item.active .faq-question .icon {
    transform: rotate(180deg);
}

.service-faq.service-faq-fullwidth .faq-answer {
    display: none;
    padding: 0 20px 18px;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}

.service-faq.service-faq-fullwidth .faq-item.active .faq-answer {
    display: block;
}

.service-faq.service-faq-fullwidth .faq-answer p {
    margin: 0;
}

/* Klantenservice - Contact items 2x2 grid */
.service-bottom-bottom {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.service-bottom-bottom .item {
    width: 100% !important;
    flex: none !important;
}

.service-bottom-bottom .item .right .content p a {
    color: #B9C725;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-bottom-bottom .item .right .content p a:hover {
    text-decoration: underline;
}

@media (max-width: 576px) {
    .service-bottom-bottom {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 992px) {
    .service-faq.service-faq-fullwidth .faq {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-faq.service-faq-fullwidth .faq-container .title {
        font-size: 20px;
    }

    .service-faq.service-faq-fullwidth .faq-question h3 {
        font-size: 14px;
    }
}

/* Hide Usercentrics floating fingerprint button */
#usercentrics-cmp-ui .fingerprint {
    display: none !important;
}

/* Category page - Mobile fix for back-to-primary and sorting */
@media screen and (max-width: 990px) {
    aside.filter .back-to-primary {
        display: none;
    }
}

@media screen and (max-width: 620px) {
    .category-overview-page .category-top {
        flex-direction: column;
        gap: 10px;
    }

    .category-overview-page .category-top .woocommerce-result-count {
        order: 2;
        margin-top: 5px;
    }

    .category-overview-page .category-top .woocommerce-ordering {
        order: 1;
    }
}

/* WooCommerce Pagination - Mobile fix */
.woocommerce-pagination {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
}

@media (max-width: 576px) {
    .woocommerce-pagination ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }

    /* Hide some page numbers on very small screens */
    .woocommerce-pagination ul li:not(:first-child):not(:last-child):not(.current):nth-child(n+4):nth-last-child(n+4) {
        display: none;
    }
}
