/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fbfbfb;
    padding-top: 95px;
}

/* Header/Search bar styles */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, #d1d1d1, #ffffff);
    border-bottom: 1px solid #dddddd;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgb(103 103 103 / 32%);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo {
    width: 200px;
    height: auto;
}

.search-container {
    margin: 0 2rem;
    display: flex;
    gap: 0.2rem;
    padding: 0.15rem;
    border-radius: 50px;
    width: 65%;
}

.search-bar {
    width: 75%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 20px 4px 4px 20px;
}

.category-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px 20px 20px 4px;
}

.user-controls {
    display: flex;
    gap: 0.5rem;
}

.user-controls button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #0081c5;
    color: #fff;
    transition: background 0.3s ease;
    cursor: pointer;
    font-size: 12px;
}

.user-controls button:hover {
    background: #fbfbfb;
    border: 1px solid #cecece;
    color: #333;
}

/* Navigation Bar styles */
.nav-container {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem;
    border-bottom: 1px solid #e1e1e1; 
    background:#fbfbfb;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.05);
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
}

.nav-list a {
    text-decoration: none;
    text-shadow: 0px 0px 2px #ffffff;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 12px;
    text-transform: uppercase;
}

.nav-list a:hover {
    color: #14AAFB;
}

/* Hero banner styles */
.hero-banner {
    position: relative;
    aspect-ratio: 7 / 2;
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    .hero-banner {
        aspect-ratio: 25 / 9; /* Slightly taller for tablets */
    }
}

@media screen and (max-width: 768px) {
    .hero-banner {
        display: none; /* Standard widescreen ratio for mobile */
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    padding: 32px;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px BLACK;
}

/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 2rem;
    padding: 2rem;
}

.featured-business {
    background: #e7e7e7;
    padding: 1rem;
    border-radius: 8px;
    display: block;
}

@media screen and (max-width: 768px) {
    .featured-business {
        display: none;
    }
}

.menu-grid {
    display: flex;  
    flex-wrap: wrap;
    gap: 1.5rem;
}

.menu-item {
    flex: 1 1 300px;
    background: #fff;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.menu-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 1rem;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.menu-item:hover .menu-bg {
    transform: scale(1.1);
}

.menu-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.menu-content p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Featured products section */
.featured-products {
    padding: 2rem;
    margin: 32px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background: #e7e7e7;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: filter 0.3s ease;
    object-position: top;
}

.quickview-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
    color: #333;
}

.product-image-container:hover img {
    filter: brightness(80%);
}

.product-image-container:hover .quickview-button {
    opacity: 1;
}

.quickview-button:hover {
    background: rgba(255, 255, 255, 1);
}

.quickview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.quickview-modal {
    background: white;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-quickview {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-quickview:hover {
    background: #f5f5f5;
}

.quickview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quickview-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.quickview-details {
    padding: 1rem;
}

.quickview-details h2 {
    margin-bottom: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 1rem;
}

.description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qty-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
}

#quantityInput {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: #0081c5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #006394;
}

/* Animation classes */
.quickview-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Add these media queries at the end of your CSS file */
@media screen and (max-width: 768px) {
    .products-grid {
        gap: 0.75rem;
    }

    .product-card {
        margin-bottom: 0.5rem;
    }

    .product-image-container img {
        height: 150px; /* Slightly smaller images on mobile */
    }

    .product-info {
        padding: 0.75rem;
    }

    .product-info h3 {
        font-size: 0.9rem;
    }

    /* Adjust quickview modal for mobile */
    .quickview-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quickview-modal {
        width: 95%;
        padding: 15px;
    }
} 

.category-select option:hover {
    background-color: #0081c5 !important;
    color: white;
} 

.sale-price {
    color: #ff0000;
} 

.sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
} 

.quickview-image {
    position: relative;
} 

.price s {
    color: #666;  /* Grey color for the original price */
    text-decoration: line-through;
    margin-right: 10px;
    font-size: 1.2rem;
}

