* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: #f8f8f8;
  color: #222;
}

/* =================== NAVIGATION =================== */
.navbar {
  width: 100%;
  background: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1001; /* above overlay */
}

.navbar .logo {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  text-decoration: none;
  border: 2px solid #000;
  padding: 5px 15px;
  white-space: nowrap;
}

/* Nav links container */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar ul li {
  font-size: 16px;
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  color: #444;
  transition: color 0.3s;
}

.navbar ul li a:hover {
  color: #000;
}

/* Cart link inside nav */
.navbar ul li a.cart-link {
  display: flex;
  align-items: center;
  position: relative;
}

/* Basic cart badge style, shared by both cart badges */
.cart-container,
.cart-link {
  position: relative;
  cursor: pointer;
  display: inline-block;
  width: 24px;
  height: 24px;
}

/* Cart icon */
.cart-icon {
  width: 24px;
  height: 24px;
  fill: #444;
  display: block;
}

/* Badge styles */
.cart-badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  right: -6px;
  background: orange;
  display: none; /* hidden by default */
  pointer-events: none;
  color: white;
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  font-weight: bold;
  padding: 0;
}

/* Show badge when active */
.cart-badge.active {
  display: inline-block;
}

/* Responsive show/hide */
@media (max-width: 768px) {
  .cart-container {
    display: inline-block;
  }
  .cart-link {
    display: none;
  }
}

@media (min-width: 769px) {
  .cart-container {
    display: none;
  }
  .cart-link {
    display: inline-block;
  }
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  cursor: pointer;
  margin-left: 15px;
}

.hamburger div {
  width: 100%;
  height: 3px;
  background: #444;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full screen */
  background: rgb(40, 178, 224);
  padding: 0 20px;
}

.contactus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full screen */
  background: lightgray;
  padding: 0 20px;
}

