/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


#masthead .site-title {
    display: none
}

.woocommerce-js ul.products li.product a img,
.woocommerce-page ul.products li.product a img {
    aspect-ratio: 1/1;
    object-fit: contain;
    width: 100%;
}

/* Đảm bảo các sản phẩm có cùng chiều cao */
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 20px;
}

.woocommerce-page ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 2em;
}

.woocommerce-page .astra-shop-thumbnail-wrap {
    aspect-ratio: 1/1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Đảm bảo các nút Add to cart cùng hàng */
.woocommerce-page ul.products li.product .button {
    margin-top: auto;
}

.woopq-quantity-input-plus,
.woopq-quantity-input-minus {
    border-color: var(--e-global-color-astglobalcolor7);
    border-radius: 1px;
}

.woocommerce-js div.product div.images .woocommerce-product-gallery__trigger {
    left: 25%;
    top: .5em;
    right: auto;
    z-index: 10;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}

/* Tạo layout flexbox cho product gallery */
.woocommerce-product-gallery {
    display: flex !important;
    flex-direction: row-reverse !important;
}

/* Điều chỉnh kích thước của flex-viewport (hình ảnh chính) */
.woocommerce-product-gallery .flex-viewport {
    width: 80% !important;
    float: right !important;
}

/* Điều chỉnh thumbnails sang trái và hiển thị dọc */
.woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-direction: column !important;
    width: 15% !important;
    padding-right: 10px !important;
}

/* Điều chỉnh kích thước và margin của từng thumbnail */
.woocommerce-product-gallery .flex-control-thumbs li {
    width: 100% !important;
    float: none !important;
    margin: 0 0 10px 0 !important;
}

/* Đảm bảo hình ảnh trong thumbnails hiển thị đúng */
.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    object-fit: cover;
}

/* Đảm bảo hiển thị 5 sản phẩm trên một hàng */
.woocommerce ul.products.swiper-container .swiper-slide,
.elementor-grid.products.swiper-container .swiper-slide,
ul.products.columns-4.swiper-container .swiper-slide {
    width: 20% !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
}

/* Ghi đè các class của Elementor */
.elementor-grid.products.swiper-container {
    grid-template-columns: none !important;
}

.elementor-grid.products.swiper-container .swiper-wrapper {
    display: flex !important;
}

/* Đảm bảo các nút navigation hiển thị đúng */
.woocommerce ul.products+.swiper-button-next,
.woocommerce ul.products+.swiper-button-prev,
.woocommerce ul.products+.swiper-button-prev+.swiper-button-next {
    z-index: 10;
}

/* Responsive */
@media (max-width: 1024px) {

    .woocommerce ul.products.swiper-container .swiper-slide,
    .elementor-grid.products.swiper-container .swiper-slide,
    ul.products.columns-4.swiper-container .swiper-slide {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
    }
}

@media (max-width: 768px) {

    .woocommerce ul.products.swiper-container .swiper-slide,
    .elementor-grid.products.swiper-container .swiper-slide,
    ul.products.columns-4.swiper-container .swiper-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Khắc phục xung đột với Elementor */
.elementor-widget-woocommerce-products .elementor-grid.products.swiper-container {
    display: block !important;
}

/* Đảm bảo swiper-container không bị ảnh hưởng bởi các style khác */
.swiper-container.swiper-initialized {
    overflow: visible !important;
}

.wcpf-layout-item.wcpf-box-style .wcpf-heading-label,
.wcpf-field-item.wcpf-box-style .wcpf-heading-label {
    color: rgb(0, 0, 0);
    cursor: pointer;
    display: block;
    font-size: 15px;
    height: 41px;
    line-height: 21px;
}