/**
* Theme Name: Affiche Child
* Author: <a href="https://www.thunder-stores.com/">Thunderstores</a>
* Description: A block theme for Arts and Crafts online stores.
* Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
* Template: affiche
* Version: 666.0.28
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: affiche
*/

/* newsletter dismiss link */
.woocommerce-store-notice.demo_store a.woocommerce-store-notice__dismiss-link {
    background: none;
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-left: 10px;
    vertical-align: sub;
}

.woocommerce-store-notice.demo_store a.woocommerce-store-notice__dismiss-link svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* header a bit more compact */
.site-header-wrapper #site-header {
    padding: 1.25rem 1.65rem;
}

@media (max-width: 1023px) {
    .site-header-wrapper #site-header #site-identity-wrapper .custom-logo-link img {
        max-height: 50px;
    }
}

@media only screen and (min-width: 768px) {
    .site-header-wrapper #site-header {
        padding: 1.25rem 3.3rem
    }
}

@media only screen and (min-width: 1024px) {
    .site-header-wrapper #site-header {
        padding: 1rem 5rem;
    }
}

/* top nav font a bit bolder */
.site-header-wrapper #site-header #primary-menu-wrapper {
}

.site-header-wrapper #site-header #primary-menu-wrapper ul.primary-menu > li > a {
    font-weight: 600;
}

/* menu icons */
.site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#search-site-tool .menu-icon:before,
.site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#my-account-site-tool .menu-icon:before,
.site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool .menu-icon .bag-menu-icon:before {
    display: none;
}

.site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li .menu-icon svg {
    display: block;
}

.site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#my-account-site-tool .menu-icon svg {
    display: block;
    width: 20px;
}

