.navbar ul {
  display: flex;
  color: white;
  font-weight: 500;
}

.menu-icon {
  font-size: 28px;
  cursor: pointer;
  display: none;
  color: white;
}

.menu-icon i {
  display: none;
}

.menu-icon i.fa-bars {
  display: inline;
}

.menu-icon.open i.fa-bars {
  display: none;
}

.menu-icon.open i.fa-times {
  display: inline;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --text-color: #221314;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
    --bg-color: #fff;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #C04B50;
    transition: ease .40s;
}


.logo {
    font-size: 35px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #F8F1E5;
}


.navbar {
    display: flex;
}

.navbar a {
    position: relative;
    color: #F8F1E5;
    font-size: var(--p-font);
    font-weight: 500;
    padding: 10px 22px;
    border-radius: 4px;
    transition: ease .40s;
}

.navbar a:hover {
    background: var(--bg-color);
    color: var(--text-color);
    box-shadow: 5px 10px 30px rgb(85 85 85 / 20%);
    border-radius: 4px;
}

.navbar a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #fff;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.navbar a.active::after {
    width: 100%;
}

.navbar.open a.active::after {
  width: 0;
}
.home{
    background-color: #5e3c3c;
    padding-top: 10px;
    padding-bottom: 30px;
}

.home-text h1 {
    line-height: 1.2;
    color: white;
    font-family: 'Merriweather Sans';
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-align: center;
   margin-top: 100px;
    font-size: 2.1rem;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.home-text p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 38px;
    text-align: center;
    font-family: 'Merriweather Sans';
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}
input[type="radio"] {
  display: none;
}

.tab-buttons {
  display: flex;
  gap: 12px;
justify-content: center;
background-color: rgb(255, 224, 202);
padding: 25px;
flex-wrap: wrap;
}

.tab-buttons label {
  padding: 10px 15px;
  border-radius: 20px;
  background-color: white;
  color: #1a1a1a;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

input#all:checked ~ .tab-buttons label[for="all"],
input#beverages:checked ~ .tab-buttons label[for="beverages"],
input#bakery:checked ~ .tab-buttons label[for="bakery"],
input#pantry:checked ~ .tab-buttons label[for="pantry"],
input#dairy:checked ~ .tab-buttons label[for="dairy"] {
  background-color: #C04B50;
  color: white;
}

.tab-content > div {
  display: none;
  padding: 20px;
  background: white;
  border-radius: 12px;
}

input#all:checked ~ .tab-content .all,
input#beverages:checked ~ .tab-content .beverages,
input#bakery:checked ~ .tab-content .bakery,
input#pantry:checked ~ .tab-content .pantry,
input#dairy:checked ~ .tab-content .dairy {
  display: block;
}
.product_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px;
}

.product-card h3{
 margin-top: 10px;
}

.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  padding: 15px;
  font-family: sans-serif;
  text-align: left;
  transition: 0.3s;
  flex-direction: column;
  display: flex;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

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

.product-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.price {
  font-weight: bold;
  font-size: 1.2em;
  color: #444;
}

.buy-button {
  background-color: #d96d6d;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s;
}

.buy-button:hover {
  background-color: #b95555;
}

.description {
  flex-grow: 1; 
}

.product-footer {
  margin-top: auto; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#contact {
    background: #C04B50;
    margin-top: 50px;
}

.main {
    display: flex;
    flex-wrap: wrap;
}

.list {
    width: 25%;
    padding: 30px;
}

.list h4 {
    margin-top: 30px;
    font-size: 21px;
    color: white;
    margin-bottom: 30px;
    position: relative;
}

.list h4::before {
    content: "";
    height: 2px;
    width: 130px;
    left: 0;
    bottom: -10px;
    background: var(--bg-color);
    position: absolute;
}

.list ul li:not(last-child) {
    margin-bottom: 16px;
}

.list ul li a {
    color: #ffffffbf;
    font-size: var(--p-font);
    display: block;
    transition: .3s;
}

.list ul li a:hover {
    color: var(--bg-color);
    transform: translateX(14px);

}

.list .social a {
    height: 40px;
    width: 40px;
    background: var(--bg-color);
    color: var(--main-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    border-radius: 15px;
    transition: .3s;
    margin-right: 10px;
    margin-bottom: 10px;
}
.end-text {
    text-align: center;
    padding-top: 30px;
    margin-bottom: 50px;
}

.end-text p {
    color: var(--bg-color);
    font-size: 14px;
    letter-spacing: 2px;
}

.end-text p a {
    color: var(--bg-color);
}

.cart-sidebar {
    position: fixed;
    right: -450px; 
    top: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
    z-index: 2000;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f8f1e5;
    padding-bottom: 15px;
}

.cart-header h2 {
    color: #5e3c3c;
    font-size: 24px;
}

.close-cart {
    font-size: 30px;
    cursor: pointer;
    color: #C04B50;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info h4 {
    color: #221314;
    font-size: 16px;
}

.remove-item {
    background: none;
    border: none;
    color: #C04B50;
    cursor: pointer;
    font-size: 18px;
}

.cart-footer {
    padding-top: 20px;
    border-top: 2px solid #f8f1e5;
}

.total-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #5e3c3c;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #C04B50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.checkout-btn:hover {
    background: #883438;
}

@media (max-width:1400px) {
    header {
        padding: 17px 3%;
        transition: .2s;
    }
    section {
        padding: 1px;
        transition: .2s;
    }
    :root {
        --big-font: 4.5rem;
        --h2-font: 2.3rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width:1200px) {
    #menu-icon, .menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 80px;
        right: -100%;
        width: 250px;
        height: 500px; 
        background-color: #C04B50;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 30px;
        transition: right 0.4s ease;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
        text-align: center;
    }
    
    .navbar a {
        display: block;
        margin: 1.2rem 0;
        color: var(--bg-color);
        font-weight: bold;
        font-size: 1.1rem;
    }
    
    .navbar a:hover {
        color: var(--text-color);
    }
    
    .open, .navbar.open {
        right: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .navbar.open a.active::after {
        display: none;
    }
    
    .list {
        width: 50%;
        margin-bottom: 12px;
    }
}

@media (max-width: 600px) {
    .product_grid {
        grid-template-columns: 1fr;
    }
    .list {
        width: 100%;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    .product_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    .product_grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1025px) {
    
    header {
        padding: 20px; 
    }

    #contact {
        margin-bottom: 0 !important;
        padding-bottom: 20px; 
    }
}