.hero-image {
  flex: 1 1 400px;
  text-align: center;
  padding: 20px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero-content {
  flex: 1 1 400px;
  padding: 20px 40px;
  text-align: left;
}

.hero-content h1 {
  font-size: 30px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 15px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.shop-button {
  display: inline-block;
  padding: 12px 30px;
  background: #111;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 20px;
  transition: background 0.3s;
}

.shop-button:hover {
  background: #444;
}

/* Overlay for menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* =================== PRODUCT GRID =================== */
/* Container for products grid */
#productContainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 60px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Product card styling */
.product-card {
  border-radius: 10px;
  box-shadow: 0 0 10px #f8f8f8;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card h4 {
  font-size: 15px;
  margin-bottom: 10px;
  margin-top: 10px;
}

.product-card p {
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
  text-align: center;

  /* ✅ Text wrapper */
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important; /* limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis !important;
  word-break: break-word !important; /* prevent long words from breaking layout */
}

@media (max-width: 480px) {
  .hero {
    display: block;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh; /* Full screen */
    background: rgb(40, 178, 224) !important;
    padding: 0 20px !important;
  }

  /* ✅ Make cards one column */
  #productContainer {
    display: grid;
    grid-template-columns: 1fr; /* one card per row */
    gap: 15px; /* spacing between cards */
  }

  .product-card {
    width: 100%; /* take full width */
    border-radius: 10px;
    box-shadow: 0 0 10px #f8f8f8;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
  }

  .product-card h4 {
    font-size: 15px;
    margin: 10px 0;
  }

  .product-card p {
    font-size: 10px !important;
    color: #666;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}
@media (min-width: 481px) and (max-width: 1024px) {
  .hero {
    display: flex; /* keep flex for tablets */
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 90vh; /* slightly smaller than full screen */
    background: rgb(40, 178, 224);
    padding: 0 30px;
  }

  /* Two columns for tablet */
  #productContainer {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
    gap: 20px;
  }

  .product-card {
    width: 100%; /* card fills grid cell */
    border-radius: 10px;
    box-shadow: 0 0 12px #f0f0f0;
    padding: 25px;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
  }

  .product-card h4 {
    font-size: 16px;
    margin: 12px 0;
  }

  .product-card p {
    font-size: 12px;
    color: #666;
    margin: 0;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }
}

.product-card img,
.swiper-slide img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin-bottom: 15px;
}

.product-card h4 {
  font-size: 15px;
  margin-bottom: 10px;
  margin-top: 8px;
}

.product-card p {
  color: #666;
  font-size: 12px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.add-to-cart-btn {
  width: 45px;
  height: 45px;
  background: #111;
  border: none;
  color: white;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.add-to-cart-btn:hover {
  background: #444;
}

.product-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.add-cart-button,
.bandcamp-button {
  padding: 10px 16px;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.add-cart-button {
  background: #111;
  color: white;
}

.add-cart-button:hover {
  background: #444;
}

.bandcamp-button {
  background: #1ea362;
  color: white;
}

.bandcamp-button:hover {
  background: #178c52;
}

.toggle-filters {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
}

.toggle-filters button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #ddd;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.toggle-filters button.active {
  background: #111;
  color: white;
}

/* Cart popup styles */
.cart-popup {
  position: fixed;
  right: 20px;
  top: 80px;
  width: 360px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  z-index: 9999;
  display: none;
  max-height: 90vh;
  overflow-y: auto;
}

.cart-popup h3 {
  margin-top: 0;
  font-size: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

.cart-summary {
  margin-top: 15px;
  font-weight: bold;
}

.checkout-btns button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.checkout-main {
  background: #000;
  color: white;
}

.checkout-gpay {
  background: black;
  color: white;
}

.checkout-paypal {
  background: #ffc439;
  color: #003087;
}

.close-cart {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 15px;
}

/* Responsive */

/* Responsive navbar adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
    position: relative;
  }

  /* Hide nav links by default - sliding drawer */
  .navbar ul {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: #fff;
    flex-direction: column;
    padding-top: 60px;
    gap: 20px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    display: flex;
  }

  /* Show nav menu when active */
  .navbar ul.active {
    transform: translateX(0);
  }

  /* Hide the cart link inside nav on mobile */
  .navbar ul li:first-child {
    display: none;
  }

  .navbar ul li {
    width: 100%;
    text-align: left;
    padding-left: 20px;
  }

  .navbar ul li a {
    display: block;
    font-size: 18px;
    color: #000;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
  }

  .navbar ul li a:hover {
    color: #444;
  }

  /* Nav right: hamburger + cart visible */
  .nav-right {
    display: flex;
    align-items: center;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Show cart container next to hamburger on mobile */
  .cart-container {
    display: block;
  }
}

/* On desktop, hide mobile cart container */
@media (min-width: 769px) {
  .cart-container {
    display: none;
  }
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.qty-btn {
  padding: 5px 10px;
  font-size: 10px;
  cursor: pointer;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.social-icons {
  display: flex;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #f3f3f3;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.social-icons li a:hover {
  background-color: #000;
  color: #fff;
}

.swiper {
  width: 300px;
  height: 300px;
  overflow: visible;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Modal overlay */
#productModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
}

/* Modal content box */
#productModal .modal-content {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 30px 30px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Close button */
#modalClose.modal-close-btn {
  position: absolute;
  top: 3px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease-in-out;
}

#modalClose.modal-close-btn:hover {
  color: rgb(40, 178, 224);
}

/* Swiper container */
.product-modal-swiper {
  width: 100%;
  height: 60%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Swiper navigation buttons */
.swiper-button-prev,
.swiper-button-next {
  color: #333;
  width: 35px;
  height: 35px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #fff;
}

/* Swiper pagination dots */
.swiper-pagination {
  bottom: 10px !important;
}

/* Size options container */
#sizeOptions.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
}

/* Each size option button */
#sizeOptions.size-options button {
  padding: 10px 18px;
  border: 2px solid #888;
  border-radius: 6px;
  background-color: white;
  font-weight: 600;
  cursor: pointer !important;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
  user-select: none;
}

#sizeOptions.size-options button:hover {
  border-color: #333;
  background-color: #f0f0f0;
}

#sizeOptions.size-options button.selected {
  background-color: #333;
  color: white;
  border-color: #333;
  pointer-events: none;
}

/* Add to Cart button */
#confirmAddToCart.add-to-cart-btn {
  background-color: #333;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  width: 100%;
}

#confirmAddToCart.add-to-cart-btn:disabled {
  background-color: lightgray;
  cursor: not-allowed;
}

#confirmAddToCart.add-to-cart-btn:not(:disabled):hover {
  background-color: #555;
}

#sizeOptions.size-options button.selected {
  background-color: #333;
  color: lightgray;
  border-color: #333;
  pointer-events: auto;
}
.product-swiper .swiper-button-prev,
.product-swiper .swiper-button-next {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .swiper-button-prev,
.product-card:hover .swiper-button-next {
  opacity: 1;
}
/* Ensure the card container has relative positioning */
.product-card {
  position: relative;
  padding-bottom: 15px;
  cursor: pointer;
}

/* Position price absolutely at bottom left */
.product-price {
  position: absolute;
  bottom: 10px;
  right: 40px; /* changed from left to right */
  font-weight: bold;
  font-size: 1.2em;
  color: black; /* adjust color if needed */
}
#miniCartItems li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

#miniCartItems img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.mini-cart-item-details {
  flex-grow: 1;
  font-size: 14px;
}

.mini-cart-item-qty,
.mini-cart-item-price {
  margin-left: 10px;
  white-space: nowrap;
  font-weight: bold;
}
.popup {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #333;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.popup.show {
  transform: translateY(0);
}

#cookie-ok-btn {
  padding: 8px 20px;
  background-color: rgb(40, 178, 224);
  border: none;
  color: black;
  cursor: pointer;
  border-radius: 4px;
}
@media (max-width: 767px) {
  .popup {
    font-size: 14px; /* slightly smaller text */
    padding: 12px 15px;
  }

  #cookie-ok-btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}
