/* Main Styles */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.product-card {
    transition: transform 0.3s ease;
    height: 100%;
}

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

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

/* Mobile Responsiveness Fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Ensure all containers respect viewport width */
.container, .container-fluid, .row, .col, [class*="col-"] {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix any potential horizontal scroll issues */
* {
    box-sizing: border-box;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Navigation and Mobile Menu Fixes */
nav {
    max-width: 100vw;
    overflow-x: hidden;
}

nav .max-w-7xl {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

#mobile-menu {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
}

#mobile-menu-btn {
    position: relative !important;
    z-index: 1000 !important;
}

/* Mobile-specific container fixes */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col, [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Ensure hero section doesn't overflow */
    .hero-section {
        padding: 40px 1rem;
        margin: 0;
        width: 100%;
    }
    
    /* Fix search box on mobile */
    .search-box {
        max-width: 100%;
        margin: 0 1rem;
    }
    
    /* Ensure cards don't overflow */
    .product-card {
        margin: 0 0.5rem 1rem 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* Blur Effect - Target specific elements */
.page-blur .container,
.page-blur .navbar,
.page-blur footer,
.page-blur .hero-section,
.page-blur .product-card,
.page-blur .search-box,
.page-blur nav,
.page-blur .row,
.page-blur .col-md-4,
.page-blur .card {
    filter: blur(5px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

.page-blur .container *,
.page-blur .navbar *,
.page-blur footer *,
.page-blur .hero-section *,
.page-blur .product-card *,
.page-blur .search-box *,
.page-blur nav *,
.page-blur .row *,
.page-blur .col-md-4 *,
.page-blur .card * {
    pointer-events: none;
}

/* Ensure modal is never blurred */
.welcome-modal {
    filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
}

.welcome-modal * {
    filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
}

/* Welcome Modal */
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* Ensure modal is never blurred */
    filter: none !important;
    -webkit-filter: none !important;
}

.welcome-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    /* Ensure modal content is never blurred */
    filter: none !important;
    -webkit-filter: none !important;
}

.welcome-modal.show .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1.5rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-continue {
    background: #007bff;
    color: white;
}

.btn-continue:hover {
    background: #0056b3;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    color: white;
}

.btn-download {
    background: #333;
    color: white;
}

.btn-download:hover {
    background: #555;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-buttons {
        gap: 0.8rem;
    }

    .modal-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Additional mobile fixes */
    .hero-section {
        padding: 40px 1rem;
        margin: 0;
        width: 100%;
    }
    
    /* Ensure all text is readable on mobile */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Fix any potential table overflow */
    table {
        font-size: 14px;
        width: 100%;
        overflow-x: auto;
        display: block;
    }
    
    /* Ensure forms are mobile-friendly */
    .form-control, .form-select {
        font-size: 16px;
        max-width: 100%;
    }
    
    /* Fix button sizing on mobile */
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem auto;
        display: block;
    }
    
    /* Ensure cards stack properly on mobile */
    .card {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    /* Fix grid layouts on mobile */
    .row > [class*="col-"] {
        margin-bottom: 1rem;
    }
}
