@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

:root {
  --primary: #f0c040;
  --primary-hover: #e0ac30;
  --bg: #f5f7fa;
  --text: #333;
  --muted: #666;
  --card-bg: #fff;
  --card-shadow: rgba(0, 0, 0, 0.06);
  --header-bg: #1e2a38;
  --footer-bg:  #1e2a38;
  --font-family: "Inter", "Segoe UI", sans-serif;
  --radius: 10px;
  --transition: 0.3s ease;
  
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: white;
}

/* Header */
header {
  width: 100%;
  background: var(--header-bg);
  color: white;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 10px auto;
}

.search-bar input {
  flex: 1;
  padding: 16px 18px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
}

.search-bar button {
  padding: 16px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

.search-bar button i {
  font-size: 18px;
  color: white;
}

/* Navigation */
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  color: white;
  font-weight: 500;
  font-size: 15px;
}

nav a:hover {
  color: var(--primary);
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-dot {
  display: none;
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background-color: red;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--primary);
  cursor: pointer;
}
.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
}

#cart-icon {
  font-size: 24px;
  color: white;
}

.cart-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 18px;
}

.cart-panel {
  position: absolute;
  top: 60px; /* adjust based on header height */
  right: 30px;
  background: white;
  border: 2px solid #f0c040;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
  width: 400px; /* Increased width */
  max-height: 500px; /* Increased height */
  overflow-y: auto; /* Enables scrolling */


    /* 👇 Add this to center content */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-panel ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 10px;
}

.cart-panel li {
  margin-bottom: 8px;
  font-size: 14px;
}
.cart-panel button {
  background: #f0c040;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;

  /* 👇 Optional: set a fixed width */
  width: 150px;
  text-align: center;
}
.close-cart-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-cart-icon:hover {
  color: #f0c040;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: white;
  font-weight: 500;
}

.nav-links.show {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 30px;
  background: var(--header-bg);
  padding: 20px;
  border-radius: 8px;
  z-index: 1000;
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.products {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 25px;
      justify-content: center;
      padding: 30px 0;
    }

    .product-card {
      background: white;
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      justify-content: space-between;
      overflow: hidden;
      min-height: 500px;
    }

    .product-card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 10px;
    }

    .product-card h4 {
      margin: 0;
      font-size: 18px;
    }

    .product-card p {
      font-size: 14px;
      margin: 5px 0;
    }

    .product-card .price {
      font-weight: bold;
      color: #f0c040;
    }

    .color-options {
      margin: 10px 0;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }

   

    .variant-group {
      margin-top: 10px;
      text-align: left;
      width: 100%;
    }

    .variant-group h5 {
      margin-bottom: 5px;
      font-size: 15px;
      color: #333;
    }

    .variant-group ul {
      list-style: none;
      padding-left: 0;
    }

    .variant-group li {
      font-size: 13px;
      margin-bottom: 4px;
    }

    .actions {
      display: flex;
      justify-content: center;
      margin-top: 15px;
    }

    .actions button {
      background: #f0c040;
      color: white;
      border: none;
      padding: 12px 24px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 16px;
      font-weight: bold;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background 0.3s ease;
      width: 100%;
      max-width: 200px;
      justify-content: center;
    }

    .actions button:hover {
      background: #d9a82d;
    }

    .actions button i {
      font-size: 18px;
    }

    .actions button:hover i {
      animation: bounce 0.5s;
      color: white;
    }

    @keyframes bounce {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-5px);
      }
    } 
    .color-options {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  justify-content: center;
}

.color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
}

.size-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.size-btn {
  padding: 6px 12px;
  background: #eee;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.stock-price-info {
  margin-top: 10px;
  font-size: 14px;
}


/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.pagination a {
  margin: 0 10px;
  padding: 8px 12px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.pagination a:hover {
  background: #333;
  color: #fff;
}

.pagination-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.pagination span {
  display: inline-block;
  padding: 8px 12px;
  background-color: #eee;
  color: #333;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.pagination span:hover,
.pagination span.active {
  background-color: var(--primary);
  color: white;
}

/* Footer */
footer {
  background: var(--footer-bg);
  color: #eee;
  padding: 40px 30px;
  font-size: 14px;
}

footer h4 {
  margin-top: 0;
  color: var(--primary);
}

.footer-grid {
  display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-note {
  margin-top: 20px;
  font-style: italic;
  color: #ccc;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #aaa;
}

footer i {
  margin-right: 8px;
  color: var(--primary);
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--primary);
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}



/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .main {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .search-bar {
    flex-direction: column;
    width: 100%;
  }

  .search-bar input,
  .search-bar button {
    width: 100%;
    font-size: 16px;
  }

  .slider-overlay {
    left: 10px;
    right: 10px;
    max-width: 90%;
    padding: 15px;
  }

  .slider-overlay h2 {
    font-size: 20px;
  }

  .shop-btn {
    font-size: 14px;
    padding: 8px 12px;
  }
}

