/* ===== HOME PAGE STYLES ===== */
/* Reset & Base Styles */
.home-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home-page {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* ===== CART FUNCTIONALITY ===== */
.add-to-cart-btn {
    width: 100%;
    background: #08b908;
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    margin-top: 12px;
    cursor: pointer;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(8, 185, 8, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.add-to-cart-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #069e06;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(8, 185, 8, 0.4);
}

.add-to-cart-btn:hover i {
    transform: translateX(4px);
}

.add-to-cart-btn.added {
    background: #28a745;
    pointer-events: none;
}

.add-to-cart-btn.loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

.add-to-cart-btn.loading i {
    animation: spin 1s linear infinite;
}

.cart-count-badge {
    position: fixed;
    top: 80px;
    left: 20px;
    background: #08b908;
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(8, 185, 8, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.cart-count-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(8, 185, 8, 0.4);
    background: #069e06;
}

/* ===== SECTION SPACING ===== */
.section-hero {
    margin-bottom: 60px;
}

.section-categories {
    padding: 60px 0;
    background: #ffffff;
}

.section-new-arrivals {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-category-products {
    padding: 60px 0;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.section-category-products:nth-child(even) {
    background: #f8f9fa;
}

.section-category-products:last-child {
    border-bottom: none;
}

.section-promo {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8faf8 0%, #f0f5f0 100%);
}

.section-services {
    padding: 60px 0;
    background: #ffffff;
}

.section-popular {
    padding: 60px 0;
    background: #ffffff;
}

.section-blog {
    padding: 60px 0;
    background: #f8f9fa;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #08b908;
    border-radius: 2px;
}

.section-title h2 span {
    color: #08b908;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== HERO SLIDER ===== */
.cr-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.cr-slider .swiper-wrapper {
    display: flex;
}

.cr-slider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    cursor: pointer;
}

.cr-slider img {
    width: 100%;
    height: auto;
    display: block;
}

.swiper-pagination {
    position: absolute;
    bottom: 20px !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.5;
    margin: 0 5px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #08b908;
    transform: scale(1.2);
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.category-item {
    text-align: center;
    transition: all 0.3s ease;
}

.category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.category-item:hover .category-icon {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(8, 185, 8, 0.2);
    border-color: #08b908;
}

.category-icon i {
    font-size: 48px;
    color: #08b908;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon i {
    transform: scale(1.1);
}

.category-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
}

.category-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-item h4 a:hover {
    color: #08b908;
}

.category-item p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Category icon colors */
.icon-1 { background: linear-gradient(135deg, #e8f5e8, #d4edd4); }
.icon-2 { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.icon-3 { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.icon-4 { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.icon-5 { background: linear-gradient(135deg, #ffebee, #ffcdd2); }
.icon-6 { background: linear-gradient(135deg, #e0f2f1, #b2dfdb); }
.icon-7 { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(8, 185, 8, 0.12);
    border-color: #08b908;
}

.product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4d4d;
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-actions a {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateX(50px);
    opacity: 0;
}

.product-card:hover .product-actions a {
    transform: translateX(0);
    opacity: 1;
}

.product-actions a:nth-child(1) { transition-delay: 0.1s; }
.product-actions a:nth-child(2) { transition-delay: 0.2s; }

.product-actions a:hover {
    background: #08b908;
    color: white;
    transform: scale(1.1);
}

.product-actions a i {
    font-size: 18px;
}

.product-info {
    padding: 20px 20px 25px;
}

.product-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-category span {
    font-size: 13px;
    color: #08b908;
    background: rgba(8, 185, 8, 0.08);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 500;
}

.product-rating {
    color: #ffb800;
    font-size: 13px;
    letter-spacing: 2px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #08b908;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #08b908;
    display: block;
    margin-bottom: 5px;
}

.product-price del {
    font-size: 15px;
    color: #999;
    font-weight: 400;
    margin-left: 8px;
}

/* ===== CATEGORY HEADER ===== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.category-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.category-header h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #08b908;
    border-radius: 2px;
}

.category-description {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
    max-width: 600px;
    line-height: 1.6;
}

.view-all-link {
    background: #f5f5f5;
    padding: 12px 25px;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
}

.view-all-link:hover {
    background: #08b908;
    color: white;
    border-color: #08b908;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 185, 8, 0.2);
}

.view-all-link i {
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(5px);
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.promo-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(8, 185, 8, 0.15);
}

.promo-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.promo-banner:hover img {
    transform: scale(1.05);
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    background: #08b908;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(8, 185, 8, 0.2);
    border-color: transparent;
}

.service-card:hover .service-icon,
.service-card:hover h4,
.service-card:hover p {
    color: white;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: rgba(8, 185, 8, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 32px;
    color: #08b908;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.2);
}

.service-card:hover .service-icon i {
    color: white;
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    transition: color 0.3s ease;
}

.service-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* ===== TABS ===== */
.tabs-container {
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    font-size: 15px;
}

.tab-btn.active,
.tab-btn:hover {
    background: #08b908;
    color: white;
    border-color: #08b908;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 185, 8, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(8, 185, 8, 0.12);
    border-color: #08b908;
}

.blog-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #08b908;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(8, 185, 8, 0.3);
}

.blog-content {
    padding: 25px;
}

.blog-content .blog-tag {
    font-size: 12px;
    color: #08b908;
    background: rgba(8, 185, 8, 0.08);
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 12px;
}

.blog-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-content h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h4 a:hover {
    color: #08b908;
}

.blog-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #08b908;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .category-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 30px;
    }
    
    .section-title p {
        font-size: 16px;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .category-header h2 {
        font-size: 26px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-count-badge {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .products-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }


/* Toast Message Styles */
.cart-success-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #08b908;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(8, 185, 8, 0.3);
    z-index: 9999;
    animation: slideInRight 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 14px;
}

.cart-success-toast.error {
    background: #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.cart-success-toast.info {
    background: #17a2b8;
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Quick View Modal */
.quick-view-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 50%;
    z-index: 10000;
}

.quick-view-loader i {
    font-size: 30px;
}

.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
}

.quick-view-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.quick-view-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    max-width: 900px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 16px;
    padding: 30px;
}

.quick-view-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view-modal .close-modal:hover {
    background: #08b908;
    color: white;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #08b908;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #069e06;
    transform: translateY(-3px);
}

/* Product Card Animations */
.product-card {
    animation: fadeIn 0.6s ease backwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

/* Image Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded {
    opacity: 1;
}


/* Error prevention styles */
.fallback-element {
    display: none;
}

/* Ensure all potential missing elements are hidden until needed */
[class*="countdown"]:empty,
[class*="timer"]:empty {
    min-height: 20px;
}

/* Safe styles for missing images */
img:not([src]),
img[src=""],
img[src="#"] {
    opacity: 0;
    min-height: 100px;
    background: #f5f5f5;
}

/* Prevent layout shift from missing elements */
.product-actions a:empty,
.category-icon:empty {
    display: none;
}


/* AJAX Cart Notifications */
.cr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
    min-width: 250px;
}

.cr-notification.show {
    transform: translateX(0);
}

.cr-notification-error {
    background: #f44336;
}

.cr-notification-info {
    background: #2196F3;
}

.cr-notification i {
    font-size: 20px;
}

/* Button Loading States */
.add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.add-to-cart-btn.loading i {
    animation: spin 1s linear infinite;
}

.add-to-cart-btn.added {
    background: #4CAF50;
    pointer-events: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cart Count Badge */
.cr-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cr-cart-count-zero {
    display: none;
}

.cr-wishlist-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}



/* Cart Icon Animation */
.cr-cart-link i {
    transition: all 0.3s ease;
}

.cr-cart-link i.cart-animation {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: #4CAF50; }
    100% { transform: scale(1); }
}

/* Enhanced Toast Notifications */
.cr-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
    min-width: 250px;
}

.cr-notification.show {
    transform: translateX(0);
}

.cr-notification-error {
    background: #f44336;
}

.cr-notification-info {
    background: #2196F3;
}

.cr-notification i {
    font-size: 20px;
}

/* Wishlist Active State */
.wishlist .ri-heart-fill {
    color: #ff4d4d;
}

/* Cart Count Badge */
.cr-cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cr-cart-count-zero {
    display: none;
}

/* Updated Button Styles */
.add-to-cart-btn.loading {
    opacity: 0.7;
    cursor: wait;
    pointer-events: none;
}

.add-to-cart-btn.loading i {
    animation: spin 1s linear infinite;
}

.add-to-cart-btn.added {
    background: #4CAF50;
    pointer-events: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}




/* Scroll to top show/hide */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #45a049;
    transform: translateY(-3px);
}

