/* Slide Carousel */
#carousel-example-generic {
    margin-bottom: 30px;
}

#carousel-example-generic .carousel-inner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
}

#carousel-example-generic .carousel-indicators {
    bottom: 20px;
}

#carousel-example-generic .carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid #fff;
}

#carousel-example-generic .carousel-indicators li.active {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Table Service */
.table-service {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

.table-service .service {
    width: 100%;
    border-collapse: collapse;
}

.table-service .service-tr {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.table-service .service-th {
    flex: 1;
    min-width: 150px;
    padding: 15px;
    text-align: center;
    border-right: 1px solid #e9ecef;
}

.table-service .service-th:last-child {
    border-right: none;
}

.table-service .service-th-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.table-service .service-th-div img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.table-service .service-th-div .text h5 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.table-service .service-th-div .text h5 a {
    color: #333;
    text-decoration: none;
}

.table-service .service-th-div .text .chinh_sach {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Offer Banner Section */
.offer-banner-section {
    margin-bottom: 30px;
    padding: 20px 0;
}

.offer-banner-section .row {
    margin: 0;
}

.offer-banner-section .row > div {
    padding: 0 10px;
}

.offer-banner-section img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-banner-section img:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Best Seller Slider */
.main-col {
    margin-bottom: 40px;
}

.best-seller-pro {
    padding: 30px 0;
    margin-bottom: 40px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
    border-radius: 10px;
    padding: 30px 20px;
}

.slider-items-products {
    display: flex;
    gap: 20px;
}

.slider-items-products .new_title {
    margin-bottom: 20px;
}

.slider-items-products .new_title h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    position: relative;
    padding-bottom: 15px;
}

.slider-items-products .new_title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c757d, #868e96);
    border-radius: 2px;
}

.slider-items-products .new_title h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slider-items-products .new_title h2 a:hover {
    color: #6c757d;
}

.slider-items-products .new_title.center {
    text-align: center;
}

.slider-items-products .index-column-2 {
    margin-top: 20px;
}

.slider-items-products .index-column-2 .links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slider-items-products .index-column-2 .links li {
    margin-bottom: 10px;
}

.slider-items-products .index-column-2 .links li a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.slider-items-products .index-column-2 .links li a:hover {
    color: #6c757d;
}

.masonry-container {
    position: relative;
}

.col-item {
    margin-bottom: 20px;
}

.item-inner {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.item-inner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #6c757d;
}

.product-wrapper {
    position: relative;
    overflow: hidden;
}

.thumb-wrapper {
    position: relative;
    padding-top: 100%;
    background-color: #f8f9fa;
    overflow: hidden;
}

.thumb-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-inner:hover .thumb-wrapper img {
    transform: scale(1.05);
}

.item-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-inner {
    margin-bottom: 12px;
    flex: 1;
}

.item-title {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-title a:hover {
    color: #6c757d;
}

.item-content {
    margin-top: 10px;
}

.item-price {
    margin-bottom: 10px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-box .regular-price {
    font-size: 18px;
    font-weight: 700;
    color: #6c757d;
}

.price-box .regular-price .price {
    color: #6c757d;
    font-size: 18px;
}

.price-box .sale-price {
    font-size: 16px;
    color: #dc3545;
    font-weight: 600;
}

.price-box .old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.btn-add-cart,
.btn-view-detail {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
}

.btn-add-cart {
    background-color: #6c757d;
    color: #fff;
}

.btn-add-cart:hover {
    background-color: #5a6268;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-view-detail {
    background-color: #fff;
    color: #333;
    border: 1px solid #e9ecef;
}

.btn-view-detail:hover {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-add-cart i,
.btn-view-detail i {
    font-size: 16px;
}

/* Promo Banner Section */
.promo-banner-section {
    margin: 40px 0;
}

.promo-banner-section .responsive-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Latest Blog Section */
.latest-blog-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #6c757d, #868e96);
    border-radius: 2px;
}

.section-subtitle {
    color: #666;
    font-size: 16px;
    margin-top: 20px;
}

.blog-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-image {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.blog-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    font-size: 14px;
}

.blog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: #6c757d;
}

.blog-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.blog-read-more {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    color: #5a6268;
    gap: 10px;
}

/* Partner Logos Section */
.partner-logos-section {
    padding: 50px 0;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.partner-logos-wrapper {
    padding: 20px 0;
}

.partner-logo-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #6c757d;
}

.partner-logo-item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact Form Section */
.contact-form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.contact-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-wrapper .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.contact-form-wrapper .form-control {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
    border-color: #6c757d;
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.contact-form-wrapper textarea.form-control {
    resize: vertical;
}

.contact-form-wrapper .btn-primary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 12px 40px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form-wrapper .btn-primary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.contact-form-wrapper .alert {
    border-radius: 5px;
    margin-bottom: 25px;
}

.contact-form-wrapper .alert ul {
    padding-left: 20px;
}

.contact-form-wrapper .alert i {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 767px) {
    .table-service {
        display: none;
    }
    
    .offer-banner-section {
        display: none;
    }
    
    .slider-items-products {
        flex-direction: column;
    }
    
    .slider-items-products .col-md-2 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .slider-items-products .col-md-10 {
        width: 100%;
    }
    
    .actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-add-cart,
    .btn-view-detail {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .item-title {
        font-size: 14px;
        min-height: 40px;
    }
    
    .price-box .regular-price {
        font-size: 16px;
    }
    
    .slider-items-products .new_title h2 {
        font-size: 22px;
    }
    
    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .contact-form-wrapper {
        padding: 20px 15px;
    }

    .contact-form-wrapper .form-control,
    .contact-form-wrapper textarea {
        font-size: 0.875rem;
        padding: 0.6rem 0.75rem;
    }
    
    .blog-image {
        padding-top: 70%;
    }

    .blog-card {
        margin-bottom: 1.5rem;
    }

    .blog-title {
        font-size: 1rem;
    }

    .blog-excerpt {
        font-size: 0.875rem;
    }
    
    .partner-logo-item {
        height: 80px;
        padding: 15px;
    }
    
    .partner-logo-item img {
        max-height: 50px;
    }

    /* Carousel */
    #carousel-example-generic .carousel-inner img {
        max-height: 300px;
    }

    #carousel-example-generic .carousel-indicators {
        bottom: 10px;
    }

    /* Container padding */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Section spacing */
    .section-header {
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 20px;
    }

    .slider-items-products .new_title h2 {
        font-size: 18px;
    }

    .item-title {
        font-size: 13px;
    }

    .price-box .regular-price {
        font-size: 14px;
    }

    .btn-add-cart,
    .btn-view-detail {
        font-size: 0.8rem;
        padding: 0.45rem 0.75rem;
    }
}
