/*
Theme Name: SMHCB
Theme URI: http://chuotbu.com/smhcb
Description: con hàng SMHCB để bán sản phẩm số.
Author: Chuotbu
Author URI: http://chuotbu.com
Template: hello-elementor
Version: 1.0.0
*/

/* Các style tùy chỉnh của child theme sẽ được thêm ở đây */
p.site-description.show {
    display: none;
}
.site-logo img {
    width: 150px;
}
/* Tổng quan */
h1, h2, h3, h4, h5, h6 {color: #000!important;}
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}
h1,h1.product_title.entry-title,h1.entry-title {
    font-size: 32px;
}
h2,h2.wc-vietqr-bank-details-heading, h2.woocommerce-order-details__title, h2.woocommerce-column__title  {
    font-size: 28px;
}
h3 {
    font-size: 24px;
}
h4,woocommerce-vietqr-bank-details h4 {
    font-size: 16px;
}
body, html {
    height: 100%;
    margin: 0;
}
.site-main {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb{
    color: #333;
}
.site-navigation ul.menu li a:hover{
    color: #c36;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    text-align: center;
}

.site-header a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
}
a.catelink:hover {
    color: #c36;
}

a.catelink {
    color: #000;
}

/* CSS cho hero banner */
.hero-banner {
    background-color: #f7f7f7;
    text-align: center;
    padding: 30px 15px;
    margin-bottom: 15px;
}

.hero-banner .btn-primary {
    background-color: #c36;
    color: #ffffff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    font-size: 16px;
    font-weight: 500;
}

.hero-banner .btn-primary:hover {
    background-color: #000;
}

/* CSS cho danh sách sản phẩm */
.products-section .container {
    padding: 15px 0;
}

.product-category {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #ffffff;
}

.product-category h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.product-item {
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 250px; /* Cố định chiều cao tối thiểu */
}

.product-item:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.product-thumbnail img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    margin-bottom: 5px;
}

.product-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 16px;
    font-weight: 500;
}

.product-price {
    color: #c36;
    font-size: 0.8rem;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary {
    background-color: #fff;
    color: #000;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.8rem;
    display: inline-block;
    text-align: center;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #c36;
    color: #fff;
}

/* Feature Category Styles */
.feature-category {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid #0073e6;
    border-radius: 8px;
    background-color: #f1f9ff;
}

.feature-category h3 {
    font-size: 1.5rem;
    color: #0073e6;
    margin-bottom: 15px;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.feature-item {
    text-align: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 280px;
    flex: 1 1 calc(33.333% - 40px);
    box-sizing: border-box;
}

.feature-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.feature-thumbnail img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.feature-title {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.feature-price {
    color: #c36;
    font-size: 16px;
    font-weight: bold;
}

/* Footer CSS */
.site-footer {
    background-color: #f7f7f7;
    text-align: center;
    padding: 15px 10px;
    font-size: 0.8rem;
    color: #333333;
    margin-top: auto;
}

/* CSS cho woocommerce */

.woocommerce ul.products li.product .price {
    color: #c36;
    font-weight: bold;
}

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    width: 100%;
}

.woocommerce ul.products li.product {
    width: 15.5%;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 250px; /* Cố định chiều cao tối thiểu */
}

.woocommerce ul.products li.product img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.woocommerce ul.products li.product .button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #fff;
    color: #000;
    font-size: 14px;
    border-radius: 4px;
    border: solid 1px #66666642;
    transition: background-color 0.3s;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #c36;
    color: #fff;
}
h1.woocommerce-products-header__title.page-title{
    font-size: 32px;
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{margin: unset;}
section.related.products {
    margin-bottom: 20px;
}
.product p.price{color: #333!important;}
/* Hết Woo Shop */
/* Tới Relate product */
/* Hết Relate product */
a.single_add_to_cart_button.button.alt {
    background: #c36;
    margin: 20px 0 20px 0;
}
#billing_phone, #billing_email, #order_comments {
    margin-bottom: 15px;
    padding: 10px;
    font-size: 16px;
}

#order_comments {
    width: 100%;
    height: 100px;
    resize: none;
}
/* Đặt khoảng cách giữa các mục */
.woocommerce-checkout-review-order-table {
    margin-top: 20px;
}

.woocommerce-checkout .form-row {
    margin-bottom: 15px;
}

/* Làm đẹp Textarea */
textarea#order_comments {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
}


.woocommerce .button:hover {
    background-color: #0056b3;
}

/* Chỉnh bảng đơn hàng */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 10px;
    font-size: 14px;
}

.woocommerce-checkout-review-order-table th {
    background-color: #f7f7f7;
}

.woocommerce-checkout-review-order-table tbody tr {
    border-bottom: 1px solid #ddd;
}
.woocommerce .woocommerce-breadcrumb {
    margin: 1em 0 1em;
}
