* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
hr{
    width: 80%;
    margin: 20px auto;
}
/* search vala css */
.search-results {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-radius: 5px;         
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.search-results a.dropdown-item {
    display: block;
    padding: 10px;
    text-decoration: none;
    cursor: pointer;
}

.search-results a.dropdown-item:hover {
    background-color: #e6ffe6; /* light green to match your dough theme */
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    line-height: 1.4;
    
}

.container {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Styles */
.header {
    background-color: #f0e6da;
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.search-container {
    position: relative;
    flex: 1;
    width: 80%;    

}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid #0a1611;
    border-radius: 20px;
    background-color: #fbf6f1;
    font-size: 16px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 20px;
}

.nav-actions {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-evenly;

}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    font-size: 18px;
    font-weight: 400;
    padding: 8px 16px;
}

.nav-icon {
    width: 20px;
    height: 20px;
}
main{
    padding: 0px 5px 5px 0px;
}
/* Hero Section */
/* .hero {
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin: 50px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
} */
 .hero {
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    margin: 50px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: white; /* keep text white */
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* adjust darkness here */
    z-index: 1;
}

.hero * {
    position: relative;
    z-index: 2; /* make sure text stays above overlay */
}


.hero-content {
    max-width: 60%;
    padding: 0 40px;
}

.hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    color: #ffffff;
}

/* Section Styles */
.section {
    margin: 60px 0;
}

.section-header {
    margin-bottom: 32px;
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: #000000;
}

/* Product Grid */
.product-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    padding-top: 5px;
    scroll-behavior: smooth;
}

.product-card {
    flex-shrink: 0;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: justify;
    gap: 14px;
    height: 380px;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
}

.product-info {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    color: #000000;
}
.product-link {
    text-decoration: none;
    color: inherit;
}

.product-card {
    flex-shrink: 0;
    width: 270px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

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

.product-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
    border-radius: 16px 16px 0 0;
}

.product-details {
    padding: 15px 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3em;
  height: 2.6em; /* 2 lines */
  overflow: hidden;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;  /* Safari/Chrome */
  line-clamp: 2;          /* Future standard */

  text-overflow: ellipsis;
  white-space: normal;
}



.product-meta {
    font-size: 15px;
    color: #777;
}

.product-price {
    font-size: 18px;
    font-weight: 500;
    color: #1e1e1e;
}
/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 70px;
    margin: 32px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* lighter hover than products */
}

.category-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

.category-name {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    color: #000000;
}

.category-box-link {
    text-decoration: none;
    color: inherit;
}
.product-card.unavailable {
    position: relative;
    opacity: 0.5; /* or use filter: grayscale(1) */
    pointer-events: auto; /* Ensure clicks still work */
}

.product-card.unavailable::after {
    content: "Unavailable";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
}
button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.alert{
    background-color: rgb(150, 31, 31);
    color: white;
    text-align: center;
}
/* Footer */

.footer {
    background-color: #75c7af;
    padding: 40px 0 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
}

.footer-top {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    align-items: flex-start;
}

.footer-logo-section {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    width: 150px;
}
.footer-logo-section {
    flex: 1;
    min-width: 200px;
}
.footer-icon {
    width: 20px;
    height: 20px;
}

.footer-contact-info,
.footer-address {
    flex: 1;.footer-ic.footer-icon {
    width: 48px;
    height: 48px;
    }
    on {
    width: 48px;
    height: 48px;
}
    min-width: 250px;
}

.footer-contact-info h4,
.footer-address h4 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
}

.footer-contact-info p,
.footer-address address {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
}

.footer-contact-info a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact-info a:hover {
    text-decoration: none;
}

.footer-separator {
    border: none;
    border-top: 1px solid #ffffff;
    margin: 30px 0;
    width: 100%;
}

.footer-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
}

.mobile-bottom-nav {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #mobileCartCount {
    font-size: 12px;
    font-weight: 500;
}
    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-around;
    }

    .hero-content {
        max-width: 90%;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .product-card {
        width: 240px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-image {
        width: 120px;
        height: 120px;
    }

    .category-name {
        font-size: 14px;
    }
    .footer-contact {
        flex-direction: column;
        text-align: center;
    }

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid #ddd;
        padding: 8px 0;
        z-index: 999;
    }

    .mobile-bottom-nav a {
        text-decoration: none;
        color: #333;
        font-size: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-bottom-nav img {
        width: 22px;
        height: 22px;
        margin-bottom: 4px;
    }

    /* Avoid overlap with nav */
    body {
        padding-bottom: 60px;
    }

    .nav-actions {
    display: none !important;
    }
    .mobile-bottom-nav a.active {
        color: #000; /* Slightly darker text */
        font-weight: 600;
        border-bottom: 2px solid #000; /* Underline effect */
        padding-bottom: 4px;
    }

    .mobile-bottom-nav a.active img {
        filter: brightness(0.5); /* Darker icon */
    }

}

@media (max-width: 480px) {
    #mobileCartCount {
    font-size: 12px;
    font-weight: 500;
}   

    .mobile-bottom-nav a.active {
        color: #000; /* Slightly darker text */
        font-weight: 600;
        border-bottom: 2px solid #000; /* Underline effect */
        padding-bottom: 4px;
    }

    .mobile-bottom-nav a.active img {
        filter: brightness(0.5); /* Darker icon */
    }

    .header{
        position:static;
    }
    .container {
        padding: 0 12px;
    }

    .hero {
        margin: 20px 0;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .product-card {
        width: 270px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns even on small phones */
        gap: 16px;
    }

    .category-image {
        width: 100px;
        height: 100px;
    }

    .category-name {
        font-size: 13px;
    }

    .section {
        margin: 40px 0;
    }
}
.footer-social {
margin-top: 12px;
margin-left: 10px;
display: flex;
gap: 12px;
align-items: center;
}

.footer-social a {
display: inline-block;
}

.footer-social .footer-icon {
width: 28px;
height: 28px;
transition: transform 0.2s ease;
}

.footer-social .footer-icon:hover {
transform: scale(1.1);
}

/* Scrollbar Styling */
.product-grid::-webkit-scrollbar {
    height: 8px;
}

.product-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.product-grid::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

#mobileCartBadge {
    display: flex;              /* start hidden */
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -8px;
  background: red;
  color: white;
  font-size: 12px;
  min-width: 20px;            /* ensures shape only when visible */
  height: 20px;
  border-radius: 50%;
  line-height: 20px;
  text-align: center;
}