 /* ===== HOMEPAGE STYLES ===== */
/* این فایل CSS برای صفحه اصلی است */
/* بخش مقالات و راهنما به‌روزرسانی شد */

/* تست اتصال CSS */
.homepage {
    /* اطمینان از اینکه فایل load شده */
    position: relative;
}
/* اطمینان از چسبیدن هدر در صفحه اصلی دسکتاپ */
body.homepage .navbar.sticky-top {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important; /* بالاتر از محتوا */
}

/* جلوگیری از overlap در ابتدای صفحه در صورت وجود hero */
@media (min-width: 992px) {
    body.homepage header { position: relative; z-index: 1030; }
}

/* فاصله بدنه برای جبران navbar ثابت */
@media (min-width: 992px) {
    body.homepage { padding-top: var(--homepage-nav-offset, 72px); }
}



@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-20px); display: none; }
}

/* Reset and Base Styles for Homepage */
.homepage .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.homepage .section-title h2,
.homepage .section-title-container h2 {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #2d3748 !important;
    margin-bottom: 15px !important;
    position: relative;
}

.homepage .section-title h2::after,
.homepage .section-title-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #4CAF50) !important;
    border-radius: 2px;
}

.homepage .section-subtitle {
    color: #718096 !important;
    font-size: 1.2rem !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Product Cards for Homepage */
.homepage .product-card,
.homepage .products-grid .product-card {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1) !important;
    height: 100% !important;
    min-height: 500px !important;
}

.homepage .product-card:hover,
.homepage .products-grid .product-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 3;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-weight: 700;
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.4;
}

.homepage .product-price,
.homepage .current-price {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #2E7D32 !important;
    margin-bottom: 15px;
}

.homepage .original-price {
    text-decoration: line-through !important;
    color: #a0aec0 !important;
    font-size: 16px !important;
    font-weight: normal !important;
}

.homepage .product-title h3,
.homepage .product-info h3 {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #2d3748 !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2d3748;
    margin-bottom: 15px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    border-radius: 2px;
}

.section-title p {
    color: #718096;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards for Homepage */
.homepage .category-card {
    background: white !important;
    border-radius: 20px !important;
    padding: 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    height: 100% !important;
}

.homepage .category-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
}

.homepage .category-icon {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 20px !important;
    font-size: 35px !important;
    color: white !important;
}

.homepage .category-title {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #2d3748 !important;
    margin-bottom: 10px !important;
}

.homepage .category-count {
    color: #718096 !important;
    font-size: 14px !important;
}

/* Latest Products Section */
.latest-products {
    background: #f8f9fa;
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Featured Categories */
.featured-categories {
    padding: 60px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: #4CAF50;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Services Section */
.services-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: white;
}

.service-title {
    font-weight: 700;
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 15px;
}

.service-desc {
    color: #718096;
    line-height: 1.6;
}

/* ===== FOOTER STYLES ===== */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3f5a6a 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2E7D32, #4CAF50);
    border-radius: 2px;
}

.footer a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer a:hover {
    color: #4CAF50;
    transform: translateX(-5px);
}

.footer .footer-bottom {
    border-top: 1px solid #4a5568;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #2E7D32;
    transform: translateY(-3px);
}

/* Add to Cart Button for Homepage */
.homepage .btn-add-to-cart,
.homepage .add-to-cart {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    border: none !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.homepage .btn-add-to-cart:hover,
.homepage .add-to-cart:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .homepage .section-title h2,
    .homepage .section-title-container h2 {
        font-size: 2rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .products-grid,
    .categories-grid,
    .stats-grid,
    .services-grid,
    .homepage .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .homepage .blog-card {
        margin: 0 auto !important;
        max-width: 400px !important;
    }
    
    .homepage .blog-card h3 {
        font-size: 1.2rem !important;
    }
    
    .homepage .blog-date {
        top: 10px !important;
        right: 10px !important;
        padding: 8px 12px !important;
    }
    
    .homepage .blog-date .day {
        font-size: 1.1rem !important;
    }
    
    .homepage .blog-date .month {
        font-size: 0.7rem !important;
    }
    
    .homepage .btn-view-all-articles {
        padding: 13px 28px !important;
        font-size: 1.05rem !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .homepage .section-title h2,
    .homepage .section-title-container h2 {
        font-size: 1.5rem !important;
    }
    
    .homepage .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        margin-top: 30px !important;
    }
    
    .homepage .blog-card {
        max-width: 350px !important;
    }
    
    .homepage .blog-content {
        padding: 20px !important;
    }
    
    .homepage .blog-card h3 {
        font-size: 1.1rem !important;
    }
    
    .homepage .blog-card p {
        font-size: 0.9rem !important;
    }
    
    .homepage .blog-link {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }
    
    .homepage .btn-view-all-articles {
        padding: 12px 24px !important;
        font-size: 1rem !important;
    }
}

/* Blog Section for Homepage - Highest Priority */
body.homepage .blog-section {
    padding: 60px 0 !important;
    background: #f8f9fa !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.homepage .blog-section .section-title-container {
    text-align: center !important;
    margin-bottom: 50px !important;
}

body.homepage .blog-section .section-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    color: #2d3748 !important;
    margin-bottom: 15px !important;
    position: relative !important;
}