@media (max-width: 767px) {
    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li .menu-icon svg {
        width: 26px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool {
        margin-left: 8px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool .menu-icon .bag-menu-icon svg {
        display: block;
        width: 18px;
        margin-top: -1px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#mobile-menu-tool .menu-icon {
        top: 0;
        margin-top: -17px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool .menu-icon .bag-product-count {
        display: none;
    }
}

@media (min-width: 768px) {
    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li.menu-item {
        margin-left: 16px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#search-site-tool .menu-icon {
        width: 26px;
        height: 26px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#my-account-site-tool .menu-icon {
        width: 20px;
        height: 20px;
        margin-top: -6px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool .menu-icon .bag-menu-icon {
        width: 20px;
        height: 20px;
        margin-top: 3px;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool .menu-icon .bag-menu-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools > li#shopping-bag-site-tool .menu-icon .bag-product-count {
        display: none;
    }
}

/* product menu */
.woocommerce-shop .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools .menu-icon,
.product-template-default.single-product .site-header-wrapper #site-header #secondary-menu-wrapper ul#menu-site-tools .menu-icon {
    color: #000;
}

/* latest items grid 2x2 instead of slider */
@media (max-width: 1023px) {
    .wc-block-grid.wp-block-product-new.wp-block-woocommerce-product-new.wc-block-product-new.has-4-columns.alignwide.has-aligned-buttons.artlupka_latest_items ul.wc-block-grid__products {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .wc-draggable-products .wc-block-grid:not(.all-products):not(.has-2-columns):not(.has-1-columns) ul.wc-block-grid__products li {
        max-width: none !important;
        width: 100% !important;
    }
}

/* custom product dimensions selector */
/* Container for the boxes */
.custom-variation-swatches {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Hide the default radio button circle */
.custom-swatch input[type="radio"] {
    display: none;
}

/* Style the box to match your mockup */
.custom-swatch span {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid #333; /* Dark border from the mockup */
    background-color: #fff;
    cursor: pointer;
    font-size: 0.85rem !important;
    color: #333;
    transition: all 0.2s ease;
}

@media (min-width: 1024px) {
    .custom-swatch span {
        font-size: 0.65rem !important;
    }
}

/* Hover state */
.custom-swatch span:hover {
    background-color: #f5f5f5;
}

/* Active/Selected state - WooCommerce adds styling when selected, we simulate it here */
.custom-swatch input[type="radio"]:checked + span {
    border-width: 3px; /* Make the border thicker to indicate selection */
    border-color: #ff4733;
    font-weight: 600;
    padding: 9px 17px; /* Adjust padding slightly to prevent layout shifts from thicker border */
}

#content .site-main div.product.type-product .summary.entry-summary form.cart .variations tr:first-child th {
    position: relative;
}

/* format */
#content .site-main div.product.type-product .summary.entry-summary form.cart .variations th.label label {
    text-transform: lowercase;
    font-size: 0.6rem;
    line-height: 14px;
    font-weight: 600;
}

#content .site-main div.product.type-product .summary.entry-summary form.cart .variations th.label label::before {
    content: "";
    background-image: url("data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iY3VzdG9tLXZhcmlhdGlvbi1zd2F0Y2hlcy1pY29uIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTAiIHZpZXdCb3g9IjAgMCAyMDggMTE2Ij48cGF0aCBkPSJNNi42MTQgNi42MTZoMTk0LjQ0NHYxMDIuMjYxSDYuNjE0eiIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzE2MTYxNjtzdHJva2Utd2lkdGg6MTMuMjNweCIvPjxwYXRoIGQ9Ik00My41NzcgNi42MTR2NTEuMTMzTTgzLjMyOCA2LjYxNHY1MS4xMzNNMTIzLjA3OSA2LjYxNHY1MS4xMzNNMTYyLjgzMSA2LjYxNHY1MS4xMzMiIHN0eWxlPSJmaWxsOm5vbmU7ZmlsbC1ydWxlOm5vbnplcm87c3Ryb2tlOiMxNjE2MTY7c3Ryb2tlLXdpZHRoOjEzLjIzcHgiLz48L3N2Zz4=");
    width: 24px;
    height: 14px;
    display: inline-block;
    background-repeat: no-repeat;
    margin-right: 10px;
    vertical-align: top;
}


/* GENERAL WEBSITE TWEAKS */
.home .entry-header.main-header.alignfull .entry-header-inner .entry-title {
    font-weight: bold;
    font-size: 2rem;
}

@media only screen and (min-width: 768px) {
    .home .entry-header.main-header.alignfull .entry-header-inner .entry-title {
        font-size: 3rem;
    }
}

@media only screen and (min-width: 1366px) {
    .home .entry-header.main-header.alignfull .entry-header-inner .entry-title {
        font-size: 4rem;
    }
}

/* footer */
#site-footer > .widgets-area {
    max-width: 90%;
}

/* h2 font size fix */
h2 {
    font-size: 1.953rem;
}

@media only screen and (max-width: 767px) {
    h2 {
        font-size: 1.953rem;
    }
}

/* shop items bigger on home */
@media only screen and (min-width: 1024px) {
    .wc-block-grid.alignwide.has-4-columns ul.wc-block-grid__products li.wc-block-grid__product {
        border-left: 0.65rem solid transparent;
        border-right: 0.65rem solid transparent;
    }
}

/* home last section margin fix */
.site-main > *:last-child {
    margin-bottom: 0 !important;
}

/* product price size */
#content .site-main div.product.type-product .summary.entry-summary p.price {
    font-size: 1.5rem;
    font-weight: 600;
}

@media only screen and (min-width: 1024px) {
    #content .site-main div.product.type-product .summary.entry-summary p.price {
        font-size: 1.2rem;
    }
}

#content .site-main div.product.type-product .summary.entry-summary p.price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

/* product short description */
#content .site-main div.product.type-product .summary.entry-summary .woocommerce-product-details__short-description {
    margin-top: 1rem;
}

#content .site-main div.product.type-product .summary.entry-summary .woocommerce-product-details__short-description p {
    font-size: 0.9rem;
    font-weight: 500;
}

@media only screen and (min-width: 1024px) {
    #content .site-main div.product.type-product .summary.entry-summary .woocommerce-product-details__short-description p {
        font-size: 0.6rem;
    }
}

