/* style.css - Clean Custom Stylesheet for MOZZUL */

/* =========================================
   1. Custom Base Styles
   ========================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111827;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* =========================================
   2. CTAs & Interactive Elements
   ========================================= */
button, .btn, a.rounded, a.text-center {
    min-height: 48px;
    transition: all 0.2s ease-in-out;
}

/* =========================================
   3. Hero Image Container Adjustments
   ========================================= */
.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 18rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero-img-wrapper {
        height: 420px;
    }
}

@media (min-width: 1024px) {
    .hero-img-wrapper {
        height: 480px;
    }
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    border-radius: 0.75rem;
}

/* =========================================
   4. Modern Product Image Container Utility
   ========================================= */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px; 
    border-radius: 0.75rem;  
    overflow: hidden;  
    background-color: #f8fafc;  
}  

@media (min-width: 768px) {  
    .product-img-wrapper {
        height: 280px;   
    }  
}  

.product-img-wrapper img {  
    width: 100%;  
    height: 100%;  
    object-fit: contain;  
    padding: 0.75rem;  
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
}

/* =========================================
   5. Tap-to-Enlarge Interactions & Lightbox
   ========================================= */
.popup-card, #card-front-view, .zoomable-image {
    cursor: zoom-in;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-card:hover, #card-front-view:hover {
    transform: translateY(-4px);
}

.popup-card:hover img, #card-front-view:hover img, .product-card:hover img {
    transform: scale(1.04);
}

#modal-img {
    cursor: zoom-out;
}

/* =========================================
   6. Custom Scrollbar & Sidebar Utilities
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Ensure the dynamically injected sidebar handles sub-menu hover states smoothly */
aside .group\/service:hover .absolute {
    display: flex;
}

/* Global fallback to round all product or grid images */
.product-card img, 
.product-grid img, 
div[class*="product"] img, 
div[class*="card"] img {
    border-radius: 0.75rem;
}

/* Universal rounded corners for product and catalog images */
img {
    border-radius: 0.5rem;
}