* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #0f172a;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.categories h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--secondary);
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--light);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-stock {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stock-in {
    background: #d1fae5;
    color: var(--success);
}

.stock-low {
    background: #fed7aa;
    color: var(--warning);
}

.stock-out {
    background: #fee2e2;
    color: var(--danger);
}

/* Featured Section */
.featured {
    padding: 4rem 0;
    background: white;
}

.featured h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 4rem 0;
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Page Header */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.search-box,
.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

.search-box:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Forms */
.contact-wrapper,
.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d1fae5;
    color: var(--success);
}

.form-message.error {
    background: #fee2e2;
    color: var(--danger);
}

/* Admin Table */
.admin-table-container {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin: 2rem 0;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--light);
    font-weight: 700;
    color: var(--dark);
}

.admin-table tr:hover {
    background: var(--light);
}

.admin-table .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary);
}

.close:hover {
    color: var(--dark);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }
}


/* Bootstrap Enhancement Styles */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 0;
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}
.bg-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}


/* Testimonial Card Styles */
.testimonial-card-modern {
    transition: all 0.3s ease;
    border-radius: 15px !important;
    overflow: hidden;
}
.testimonial-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}
.testimonial-card-modern img {
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.testimonial-card-modern .fa-star {
    font-size: 1rem;
}
.testimonial-card-modern .fa-quote-left {
    opacity: 0.6;
}


/* Category Card Hover Effects */
.category-card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
}
.category-icon-modern {
    transition: transform 0.3s ease;
}
.category-card-hover:hover .category-icon-modern {
    transform: scale(1.1);
}

/* Rotating Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Product Card Modern Styling */
.product-card-modern {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}
.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15) !important;
}
.product-card-modern img {
    transition: transform 0.3s ease;
}
.product-card-modern:hover img {
    transform: scale(1.05);
}


/* Category Card Hover Effects */
.category-card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 15px !important;
}
.category-card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}
.category-icon-modern i {
    transition: transform 0.3s ease;
}
.category-card-hover:hover .category-icon-modern i {
    transform: scale(1.1) rotate(5deg);
}

/* Rotating Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2) !important;
}

.icon-wrapper i {
    animation: pulse 2s ease-in-out infinite;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Backdrop blur support */
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Responsive adjustments for hero */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto !important;
        padding: 60px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
    
    .stat-card h3 {
        font-size: 1.5rem !important;
    }
}

/* Product Card Enhancements */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15) !important;
}
.product-card img {
    border-radius: 12px 12px 0 0;
    transition: transform 0.3s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}

