/*
 Theme Name: My Custom Theme
 Author: Your Name
 Description: A custom WooCommerce theme
 Version: 1.0
 Text Domain: my-custom-theme
*/
wp_enqueue_script('custom-js', get_template_directory_uri() . '/assets/js/custom.js', array('jquery'), '1.0', true);

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
}
.woocommerce ul.products li.product {
    margin-bottom: 20px;
}
/* Custom styles */
body {
    font-family: Arial, sans-serif;
}
.navbar-nav .nav-link {
    padding: 10px 15px;
}
.card {
    border-radius: 10px;
}
.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}



/* Header Styles */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar-brand img {
    max-height: 50px; /* Điều chỉnh kích thước logo */
    width: auto;
}
.cart-icon {
    position: relative;
    text-decoration: none;
    color: #333;
}
.cart-icon .badge {
    position: absolute;
    top: -10px;
    right: -10px;
}
.navbar-nav .nav-link {
    padding: 10px 15px;
    font-weight: 500;
}



/* Account Icon Styles */
.account-icon {
    position: relative;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.account-icon:hover {
    color: #007bff; /* Màu khi hover, khớp với Bootstrap primary */
}
.account-icon svg {
    vertical-align: middle;
}




/* Search Icon and Form Styles */
.search-icon {
    position: relative;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}
.search-icon:hover {
    color: #007bff; /* Màu khi hover, khớp với Bootstrap primary */
}
.search-icon svg {
    vertical-align: middle;
}
.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    width: 300px; /* Độ rộng thanh tìm kiếm */
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
.search-form .input-group {
    width: 100%;
}
.search-form .form-control {
    border-radius: 5px 0 0 5px;
}
.search-form .btn {
    border-radius: 0 5px 5px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .search-form-container {
        width: 100%;
        right: 0;
    }
}



/* Cố định footer ở chân trang */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Chiều cao tối thiểu bằng viewport */
}

.site-content {
    flex: 1 0 auto; /* Nội dung chính mở rộng để đẩy footer xuống */
}

footer {
    flex-shrink: 0; /* Footer không bị co lại */
}

/* Đảm bảo container chính có padding phù hợp */
.site-content {
    padding-bottom: 20px;
}


/* Footer Styles */
footer {
    background-color: #212529; /* Màu nền tối, khớp với bg-dark */
    color: #fff;
}

footer h5 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

footer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #adb5bd; /* Màu chữ nhạt hơn */
}

footer ul.list-unstyled li {
    margin-bottom: 0.75rem;
}

footer ul.list-unstyled li a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

footer ul.list-unstyled li a:hover {
    color: #fff;
}

/* Follow Us Section */
footer .d-flex li a {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

footer .d-flex li a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 767px) {
    footer .col-md-3,
    footer .col-md-2 {
        text-align: center;
    }

    footer .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }

    footer .d-flex li {
        margin: 0 10px 10px 0 !important;
    }
}








/* Slider Styles */
#fabriteeSlider {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.carousel-inner img,
.carousel-inner video {

    object-fit: cover;
    width: 100%;

    height: 800px;

    background-color: #000;
    display: block;
    max-width: 100%;
}

.carousel-item {
    background-color: #000;
    transition: transform 0.6s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 800px;
}

/* Điều khiển slider */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #adb5bd;
    margin: 0 5px;
    border: none;
}

.carousel-indicators .active {
    background-color: #007bff;
}

/* Văn bản */
.fabritee-text {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
}

.fabritee-text h2 {
    font-size: 3rem;
    color: #212529;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.fabritee-text p.lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 1.5rem;
}

