/* Tổng thể */
body { background-color: #f8f9fa; color: #333; }

/* 1. Hình ảnh sản phẩm */
.product-images {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}
.product-images:hover { transform: translateY(-5px); }

/* 2. Nội dung tóm tắt sản phẩm */
.summary.entry-summary {
    padding: 30px;
    background: transparent;
}

.product_title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #1a1a1a;
}

/* 3. Giá tiền */
.price {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.price del { 
    color: #adb5bd; 
    font-size: 1.2rem; 
    text-decoration: line-through;
}
.price ins { 
    text-decoration: none; 
    color: #dc3545; 
    font-weight: 700; 
    font-size: 1.8rem;
}

/* 4. Form thêm vào giỏ hàng */
.cart {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: inline-flex !important;
    align-items: center;
    gap: 15px;
}

.quantity input.qty {
    width: 60px;
    height: 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-weight: bold;
}

.single_add_to_cart_button {
    height: 45px;
    background-color: #0d6efd !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5. Tabs & Mô tả */
.woocommerce-tabs {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid #f1f1f1 !important;
    margin-bottom: 30px !important;
}

.woocommerce-tabs ul.tabs li {
    border: none !important;
    background: none !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: #0d6efd !important;
}

.woocommerce-tabs ul.tabs li.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background: #0d6efd;
    margin-top: 10px;
}

/* 6. Form tìm kiếm đẹp hơn */
.woocommerce-product-search {
    display: flex;
    width: 100%;
}
.woocommerce-product-search input[type="search"] {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    padding: 8px 20px;
    outline: none;
}
.woocommerce-product-search button {
    border-radius: 0 20px 20px 0;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 8px 20px;
}

.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}
.woocommerce-product-gallery__image img {
    border-radius: 10px;
    width: 100%;
}


/*START*/
/* Ép giá của Woo theo style của Front */
.summary .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e2022;
    display: block;
    margin-bottom: 1rem;
}

.summary .price ins { text-decoration: none; }
.summary .price del { font-size: 1.1rem; color: #77838f; margin-right: 5px; }

/* Tùy biến nút Add to Cart của Woo thành nút của Front */
.single_add_to_cart_button.button {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #377dff !important;
    border-color: #377dff !important;
    color: #fff !important;
    border-radius: 0.3125rem;
    font-weight: 600;
}

/* Xử lý phần số lượng (Quantity) theo mẫu Front */
.quantity input.qty {
    border: 1px solid #e7eaf3;
    padding: 0.5rem;
    border-radius: 0.3125rem;
    margin-right: 10px;
}

/* Ẩn tiêu đề Tab mặc định của Woo để dùng style Front */
.woocommerce-tabs .nav-tabs {
    border-bottom: 1px solid #e7eaf3;
}