/* Button Enhancements */
.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        min-height: 400px !important;
        padding: 40px 0 !important;
    }
    .hero h1 {
        font-size: 2rem !important;
    }
    .hero .lead {
        font-size: 1rem !important;
    }
    .display-3 {
        font-size: 2.5rem !important;
    }
    .display-5 {
        font-size: 2rem !important;
    }
    .display-6 {
        font-size: 1.75rem !important;
    }
    .category-card-hover,
    .product-card,
    .testimonial-card-modern {
        margin-bottom: 1rem;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    .whatsapp-float {
        bottom: 80px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    .page-header {
        padding: 40px 0 !important;
    }
    .page-header h1 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    h2 {
        font-size: 1.5rem;
    }
    .card-body {
        padding: 1rem !important;
    }
    .hero h1 {
        font-size: 1.75rem !important;
    }
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .d-flex.gap-3 {
        flex-direction: column !important;
    }
}

/* Admin Panel - Image Preview Grid */
.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #dee2e6;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-number {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.input-group .btn-sm {
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Navbar Mobile Enhancements */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-collapse {
    background-color: #212529;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}
@media (min-width: 992px) {
    .navbar-collapse {
        background-color: transparent;
        padding: 0;
        margin-top: 0;
    }
}
.nav-link {
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.25rem 0;
}
.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}
.nav-link.active {
    background-color: rgba(255,255,255,0.2) !important;
    font-weight: bold;
}


/* Enhanced WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
}
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

/* Newsletter Section Enhancements */
.newsletter-section {
    position: relative;
}
.newsletter-section .card {
    border-radius: 15px !important;
    animation: fadeInUp 0.6s ease;
}
.newsletter-section .input-group-text {
    border-radius: 8px 0 0 8px !important;
}
.newsletter-section .form-control {
    border-radius: 0 8px 8px 0 !important;
    padding: 1rem;
}
.newsletter-section .btn-primary {
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}
.newsletter-section .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

/* CTA Section Enhancements */
.cta-section .card {
    border-radius: 20px !important;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}
.cta-section .btn {
    border-radius: 10px !important;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}
.footer-links a {
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: #fff !important;
    transform: translateX(5px);
}
.footer .btn-outline-light:hover {
    background-color: #667eea;
    border-color: #667eea;
    transform: scale(1.1);
}
.footer hr {
    opacity: 0.1;
}
.footer .fab {
    transition: all 0.3s ease;
}
.footer .fab:hover {
    color: #667eea !important;
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* Product Carousel Styles */
.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.product-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.product-carousel-item {
    width: 100%;
}

.product-card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

.product-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2) !important;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    z-index: 10;
    color: #667eea;
    font-size: 1.2rem;
}

.carousel-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

/* Mini Carousel for Product Cards */
.product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.product-mini-carousel {
    width: 100%;
    height: 100%;
}

.product-mini-carousel .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.carousel-mini-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .carousel-mini-controls {
    opacity: 1;
}

.mini-prev,
.mini-next {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mini-prev:hover,
.mini-next:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.carousel-mini-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.mini-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.2);
}

.mini-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.mini-dot.active {
    background: #667eea;
    width: 20px;
    border-radius: 4px;
}

/* Modal Carousel Styles */
.modal-image-carousel {
    position: relative;
    margin-bottom: 1.5rem;
}

.modal-carousel-container {
    width: 100%;
}

.modal-carousel-image {
    width: 100%;
    border-radius: 0.5rem;
    transition: opacity 0.3s ease;
}

.modal-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 1.2rem;
    z-index: 10;
}

.modal-carousel-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 15px;
}

.modal-next {
    right: 15px;
}

.modal-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.modal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.modal-dot:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.modal-dot.active {
    background: #667eea;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Carousel */
@media (max-width: 992px) {
    .carousel-slide {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-carousel-wrapper {
        padding: 0 35px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .modal-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    /* Make mini carousel controls always visible on mobile */
    .carousel-mini-controls {
        opacity: 1;
    }
    
    .mini-prev,
    .mini-next {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .carousel-mini-dots {
        bottom: 5px;
    }
    
    .mini-dot {
        width: 6px;
        height: 6px;
    }
    
    .mini-dot.active {
        width: 16px;
    }
}

@media (max-width: 576px) {
    .product-carousel-wrapper {
        padding: 0 25px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .carousel-dots {
        gap: 6px;
        margin-top: 1rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-dot.active {
        width: 24px;
    }
    
    .modal-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .modal-prev {
        left: 5px;
    }
    
    .modal-next {
        right: 5px;
    }
    
    .mini-prev,
    .mini-next {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    .product-image-container {
        height: 180px;
    }
    
    .product-mini-carousel .product-image {
        height: 180px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    /* Always show carousel controls on touch devices */
    .carousel-mini-controls {
        opacity: 1 !important;
    }
    
    /* Larger touch targets */
    .mini-prev,
    .mini-next,
    .carousel-btn,
    .modal-carousel-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mini-dot,
    .carousel-dot,
    .modal-dot {
        min-width: 32px;
        min-height: 32px;
        padding: 8px;
    }
    
    /* Remove hover effects that don't work on touch */
    .product-card-hover:hover {
        transform: none;
    }
}
