/* Global Styles - Professional Design */
:root {
    --primary-color: #00C853;
    --secondary-color: #00E676;
    --accent-color: #00E676;
    --dark-color: #1A1A1A;
    --light-color: #F8F9FA;
    --success-color: #00C853;
    --warning-color: #FF8C00;
    --danger-color: #1A1A1A;
    --text-color: #1A1A1A;
    --text-muted: #6C757D;
    --border-color: #E9ECEF;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #FFFFFF;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 700;
}

.display-6 {
    font-size: 2.5rem;
    font-weight: 600;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    text-transform: none;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--secondary-color) !important;
    transform: scale(1.05);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.brand-text {
    margin-left: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    color: var(--text-color) !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Hero Slider */
#heroSlider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    margin: 0 5px;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-icon {
    color: var(--primary-color);
}

/* Product Cards - Professional Design */
.product-card {
    background: #FFFFFF;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    overflow: visible;
    position: relative;
    height: auto;
    min-height: 400px;
}

/* Removed complex overlay for cleaner design */

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    background: #F8F9FA;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1.1);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.2);
}

/* Simplified product overlay for cleaner design */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 200, 83, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.product-card:hover .product-overlay {
    opacity: 1;
    pointer-events: auto;
}

.product-overlay .btn {
    background: white;
    color: #00C853;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 101;
}

.product-overlay .btn:hover {
    background: #f8f9fa;
    color: #00C853;
    transform: translateY(-2px);
}

