/* Blinkit Product Scraper Styles */

:root {
    --blinkit-green: #0d8f47;
    --blinkit-light-green: #e8f5e8;
    --blinkit-dark-green: #0a7a3e;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --bg-light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

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

/* Mobile View Container */
.mobile-view {
    max-width: 428px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Styles */
.header {
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.blinkit-header {
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Home Page Styles */
.hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--blinkit-green);
}

.features-section {
    background: var(--bg-light) !important;
}

.feature-card {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
}

/* Product Image Styles */
.product-images-section {
    background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
}

.product-image-container {
    padding: 2rem 1rem;
}

.product-main-image {
    max-width: 280px;
    max-height: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

/* Simple Carousel Styles */
.simple-carousel {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
}

.carousel-image {
    display: none;
    max-width: 280px;
    max-height: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

.carousel-image.active {
    display: block;
}

.simple-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.simple-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.simple-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.simple-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Image Dots */
.image-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    transition: background 0.2s ease;
}

.dot.active {
    background: var(--blinkit-green);
}

/* Product Info Styles */
.product-title {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

/* Brand Section */
.brand-section .bg-light {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.brand-section .bg-light:hover {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.brand-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 4px;
    border: 1px solid var(--border-light);
}

/* Unit Selection */
.unit-option {
    border: 2px solid var(--border-light) !important;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-option:hover {
    border-color: var(--blinkit-green) !important;
    background: var(--blinkit-light-green);
}

.unit-option.selected {
    border-color: var(--blinkit-green) !important;
    background: var(--blinkit-light-green);
    box-shadow: 0 2px 8px rgba(13, 143, 71, 0.2);
}

/* Buttons */
.btn-primary {
    background: var(--blinkit-green);
    border-color: var(--blinkit-green);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--blinkit-dark-green);
    border-color: var(--blinkit-dark-green);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--blinkit-green);
    border-color: var(--blinkit-green);
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: var(--blinkit-dark-green);
    border-color: var(--blinkit-dark-green);
}

.btn-outline-success {
    color: var(--blinkit-green);
    border-color: var(--blinkit-green);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
}

.btn-outline-success:hover {
    background: var(--blinkit-green);
    border-color: var(--blinkit-green);
}

/* Text Colors */
.text-success {
    color: var(--blinkit-green) !important;
}

/* Sections Spacing */
.highlights-section,
.product-details-section,
.top-products-section,
.recipes-section {
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Product Cards */
.product-card {
    transition: all 0.2s ease;
    border: 1px solid var(--border-light) !important;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-card img {
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bg-light);
    padding: 8px;
}

/* Recipe Cards */
.recipe-card img {
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

/* Floating Cart */
.floating-cart {
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Form Styles */
.form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--blinkit-green);
    box-shadow: 0 0 0 0.2rem rgba(13, 143, 71, 0.15);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.rounded-4 {
    border-radius: 16px !important;
}

.rounded-3 {
    border-radius: 12px !important;
}

.rounded-2 {
    border-radius: 8px !important;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .mobile-view {
        max-width: 100%;
        box-shadow: none;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-main-image {
        max-width: 240px;
        max-height: 240px;
    }
    
    .floating-cart {
        margin-bottom: env(safe-area-inset-bottom);
    }
    
    /* Mobile carousel adjustments */
    .simple-carousel {
        max-width: 240px;
    }
    
    .carousel-image {
        max-width: 240px;
        max-height: 240px;
    }
    
    .simple-nav {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .image-dots {
        margin-top: 10px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
        margin: 0 4px;
    }
}

@media (min-width: 768px) {
    .floating-cart {
        display: none !important;
    }
    
    .mobile-view {
        margin-top: 2rem;
        margin-bottom: 2rem;
        border-radius: 16px;
        overflow: hidden;
    }
}

/* Override mobile-view constraints for large screens */
/* @media (min-width: 992px) {
    .mobile-view,
    .main-content {
        max-width: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
} */

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.border-light {
    border-color: var(--border-light) !important;
}

/* App Footer */
.app-footer {
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light) !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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