/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme of Astra
Author: Your Name
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
body { font-family: 'Inter', sans-serif; scroll-behavior: smooth; color: #1e293b; overflow-x: hidden; }
.product-card { transition: all 0.3s ease; border: 1px solid #f1f5f9; cursor: pointer; background: white; border-radius: 1.5rem; position: relative; }
.product-card:hover { transform: translateY(-5px); border-color: #3b82f6; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.product-card.active { border-color: #3b82f6; background-color: #eff6ff; border-width: 2px; }
.checkout-box { background: white; border-radius: 2.5rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08); border: 1px solid #f1f5f9; }
.method-btn { border: 2px solid transparent; transition: all 0.2s; cursor: pointer; background: #f8fafc; border-radius: 1rem; }
.method-btn.active { border-color: #3b82f6; background-color: #eff6ff; }

.ast-logo-title-inline .ast-site-identity {
    gap: .74rem;
}
/* Floating Contact Buttons - RECOGNIZABLE ICONS */
.contact-sidebar { position: fixed; right: 25px; bottom: 30px; display: flex; flex-direction: column; gap: 12px; z-index: 100; }
.contact-sidebar { 
    position: fixed; 
    right: 20px; 
    bottom: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    z-index: 100; 
}
.contact-item { 
    width: 48px; 
    height: 48px; 
    border-radius: 14px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    transition: 0.3s; 
    background: white; 
}
.contact-item:hover { transform: scale(1.1); }

#notification-modal { transition: opacity 0.3s ease; }
.modal-content { transform: scale(0.9); transition: transform 0.3s ease; }
#notification-modal.show .modal-content { transform: scale(1); }
.ast-logo-title-inline .site-logo-img {
    padding: 0;
}
.site-title a {
    color: #0f172a;
    letter-spacing: -0.05em;
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 2rem;
    text-transform: uppercase;
}
.woocommerce-js section h2 {
    margin-bottom: 3rem !important;
}
.grid .ast-article-single {
    list-style: none;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    cursor: pointer;
    background: white;
    border-radius: 1.5rem;
    position: relative;
}
.grid .ast-article-single:hover,
.grid .ast-article-single.active {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.astra-shop-thumbnail-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: block;
    width: 36px;
    height: 36px;
}
img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
}
.astra-shop-summary-wrap .ast-woo-product-category {
    display: none;
}
.astra-shop-summary-wrap .ast-loop-product__link{
    color: #64748b;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1rem;
    margin-bottom: 0.25rem;
}
.woocommerce-Price-amount {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 900;
}
a.add_to_cart_button {
    display: none !important;
}
.checkout-box input[type='email'] {
    border: 1px solid #f1f5f9 !important;
    background-color: #f8fafc !important;
    height: auto !important;
    border-radius: 1rem!important;
}
.checkout-box input[type='email']:focus {
    border-color: #2563eb !important;
}
.checkout-box .woocommerce-Price-amount {
    font-size: inherit !important;
}
.footer-widget-area h2,
.footer-widget-area h4,
.footer-widget-area p {
    color: #fff !important;
}
.main-header-menu .menu-link {
    font-weight: 600;
}

/* Khung chứa sản phẩm khi đang load */
.ast-article-single.product.virtual {
    position: relative; /* Bắt buộc để lớp phủ căn theo */
    transition: all 0.3s ease;
}

/* Lớp phủ mờ */
.ast-article-single.product.virtual.is-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Màu trắng mờ */
    z-index: 10;
    border-radius: inherit; /* Bo góc theo sản phẩm */
}

/* Biểu tượng spinner xoay */
.ast-article-single.product.virtual.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px; /* Kích thước nhỏ gọn */
    height: 24px;
    margin-top: -12px;
    margin-left: -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb; /* Màu xanh chủ đạo */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 11;
}

/* Animation xoay */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled tạm thời để tránh click đúp */
.ast-article-single.product.virtual.is-loading {
    pointer-events: none;
}
/* Ẩn nút Read more cho các sản phẩm hết hàng ngoài trang danh sách */
.ast-article-single .product_type_simple {
    display: none;
}
.ast-shop-product-out-of-stock {
    background-color: #cccccc !important;
    border-color: #bbbbbb !important;
    color: #666666 !important;
    cursor: not-allowed;
    opacity: 0.7;
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    padding: 5px;
    border-radius: 5px;
}