body.homepage .blog-section .section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 80px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #2E7D32, #4CAF50) !important;
    border-radius: 2px !important;
}

body.homepage .blog-section .section-subtitle {
    color: #718096 !important;
    font-size: 1.2rem !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

body.homepage .blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

body.homepage .blog-card {
    background: white !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    opacity: 0 !important;
    transform: translateY(30px) !important;
    animation: blogCardFadeIn 0.6s ease forwards !important;
}

body.homepage .blog-card:nth-child(1) {
    animation-delay: 0.1s !important;
}

body.homepage .blog-card:nth-child(2) {
    animation-delay: 0.2s !important;
}

body.homepage .blog-card:nth-child(3) {
    animation-delay: 0.3s !important;
}

@keyframes blogCardFadeIn {
    to {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Loading state for blog images */
.homepage .blog-image.loading::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 40px !important;
    height: 40px !important;
    border: 3px solid rgba(46, 125, 50, 0.3) !important;
    border-top: 3px solid #2E7D32 !important;
    border-radius: 50% !important;
    animation: blogImageSpin 1s linear infinite !important;
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
}

@keyframes blogImageSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Error state for blog images */
.homepage .blog-card img[src*="placeholder"] {
    filter: none !important;
    opacity: 1 !important;
}

.homepage .blog-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.homepage .blog-image {
    position: relative !important;
    height: 220px !important;
    overflow: hidden !important;
}

.homepage .blog-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.homepage .blog-image::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 1 !important;
}

.homepage .blog-card:hover .blog-image::before {
    opacity: 0.1 !important;
}

.homepage .blog-card:hover img {
    transform: scale(1.08) !important;
}

.homepage .blog-date {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 12px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3) !important;
    z-index: 5 !important;
    backdrop-filter: blur(10px) !important;
}

.homepage .blog-date .day {
    display: block !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 4px !important;
}

.homepage .blog-date .month {
    display: block !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    opacity: 0.9 !important;
}

.homepage .blog-content {
    padding: 25px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.homepage .blog-card h3 {
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
    color: #2d3748 !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    transition: color 0.3s ease !important;
}

.homepage .blog-card:hover h3 {
    color: #2E7D32 !important;
}

.homepage .blog-card p {
    color: #718096 !important;
    margin-bottom: 20px !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    flex-grow: 1 !important;
}

.homepage .blog-link {
    display: inline-flex !important;
    align-items: center !important;
    color: #2E7D32 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 12px 20px !important;
    background: rgba(46, 125, 50, 0.1) !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    align-self: flex-start !important;
    margin-top: auto !important;
}

.homepage .blog-link i {
    margin-right: 8px !important;
    transition: transform 0.3s ease !important;
    font-size: 0.9rem !important;
}

.homepage .blog-link:hover {
    color: white !important;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3) !important;
    text-decoration: none !important;
}

.homepage .blog-link:hover i {
    transform: translateX(-3px) !important;
}

/* View All Articles Button */
.homepage .btn-view-all-articles {
    display: inline-flex !important;
    align-items: center !important;
    padding: 15px 30px !important;
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.3) !important;
    border: 2px solid transparent !important;
    gap: 8px !important;
}

.homepage .btn-view-all-articles:hover {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%) !important;
    color: white !important;
    text-decoration: none !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.4) !important;
    border-color: rgba(46, 125, 50, 0.3) !important;
}