.fabritee-text p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 1rem;
}
/* button shopnow */
.shop-now-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.shop-now-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 767px) {
    .shop-now-btn {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}


/* Hot This Week Styles */
.hot-this-week {
    background-color: #fff;
    padding: 3rem 1rem;
}

.hot-title {
    font-size: 2.5rem;
    color: #212529;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    object-fit: cover;
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    top: 10px;
    left: 10px;
    background-color: #ff5733;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.9rem;
    border-radius: 12px;
}

.product-title {
    font-size: 1rem;
    color: #212529;
    margin-bottom: 0.5rem;
    height: 3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: #212529;
    text-decoration: none;
}

.product-title a:hover {
    color: #007bff;
}

.product-price {
    font-size: 1rem;
    color: #ff5733;
}

.product-price s {
    color: #6c757d;
    margin-right: 5px;
}

.btn-outline-secondary {
    border-color: #e0e0e0;
    color: #212529;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

/* Load More Button */
#load-more {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#load-more:hover {
    background-color: #0056b3;
}

#load-more:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 767px) {
    .carousel-inner img,
    .carousel-inner video {
        height: 300px;
    }

    .carousel-item {
        height: 300px;
    }

    .fabritee-text {
        padding: 2rem 1rem;
    }

    .fabritee-text h2 {
        font-size: 2rem;
    }

    .fabritee-text p.lead {
        font-size: 1.2rem;
    }

    .fabritee-text p {
        font-size: 1rem;
    }

    .hot-title {
        font-size: 2rem;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 0.9rem;
        height: 2.5rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .btn-outline-secondary {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    #load-more {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}


/* Become a Brand Ambassador Section */
.brand-ambassador-section {
    background-color: #fff;
    padding: 3rem 1rem;
}

.ambassador-title {
    font-size: 2rem;
    color: #212529;
    text-transform: uppercase;
}

.btn-apply-now {
    background-color: #00c4e7;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-apply-now:hover {
    background-color: #00a3c2;
    color: #fff;
}

.learn-more-link {
    color: #00c4e7;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
}

.learn-more-link:hover {
    text-decoration: underline;
}

.ambassador-image {
    max-width: 100%;
    height: auto;
}

/* Responsive */
@media (max-width: 767px) {
    .carousel-inner img,
    .carousel-inner video {
        height: 300px;
    }

    .carousel-item {
        height: 300px;
    }

    .fabritee-text {
        padding: 2rem 1rem;
    }

    .fabritee-text h2 {
        font-size: 2rem;
    }

    .fabritee-text p.lead {
        font-size: 1.2rem;
    }

    .fabritee-text p {
        font-size: 1rem;
    }

    .hot-title {
        font-size: 2rem;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 0.9rem;
        height: 2.5rem;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .btn-outline-secondary {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .load-more-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .ambassador-title {
        font-size: 1.5rem;
    }

    .btn-apply-now {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }

    .learn-more-link {
        font-size: 0.9rem;
    }

    .ambassador-image {
        margin-top: 2rem;
    }
}
.brand-ambassador-section .col-md-6 {
    text-align: center !important; /* Căn giữa trên mọi kích thước màn hình */
}



/* Vendor Slider Section */
.vendor-slider-section {
    background-color: #f8f9fa;
    padding: 3rem 1rem;
}

.vendor-slider-title {
    font-size: 2rem;
    color: #212529;
    text-transform: uppercase;
}

.vendor-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.3s ease;
}

.vendor-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vendor-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.vendor-name {
    font-size: 1.2rem;
    color: #212529;
    margin-bottom: 0;
}

.vendor-name a {
    color: #212529;
    text-decoration: none;
}

.vendor-name a:hover {
    color: #007bff;
}

/* Swiper Styles */
.swiper {
    position: relative;
    padding-bottom: 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-button-prev,
.swiper-button-next {
    color: #007bff;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 1);
}

.swiper-pagination-bullet {
    background-color: #adb5bd;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
    opacity: 1;
}

/* Responsive */
@media (max-width: 767px) {
    .vendor-slider-title {
        font-size: 1.5rem;
    }

    .vendor-image {
        height: 150px;
    }

    .vendor-name {
        font-size: 1rem;
    }
}


/* Customer Reviews Slider */
.customer-reviews-slider {
    position: relative;
    padding-bottom: 40px;
}

.customer-reviews-slider .swiper-slide {
    display: flex;
    justify-content: center;
}

.customer-reviews-slider .review-card {
    height: 100%;
}

/* Đảm bảo các swiper-button và swiper-pagination không xung đột */
.customer-reviews-slider .swiper-button-prev,
.customer-reviews-slider .swiper-button-next {
    color: #007bff;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.customer-reviews-slider .swiper-button-prev:hover,
.customer-reviews-slider .swiper-button-next:hover {
    background-color: rgba(255, 255, 255, 1);
}

.customer-reviews-slider .swiper-pagination-bullet {
    background-color: #adb5bd;
    opacity: 0.7;
}

.customer-reviews-slider .swiper-pagination-bullet-active {
    background-color: #007bff;
    opacity: 1;
}