/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme for Blocksy.
Author: CreativeThemes
Author URI: https://creativethemes.com
Template: blocksy
Version: 1.0.11
Text Domain: blocksy-child
*/

html {
    scroll-padding-top: 20px;
}

@media (min-width: 1000px) {
    html {
        scroll-padding-top: 100px;
    }
}

/* ------------ woocommerce product gallery ------------ */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 2px 0;
}

.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        display: block;
    }
}

/* product overview buttons */
[data-products] .product .woocommerce-loop-product__buttons,
[data-products] .product .woocommerce-loop-product__buttons a {
    width: 100%;
}

/* Elementor product slider buttons */
.swiper-slide.e-loop-item .cart.e-loop-add-to-cart-form,
.swiper-slide.e-loop-item .cart.e-loop-add-to-cart-form .button {
    width: 100%;
}

/* order details: keep table content away from the table edges */
.woocommerce-order-details table.shop_table tr > *:first-child {
	padding-inline-start: 15px;
}

.woocommerce-order-details table.shop_table tr > *:last-child {
	padding-inline-end: 15px;
}

/* footer: align widget-area-1 children in the middle */
#footer [data-column="widget-area-1"] > div {
	align-self: center;
	text-align: center;
}

/* header: show mobile menu when data-sticky="yes:shrink" */
.ct-sticky-container > [data-sticky] .ct-header-trigger.ct-toggle {
    opacity: 0;
}

.ct-sticky-container > [data-sticky="yes:shrink"] .ct-header-trigger.ct-toggle {
    opacity: 1;
    transition: opacity 0.1s ease-in-out 0.1s;
}

/* single product: hide the default variation reset link */
.single-product .reset_variations {
    display: none !important;
}

/* single product: keep breadcrumbs above the overlapping product container */
.single-product .elementor-widget-woocommerce-breadcrumb {
    position: relative;
    z-index: 1;
}

.woocommerce-breadcrumb > a:first-child {
    display: inline-flex;
    align-items: center;
    font-size: 0;
    vertical-align: middle;
}

.woocommerce-breadcrumb > a:first-child::before {
    content: "";
    width: 15px;
    height: 15px;
    background-color: currentColor;
    transform: translateY(-2px);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v9h5v-6h4v6h5v-9h3L12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v9h5v-6h4v6h5v-9h3L12 3Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* cart: keep product information focused */
.woocommerce-cart-form .cart_item .product-name > a:first-child {
    font-weight: 700;
}

.woocommerce-cart-form .cart_item .product-name > .price {
    display: none;
}

/* blog comments: Akismet notice */
.comment-respond + .akismet_comment_form_privacy_notice {
    margin: 20px 0;
    font-size: 13px;
}
