/* Responsive Fix CSS - v1.0 (2025-06-13-06) */
/* This file contains improvements to the site's responsive design */
/* Include this after the main style.css file */

/* Fix category grid to always maintain 2-column layout on mobile */
@media (max-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .category-img {
        height: 140px;
    }

    .category-content {
        padding: 12px;
    }

    .category-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .category-content p {
        font-size: 0.9rem;
    }
    
    .category-thumbnails {
        margin-top: 10px;
        gap: 5px;
    }
    
    .category-thumbnails img {
        width: 30px;
        height: 30px;
    }

    /* Collection grid for products - 2 columns instead of 1 */
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        margin: 0;  /* Reset to original */
    }

    .collection-categories {
        margin-bottom: 15px;
    }

    .product-img {
        height: 150px !important;
    }

    .product-info {
        padding: 10px !important;
    }

    .product-title {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    /* Fix for services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* Browse CTA items as 2 columns */
    .browse-cta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .browse-cta-item {
        padding: 20px 15px;
    }
    
    .browse-cta-icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .browse-cta-item h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .browse-cta-item p {
        font-size: 0.9rem;
    }

    /* Fix for gardening page category images to ensure perfect circles */
    .category-nav .category-img {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50%;
        overflow: hidden;
        margin: 5px auto;
        aspect-ratio: 1/1;
    }
    
    .category-nav .category-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    /* Fix for "Other Categories" section to ensure perfect circles on mobile view */
    .related-categories .category-img {
        width: 140px !important;
        height: 140px !important;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        aspect-ratio: 1/1;
    }
    
    .related-categories .category-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Fixed mobile menu style enhancements */
@media (max-width: 768px) {
    /* Mobile menu button styles */
    .mobile-menu-btn {
        display: block !important;
        cursor: pointer;
        z-index: 1001;
        position: relative;
        padding: 10px;
    }
    
    .mobile-menu-btn i {
        font-size: 24px;
        color: #4CAF50;
        transition: all 0.3s ease;
    }
    
    /* Mobile nav styles */
    nav {
        position: fixed;
        top: 80px; /* Adjust based on your header height */
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #fff;
        z-index: 999;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    nav ul li {
        width: 100%;
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
    }
    
    /* Menu overlay */
    #mobile-menu-overlay {
        display: block;
    }

    /* Fix for gardening page category images to ensure perfect circles */
    .category-nav .category-img {
        width: 80px !important;
        height: 80px !important;
        border-radius: 50%;
        overflow: hidden;
        margin: 5px auto;
        aspect-ratio: 1/1;
    }
    
    /* Fix for "Other Categories" section to ensure perfect circles on mobile view */
    .related-categories .category-img {
        width: 180px !important;
        height: 180px !important;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        aspect-ratio: 1/1;
    }
    
    .related-categories .category-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Even smaller devices */
@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    
    .category-grid,
    .collection-grid,
    .services-grid,
    .browse-cta-grid {
        gap: 8px;
        margin: 0;  /* Reset to original */
    }
    
    .category-img {
        height: 130px !important;
    }
    
    .product-img {
        height: 130px !important;
    }
    
    .category-content h3 {
        font-size: 1rem;
    }
    
    .category-content p {
        font-size: 0.8rem;
    }
    
    .category-thumbnails img {
        width: 25px;
        height: 25px;
    }
    
    .product-title {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    /* Adjust service cards */
    .service-card {
        padding: 15px 10px;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }

    /* Fix for gardening page category images to ensure perfect circles on smaller screens */
    .category-nav .category-img {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Fix for "Other Categories" section to ensure perfect circles on smaller screens */
    .related-categories .category-img {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    .category-grid,
    .collection-grid,
    .services-grid,
    .browse-cta-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }
    
    .category-img {
        height: 100px;
    }
    
    .product-img {
        height: 110px;
    }
    
    .category-thumbnails {
        display: none; /* Hide thumbnails on very small screens */
    }
    
    .product-price {
        margin-bottom: 8px;
    }
    
    .product-description {
        margin-bottom: 8px;
        font-size: 0.8rem;
    }
    
    .product-actions .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    /* Fix for gardening page category images to ensure perfect circles on tiny screens */
    .category-nav .category-img {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Fix for "Other Categories" section to ensure perfect circles on tiny screens */
    .related-categories .category-img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* Home page category grid specific styles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
}

/* Matching columns for desktop experience */
@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Fix custom layout on fruit and flower pages */
.collection-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 15px 0 !important;
}

/* Product card spacing fix */
.collection-grid .product-card {
    margin-bottom: 0;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    overflow: hidden;
    background-color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-grid .product-info {
    padding: 15px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.collection-grid .product-title,
.collection-grid h3 {
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
}

.collection-grid .product-price {
    margin-bottom: 8px;
}

.collection-grid .product-description {
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}

.collection-grid .product-actions {
    margin-top: 10px !important;
}

@media (min-width: 992px) {
    .collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 20px;
        margin: 0;  /* Reset margin to original */
    }
}

/* Fix hover effects on mobile */
@media (hover: none) {
    .category-card:hover,
    .product-card:hover,
    .service-card:hover {
        transform: none !important;
    }

    .product-card:hover .product-img img,
    .category-card:hover .category-img img {
        transform: none !important;
    }
}

/* Extra styles for small screens */
@media (max-width: 400px) {
    .collection-grid .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .product-description {
        font-size: 0.8rem;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .product-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* Fix for Contact Section on Mobile */
/* Contact section styling */
.contact {
    padding: 60px 0;
    background-color: #fff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-info {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    min-width: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.validation-message {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    background-color: var(--primary-color);
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

/* Responsive fixes for contact section */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}

@media (max-width: 576px) {
    .contact {
        padding: 40px 0;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-item .icon {
        font-size: 1.3rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .form-group textarea {
        height: 100px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .contact-item .icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Additional mobile-specific form enhancements */
@media (max-width: 576px) {
    /* Add breathing room in mobile contact form */
    .form-group {
        position: relative;
    }
    
    /* Increase touch target size */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px; /* Apple's recommended minimum touch target size */
        font-size: 16px; /* Prevent iOS zoom on focus */
    }
    
    /* Make submit button more prominent */
    .submit-btn {
        margin-top: 10px;
        padding: 15px;
        font-weight: bold;
        box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
    }
    
    /* Improve form validation visibility */
    .validation-message {
        padding: 5px 0;
        font-weight: 500;
    }

    /* Style for focused elements */
    .form-group.focused {
        margin-bottom: 25px;
    }
    
    .form-group.focused input,
    .form-group.focused select,
    .form-group.focused textarea {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    }
    
    /* Form message styling */
    #form-message {
        padding: 12px;
        border-radius: var(--border-radius);
        margin: 15px 0;
        font-weight: 500;
    }
    
    #form-message.success {
        background-color: rgba(76, 175, 80, 0.1);
        color: #2e7d32;
    }
    
    #form-message.error {
        background-color: rgba(244, 67, 54, 0.1);
        color: #d32f2f;
    }
    
    #form-message.info {
        background-color: rgba(3, 169, 244, 0.1);
        color: #0288d1;
    }
    
    /* Submit button states */
    .submit-btn.submitting {
        position: relative;
        color: transparent;
        pointer-events: none;
    }
    
    .submit-btn.submitting::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spinner 0.6s linear infinite;
    }
    
    @keyframes spinner {
        to {transform: rotate(360deg);}
    }
}

/* Fix for contact section in landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .contact {
        padding: 30px 0;
    }
    
    .contact-wrapper {
        gap: 15px;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .contact-item {
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group textarea {
        height: 80px;
    }
}

/* Improved Footer Styling for Mobile */
footer {
    background-color: #1b1b1b;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-col ul {
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 12px 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-links a {
    color: #ddd;
    margin-left: 20px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Footer Fixes */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 25px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 15px;
    }
    
    .footer-links a {
        margin: 0 10px;
    }
}

@media (max-width: 576px) {
    footer {
        padding: 30px 0 15px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-col {
        margin-bottom: 20px;
        text-align: left;
        padding-left: 15px;
    }
    
    .footer-col:last-child {
        margin-bottom: 0;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-col h3::after {
        width: 30px;
    }
    
    .footer-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background-color: rgba(76, 175, 80, 0.1);
        border-radius: 50%;
        color: var(--primary-color);
        transition: transform 0.3s ease;
    }
    
    .footer-toggle i {
        font-size: 0.7rem;
    }
    
    .footer-toggle i.fa-chevron-down {
        transform: rotate(0deg);
    }
    
    .footer-toggle i.fa-chevron-right {
        transform: rotate(-90deg);
    }
    
    .footer-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .footer-col ul.visible {
        max-height: 500px;
    }
    
    .footer-col ul li {
        margin-bottom: 8px;
    }
    
    .footer-col ul li a {
        font-size: 0.9rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter-form .btn {
        border-radius: var(--border-radius);
        width: 100%;
    }
    
    .footer-bottom {
        padding-top: 15px;
        margin-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        margin: 0 8px;
    }
}

/* Footer on very small screens */
@media (max-width: 400px) {
    .footer-col h3 {
        font-size: 1rem;
    }
    
    .footer-col p,
    .footer-col ul li a {
        font-size: 0.85rem;
    }
    
    .footer-contact p {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .newsletter-form input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .newsletter-form .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Additional styling for footer sections on mobile */
@media (max-width: 576px) {
    /* Fix for duplicate "Categories" sections in footer */
    .footer-col h3 {
        position: relative;
        padding-right: 30px; /* Make room for toggle icon */
    }
    
    /* Style for the footer toggle button */
    .footer-toggle {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
    
    /* Improve spacing between footer sections */
    .footer-col {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .footer-col:first-child {
        border-bottom: none;
    }
    
    /* Add visual distinction to Quick Links vs Categories sections */
    .footer-col:nth-child(3) h3 {
        color: #4caf50; /* Use primary color to differentiate */
    }
    
    /* Improve the newsletter section appearance */
    .footer-col:last-child h3 {
        margin-bottom: 10px;
    }
    
    .footer-col:last-child p {
        margin-bottom: 15px;
        font-size: 0.9rem;
    }
    
    .newsletter-form input {
        height: 44px; /* Better touch target */
    }
}

/* Universal Footer Fix - Aggressive approach for all mobile browsers */
@media screen and (max-width: 767px) {
    /* Force footer grid to stack on mobile */
    footer .footer-grid {
        display: block !important;
        width: 100% !important;
    }
    
    footer .footer-col {
        display: block !important;
        width: 100% !important;
        margin-bottom: 25px !important;
        clear: both !important;
        float: none !important;
    }
    
    /* Fix duplicate Categories headings by hiding one */
    footer .footer-col:nth-child(3) {
        margin-top: 5px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Add more spacing to the Newsletter section */
    footer .footer-col:last-child {
        margin-top: 5px !important;
        padding-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Clean spacing on all footer elements */
    footer .footer-col h3 {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 15px !important;
        font-size: 18px !important;
    }
    
    footer .footer-col ul {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    footer .footer-col ul li {
        margin-bottom: 8px !important;
    }
    
    /* Reset any flex containers within footer */
    footer .container {
        padding: 0 15px !important;
    }
    
    footer .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        margin-top: 20px !important;
        padding-top: 20px !important;
    }
    
    footer .footer-links {
        margin-top: 15px !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    /* Fix newsletter form */
    footer .newsletter-form {
        display: block !important;
        width: 100% !important;
    }
    
    footer .newsletter-form input {
        display: block !important;
        width: 100% !important;
        margin-bottom: 10px !important;
        border-radius: 5px !important;
    }
    
    footer .newsletter-form button {
        display: block !important;
        width: 100% !important;
        border-radius: 5px !important;
    }
}

/* Direct overrides for product cards - Will apply universally */
.product-card {
    margin: 0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: white !important;
    height: auto !important;
    display: block !important;
}

.product-img {
    height: 200px !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

.product-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.product-info {
    padding: 15px !important;
    display: block !important;
    height: auto !important;
    min-height: 100px !important;
}

.product-title {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 0 2px !important;
}

.product-price {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    color: #4caf50 !important;
    font-weight: bold !important;
    padding: 0 2px !important;
}

.product-description {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    padding: 0 2px !important;
}

/* Fix product actions and buttons */
.product-actions {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    padding: 0 10px !important;
}

.btn.details-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 150px !important;
    margin: 0 auto !important;
    padding: 8px 15px !important;
    font-size: 0.95rem !important;
    border-radius: 4px !important;
    background-color: #4caf50 !important;
    color: white !important;
    text-align: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Call Now and WhatsApp buttons with better spacing */
.btn.details-btn[onclick="makeCall()"],
.btn.details-btn[onclick="openWhatsApp()"] {
    display: inline-block !important;
    min-width: 120px !important;
    margin: 5px !important;
    padding: 8px 15px !important;
}

@media (max-width: 576px) {
    .product-img {
        height: 150px !important;
    }
}

@media (max-width: 400px) {
    .product-img {
        height: 130px !important;
    }
}

/* Reset any flex styling that might be causing issues */
.collection-grid .product-card {
    display: block !important;
    height: auto !important;
}

.collection-grid .product-info {
    display: block !important;
    height: auto !important;
}

/* Clean up collection grid */
.collection-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 15px 0 !important;
}

/* Fix the Call Now and WhatsApp buttons */
.btn.details-btn[onclick="makeCall()"],
.btn.details-btn[onclick="openWhatsApp()"] {
    display: inline-block !important;
    width: auto !important;
    margin: 5px !important;
}

/* Call Now button styling */
.btn.details-btn[onclick="makeCall()"] {
    background-color: #ff5722 !important;
    border-color: #ff5722 !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    border-radius: 25px !important;
    animation: pulse 1.5s infinite !important;
    font-weight: bold !important;
    color: white !important;
}

/* WhatsApp button styling */
.btn.details-btn[onclick="openWhatsApp()"] {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    padding: 8px 15px !important;
    font-size: 0.9rem !important;
    border-radius: 25px !important;
    font-weight: bold !important;
    color: white !important;
}

/* Pulse animation for Call Now button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 87, 34, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 87, 34, 0);
    }
}

@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Direct fix for product card content and spacing */
.product-content {
    padding: 15px !important;
    display: block !important;
    height: auto !important;
    min-height: 120px !important;
}

.product-title {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 0 2px !important;
}

.product-price {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    color: #4caf50 !important;
    font-weight: bold !important;
    padding: 0 2px !important;
}

.product-description {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    padding: 0 2px !important;
}

/* Fix product actions and buttons */
.product-actions {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    padding: 0 10px !important;
}

.btn.details-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 150px !important;
    margin: 0 auto !important;
    padding: 8px 15px !important;
    font-size: 0.95rem !important;
    border-radius: 4px !important;
    background-color: #4caf50 !important;
    color: white !important;
    text-align: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Call Now and WhatsApp buttons with better spacing */
.btn.details-btn[onclick="makeCall()"],
.btn.details-btn[onclick="openWhatsApp()"] {
    display: inline-block !important;
    min-width: 120px !important;
    margin: 5px !important;
    padding: 8px 15px !important;
}

/* Chrome-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Fix for product cards in Chrome */
    .product-card {
        display: block !important;
        height: auto !important;
        overflow: hidden !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }
    
    .product-img {
        height: 200px !important;
        overflow: hidden !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    .product-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    .product-content {
        padding: 15px !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    /* Fix for buttons in Chrome */
    .btn.details-btn {
        width: auto !important;
        display: inline-block !important;
        text-align: center !important;
        margin: 0 auto !important;
        -webkit-appearance: none !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    /* Make sure text doesn't get cut off */
    .product-title, 
    .product-price, 
    .product-description {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix for collection grid in Chrome */
    .collection-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        box-sizing: border-box !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    @media (max-width: 576px) {
        .collection-grid {
            grid-template-columns: repeat(2, 1fr) !important;
        }
    }
}

/* Fix specifically for the categories and product cards as shown in the image */
.collection-categories {
    margin-bottom: 25px !important;
}

.collection-categories .swiper-slide {
    background-color: #f5f5f5 !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    color: #555 !important;
    border: 1px solid #eee !important;
}

.collection-categories .swiper-slide.active {
    background-color: #4caf50 !important;
    color: white !important;
    border-color: #4caf50 !important;
}

/* Fix collection grid to always maintain 2-column layout on mobile for ALL pages */
.collection-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin: 15px 0 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 576px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    /* Product image height adjustment for mobile */
    .product-img {
        height: 150px !important;
    }
}

@media (max-width: 400px) {
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    .product-img {
        height: 130px !important;
    }
}

/* Product card styling for consistency */
.product-card {
    margin-bottom: 0 !important;
    width: 100% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #fff !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.product-info {
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Ensure these styles appear at the top of the file to override any later styles */
.product-title {
    font-size: 1rem !important;
    margin-bottom: 10px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    padding: 0 2px !important;
}

.product-price {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
    color: #4caf50 !important;
    font-weight: bold !important;
    padding: 0 2px !important;
}

.product-description {
    font-size: 0.9rem !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    padding: 0 2px !important;
}

.product-actions {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    padding: 0 10px !important;
}

.btn.details-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 150px !important;
    margin: 0 auto !important;
    padding: 8px 15px !important;
    font-size: 0.95rem !important;
    border-radius: 4px !important;
    background-color: #4caf50 !important;
    color: white !important;
    text-align: center !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

.btn.details-btn[onclick="makeCall()"],
.btn.details-btn[onclick="openWhatsApp()"] {
    display: inline-block !important;
    min-width: 120px !important;
    margin: 5px !important;
    padding: 8px 15px !important;
} 