@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f4;
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  flex: 2;
}

nav li {
  margin: 0 1rem;
  transition: color 0.3s ease;
}

li:hover {
  color: #e74c3c;
}

.fa-heart:hover{
    color: red;
}

i{
    cursor: pointer;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-container {
  display: flex;
  width: 100%;
  max-width: 1200px; 
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.left-section {
  flex: 1;
}

.right-section {
  display: flex;
  align-items: center;
}

#search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

#search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: none;
  font-size: 16px;
  border-radius: 25px;
  color: black;
  background-color: rgb(244, 242, 242);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}


#search-input:focus {
  background-color: white;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}
.btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.1);
}

.right-section li {
  list-style: none;
  margin-left: 2rem;
}

.right-section .fa-heart,
.right-section .fa-cart-shopping {
  font-size: 1.5rem;
}

.hero-section {
  width: 100%;
  height: 70vh; 
  overflow: hidden; 
  position: relative; 
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slider {
  height: 100%;
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}
.hero-slide img {
  width: 100%;
  height: 100%; 
  object-fit: cover;
  display: block; 
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background-color 0.3s ease;
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: white;
}

/* Product Card */

.product-title{
    font-size: 1.5rem;
    margin: 1rem 2rem;
    font-weight: bold;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 80%;
    height: auto;
}

.product-card h3 {
    margin: 1rem 0 0.5rem;
}

.price {
    font-weight: bold;
    color: #e44d26;
}

.rating {
    color: #ffc107;
    margin: 0.5rem 0;
}

.add-to-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    margin: 0.5rem 0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #45a049;
}

.category-title {
    grid-column: 1 / -1;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #333;
}

.product-card {
    position: relative;
}

.like-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff1900;
}

.cart-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.cart-controls button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 1rem;
}

.cart-controls .quantity {
    font-size: 1rem;
    margin: 0 10px;
}

/* cart */
.shopping-cart {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem;
}

.shopping-cart h2 {
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
}

.cart-item-controls button,
.cart-item button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px; 
    margin: 0 10px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px; 
    transition: background-color 0.3s ease; 
}


.cart-item button {
    font-weight: bold;
    background-color: #e74c3c;
    font-size: 0.9rem;
}
#cart-total {
    font-weight: bold;
    margin-top: 1rem;
    font-size: 1.2rem;
}

#checkout-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 4px;
}

#checkout-btn:hover {
    background-color: #27ae60;
}





/* Footer */
footer {
  background-color: var(--nav-bg);
  color: var(--text-color);
  padding: 40px 0 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section {
  flex: 1;
  margin: 0 20px;
  min-width: 200px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

.social-icons {
  display: flex;
}

.social-icons .icon-btn {
  font-size: 1.5rem;
  margin-right: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}


@media screen and (min-width: 768px) {
    .nav-container {
      flex-wrap: nowrap;
    }
  
    nav ul {
      display: flex;
    }
  
    .hamburger {
      display: none;
    }
  
    #search-form {
      margin-top: 0;
    }
  
    .hero-section {
      height: 70vh;
    }
  
    .footer-content {
      flex-direction: row;
      justify-content: space-between;
    }
  }
  

