/* =================================================================
   National Makhana Udyog - Responsive Styles
   ================================================================= */

/* Bulk order & contact: phone country code + number hamesha ek row (contact jaisa) */
.bulk-order .input-group,
.bulk-order-content .input-group,
.contact-form .input-group,
.contact-form-section .input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
.bulk-order .input-group select,
.bulk-order-content .input-group select { min-width: 110px !important; max-width: 140px !important; flex: 0 0 auto !important; }
.bulk-order .input-group input[type="tel"],
.bulk-order-content .input-group input[type="tel"] { flex: 1 1 auto !important; min-width: 0 !important; }
.contact-form .input-group select,
.contact-form-section .input-group select { min-width: 110px !important; max-width: 140px !important; flex: 0 0 auto !important; }
.contact-form .input-group input[type="tel"],
.contact-form-section .input-group input[type="tel"] { flex: 1 1 auto !important; min-width: 0 !important; }

@media (max-width: 575.98px) {
    .bulk-order .input-group,
    .bulk-order-content .input-group,
    .contact-form .input-group,
    .contact-form-section .input-group {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
}

/* Hide menu button on desktop - Strong rule */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Additional strong rules to ensure hiding */
    button.navbar-toggler,
    .navbar button[aria-controls="navbarNav"],
    .navbar .navbar-toggler {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* CSS Variables for consistent theming */
:root {
    --primary-color: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --secondary-color: #FF9800;
    --secondary-dark: #F57C00;
    --secondary-light: #FFB74D;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* =================================================================
   Large Devices (Desktops, 1200px and up)
   ================================================================= */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    /* Large Desktop Logo - same as index/all pages */
    .logo-img {
        width: 70px !important;
        height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .logo-text .brand-name {
        font-size: 28px;
    }
    
    .logo-text .brand-tagline {
        font-size: 18px;
    }
    
    /* Large Desktop Product Cards */
    .product-card .product-image {
        height: 300px;
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Override Bootstrap img-fluid class for product images */
    .product-card .product-image img.img-fluid {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Medium Devices (Tablets, 768px and up)
   ================================================================= */
@media (max-width: 991.98px) {
    /* Hero Section */
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .floating-badge {
        position: static;
        display: inline-block;
        margin-top: 1rem;
        transform: none;
        animation: none;
    }
    
    /* Navigation */
    .navbar-nav {
        background-color: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    /* Ensure mobile menu closes properly */
    .navbar-collapse.show {
        display: block !important;
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    /* Tablet Logo - same as index/all pages */
    .logo-img {
        width: 70px !important;
        height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }
    
    .logo-text .brand-name {
        font-size: 22px;
    }
    
    .logo-text .brand-tagline {
        font-size: 15px;
    }
    
    .nav-link {
        padding: 14px 18px;
        border-bottom: 1px solid var(--gray-200);
        font-size: 16px;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link.active::after {
        width: 60%;
        height: 2px;
        bottom: 8px;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: var(--white);
        border-radius: var(--border-radius);
        box-shadow: none;
    }
    
    /* Section spacing */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Why Choose Us */
    .feature-card {
        margin-bottom: 2rem;
        min-height: 180px;
    }
    
    /* About Section */
    .know-about-us {
        padding: 50px 0;
    }
    
    .about-content {
        margin-top: 3rem;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .experience-badge {
        position: static;
        display: inline-block;
        margin-top: 2rem;
    }
    
    /* Product Cards */
    .product-card .product-image {
        height: 260px;
        width: 100% !important;
        overflow: hidden;
        position: relative;
    }
    
    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Override Bootstrap img-fluid class for tablets */
    .product-card .product-image img.img-fluid {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    
    /* Blog Cards */
    .blog-image {
        height: auto;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 50px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .profile-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .google-badge {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .testimonial-info h5 {
        font-size: 0.9rem;
    }
    
    .review-date {
        font-size: 0.8rem;
    }
    
    .stars i {
        font-size: 0.8rem;
    }
    
    .verified-badge {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
    }
    
    .testimonial-text p {
        font-size: 0.8rem;
    }
    
    /* Bulk Order */
    .bulk-order {
        padding: 50px 0;
    }
    
    .bulk-order-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .bulk-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 40px 0 20px;
    }
    
    .footer-widget {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-contact-info .contact-item {
        justify-content: center;
        margin-bottom: 0.75rem;
    }
    
    .footer-social .social-links {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-legal {
        text-align: center;
        margin-top: 1rem;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .form-control {
        border-radius: var(--border-radius);
        margin-bottom: 0;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Small Devices (Landscape phones, 576px and up)
   ================================================================= */
@media (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Hero Section */
    .hero-section {
        min-height: 60px;
    }
    
    /* Mobile hero background - same clear full image */
    .hero-background {
        background-size: cover;
        background-position: center center;
        min-height: 120px;
    }
    
    .hero-content {
        padding: 8px 0;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    

    
    /* Header */
    .top-bar {
        display: none !important;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand {
        gap: 8px;
    }
    
    .logo-img,
    .navbar-brand .logo-img {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }
    
    .logo-text .brand-name {
        font-size: 22px;
        line-height: 1.1;
    }
    
    .logo-text .brand-tagline {
        font-size: 14px;
        line-height: 1;
    }
    
    .navbar-nav {
        gap: 15px;
        margin-top: 1rem;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 12px;
        text-align: center;
    }
    
    .dropdown-menu {
        text-align: center;
        margin-top: 0;
        border-radius: var(--border-radius);
    }
    
    .dropdown-item {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .header-cta {
        margin-top: 1rem;
        justify-content: center;
        gap: 15px;
    }
    
    .cta-phone {
        font-size: 13px;
    }
    
    .cta-phone span {
        display: none;
    }
    
    .btn-primary {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Mobile Navigation Dropdown */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        padding: 10px 0;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.75rem 1rem;
        color: var(--gray-800);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background: var(--primary-color);
        color: white;
        transform: translateX(5px);
    }
    
    .navbar-nav .dropdown-divider {
        margin: 0.5rem 1rem;
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .dropdown-toggle::after {
        display: none !important;
    }
    
    .navbar-nav .dropdown-toggle .fas.fa-chevron-down {
        transition: transform 0.3s ease;
    }
    
    .navbar-nav .dropdown.show .dropdown-toggle .fas.fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* Mobile Carousel Controls - Smaller Size */
    .carousel-control-prev,
    .carousel-control-next {
        width: 35px !important;
        height: 35px !important;
        border-radius: 50% !important;
        background-color: rgba(255, 255, 255, 0.8) !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .carousel-control-prev {
        left: 10px !important;
    }
    
    .carousel-control-next {
        right: 10px !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 15px !important;
        height: 15px !important;
    }
    
    /* Section spacing */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Why Choose Us */
    .why-choose-us .row > * {
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    /* About Section */
    .know-about-us {
        padding: 60px 0;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .about-content h2 {
        font-size: 1.75rem;
    }
    
    .about-features {
        margin: 1.5rem 0;
    }
    
    .feature-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    /* Product Range */
    .product-range {
        padding: 60px 0;
    }
    
    .product-range .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
    }
    
    .product-card .product-image img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
    }
    
    .product-card .product-image img.img-fluid {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }
    
    .product-content {
        padding: 1.25rem;
    }
    
    .product-content h4 {
        font-size: 1.1rem;
    }
    
    .product-content p {
        font-size: 0.8rem;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Mobile Devices (Portrait)
   ================================================================= */
@media (max-width: 575.98px) {
    .product-range {
        padding: 40px 0;
    }
    
    .product-range .section-header h2 {
        font-size: 1.75rem;
    }
    
    .product-range .section-header p {
        font-size: 1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    
    .product-card .product-image img,
    .product-card .product-image img.img-fluid {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .product-content {
        padding: 1rem;
    }
    
    .product-content h4 {
        font-size: 1rem;
    }
    
    .product-content .btn {
        width: 100%;
        text-align: center;
        /* Force button visibility on mobile */
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Blog Section */
    .latest-blogs {
        padding: 25px 0;
    }
    
    .blog-image {
        height: auto;
    }
    
    /* FAQs */
    .faqs {
        padding: 60px 0;
    }
    
    .faq-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .faq-header h2 {
        font-size: 2rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    .faq-question h4 {
        font-size: 0.9rem;
    }
    
    .faq-question {
        gap: 0.75rem;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    /* Testimonials */
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .profile-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .google-badge {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .testimonial-info h5 {
        font-size: 0.85rem;
    }
    
    .review-date {
        font-size: 0.75rem;
    }
    
    .stars i {
        font-size: 0.75rem;
    }
    
    .verified-badge {
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
    
    .testimonial-text p {
        font-size: 0.75rem;
    }
    
    /* Bulk Order */
    .bulk-order {
        padding: 60px 0;
    }
    
    .bulk-order-content h2 {
        font-size: 1.75rem;
    }
    
    .bulk-order-form {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-widget {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .footer-widget-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-logo {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-logo-img {
        width: 50px;
        height: 50px;
    }
    
    .footer-logo-text .brand-name {
        font-size: 1.1rem;
    }
    
    .footer-logo-text .brand-tagline {
        font-size: 0.9rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .footer-contact-info .contact-item {
        justify-content: flex-start;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        padding: 0;
        max-width: 100%;
    }
    
    .footer-contact-info .contact-item i {
        margin-right: 8px;
        font-size: 1rem;
    }
    
    .footer-contact-info {
        padding: 0;
        max-width: 100%;
    }
    
    .footer-links {
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        padding: 4px 0;
    }
    
    .footer-social {
        margin-top: 1.5rem;
    }
    
    .footer-social h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-social .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .footer-social .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .newsletter-text {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .form-control {
        border-radius: var(--border-radius);
        margin-bottom: 0;
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .legal-links {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .legal-links li {
        margin-bottom: 0.5rem;
    }
    
    .legal-links a {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
    
    /* Floating elements */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    
    .whatsapp-text {
        display: none !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Extra Small Devices (Portrait phones, less than 576px)
   ================================================================= */
@media (max-width: 575.98px) {
    /* Container padding */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Hero Section */
    .hero-carousel {
        min-height: 550px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .main-products {
        max-width: 280px;
    }
    
    .floating-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    /* Header - Extra Small Mobile */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        gap: 6px;
    }
    
    .logo-img,
    .navbar-brand .logo-img {
        width: 48px !important;
        height: 48px !important;
        max-width: 48px !important;
        max-height: 48px !important;
    }
    
    .logo-text .brand-name {
        font-size: 20px;
        line-height: 1.1;
    }
    
    .logo-text .brand-tagline {
        font-size: 13px;
        line-height: 1;
    }
    
    .navbar-toggler {
        width: 28px;
        height: 28px;
    }
    
    /* Ensure menu button is hidden on desktop */
    @media (min-width: 992px) {
        .navbar-toggler {
            display: none !important;
        }
    }
    
    .navbar-toggler-icon span {
        height: 2px;
        gap: 3px;
    }
    
    .navbar-nav {
        gap: 10px;
        margin-top: 0.75rem;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 8px 10px;
    }
    
    .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .header-cta {
        margin-top: 0.75rem;
        gap: 10px;
    }
    
    .cta-phone {
        font-size: 12px;
    }
    
    .btn-primary {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Mobile Header CTA Improvements */
    .mobile-header-cta {
        padding: 14px 0;
    }
    
    .mobile-cta-btn {
        padding: 10px;
        font-size: 15px;
        border-radius: var(--border-radius);
    }
    
    .mobile-cta-btn span {
        font-size: 14px;
    }
    
    .mobile-cta-btn i {
        font-size: 22px;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
        margin-top:-60px;
    }
    
    /* FAQs */
    .faq-header h2 {
        font-size: 1.75rem;
    }
    
    .faq-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .faq-item {
        padding: 1rem;
    }
    
    .faq-question h4 {
        font-size: 0.85rem;
    }
    
    .faq-question {
        gap: 0.5rem;
    }
    
    .faq-icon {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    
    .faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    /* Cards */
    .feature-card,
    .product-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .feature-icon-img {
        width: 50px;
        height: 50px;
    }
    
    /* Footer - Extra Small Mobile */
    .footer-main {
        padding: 25px 0 15px;
    }
    
    .footer-widget {
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .footer-widget-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo-img {
        width: 45px;
        height: 45px;
    }
    
    .footer-logo-text .brand-name {
        font-size: 1rem;
    }
    
    .footer-logo-text .brand-tagline {
        font-size: 0.8rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .footer-contact-info .contact-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
        padding: 0;
        max-width: 100%;
    }
    
    .footer-contact-info .contact-item i {
        font-size: 0.9rem;
        margin-right: 6px;
    }
    
    .footer-contact-info {
        padding: 0;
        max-width: 100%;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 3px 0;
    }
    
    .footer-social h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-social .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .newsletter-text {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .newsletter-form .form-control {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
    
    .newsletter-form .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
        .legal-links a {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
    
    /* Mobile Certification Cards */
    .cert-card-modern {
        margin-bottom: 0px;
       
        
    }
    
    .cert-image-container {
        height: 320px;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .cert-image-container img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        margin-top: 5px;
    }
    
    .cert-content {
        padding: 8px 12px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        text-align: center;
    }
    
    .cert-content h5 {
        font-size: 1rem;
        margin-bottom: 3px;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .cert-content p {
        font-size: 0.85rem;
        margin: 0;
        line-height: 1.3;
    }
    
    .product-content,
    .blog-content {
        padding: 1.25rem;
    }
    
    /* About Section */
    .about-content h2 {
        font-size: 1.5rem;
    }
    
    /* Reduce certificate section bottom spacing */
    .cert-section {
        margin-bottom: 2rem;
    }
    
    .experience-badge {
        padding: 15px;
    }
    
    .experience-badge .year {
        font-size: 1.5rem;
    }
    
    /* Bulk Order */
    .bulk-order-content h2 {
        font-size: 1.5rem;
    }
    
    .bulk-order-form {
        padding: 1.5rem;
    }
    
    .bulk-features {
        grid-template-columns: 1fr;
    }
    
    .bulk-features .feature-item {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .btn {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
    }
    
    /* Modal */
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Footer */
    .footer-widget {
        text-align: center;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        border-radius: var(--border-radius);
        border-right: 2px solid var(--gray-700);
        margin-bottom: 8px;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    /* Legal links */
    .legal-links {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Landscape Orientation (Phones in landscape)
   ================================================================= */
@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
    min-height: 200px;
}
    
    .hero-content {
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        margin-top: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Print Styles
   ================================================================= */
@media print {
    .hero-carousel,
    .testimonials,
    .bulk-order,
    .top-bar,
    .header,
    .footer,
    .back-to-top,
    .whatsapp-float,
    .carousel-nav,
    .carousel-indicators,
    .testimonial-nav {
        display: none !important;
    }
    
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    .section-header h2 {
        color: #000 !important;
    }
    
    .feature-card,
.product-card,
.blog-card {
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06) !important;
}
}

/* =================================================================
   High DPI Displays
   ================================================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Accessibility Improvements
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-badge {
        animation: none !important;
    }
    
    .spinner {
        animation: none !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Dark Mode Support (Future Enhancement)
   ================================================================= */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
}

/* =================================================================
   Focus Management for Keyboard Navigation
   ================================================================= */
@media (pointer: coarse) {
    .btn,
    .nav-link,
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Small Mobile Devices (480px and down)
   ================================================================= */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.125rem; }
    
    /* Hero Section */
    .hero-carousel {
        min-height: 450px;
        /* Small mobile makhana background */
        background: 
            /* Minimal makhana seed pattern for small mobile */
            radial-gradient(circle at 25% 35%, rgba(255, 152, 0, 0.06) 0%, transparent 35%),
            radial-gradient(circle at 75% 65%, rgba(255, 152, 0, 0.04) 0%, transparent 35%),
            /* Small mobile gradient background */
            linear-gradient(135deg, 
                #2E7D32 0%, 
                #4CAF50 100%
            );
    }
    
    /* Small mobile makhana seed elements */
    .hero-carousel::before {
        background-size: 60px 60px, 40px 40px;
        background-position: 0 0, 30px 30px;
        animation: float 12s ease-in-out infinite;
    }
    
    /* Small mobile leaf patterns */
    .hero-carousel::after {
        background-size: 80px 40px, 60px 30px;
        background-position: 0 0, 40px 20px;
        animation: sway 18s ease-in-out infinite;
    }
    
    .hero-content {
        padding: 30px 0;
        min-height: 450px;
    }
    
    .hero-text {
        padding: 15px 10px;
        margin-bottom: 15px;
    }
    
    .hero-text h1 {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        word-spacing: 0.5px;
        letter-spacing: 0.2px;
    }
    
    .hero-text .highlight,
    .hero-text .brand-name,
    .hero-text .location {
        display: inline;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        gap: 12px;
    }
    
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        max-width: 250px;
        min-height: 40px;
    }
    
    /* Carousel Navigation */
    .carousel-nav {
        padding: 0 10px;
        bottom: 15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .carousel-btn i {
        font-size: 12px;
    }
    
    /* Carousel Indicators */
    .carousel-indicators {
        bottom: 60px;
        gap: 6px;
    }
    
    .carousel-indicators .indicator {
        width: 6px;
        height: 6px;
    }
    
    /* Header */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo-img,
    .navbar-brand .logo-img {
        width: 46px !important;
        height: 46px !important;
        max-width: 46px !important;
        max-height: 46px !important;
    }
    
    .logo-text .brand-name {
        font-size: 18px;
    }
    
    .logo-text .brand-tagline {
        font-size: 12px;
    }
    
    .navbar-nav {
        gap: 8px;
        margin-top: 0.5rem;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .btn-primary {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    /* Container padding */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Section spacing */
    section {
        padding: 30px 0;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Extra Small Mobile Devices (360px and down)
   ================================================================= */
@media (max-width: 360px) {
    /* Typography */
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.125rem; }
    
    /* Hero Section */
    .hero-carousel {
        min-height: 400px;
        /* Ultra small mobile makhana background */
        background: 
            /* Very minimal makhana seed pattern */
            radial-gradient(circle at 30% 40%, rgba(255, 152, 0, 0.05) 0%, transparent 30%),
            /* Ultra small mobile gradient background */
            linear-gradient(135deg, 
                #2E7D32 0%, 
                #4CAF50 100%
            );
    }
    
    /* Ultra small mobile makhana seed elements */
    .hero-carousel::before {
        background-size: 40px 40px;
        background-position: 0 0;
        animation: float 10s ease-in-out infinite;
    }
    
    /* Ultra small mobile leaf patterns */
    .hero-carousel::after {
        background-size: 60px 30px;
        background-position: 0 0;
        animation: sway 15s ease-in-out infinite;
    }
    
    .hero-content {
        padding: 25px 0;
        min-height: 400px;
    }
    
    .hero-text {
        padding: 12px 8px;
        margin-bottom: 12px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
        line-height: 1.3;
        word-spacing: 0.3px;
        letter-spacing: 0.1px;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .hero-buttons .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        max-width: 220px;
        min-height: 38px;
    }
    
    /* Logo - mobile small */
    .logo-img,
    .navbar-brand .logo-img {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }
    
    .logo-text .brand-name {
        font-size: 16px;
    }
    
    .logo-text .brand-tagline {
        font-size: 11px;
    }
    
    /* Container padding */
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Section spacing */
    section {
        padding: 25px 0;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* =================================================================
   Custom Breakpoint for Large Tablets
   ================================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    .col-lg-2-4 {
        width: 33.333333%;
    }
    
    .feature-card {
        height: auto;
        min-height: 250px;
        padding: 2rem 1.5rem;
    }
    
    .feature-icon-img {
        width: 70px;
        height: 70px;
    }
    
    .product-card .product-image {
        height: 260px;
        width: 100% !important;
        overflow: hidden;
        position: relative;
    }
    
    .product-card .product-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
        max-width: none !important;
        max-height: none !important;
    }
    
    /* Override Bootstrap img-fluid class for large tablets */
    .product-card .product-image img.img-fluid {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    
    .blog-image {
        height: auto;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Override Bootstrap img-fluid class for product images */
.product-card .product-image img.img-fluid {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Ensure product card takes full width of its container */
.col-lg-4 .product-card,
.col-md-6 .product-card,
.col-sm-12 .product-card {
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure product image container takes full width */
.col-lg-4 .product-card .product-image,
.col-md-6 .product-card .product-image,
.col-sm-12 .product-card .product-image {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =================================================================
   Product Detail Page Responsive Styles
   ================================================================= */

@media (max-width: 991.98px) {
    .product-detail {
        padding: 60px 0;
    }
    
    .product-info {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 767.98px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header .lead {
        font-size: 1.1rem;
    }
    
    .product-detail {
        padding: 40px 0;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-description p {
        font-size: 1rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .product-benefits {
        padding: 60px 0;
    }
    
    .benefit-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .related-products {
        padding: 60px 0;
    }
    
    /* Force product image styling for related products section */
    .related-products .product-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        overflow: visible !important;
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .related-products .product-image img {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
    }
    
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 575.98px) {
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-pricing {
        padding: 1rem;
    }
    
    .product-actions .btn {
        min-width: auto;
        padding: 0.75rem 1rem;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Footer Responsive Styles - Mithila Naturals Design */
@media (max-width: 991.98px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 40px 0;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 767.98px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px 0;
    }
    
    /* Ensure full width on mobile */
    .footer-section:last-child {
        grid-column: 1;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
    
    /* Show mobile toggle buttons */
    .mobile-toggle {
        display: block;
    }
    
    /* Hide footer content by default on mobile */
    .footer-section-content {
        display: none;
    }
    
    /* Show first section content by default */
    .footer-section:first-child .footer-section-content {
        display: block;
    }
    
    .company-highlights {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .highlight-item {
        min-width: 120px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hours-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .payment-icons {
        justify-content: center;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 575.98px) {
    /* Extra small mobile hero background - responsive cover */
    .hero-background {
        background-size: cover;
        background-position: center center;
        min-height: 100px;
    }
    
    /* Extra small mobile certificate cards */
    .cert-image-container {
        height: 300px;
        padding: 6px;
    }
    
    .cert-content {
        padding: 6px 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1;
        text-align: center;
    }
    
    .cert-content h5 {
        font-size: 0.95rem;
        margin-bottom: 2px;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .cert-content p {
        font-size: 0.8rem;
        line-height: 1.2;
        margin: 0;
    }
    
    .cert-card-modern {
        margin-bottom: 0px;
    }
    
    /* Extra small mobile latest blogs */
    .latest-blogs {
        padding: 20px 0;
    }
    
    /* Extra small mobile hero section */
    .hero-section {
        min-height: 50px;
    }
    
    .hero-content {
        padding: 8px 0;
    }
    
    .footer-content {
        padding: 25px 0;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        text-align: center;
    }
    
    .footer-section p {
        text-align: center;
    }
    
    .company-highlights {
        justify-content: center;
    }
    
    .highlight-item {
        min-width: 100px;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: inherit;
        justify-content: flex-start;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
    
    .contact-item i {
        margin: 0 auto;
    }
    
    .business-hours h6 {
        justify-content: center;
    }
    
    .social-subtitle {
        text-align: center;
    }
    
    /* Reduce social media section spacing on mobile */
    .social-media-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .social-media-section h6 {
        margin-bottom: 8px;
    }
    
    .social-subtitle {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        padding: 20px 0;
    }
    
    .company-info-bottom p {
        text-align: center;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Match index.php product image styling for products page - container fixed height, image fills it */
.product-card .product-image {
    height: 280px !important;
    min-height: 280px !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-card .product-image img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Ultra-aggressive mobile image fixes for products page - Match index.php style */
@media (max-width: 768px) {
    .product-card .product-image,
    .products-grid .product-card .product-image,
    .products-grid .row .col-lg-4 .product-card .product-image,
    .products-grid .row .col-md-6 .product-card .product-image,
    .products-grid .row .col-sm-12 .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .product-card .product-image img,
    .products-grid .product-card .product-image img,
    .products-grid .row .col-lg-4 .product-card .product-image img,
    .products-grid .row .col-md-6 .product-card .product-image img,
    .products-grid .row .col-sm-12 .product-card .product-image img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        outline: none !important;
    }
    
    /* Force single column layout on mobile */
    .products-grid .container .row .col-lg-4,
    .products-grid .container .row .col-md-6,
    .products-grid .container .row .col-sm-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px !important;
        margin-bottom: 20px !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 576px) {
    .product-card .product-image,
    .products-grid .product-card .product-image,
    .products-grid .row .col-lg-4 .product-card .product-image,
    .products-grid .row .col-md-6 .product-card .product-image,
    .products-grid .row .col-sm-12 .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    .product-card .product-image img,
    .products-grid .product-card .product-image img,
    .products-grid .row .col-lg-4 .product-card .product-image img,
    .products-grid .row .col-md-6 .product-card .product-image img,
    .products-grid .row .col-sm-12 .product-card .product-image img {
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 480px) {
    .product-card .product-image,
    .products-grid .product-card .product-image,
    .products-grid .row .col-lg-4 .product-card .product-image,
    .products-grid .row .col-md-6 .product-card .product-image,
    .products-grid .row .col-sm-12 .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    .product-card .product-image img,
    .products-grid .product-card .product-image img,
    .products-grid .row .col-lg-4 .product-card .product-image img,
    .products-grid .row .col-md-6 .product-card .product-image img,
    .products-grid .row .col-sm-12 .product-card .product-image img {
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

@media (max-width: 360px) {
    .product-card .product-image,
    .products-grid .product-card .product-image,
    .products-grid .row .col-lg-4 .product-card .product-image,
    .products-grid .row .col-md-6 .product-card .product-image,
    .products-grid .row .col-sm-12 .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }
    
    .product-card .product-image img,
    .products-grid .product-card .product-image img,
    .products-grid .row .col-lg-4 .product-card .product-image img,
    .products-grid .row .col-md-6 .product-card .product-image img,
    .products-grid .row .col-sm-12 .product-card .product-image img {
        height: auto !important;
        min-height: 0 !important;
        object-fit: contain !important;
    }
}

/* Force product image styling for all product detail pages */
.product-detail .related-products .product-image,
.product-detail .related-products .col-lg-4 .product-card .product-image,
.product-detail .related-products .col-md-6 .product-card .product-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: visible !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

.product-detail .related-products .product-image img,
.product-detail .related-products .col-lg-4 .product-card .product-image img,
.product-detail .related-products .col-md-6 .product-card .product-image img {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: 200px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Mobile only: image at original/natural height (same ratio as desktop) */
@media (max-width: 767.98px) {
    .product-range .product-card .product-image,
    .product-range .product-image,
    .products-grid .product-card .product-image,
    .product-card .product-image {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
        display: block !important;
        width: 100% !important;
    }
    .product-range .product-card .product-image img,
    .product-range .product-image img,
    .products-grid .product-card .product-image img,
    .product-card .product-image img,
    .product-card .product-image img.img-fluid {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
    }
}