:root {
    --subColor: #007bff; 
}
section {
    padding: 60px 0;
    border-top: 1px solid #f0f0f0; 
}
section:first-of-type {
    border-top: none;
    padding-top: 30px; 
}
section:nth-of-type(even) {
    background-color: #f8f9fa; 
}
.feature {
    padding: 60px 0; 
    background-color: #f8f9fa; 
}
.feature-item {
    padding: 25px;
    background-color: #ffffff; 
    text-align: center;
    border: 1px solid #e9ecef; 
    height: 100%; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); 
}
.feature-item i {
    font-size: 48px; 
    margin-bottom: 20px;
    color: #007bff; 
}
.feature-item h3 {
    font-size: 18px;
    font-weight: 700; 
    color: #212529; 
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d; 
}
.categories{
    padding: 1rem;
    margin-bottom: 2rem;
}
.widget-title {
    display: flex;                 
    justify-content: space-between;
    align-items: center;           
    margin-bottom: 20px;           
    border-bottom: 1px solid #eee; 
    padding-bottom: 15px;
}
.widget-title h3 {
    margin: 0; 
    font-size: 24px;
}
.widget-title h3 a {
    color: #222;
    text-decoration: none;
    font-weight: 700;
    position: relative; 
    padding-bottom: 15px; 
}
.widget-title h3 a::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--subColor); 
    position: absolute;
    bottom: 0px;
    left: 0px;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
    transition: width 0.3s ease; 
}
.widget-title h3 a:hover {
    color: var(--subColor);
}
.widget-title h3 a:hover::after {
    width: 120px; 
}
.widget-tool a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.widget-tool a:hover {
    color: var(--subColor);
}
.widget-tool a i {
    margin-left: 8px; 
    font-size: 14px;
}
.product-list{
    padding: 3rem 0;
    /* margin-bottom: 2rem; */
}
.product-widget_wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px; 
}
.product-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.product-card__image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1; /* Giữ ảnh luôn vuông */
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--accent-color, #ff5722);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* --- NÚT BẤM HIỆN RA KHI HOVER --- */
.product-card__actions {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    visibility: visible;
    bottom: 20px; /* Hiệu ứng trượt lên */
}

.product-card__actions .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    color: var(--primary-color, #343a40);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.product-card__actions .action-btn:hover {
    background-color: var(--primary-color-hover, #1565c0);
    color: #fff;
    transform: scale(1.1);
}


/* --- THÔNG TIN SẢN PHẨM --- */
.product-card__body {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    flex-grow: 1; /* Đẩy giá xuống dưới cùng */
}

.product-card__title a {
    color: var(--heading-color, #111);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card__title a:hover {
    color: var(--primary-color-hover, #1565c0);
}

.product-card__price {
    margin-top: auto; /* Đảm bảo giá luôn ở dưới */
    padding-top: 10px;
}

.product-card__price .price-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-color, #ff5722);
}

.product-card__price .price-old {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 8px;
}

.product-card__price .price-contact {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color-hover, #1565c0);
}
.news .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}
.news .section-title a {
    color: #222;
    text-decoration: none;
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
.news .section-title > a::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #007bff; 
    position: absolute;
    bottom: 0px;
    left: 0px;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
    transition: width 0.3s ease;
}
.news .section-title > a:hover {
    color: #007bff;
}
.news .section-title > a:hover::after {
    width: 120px;
}
.news .section-tool a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 0px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}
.news .section-tool a:hover {
    color: #007bff;
}
.news .section-tool i {
    margin-left: 8px;
}
.big-news {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.big-news-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; 
    object-fit: cover;
    transition: transform 0.4s ease;
}
.big-news:hover .big-news-image img {
    transform: scale(1.05);
}
.big-news h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.big-news h3 a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.4;
}
.news-item_list {
    display: flex; 
    gap: 15px; 
    align-items: center;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.news-item_list:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.item_list-img a {
    display: block;
    width: 100px; 
    height: 80px;
    flex-shrink: 0; 
    overflow: hidden;
    border-radius: 6px;
}
.item_list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-item_list:hover .item_list-img img {
    transform: scale(1.1);
}
.item_list-info a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.5;
}
.news-item_list:hover .item_list-info a {
    color: #007bff;
}

#contact {
    background-color: #fff; 
}
#contact .box-shadow {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
}
.contact-info__image {
    text-align: center;
    padding: 20px;
}
.contact-info__image img {
    max-width: 150px;
    margin: 0 auto 15px;
}
.contact-info__image p {
    font-weight: bold;
    font-size: 20px;
    color: #333;
}
.contact-info__text {
    text-align: center;
    font-size: 18px;
    color: #555;
    margin: 20px 0;
}
.contact-info__button {
    padding: 0 20px;
}