/* Hero Banner */
.hero-banner {
    margin-bottom: 2rem;
}
.swiper-slide img {
    width: 100%;
    height: auto;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 8px;
}
.product-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5722;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}
.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.current-price {
    font-weight: bold;
    font-size: 18px;
    color: #e91e63;
}
.old-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 8px;
}

/* Category Cards */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-img {
    position: relative;
    height: 200px;
}
.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.70), transparent);
    padding: 20px;
    color: white;
}
.category-overlay h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

/* Section Styling */
.section-header h2 {
    position: relative;
    margin-bottom: 15px;
    font-weight: 700;
}
.section-header h2:after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background-color: #007bff;
    margin: 15px 0 0;
}
.section-header p {
    color: #666;
    max-width: 700px;
}

/* Benefits Section */
.benefit-icon {
    color: #007bff;
}
.benefit-card {
    transition: transform 0.3s;
}
.benefit-card:hover {
    transform: translateY(-5px);
}

/* Lazy loading for images */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}
.lazy-load.loaded {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .product-title {
        font-size: 15px;
        height: 42px;
    }
    
    .current-price {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .category-img {
        height: 180px;
    }
    
    .benefit-card {
        margin-bottom: 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .category-img {
        height: 150px;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-header h2:after {
        margin: 5px auto 0;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    .benefit-card {
        padding: 15px !important;
    }
    
    .benefit-icon i {
        font-size: 2rem !important;
    }
    
    .benefit-card h3 {
        font-size: 18px;
    }
    
    .benefit-card p {
        font-size: 14px;
    }
    .banner-categories img{
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        margin-bottom: 1rem;
    }
    
    .category-img {
        height: 120px;
    }
    
    .category-overlay h3 {
        font-size: 16px;
    }
    
    .product-title {
        font-size: 14px;
        height: 40px;
    }
    
    .current-price {
        font-size: 15px;
    }
    
    .old-price {
        font-size: 13px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .benefit-card {
        padding: 10px !important;
    }
    
    .benefit-icon i {
        font-size: 1.5rem !important;
    }
    
    .benefit-card h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .benefit-card p {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .product-card:hover,
    .category-card:hover,
    .benefit-card:hover {
        transform: none;
    }
    
    .product-card:active,
    .category-card:active,
    .benefit-card:active {
        transform: scale(0.98);
    }
}

/* High DPI Screen Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-img img,
    .category-img img {
        image-rendering: -webkit-optimize-contrast;
    }
}

.banner-categories img{
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Blog Section Styles */

.blogs-section-five .header-five-title h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blogs-section-five .header-five-title p {
    color: #666;
    font-size: 16px;
}

.blog-five-item {
    transition: transform 0.3s ease;
}

.blog-five-item:hover {
    transform: translateY(-5px);
}

.blog-five-item .product-img-five {
    padding-top: 66.67%; /* 3:2 aspect ratio */
}

.blog-five-item .product-img-five img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
}

.blog-five-content {
    padding: 10px 5px 0 5px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-five-item .blog-five-year i {
    color: #007bff;
    margin-right: 5px;
}

.blog-five-item .blog-five-footer h3 a:hover {
    color: #007bff;
}

.blog-swiper .swiper-pagination-bullet-active {
    background: #007bff;
}

.swiper-pagination span{
    border-radius: 30px !important;
}

/* Banner Categories Section */
.banner-categories {
    background-image: url(../img/banner.png);
    overflow: hidden;
}

.banner-categories .banner-content {
    padding: 2rem 0;
}

.banner-categories h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #444;
}

.banner-categories .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
}

.banner-categories .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.banner-categories .btn-outline-light:hover {
    background-color: #fff;
    color: #000;
}

.gallery-grid img {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.gallery-main {
    height: 100%;
}

.gallery-main img {
    height: 100%;
    object-fit: cover;
}

.background-first{
    margin: 1rem 0;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.096);
}

.background-first img{
    border-radius: 10px;
}

.trust-user{
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .banner-categories h2 {
        font-size: 2.5rem;
    }
    
    .banner-categories .banner-content {
        text-align: center;
        padding: 1rem 1rem;
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .banner-categories h2 {
        font-size: 2rem;
    }
    
    .gallery-main {
        height: 300px;
        margin-bottom: 1rem;
    }
    
    .gallery-grid .col-6 img {
        height: 150px;
        object-fit: cover;
    }
}
@media (min-width: 767.98px) {
    .background-first{
        display: none;
    }
}

.see-all {
    position: relative;
    background: transparent;
    border: none;
    color: #333;
    z-index: 1;
    padding: 8px 24px;
    transition: all 0.3s ease;
}

.see-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(80deg, #fccb90 0%, #d57eeb 100%) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border-radius: 4px;
    transition: all 0.3s ease;
}


