/*
  Common CSS for Product Pages
  Extracted from the HTML files you provided.
*/

:root {
    --accent-primary: #3b82f6;
    --button-gradient-start: #3b82f6;
    --button-gradient-end: #1d4ed8;
}

/* --- Base Theme Styles --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff !important;
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 20px 20px;
    color: #374151 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Primary button styling */
.btn-primary {
    background: linear-gradient(90deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover::before {
    left: 100%;
}

/* Call to Action Section Styling */
.cta-section {
    background: linear-gradient(90deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%),
                radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px;
    background-position: center center, 0 0;
    background-repeat: no-repeat, repeat;
    color: white;
    text-align: center;
    border-radius: 1rem;
    margin: 2rem 1rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: rotate-gradient 20s linear infinite;
    z-index: 0;
}
@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.cta-section .btn-primary {
    background-color: white;
    background-image: none;
    color: var(--button-gradient-start);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    border: none;
    position: relative;
    z-index: 1;
}
.cta-section .btn-primary::before {
    content: none;
}
.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    color: var(--button-gradient-end);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background-image: none;
}
.cta-section h2, .cta-section p, .cta-section a {
    position: relative;
    z-index: 1;
}

/* Animation for elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Card Styles */
.product-card {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f3f4f6; /* Light gray background */
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Glassmorphism title overlay */
.product-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 0.75rem 1rem;
    z-index: 6;
    transition: opacity 0.3s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    text-align: center;
    opacity: 1;
}

.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 7;
}

/* Mobile WhatsApp Icon */
.whatsapp-icon-mobile {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 8;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px; /* full */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}
.whatsapp-icon-mobile:hover {
    transform: scale(1.1);
}

/* Hover Logic for Desktop Only */
@media (min-width: 768px) {
    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    }
    .product-card:hover .product-title-overlay {
        opacity: 0;
    }
    .product-card:hover .product-hover-overlay {
        opacity: 1;
    }
}

.overlay-btn {
    background-color: var(--accent-primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: background-color 0.2s;
    border: 1px solid white;
    width: 80%;
    text-align: center;
}

.overlay-btn.know-more {
    background-color: transparent;
}

.overlay-btn:hover {
    background-color: var(--button-gradient-end);
}

/* Mega Menu Adjustments */
.mega-menu {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.mega-menu-column {
     padding: 1rem 0.5rem;
}
.mega-menu-column h4 a {
    font-size: 0.95rem;
}
.mega-menu-column ul li a {
    font-size: 0.85rem;
}
