* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #ffffff;
    color: #222;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* allow footer to stick to bottom */
}

/* ensure main content area grows so footer pushes downward */
main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: white;
    color: #222;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
}
header .logo {
    color: #222;
}
header input {
    width: 40%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
}
header .login-btn {
    padding: 8px 18px;
    background: #f5c400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #000;
}
header .top-nav {
    display: flex;
    gap: 20px;
}
header .top-nav a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.logo span {
    color: #f5c400;
}

header input {
    width: 40%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.login-btn {
    padding: 8px 18px;
    background: #f5c400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Categories */
.categories {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.category {
    position: relative;
    width: 200px;
    height: 120px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    background-size: cover;
    background-position: center;
}

.category:hover,
.category:focus {
    transform: translateY(-5px);
    outline: none;
    opacity: 0.9;
}

.category:focus {
    box-shadow: 0 0 0 3px rgba(245,196,0,0.5);
}


/* Hero banner */
.hero {
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(rgba(46,125,50,0.75), rgba(46,125,50,0.75)), url('PNG/Picsart_26-02-27_16-09-21-346.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
    min-height: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.hero-content {
    max-width: 600px;
}
.hero-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}
.hero-btn {
    background: white;
    color: #2e7d32;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}
.hero-image {
    flex: 1 1 300px;
    background-image: url('https://source.unsplash.com/800x400/?fruits,vegetables');
    background-size: cover;
    background-position: center;
    height: 200px;
    border-radius: 12px;
    margin-top: 20px;
}

/* Highlights cards */
.highlights {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.highlight-card {
    position: relative;
    flex: 1 1 30%;
    min-width: 250px;
    height: 180px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

/* translucent dark overlay for readability */
.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
    transition: background 0.3s;
}

/* make overlay red on hover */
.highlight-card:hover::before,
.highlight-card:focus::before {
    background: rgba(220,20,60,0.45);
}

/* order button styling */
.order-btn {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #222;
    border: 1px solid #ccc;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 2;
    font-weight: bold;
    transition: background 0.3s, border-color 0.3s;
}

.order-btn:hover,
.order-btn:focus {
    background: #f5f5f5;
    border-color: #999;
    outline: none;
}

/* ensure clicks on card outside button still trigger link */
.highlight-card button {
    pointer-events: none;
}
/* Services */
.services {
    padding: 60px 40px;
    text-align: center;
}

.services h2 {
    margin-bottom: 40px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.card {
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
}

.card:hover {
    transform: translateY(-5px);
    background: #f5c400;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #fafafa;
    color: #666;
    margin-top: 50px;
}

footer .footer-nav {
    margin-top: 8px;
}

footer .footer-nav a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9rem;
}

footer .footer-nav a:hover,
footer .footer-nav a:focus {
    text-decoration: underline;
    outline: none;
}
.product-section {
    padding: 50px 60px;
}

.product-section h2 {
    margin-bottom: 20px;
}

.product-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
}

.product-card {
    min-width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 15px;
    transition: 0.3s;
}

.product-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.product-card h4 {
    margin-bottom: 5px;
}

.product-card p {
    font-weight: bold;
    margin-bottom: 10px;
}

.product-card button {
    width: 100%;
    padding: 8px;
    background: #f5c400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Category backgrounds */
.category.food { background-image: url('https://source.unsplash.com/400x300/?food'); }
.category.groceries { background-image: url('https://source.unsplash.com/400x300/?groceries'); }
.category.services { background-image: url('https://source.unsplash.com/400x300/?services'); }
.category.medicine { background-image: url('https://source.unsplash.com/400x300/?medicine'); }
.category.daily { background-image: url('https://source.unsplash.com/400x300/?delivery'); }
.category.pharmacy { background-image: url('https://source.unsplash.com/400x300/?pharmacy,medicine'); }

/* Highlight images now as <img> */
.highlight-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}


/* Premium section */
.premium {
    padding: 60px 40px;
    text-align: center;
    background: #fff8e1;
}

.premium h2 {
    margin-bottom: 10px;
    color: #f5c400;
}

.premium .pricing {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.plan {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    min-width: 180px;
}

.plan h3 {
    margin-bottom: 5px;
}

.plan p {
    font-size: 24px;
    margin-bottom: 15px;
}

.plan span {
    font-size: 14px;
    color: #666;
}

.plan button {
    padding: 8px 16px;
    background: #f5c400;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.plan button:hover,
.plan button:focus {
    background: #e0b300;
    outline: none;
}

/* Focus outlines for interactive elements */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #f5c400;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    body {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    header input {
        width: 60%;
    }
    .pricing {
        flex-direction: column;
        gap: 20px;
    }
    .banner h1 {
        font-size: 28px;
    }
    .services {
        padding: 40px 20px;
    }
    .card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    header input {
        width: 100%;
    }
    .categories {
        gap: 10px;
        padding: 10px;
    }
    .banner h1 {
        font-size: 24px;
    }
    .product-row {
        gap: 10px;
    }
}

/* Services Section */
.services-section {
    padding: 60px 40px;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 2;
    transition: background 0.3s;
}

.service-card:hover .service-overlay,
.service-card:focus .service-overlay {
    background: rgba(220,20,60,0.5);
}

.service-overlay h3 {
    color: white;
    font-size: 20px;
    margin: 0;
}

.book-btn {
    background: white;
    color: #222;
    border: none;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    pointer-events: none;
}

.book-btn:hover {
    background: #f5f5f5;
}

/* Products Section */
.products-section {
    padding: 60px 40px;
    background: #fafafa;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* sidebar categories */
.sidebar {
    width: 200px;
    max-height: 600px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

.sidebar .category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.sidebar .category-item:hover,
.sidebar .category-item.active {
    background: #f5f5f5;
}

/* discount badge */
.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #007bff;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h4 {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 16px;
}

.product-item .price {
    padding: 0 15px;
    color: #ff6600;
    font-weight: bold;
    font-size: 18px;
}

.add-btn {
    width: calc(100% - 30px);
    margin: 10px 15px;
    padding: 10px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.add-btn:hover {
    background: #e65a00;
}

/* Filter bar styling */
.filter-bar {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.filter-bar label {
    font-size: 0.9rem;
    color: #333;
}

.filter-bar input,
.filter-bar select {
    margin-left: 8px;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
    padding: 0 15px;
}
\n.old-price { font-size: 14px; color: #888; text-decoration: line-through; padding: 0 15px; }\n
\n.delivery-time { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,0.9); color: #333; padding: 2px 6px; font-size: 0.75rem; border-radius: 4px; z-index: 3; }