.sale-price {
    color: #ff0000;
    font-weight: bold;
    font-size: 1.5rem;
} 

.quickview-details .price .sale-price {
    color: #ff0000;
    font-weight: bold;
    font-size: 1.5rem;
} 

/* Featured businesses section */
.featured-businesses {
    padding: 2rem;
    margin: 32px 0;
}

.businesses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
}

.business-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.business-image-container {
    position: relative;
    overflow: hidden;
}

.business-image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.business-info {
    padding: 1rem;
    text-align: center;
}

.business-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-size: 14px;
}

/* Add responsive design for mobile */
@media screen and (max-width: 768px) {
    .businesses-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
} 

/* Dual Features Container */
.dual-features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.featured-services,
.featured-restaurants {
    background: #e7e7e7;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-services h2,
.featured-restaurants h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.services-grid,
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-card,
.restaurant-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.service-card:hover,
.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.service-image-container,
.restaurant-image-container {
    position: relative;
    overflow: hidden;
}

.service-image-container img,
.restaurant-image-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.service-info,
.restaurant-info {
    padding: 1rem;
    text-align: center;
}

.service-info h3,
.restaurant-info h3 {
    margin: 0;
    font-size: 12px;
    color: #333;
}
.service-info p,
.restaurant-info p {
    font-size: 10px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .services-grid,
    .restaurants-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .dual-features-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .services-grid,
    .restaurants-grid {
        grid-template-columns: 1fr;
    }
} 

/* Footer Styles */
.footer {
    background: #333;
    color: #fff;
    padding: 3rem 0 0;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    color: #ccc;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0081c5;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #444;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #0081c5;
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

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

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
} 

.footer-advocates {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
}

.footer-advocates h3 {
    color: #0081c5;
    margin-bottom: 1.25rem;
}

.advocate-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.advocate-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.advocate-logo:hover {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .advocate-logos {
        gap: 1.5rem;
    }

    .advocate-logo {
        height: 45px;
    }
}

/* Add hamburger menu styles */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
    position: relative;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
    body {
        padding-top: 180px; /* Adjust based on your header height */
    }

    .header-container {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .logo {
        width: 180px;
        margin: 0 auto;
    }

    .user-controls {
        display: block;
        gap: 0.5rem;
        position: absolute;
        top: 1.25rem;
        right: 1rem;
    }

    .search-container {
        width: 100%;
        margin: 0;
        flex-direction: column;
        gap: 0.5rem;
    }

    .search-bar,
    .category-select {
        width: 100%;
        border-radius: 20px;
    }

    /* Hamburger menu */
    .hamburger {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Navigation modifications */
    .nav-container {
        position: fixed;
        top: 164px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 180px); /* This ensures the menu takes full height */
        transition: left 0.3s ease;
        background: #fbfbfb;
        z-index: 1000;
    }

    .nav-container.active {
        left: 0;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
}

/* Show featured business by default (desktop) */
.featured-business {
    display: block;
}

/* Hide featured business on tablets and mobile devices */
@media screen and (max-width: 1024px) {
    .featured-business {
        display: none;
    }
    .main-content {
        display: flex;
    }
    .menu-item {
        aspect-ratio: 35 / 9;
    }
}

/* Add this media query for mobile devices */
@media screen and (max-width: 768px) {
  .product-card:nth-child(n+7) {
    display: none !important;
  }
  .business-card:nth-child(n+5) {
    display: none !important;
  }
  .service-card:nth-child(n+4),
  .restaurant-card:nth-child(n+4) {
    display: none !important;
  }
}

/* Product grid styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price {
    font-weight: bold;
    color: #0081c5;
}

.sale-price {
    color: #e44d26;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.5rem;
}

/* Pagination styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.page-btn.active {
    background: #0081c5;
    color: #fff;
    border-color: #0081c5;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}