@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #1c1c1c;
}


/* Navbar Styles */

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #30362f;
    color: #f0f0f0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav h1 {
    font-size: 24px;
    font-weight: 600;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

nav ul li:hover {
    color: #ffd700;
}

nav ul li a {
    text-decoration: none;
    color: inherit;
}


nav .search-bar {
    display: flex;
    align-items: center;
    background-color: #444;
    border-radius: 10px;
    padding: 5px 10px;
}

nav .search-bar input {
    border: none;
    background: transparent;
    color: #f0f0f0;
    outline: none;
    padding: 5px;
}

nav .search-bar button {
    background: transparent;
    border: none;
    color: #f0f0f0;
    cursor: pointer;
    font-size: 18px;
}

nav .search-bar button:hover {
    color: #ffd700;
}


nav .search-bar button:focus {
    outline: none;
}

nav .search-bar input:focus {
    outline: none;
}

nav .search-bar input::placeholder {
    color: #f0f0f0;
    opacity: 0.7;
}

nav .search-bar input:focus::placeholder {
    color: #ffd700;
    opacity: 1;
}

.icons{
    display: flex;
    gap: 50px;
    align-items: center;
    margin-right: 20px;
}

.cart-icon{
    width: 40px;
    height: 30px;
    cursor: pointer;
}

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

.cart-icon:active{
    transform: scale(0.9);
}

.user-icon{
    width: 80px;
    height: 30px;
    cursor: pointer;
}

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

.user-icon:active{
    transform: scale(0.9);
}

/* Main content styles */

main {
  padding-top: 80px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #121212;
  padding: 60px 80px;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  color: #f0f0f0;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #cfcfcf;
}

.shop-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #ffd700;
  color: #1a1a1a;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  font-size: 14px;
  color: #bbbbbb;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  object-fit: cover;
}

.today-deals {
  background-color: #1a1a1a;
  color: #f0f0f0;
  padding: 60px 40px;
  text-align: center;
}

.today-deals h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #ffd700;
}

.best-selling h2{
  font-size: 36px;
  margin-bottom: 40px;
  color: #ffd700;
  text-align: center;
}


.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  justify-items: center;
}

.product-card {
  background-color: #2c2c2c;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 300px;
  
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.price {
  font-size: 16px;
  margin-bottom: 15px;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  margin-left: 10px;
  font-size: 14px;
}

.add-cart-btn {
  background-color: #ffd700;
  border: none;
  padding: 10px 20px;
  color: #1a1a1a;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-cart-btn:hover {
  background-color: #e6c200;
}

.buy-now-btn,
.add-cart-btn {
  display: inline-block;
  margin: 5px 5px 0 5px;
  background-color: #ffd700;
  border: none;
  padding: 10px 16px;
  color: #1a1a1a;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buy-now-btn:hover,
.add-cart-btn:hover {
  background-color: #e6c200;
}

.badge{
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    z-index: 10;
}

.badge.hot{
    background-color: #ff5733;
}

.badge.offer {
  background-color: #28a745;
}

.product-card {
  position: relative;
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  text-align: center;
}

#best-selling {
  margin-bottom: 100px; 
}


/* Modal design */

.cart-modal {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #fffae6;
  color: #222;
  padding: 1rem 1.5rem;
  border-left: 6px solid #f0c000; 
  border-radius: 8px;
  display: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.site-footer {
  background-color: #222;
  color: #f0f0f0;
  padding: 40px 20px 20px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-about,
.footer-links,
.footer-contact {
  flex: 1;
  min-width: 220px;
}

.footer-about h3,
.footer-links h4,
.footer-contact h4 {
  margin-bottom: 15px;
  color: #ffd700;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #f0f0f0;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
  color: #ffd700;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #444;
  padding-top: 15px;
  color: #bbb;
}




























































@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 10px 0;
  }

  .icons {
    gap: 20px;
    margin-top: 10px;
    margin-right: 0;
  }

  .search-bar {
    margin-top: 10px;
    width: 100%;
  }

  .hero {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .shop-btn {
    font-size: 16px;
    padding: 10px 20px;
  }

  .features {
    grid-template-columns: 1fr;
    font-size: 13px;
    gap: 15px;
    margin-top: 20px;
  }

  .hero-image img {
    max-width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  nav h1 {
    font-size: 20px;
  }

  nav ul li {
    font-size: 16px;
  }

  nav .search-bar input {
    width: 100px;
    font-size: 14px;
  }

  .cart-icon, .user-icon {
    width: 30px;
    height: auto;
  }

  .user-icon {
    width: auto;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .shop-btn {
    font-size: 14px;
    padding: 8px 18px;
  }

  .features {
    font-size: 12px;
  }
}









@media screen and (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .icons {
    gap: 20px;
    margin-top: 10px;
  }

  .search-bar {
    width: 100%;
    margin-top: 10px;
  }

  main .hero-section {
    text-align: center;
    padding: 40px 20px;
  }
}