/* add to cart button */
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled {
    background: #000;
}

#content .site-main div.product.type-product .summary.entry-summary form.cart:not(.grouped_form) .quantity {
    width: 100px;
}

#content .site-main div.product.type-product .summary.entry-summary form.cart:not(.grouped_form) .quantity input.qty {
    padding-top: calc(0.75rem - 15px);
    padding-bottom: calc(0.75rem - 15px);
    padding-left: 5px;
    padding-right: 5px;
    border: 15px solid #000;
    color: #000;
    background: #fff;
    height: 60px;
}

.is-mobile #content .site-main div.product.type-product .summary.entry-summary form.cart:not(.grouped_form) .quantity input.qty {
    padding-top: calc(0.75rem - 15px);
    padding-bottom: calc(0.75rem - 15px);
    height: 60px;
}

#content .site-main div.product.type-product .summary.entry-summary form.cart:not(.grouped_form) .quantity:not(.hidden) + .button {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: calc(100% - 100px);
    height: 60px;
}

/* selected price */
#content .site-main div.product.type-product .summary.entry-summary form.cart .single_variation_wrap .woocommerce-variation-price .price {
    font-size: 1rem;
    font-weight: 600;
}

#content .site-main div.product.type-product .summary.entry-summary form.cart .single_variation_wrap .woocommerce-variation-price .price .woocommerce-Price-currencySymbol {
    font-size: inherit;
}

/* related products */
#content .site-main div.product.type-product .related > h2,
#content .site-main div.product.type-product .upsells > h2 {
    font-size: 1.953rem;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid #666;
    padding-top: 3rem;
}

/* gallery full screen launcher */
#content .site-main div.product.type-product .woocommerce-product-gallery__trigger {
    border-radius: 4px 0 0 0;
    bottom: 0;
    top: auto;
    margin-bottom: 4.5rem;
}

@media (min-width: 1024px) {
    #content .site-main div.product.type-product .woocommerce-product-gallery__trigger {
        margin-bottom: 4.35rem;
    }
}

/* 1. Clear the default WooCommerce icon */
#content .site-main div.product.type-product .woocommerce-product-gallery__trigger:before {
    /*background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbDpzcGFjZT0icHJlc2VydmUiIHN0eWxlPSJmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTAiIHZpZXdCb3g9IjAgMCA5NCA5NCI+PHBhdGggZD0iTTgxLjIwNCA1OS44OThDNzAuMDYyIDcxLjA0IDUyLjk5OCA3Mi42NDMgNDAuMTY0IDY0LjcxYTMyLjggMzIuOCAwIDAgMS02LjA5Ni00LjgxMiAzMyAzMyAwIDAgMS00LjgyNi02LjExMWMtNy45Mi0xMi44NDctNi4zMTYtMjkuODgzIDQuODI2LTQxLjAyNSAxMy4wMS0xMy4wMDkgMzQuMTEyLTEzLjAyNCA0Ny4xMzYgMCAxMy4wMDkgMTMuMDEgMTMuMDA5IDM0LjEyOSAwIDQ3LjEzNloiIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLXdpZHRoOjZweCI+PC9wYXRoPjxwYXRoIGQ9Ik03Mi40NDMgMjAuOTY2YzguMTA4IDguMTEgOC4xMDggMjEuMjcyIDAgMjkuMzhNNDAuMjY2IDY0Ljc5MiAxNi40MDggODguNjVjLTMuMDY5IDMuMDY3LTguMDUyIDMuMDY3LTExLjEwNi4wMTNhNy44NyA3Ljg3IDAgMCAxIDAtMTEuMTIyTDI5LjE2IDUzLjY4NmEzMy42IDMzLjYgMCAwIDAgNC45MDggNi4yMTIgMzMuMyAzMy4zIDAgMCAwIDYuMTk4IDQuODk0WiIgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2Utd2lkdGg6NnB4Ij48L3BhdGg+PC9zdmc+');*/
}