.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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #C04B50;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  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 {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("../img/banner3.png");
  background-size: cover;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  align-items: center;
  background-position: bottom;
}

.home-text {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-text h1 {
  line-height: 1.2;
  color: white;
  font-family: 'Merriweather Sans';
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-align: center;
  margin-top: 10%;
  font-size: 2.2rem;
  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.3rem;
    font-weight: 500;
    line-height: 38px;
    margin-bottom: 50px;
    text-align: center;
    font-family: 'Merriweather Sans';
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.home-btn {
    display: inline-block;
    font-size: 16px;
    padding: 12px 28px;
    background:#C04B50;
    color: white;
    border-radius: 4px;
    transition: ease .40s;
}

.home-btn:hover {
    background: #993d41;
    transform: scale(1.1);
}
.title {
    text-align: center;
    font-size: 25px;
    line-height: 1.2;
    margin-top: 60px;
}
.product_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 25px;
}

.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;
}

.div_browse {
  text-align: center;
  margin-top: 15px;
}

.browse {
  background-color: #d96d6d; 
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.browse:hover {
  background-color: #b95555; 
}

.container{
  background-color: #faf4f5;
  margin-top: 30px;
  padding-bottom: 45px;
  padding-left: 25px;
  padding-right: 25px;
}

.text h2 {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    margin-top: 50px;
}

.row_item {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, auto));
    grid-gap: 2rem;
    align-items: center;
    text-align: center;
    margin-top: 3rem;
}
.container_box {
    background: var(--bg-color);
    border: 1px solid #f0eded;
    padding: 50px 10px;
    border-radius: 4px;
    transition: all 1s ease 0s;
    cursor: pointer;
}

.container_img img {
    height: 85px;
    width: 85px;
    padding: 15px;
    background: var(--bg-color);
    box-shadow: 5px 10px 30px rgb(85 85 85 / 10%);
    border-radius: 4px;
    margin-bottom: 15px;
}

.container_box h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.container_box p {
    font-size: 15px;
    color: var(--second-color);
}

.container_box:hover {
    box-shadow: 5px 30px 56.1276px rgb(55 55 55 / 12%);
    border: 1px solid transparent;
    transform: translateY(-3px)
}
.review_grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 25px;
}
.review_box {
  width: 300px;
  background-color: #fff8f5;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.review {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.name {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d96d6d;
}

.stars {
  color: #ffbb33;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.review_text {
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
}
#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);
}

@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;
    }
    
    .home {
        height: 88vh;
    }
    
    .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;
        overflow-y: auto;
        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;
    }
    .review_grid {
        flex-direction: column;
        align-items: center;
        padding-left: 55px;
    }
    .review_box {
        width: 90%;
    }
    .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; 
    }

    .container {
        padding-top: 50px !important; 
    }

    .container .text h2 {
        margin-top: 0 !important; 
    }
    .review_grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px;
        max-width: 1400px;
        margin: 0 auto;
        padding: 50px 20px;
    }

    .review_box {
        width: 100%; 
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
        border: 1px solid #f0eded;
        transition: transform 0.3s ease;
    }

    .review_box:hover {
        transform: translateY(-10px); 
    }

    .container, .product_grid {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }
    #contact {
        margin-bottom: 0 !important;
        padding-bottom: 20px; 
    }
}

.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;
}