.homepage .btn-view-all-articles .fas {
    font-size: 1rem !important;
    transition: transform 0.3s ease !important;
}

.homepage .btn-view-all-articles:hover .fa-arrow-left {
    transform: translateX(-3px) !important;
}

.homepage .btn-view-all-articles:hover .fa-blog {
    transform: scale(1.1) !important;
}

/* CTA Section Enhancement */
.homepage .cta-section,
.homepage .enhanced-cta {
    background: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%) !important;
    padding: 60px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.homepage .cta-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.homepage .cta-content {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    color: white !important;
}

/* Dark Theme Support */
[data-theme="dark"] .homepage .product-card,
[data-theme="dark"] .homepage .category-card,
[data-theme="dark"] .homepage .service-item,
[data-theme="dark"] .homepage .blog-card {
    background: #2d3748 !important;
    color: white !important;
}

[data-theme="dark"] .homepage .product-title,
[data-theme="dark"] .homepage .category-title,
[data-theme="dark"] .homepage .service-title,
[data-theme="dark"] .homepage .blog-card h3 {
    color: white !important;
}

[data-theme="dark"] .homepage .section-title h2 {
    color: white !important;
}

[data-theme="dark"] .homepage .latest-products,
[data-theme="dark"] .homepage .services-section,
[data-theme="dark"] .homepage .blog-section {
    background: #1a202c !important;
}

[data-theme="dark"] .homepage .featured-categories {
    background: #2d3748 !important;
}

[data-theme="dark"] .homepage .blog-card p {
    color: #a0aec0 !important;
}

[data-theme="dark"] .homepage .blog-link {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #4CAF50 !important;
}

[data-theme="dark"] .homepage .blog-link:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white !important;
}

/* ===== ENHANCED SECTION HEADERS ===== */

.homepage .section-header {
    text-align: center !important;
    margin-bottom: 20px !important;
}

.homepage .section-header .section-title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.homepage .section-header .section-title i {
    color: #2E7D32 !important;
    font-size: 2rem !important;
}

.homepage .section-header .section-title small {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #718096 !important;
    margin-right: 10px !important;
}

.homepage .section-line {
    width: 80px !important;
    height: 4px !important;
    background: linear-gradient(90deg, #2E7D32, #4CAF50) !important;
    border-radius: 2px !important;
    margin: 0 auto !important;
}

/* ===== ENHANCED PRODUCT CARDS FEATURES ===== */

/* Product Colors and Sizes in Latest Products */
.homepage .product-colors,
.homepage .product-sizes {
    padding: 10px 15px !important;
    background: rgba(248, 249, 250, 0.9) !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    margin: 0 !important;
}

.homepage .color-options {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.homepage .color-swatch {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    border: 2px solid white !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-block !important;
}

.homepage .color-swatch:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25) !important;
    border-color: #2E7D32 !important;
}

.homepage .color-swatch:before {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    transition: border-color 0.3s ease !important;
}

.homepage .color-swatch:hover:before {
    border-color: #2E7D32 !important;
}

.homepage .more-colors {
    font-size: 11px !important;
    color: #666 !important;
    background: rgba(46, 125, 50, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

.homepage .size-options {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

.homepage .size-badge {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    min-width: 24px !important;
    text-align: center !important;
}

.homepage .size-badge:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    color: white !important;
    transform: scale(1.05) !important;
    border-color: #2E7D32 !important;
}

.homepage .more-sizes {
    font-size: 11px !important;
    color: #666 !important;
    background: rgba(46, 125, 50, 0.1) !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    border: 1px solid rgba(46, 125, 50, 0.2) !important;
}

/* View All Products Button */
.homepage .btn-view-all-products {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
    color: white !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.homepage .btn-view-all-products:before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent) !important;
    transition: left 0.6s ease !important;
}

.homepage .btn-view-all-products:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.4) !important;
    color: white !important;
    text-decoration: none !important;
}

.homepage .btn-view-all-products:hover:before {
    left: 100% !important;
}

.homepage .btn-view-all-products i {
    transition: transform 0.3s ease !important;
}

.homepage .btn-view-all-products:hover .fa-th-large {
    transform: scale(1.1) !important;
}