/* Fallback View Details button */
.product-overlay-fallback {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.product-overlay-fallback .btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.product-overlay-fallback .btn:hover {
    background: var(--primary-color);
    color: white;
    opacity: 1;
    transform: scale(1.05);
}

.product-card:hover .product-overlay-fallback {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a365d;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card:hover .product-title {
    color: #00C853;
}

.product-category {
    font-size: 0.875rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-price::before {
    content: '₹';
    font-size: 0.9em;
    opacity: 0.8;
}

/* Product Card Bottom Section */
.product-card .d-flex.justify-content-between.align-items-center:last-child {
    margin-top: auto;
    padding-top: 1rem;
    gap: 1rem;
}

/* Ensure proper alignment */
.product-card .d-flex.justify-content-between.align-items-center {
    align-items: center;
    gap: 0.5rem;
}

/* Product card content spacing */
.product-card .product-info > * {
    margin-bottom: 0.75rem;
}

.product-card .product-info > *:last-child {
    margin-bottom: 0;
}

/* Price and stock badge alignment */
.product-card .d-flex.justify-content-between.align-items-center:first-of-type {
    margin-bottom: 1rem;
}

/* Quantity and button alignment */
.product-card .d-flex.justify-content-between.align-items-center:last-child {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 4px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.quantity-control:hover {
    border-color: #00C853;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.1);
}

.quantity-control .btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.quantity-control .quantity-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    color: #1a365d;
    width: 50px;
    padding: 0;
}

.quantity-control .quantity-input:focus {
    box-shadow: none;
    outline: none;
}

/* Enhanced Add to Cart Button - Removed duplicate rules */

/* Stock Badge Enhancement */
.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge.bg-success {
    background: linear-gradient(135deg, #00C853, #00E676) !important;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #1A1A1A, #333333) !important;
    box-shadow: 0 2px 8px rgba(26, 26, 26, 0.3);
}

/* Products Grid Enhancements */
.products-grid {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation for Product Cards */
.product-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.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; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Product Card Loading State */
.product-card.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Product Card Shadows */
.product-card {
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    box-shadow: 
        0 20px 40px rgba(0, 200, 83, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Product Card Border Animation */
.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #00C853, #00E676, #00C853);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
}

/* Product Card Special Effects */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 230, 118, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Card Glow Effect */
.product-card {
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #00C853, #00E676, #00C853);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::after {
    opacity: 1;
}

/* Floating Animation for Product Cards */
.product-card {
    animation: float 6s ease-in-out infinite;
}

.product-card:nth-child(odd) {
    animation-delay: 0s;
}

.product-card:nth-child(even) {
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Product Image Hover Effects */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 230, 118, 0.1), rgba(0, 200, 83, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

/* Enhanced Product Info with Glassmorphism */
.product-info {
    background: #FFFFFF;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Product Title - Professional */
.product-title {
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

/* Category Badge - Professional */
.product-category {
    display: inline-block;
    background: #F8F9FA;
    padding: 4px 8px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    margin-bottom: 0.75rem;
}

.product-card:hover .product-category {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Price with Animated Counter Effect */
.product-price {
    position: relative;
    overflow: hidden;
}

.product-price::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.product-card:hover .product-price::after {
    left: 100%;
}

/* Enhanced Quantity Controls with 3D Effect */
.quantity-control {
    display: flex;
    align-items: center;
    background: #F8F9FA;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2px;
    transition: var(--transition);
    width: 100px;
    height: 32px;
}

.quantity-control:hover {
    border-color: var(--primary-color);
}

.quantity-control .btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dee2e6;
    box-shadow: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    padding: 0;
}

.quantity-control .btn:hover {
    background: linear-gradient(145deg, #00C853, #00E676);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 200, 83, 0.3);
}

.quantity-control .btn:active {
    transform: scale(0.95);
}

.quantity-control .quantity-input {
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 600;
    color: #1a365d;
    width: 40px;
    padding: 0;
    font-size: 12px;
    margin: 0 2px;
}

.quantity-control .quantity-input:focus {
    box-shadow: none;
    outline: none;
}

/* Add to Cart Button - Professional */
.product-info .btn-outline-primary {
    position: relative;
    background: #FFFFFF !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 6px 12px;
    font-size: 0.8rem;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10 !important;
    box-shadow: none !important;
}

/* View Cart Button State */
.product-info .btn-outline-primary[style*="background: #00C853"] {
    background: #00C853 !important;
    color: white !important;
    border-color: #00C853 !important;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 200, 83, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
    }
}

/* Ripple effect removed to prevent conflicts */

/* Cart Preview Section */
.cart-preview-section {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    animation: slideDown 0.3s ease-out;
}

.cart-preview-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    overflow: hidden;
    margin: 20px 0;
}

.cart-preview-header {
    background: linear-gradient(135deg, #00C853, #00E676);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-preview-header h5 {
    color: white;
    font-weight: 600;
}

.cart-preview-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    opacity: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-preview-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cart-preview-body {
    padding: 20px;
}

.cart-preview-body img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid #f8f9fa;
}

.cart-preview-body h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-preview-body .text-muted {
    color: #6c757d;
    font-size: 0.9rem;
}

.cart-preview-actions .btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.cart-preview-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

.cart-preview-footer small {
    font-size: 0.85rem;
}

.cart-preview-footer strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Cart Preview Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.cart-preview-section.hide {
    animation: slideUp 0.3s ease-in forwards;
}

/* Product Details Page Styles */
.product-image-container {
    position: relative;
}

.main-image img {
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.main-image img:hover {
    transform: scale(1.02);
}

.thumbnail-img {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-img.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.2);
}

.product-info {
    padding: 20px 0;
}

.rating-section .stars {
    font-size: 1.1rem;
}

.price-section {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.stock-status .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

.add-to-cart-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.product-features ul li {
    padding: 5px 0;
    border-bottom: 1px solid #f8f9fa;
}

.product-features ul li:last-child {
    border-bottom: none;
}

.product-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Product Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.tab-content {
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

/* Reviews Section */
.review-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.review-item .stars {
    font-size: 0.9rem;
}

/* Image Modal */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    opacity: 1;
}

.modal-body img {
    border-radius: 8px;
    max-height: 70vh;
    object-fit: contain;
}

/* Responsive Design for Product Details */
@media (max-width: 768px) {
    .product-info {
        padding: 10px 0;
    }
    
    .add-to-cart-section {
        padding: 15px;
    }
    
    .product-details {
        padding: 15px;
    }
    
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .thumbnail-images {
        justify-content: center;
    }
    
    .thumbnail-img {
        width: 60px !important;
        height: 60px !important;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .add-to-cart-section .row {
        flex-direction: column;
    }
    
    .add-to-cart-section .col-md-4,
    .add-to-cart-section .col-md-8 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .product-details .row {
        flex-direction: column;
    }
    
    .product-details .col-6 {
        width: 100%;
    }
}

.product-info .btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
}

/* Stock Badge with Pulse Animation */
.badge.bg-success {
    animation: pulse 2s infinite;
    position: relative;
}

.badge.bg-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00C853, #00E676);
    border-radius: 12px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Product Card Loading Skeleton */
.product-card.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-card.skeleton .product-image {
    background: #e0e0e0;
}

.product-card.skeleton .product-title,
.product-card.skeleton .product-category,
.product-card.skeleton .product-price {
    background: #e0e0e0;
    color: transparent;
    border-radius: 4px;
}

/* Products Grid Container */
.products-grid {
    position: relative;
    padding: 2rem 0;
}

.products-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 230, 118, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 200, 83, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.products-grid .row {
    position: relative;
    z-index: 1;
}

/* Product Card Hover States */
.product-card {
    cursor: pointer;
    user-select: none;
}

.product-card:active {
    transform: translateY(-8px) scale(0.98);
}

/* Enhanced Product Image Loading */
.product-image img {
    transition: all 0.4s ease;
    will-change: transform;
}

.product-image img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

/* Product Card Focus States */
.product-card:focus-within {
    outline: 2px solid #00C853;
    outline-offset: 4px;
}

/* Enhanced Button States */
.product-info .btn-outline-primary:focus {
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
    outline: none;
}

.quantity-control .btn:focus {
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.25);
}

/* Product Card Success Animation */
.product-card.added-to-cart {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); background-color: rgba(0, 230, 118, 0.1); }
    100% { transform: scale(1); }
}

/* Loading States */
.product-card.loading {
    pointer-events: none;
}

.product-card.loading .product-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.product-card.loading .product-title,
.product-card.loading .product-category,
.product-card.loading .product-price {
    background: #e0e0e0;
    color: transparent;
    border-radius: 4px;
    height: 1.2em;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .quantity-control {
        width: 100px !important;
        height: 36px;
    }
    
    .quantity-control .btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .quantity-control .quantity-input {
        width: 40px;
        font-size: 12px;
    }
    
    .product-info .btn-outline-primary {
        font-size: 0.8rem;
        padding: 6px 12px;
        height: 36px;
        min-width: 100px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        padding: 1rem 0;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.95rem;
        line-height: 1.2;
    }
    
    .product-category {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .product-price {
        font-size: 1.1rem;
    }
    
    .quantity-control {
        width: 90px !important;
        height: 32px;
    }
    
    .quantity-control .btn {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    
    .quantity-control .quantity-input {
        width: 35px;
        font-size: 0.8rem;
    }
    
    .product-info .btn-outline-primary {
        font-size: 0.75rem;
        padding: 5px 10px;
        height: 32px;
        min-width: 90px;
    }
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-icon {
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-form .form-control {
    border-radius: 8px 0 0 8px;
    border: none;
    padding: 0.75rem 1rem;
}

.newsletter-form .btn {
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1.5rem;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

footer a {
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--light-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 83, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(34, 139, 34, 0.1);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 20, 60, 0.1);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 140, 0, 0.1);
    color: var(--warning-color);
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-slide {
        min-height: 60vh;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .product-image {
        height: 150px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .brand-text {
        display: none;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .newsletter-section,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8ff 100%);
    color: #1a365d;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer-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="footer-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grain)"/></svg>');
    opacity: 0.3;
}

.footer-brand {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.15);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(0, 200, 83, 0.1);
}

.footer-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
}

.availability-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #00E676;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.status-text {
    color: #00C853;
    font-size: 0.9rem;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
}

.social-link.facebook { background-color: #1877f2; }
.social-link.twitter { background-color: #1d9bf0; }
.social-link.instagram { background-color: #e91e63; }
.social-link.linkedin { background-color: #0a66c2; }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white;
}

.footer-heading {
    color: #1a365d;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(90deg, #00E676, #00C853);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #00C853;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.8rem;
    color: #00C853;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon.phone { background-color: #00C853; }
.contact-icon.email { background-color: #2196f3; }
.contact-icon.address { background-color: #9c27b0; }

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    color: #4a5568;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: #1a365d;
    font-size: 0.9rem;
    font-weight: 600;
}

.newsletter-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 255, 254, 0.9) 100%);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.15);
    border: 2px solid rgba(0, 200, 83, 0.1);
}

.newsletter-description {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(0, 200, 83, 0.2);
    color: #1a365d;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
    color: #4a5568;
}

.newsletter-form .form-control:focus {
    background-color: rgba(255, 255, 255, 1);
    border-color: #00C853;
    box-shadow: 0 0 0 0.2rem rgba(0, 200, 83, 0.25);
    color: #1a365d;
}

.newsletter-btn {
    background: linear-gradient(135deg, #00E676, #00C853);
    border: none;
    border-radius: 0 25px 25px 0;
    padding: 0.5rem 1rem;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #00C853, #00A844);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.copyright-text {
    color: #4a5568;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00C853;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        padding: 2rem 0 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .newsletter-section {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-md-6:last-child {
        text-align: center !important;
    }
}