.homepage .btn-view-all-products:hover .fa-arrow-left {
    transform: translateX(-3px) !important;
}

/* Enhanced Product Actions - Removed duplicate */

/* Dark Theme for Enhanced Features */
[data-theme="dark"] .homepage .product-colors,
[data-theme="dark"] .homepage .product-sizes {
    background: rgba(45, 55, 72, 0.9) !important;
    border-top-color: rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .size-badge {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .size-badge:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white !important;
}

[data-theme="dark"] .homepage .more-colors,
[data-theme="dark"] .homepage .more-sizes {
    background: rgba(76, 175, 80, 0.2) !important;
    color: #81C784 !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

/* ===== ENHANCED DARK THEME FOR LATEST PRODUCTS ===== */

/* Dark Theme for Product Cards */
[data-theme="dark"] .homepage .product-card,
[data-theme="dark"] .homepage .products-grid .product-card {
    background: #2d3748 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3) !important;
}

[data-theme="dark"] .homepage .product-card:hover,
[data-theme="dark"] .homepage .products-grid .product-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

/* Dark Theme for Product Images */
[data-theme="dark"] .homepage .product-image {
    background: #1a202c !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

/* Dark Theme for Product Info */
[data-theme="dark"] .homepage .product-info {
    background: transparent !important;
}

[data-theme="dark"] .homepage .product-title,
[data-theme="dark"] .homepage .product-info h3,
[data-theme="dark"] .homepage .product-card h3 a {
    color: #f7fafc !important;
}

[data-theme="dark"] .homepage .product-price,
[data-theme="dark"] .homepage .current-price {
    color: #68D391 !important;
}

[data-theme="dark"] .homepage .original-price {
    color: #718096 !important;
}

/* Dark Theme for Product Features */
[data-theme="dark"] .homepage .product-features {
    background: rgba(44, 55, 71) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .colors-label {
    color: #cbd5e0 !important;
}

[data-theme="dark"] .homepage .color-option {
    border: 2px solid #4a5568 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .color-option:hover {
    border-color: #68D391 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

/* Dark Theme for Product Tags */
[data-theme="dark"] .homepage .feature-tag {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .homepage .feature-tag:hover {
    background: linear-gradient(135deg, #68D391 0%, #4CAF50 100%) !important;
    color: white !important;
    border-color: #68D391 !important;
}

/* Dark Theme for Product Category */
[data-theme="dark"] .homepage .product-category {
    background: rgba(104, 211, 145, 0.15) !important;
    color: #68D391 !important;
    border: 1px solid rgba(104, 211, 145, 0.2) !important;
}

[data-theme="dark"] .homepage .product-category:hover {
    background: #68D391 !important;
    color: #1a202c !important;
}

/* Dark Theme for Product Stats */
[data-theme="dark"] .homepage .stock-warning {
    background: rgba(255, 193, 7, 0.15) !important;
    border: 1px solid rgba(255, 193, 7, 0.3) !important;
    color: #ffd54f !important;
}

[data-theme="dark"] .homepage .sales-count {
    background: rgba(104, 211, 145, 0.15) !important;
    color: #68D391 !important;
}

/* Dark Theme for Product Actions */
[data-theme="dark"] .homepage .product-actions a {
    background: rgba(45, 55, 72, 0.95) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .product-actions a:hover {
    background: #68D391 !important;
    color: #1a202c !important;
    border-color: #68D391 !important;
}

/* Dark Theme for Product Stock Labels */
[data-theme="dark"] .homepage .product-stock-label.in-stock {
    background: rgba(104, 211, 145, 0.9) !important;
    color: #1a202c !important;
}

[data-theme="dark"] .homepage .product-stock-label.out-of-stock {
    background: rgba(252, 129, 129, 0.9) !important;
    color: #1a202c !important;
}

/* Dark Theme for Product Badges */
[data-theme="dark"] .homepage .discount-badge {
    background: linear-gradient(135deg, #fc8181, #e53e3e) !important;
    color: white !important;
}

[data-theme="dark"] .homepage .new-badge {
    background: linear-gradient(135deg, #f6ad55, #ed8936) !important;
    color: white !important;
}

/* Dark Theme for Add to Cart Buttons */
[data-theme="dark"] .homepage .btn-add-to-cart {
    background: linear-gradient(135deg, #68D391, #4CAF50) !important;
    color: #1a202c !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .homepage .btn-add-to-cart:hover {
    background: linear-gradient(135deg, #4CAF50, #2E7D32) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(104, 211, 145, 0.4) !important;
}

[data-theme="dark"] .homepage .btn-notify-me {
    background: linear-gradient(135deg, #f6ad55, #ed8936) !important;
    color: #1a202c !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .homepage .btn-notify-me:hover {
    background: linear-gradient(135deg, #ed8936, #dd6b20) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(246, 173, 85, 0.4) !important;
}

/* Dark Theme for Latest Products Section Background */
[data-theme="dark"] .homepage .latest-products {
    background: #1a202c !important;
}

[data-theme="dark"] .homepage .product-showcase {
    background: #1a202c !important;
}

/* Dark Theme for Section Title in Latest Products */
[data-theme="dark"] .homepage .latest-products .section-title h2,
[data-theme="dark"] .homepage .latest-products .section-title-container h2,
[data-theme="dark"] .homepage .product-showcase .section-title h2,
[data-theme="dark"] .homepage .product-showcase .section-title-container h2 {
    color: #f7fafc !important;
}

[data-theme="dark"] .homepage .latest-products .section-subtitle,
[data-theme="dark"] .homepage .product-showcase .section-subtitle {
    color: #a0aec0 !important;
}

/* Dark Theme for View All Products Button */
[data-theme="dark"] .homepage .btn-view-all-products {
    background: linear-gradient(135deg, #68D391 0%, #4CAF50 100%) !important;
    color: #1a202c !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .homepage .btn-view-all-products:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%) !important;
    color: white !important;
    box-shadow: 0 15px 35px rgba(104, 211, 145, 0.4) !important;
}

/* Additional Dark Theme Enhancements */
[data-theme="dark"] .homepage .product-card .product-image::before {
    background: linear-gradient(135deg, #68D391 0%, #4CAF50 100%) !important;
}

[data-theme="dark"] .homepage .product-card:hover .product-image::before {
    opacity: 0.15 !important;
}

/* Dark Theme for Filter Buttons */
[data-theme="dark"] .homepage .product-filter .filter-btn {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .product-filter .filter-btn:hover,
[data-theme="dark"] .homepage .product-filter .filter-btn.active {
    background: #68D391 !important;
    color: #1a202c !important;
    border-color: #68D391 !important;
}

/* Dark Theme for Section Headers */
[data-theme="dark"] .homepage .section-header .section-title i {
    color: #68D391 !important;
}

[data-theme="dark"] .homepage .section-header .section-title small {
    color: #a0aec0 !important;
}

[data-theme="dark"] .homepage .section-line {
    background: linear-gradient(90deg, #68D391, #4CAF50) !important;
}

/* Dark Theme for Better Text Contrast and Visibility */
[data-theme="dark"] .homepage .product-card h3,
[data-theme="dark"] .homepage .product-card .product-title,
[data-theme="dark"] .homepage .product-info h3 a {
    color: #f7fafc !important;
    text-shadow: none !important;
}

[data-theme="dark"] .homepage .product-card p,
[data-theme="dark"] .homepage .product-card .product-description {
    color: #cbd5e0 !important;
}

/* Dark Theme for No Products Message */
[data-theme="dark"] .homepage .no-products-message {
    background: rgba(45, 55, 72, 0.8) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

[data-theme="dark"] .homepage .no-products-message i {
    color: #68D391 !important;
}

/* Dark Theme Smooth Transitions for All Product Elements */
[data-theme="dark"] .homepage .product-card,
[data-theme="dark"] .homepage .product-card *,
[data-theme="dark"] .homepage .btn-add-to-cart,
[data-theme="dark"] .homepage .btn-notify-me,
[data-theme="dark"] .homepage .product-actions a,
[data-theme="dark"] .homepage .feature-tag,
[data-theme="dark"] .homepage .product-category,
[data-theme="dark"] .homepage .color-option,
[data-theme="dark"] .homepage .size-badge {
    transition: all 0.3s ease !important;
}

/* Dark Theme for Product Grid Container */
[data-theme="dark"] .homepage #latest-products-grid {
    background: transparent !important;
}

[data-theme="dark"] .homepage #latest-products-grid .col-xl-3,
[data-theme="dark"] .homepage #latest-products-grid .col-lg-4,
[data-theme="dark"] .homepage #latest-products-grid .col-md-6 {
    background: transparent !important;
}

/* Dark Theme for Out of Stock Products */
[data-theme="dark"] .homepage .product-card.out-of-stock {
    opacity: 0.7 !important;
    background: #2d3748 !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .homepage .product-card.out-of-stock:hover {
    opacity: 0.8 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* Dark Theme for Product Hover Effects */
[data-theme="dark"] .homepage .product-card:hover h3 a {
    color: #68D391 !important;
}

[data-theme="dark"] .homepage .product-card:hover .product-category {
    background: #68D391 !important;
    color: #1a202c !important;
}

/* ===== SPLASH SCREEN PWA ONLY ===== */

/* Splash screen base styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #3f704d;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Show splash screen only in PWA mode */
body.pwa-mode .splash-screen {
    display: flex !important;
}

/* ===== PRODUCTS STYLES (FROM PRODUCTS.PHP) ===== */

/* Simple 2-Row Layout */
.homepage #latest-products-grid .col-xl-3 {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 1200px) {
    .homepage #latest-products-grid .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 992px) {
    .homepage #latest-products-grid .col-xl-3 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 768px) {
    .homepage #latest-products-grid .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .homepage #latest-products-grid .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Simple Product Cards */
.homepage .product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.homepage .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Product Images */
.homepage .product-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
    height: 200px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.homepage .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    opacity: 1;
    background: #f8f9fa;
}

.homepage .product-image img[src*="placeholder"] {
    opacity: 1;
}

.homepage .product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Lazy Loading Override - اطمینان از حذف lazy loading */
.homepage .product-image.image-loading::before {
    display: none !important;
}

.homepage .product-image .image-loading-icon,
.homepage .product-image .loading-spinner,
.homepage .product-image .fa-spinner {
    display: none !important;
}

.homepage .product-image img.lazy,
.homepage .product-image img.lazyload,
.homepage .product-image img.loading {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* متوقف کردن تمام lazy loading animations */
.homepage .product-image::before,
.homepage .product-image::after,
.homepage .product-image *::before,
.homepage .product-image *::after {
    animation: none !important;
    background: none !important;
}

/* حذف shimmer effect */
.homepage .product-image.image-loading,
.homepage .product-image[data-loading="true"] {
    background: #f8f9fa !important;
}

.homepage .product-image.image-loading::before,
.homepage .product-image[data-loading="true"]::before {
    content: none !important;
    display: none !important;
}

/* FORCE: کامل غیرفعال کردن lazy loading برای homepage */
/* NUCLEAR: حذف همه loading elements ممکن */
body.homepage #latest-products-grid .image-loading,
body.homepage #latest-products-grid .loading-spinner,
body.homepage #latest-products-grid .fa-spinner,
body.homepage #latest-products-grid .image-loading-icon,
body.homepage #latest-products-grid .skeleton-loader,
body.homepage #latest-products-grid .spinner,
body.homepage #latest-products-grid .loading-overlay,
body.homepage #latest-products-grid .loading-indicator,
body.homepage #latest-products-grid .loading,
body.homepage #latest-products-grid .lazy-loading,
body.homepage #latest-products-grid .img-loading,
body.homepage #latest-products-grid .placeholder-loading,
body.homepage #latest-products-grid *[class*="loading"]:not(.product-actions):not([class*="product"]),
body.homepage #latest-products-grid *[class*="spinner"]:not(.product-actions):not([class*="product"]),
body.homepage #latest-products-grid *[class*="lazy"]:not(.product-actions):not([class*="product"]) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

/* حذف تمام pseudo-elements مربوط به loading */
body.homepage #latest-products-grid *[class*="loading"]:before,
body.homepage #latest-products-grid *[class*="loading"]:after,
body.homepage #latest-products-grid *[class*="spinner"]:before,
body.homepage #latest-products-grid *[class*="spinner"]:after,
body.homepage #latest-products-grid *[class*="lazy"]:before,
body.homepage #latest-products-grid *[class*="lazy"]:after,
body.homepage #latest-products-grid .product-image:before,
body.homepage #latest-products-grid .product-image:after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
    animation: none !important;
    background: none !important;
}

/* اطمینان از اینکه هیچ shimmer یا loading animation وجود ندارد */
body.homepage #latest-products-grid * {
    animation-name: none !important;
}

/* حذف هر loading background یا gradient */
body.homepage #latest-products-grid .product-image,
body.homepage #latest-products-grid .product-image * {
    background-image: none !important;
}

/* Override هر loading state ممکن */
body.homepage #latest-products-grid [data-loading],
body.homepage #latest-products-grid [data-lazy],
body.homepage #latest-products-grid [loading],
body.homepage #latest-products-grid [lazy] {
    opacity: 1 !important;
    visibility: visible !important;
}

/* همه loading و lazy کلاس‌ها رو نمایش بده */
body.homepage #latest-products-grid [class*="loading"],
body.homepage #latest-products-grid [class*="lazy"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* اطمینان از نمایش عکس‌ها */
body.homepage #latest-products-grid img {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* اطمینان از نمایش عکس‌ها بدون خراب کردن سایر elements */
body.homepage #latest-products-grid .product-image {
    background: transparent;
}

body.homepage #latest-products-grid .product-image .product-actions {
    opacity: 0;
    transition: all 0.3s ease;
}

body.homepage #latest-products-grid .product-card:hover .product-actions {
    opacity: 1;
}

/* حذف هر goooon animation مربوط به lazy loading */
body.homepage #latest-products-grid *[class*="loading"]::before,
body.homepage #latest-products-grid *[class*="loading"]::after,
body.homepage #latest-products-grid *[class*="lazy"]::before,
body.homepage #latest-products-grid *[class*="lazy"]::after {
    display: none !important;
    content: none !important;
    animation: none !important;
}

/* Product Info */
.homepage .product-info {
    padding: 20px;
}

/* Product Features Container */
.homepage .product-features {
    background: rgba(248, 249, 250, 0.9);
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Product Colors */
.homepage .product-colors {
    margin-bottom: 12px;
}

.homepage .colors-label {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.homepage .color-options {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.homepage .color-option {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2), inset 0 1px 1px rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.homepage .color-option:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border-color: #2E7D32;
}

/* Product Tags/Features */
.homepage .product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.homepage .feature-tag {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e0e6ed;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    text-align: center;
}

.homepage .feature-tag:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    color: white;
    border-color: #2E7D32;
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.3);
}

/* Product Badges */
.homepage .product-badges {
    position: absolute;
    top: 0px;
    right: 1px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.homepage .product-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 4px;
}

.homepage .discount-badge {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.homepage .new-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Stock Label */
.homepage .product-stock-label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
}

.homepage .product-stock-label.in-stock {
    background: rgba(46, 125, 50, 0.9);
    color: white;
}

.homepage .product-stock-label.out-of-stock {
    background: rgba(231, 76, 60, 0.9);
    color: white;
}

/* Product Category */
.homepage .product-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    width: fit-content;
}

.homepage .product-category:hover {
    background: #2E7D32;
    color: white;
    text-decoration: none;
}

/* Product Stats */
.homepage .product-stats {
    margin-bottom: 15px;
}

.homepage .stock-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #f57c00;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.homepage .sales-count {
    background: rgba(46, 125, 50, 0.1);
    color: #2E7D32;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Product Price */
.homepage .product-price {
    margin-bottom: 15px;
}

.homepage .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-bottom: 5px;
}

.homepage .current-price {
    color: #2E7D32;
    font-size: 18px;
    font-weight: 700;
}

/* Product Buttons */
.homepage .btn-add-to-cart,
.homepage .btn-notify-me {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.homepage .btn-add-to-cart {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
}

.homepage .btn-add-to-cart:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

.homepage .btn-notify-me {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

.homepage .btn-notify-me:hover {
    background: linear-gradient(135deg, #f57c00, #ef6c00);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

/* Product Actions */
.homepage .product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4;
}

.homepage .product-card:hover .product-actions {
    opacity: 1;
}

.homepage .product-actions a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.homepage .product-actions a:hover {
    background: #2E7D32;
    color: white;
    transform: scale(1.1);
    text-decoration: none;
}





[data-theme="dark"] .homepage .btn-view-all-articles {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
}

[data-theme="dark"] .homepage .btn-view-all-articles:hover {
    background: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%) !important;
}