/* Header styling */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1002;
}

/* Desktop: logo left, search center, fav right */
.logo {
  font-size: 2.5rem;
  font-weight: bold;
  order: 1;
}

.search-box {
  flex: 1;
  margin: 0 24px;
  max-width: 400px;
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  text-align: center;
  background: #f0f5ff;
  color: #212121;
  outline: none;
  box-shadow: 0 1px 2px rgba(178, 180, 182, 0.08);
  transition: box-shadow 0.2s;
  order: 2;
}

.navbar {
  display: flex;
  align-items: center;
  margin-left: auto;
  order: 3;
}

/* Mobile styles */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 8px;
  }
  .logo {
    order: 1;
    align-self: center;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
  }
  .search-box {
    order: 2;
    margin: 0 0 10px 0;
    max-width: 100%;
    width: 100%;
    align-self: flex-start;
  }
  .navbar {
    order: 3;
    justify-content: flex-end;
    margin-left: 0;
    margin-bottom: 0;
    width: 100%;
  }
}

/* Center logo on mobile */
@media (max-width: 700px) {
  .header {
    text-align: center;
  }
  .header .logo {
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
    float: none;
  }
}

/* Keep logo left-aligned on desktop */
@media (min-width: 701px) {
  .header {
    text-align: left;
  }
  .header .logo {
    float: left;
  }
}

/* Product grid: 4 products per row on desktop, 2 per row on mobile */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0;
  max-height: none;
  overflow-y: visible;
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Product thumbnail: 1:1 aspect ratio (square) */
.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: px;
  background: #941010;
}

/* Optional: Product card styling for better appearance */
.product-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(40,116,240,0.06);
  text-align: center;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(40,116,240,0.12);
}

/* Navbar styling for favourites button */
.navbar {
  display: flex;
  align-items: center;
  margin-left: auto;
}

/* Favourites button styling */
.favourites-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.favourites-btn:hover {
  background-color: #0056b3;
}

/* Modal styles for favourites */
#favourites-modal.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.2);
  z-index: 1001;
  min-width: 300px;
}

#favourites-modal.hidden {
  display: none;
}

#favourites-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

#close-fav-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
}

/* Dark mode styles */
body.dark-mode {
  background: #181a1b;
  color: #f1f1f1;
}
body.dark-mode .header {
  background: #23272b;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
body.dark-mode .product-card {
  background: #23272b;
  border-color: #333;
  color: #f1f1f1;
}
body.dark-mode .search-box {
  background: #23272b;
  color: #f1f1f1;
  border-color: #444;
}
body.dark-mode .favourites-btn,
body.dark-mode #close-fav-btn {
  background: #444;
  color: #fff;
}
body.dark-mode .favourites-btn:hover,
body.dark-mode #close-fav-btn:hover {
  background: #222;
}
body.dark-mode #favourites-modal.modal {
  background: #23272b;
  color: #f1f1f1;
}

/* Footer styles */
.footer-dark {
  background: #23272b;
  color: #fff;
  padding: 40px 0 30px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 24px;
}

.footer-section {
  min-width: 200px;
}

.footer-section h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: #ff0000;
}

.footer-social-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
}

/* Dark mode: keep footer dark, but invert text for contrast */
body.dark-mode .footer-dark {
  background: #111315;
  color: #f1f1f1;
}
body.dark-mode .footer-section h4,
body.dark-mode .footer-social-link {
  color: #f1f1f1;
}

/* Pokemon Cards dropdown styles */
.pokemon-icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  display: block;
}

#pokemon-dropdown {
  position: relative;
  display: inline-block;
}

#pokemon-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 8px;
  z-index: 100;
  padding: 8px 0;
  list-style: none;
}

#pokemon-dropdown:hover .dropdown-menu,
#pokemon-dropdown:focus-within .dropdown-menu {
  display: block;
}

#pokemon-dropdown .dropdown-menu li {
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

#pokemon-dropdown .dropdown-menu li:hover {
  background: #f0f5ff;
}
.pokemon-mobile-nav {
  display: none;
  width: 100%;
  margin-top: 12px;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .pokemon-desktop-nav {
    display: none;
  }
  .pokemon-mobile-nav {
    display: block;
  }
  .pokemon-mobile-nav .nav-item {
    width: 100%;
    text-align: left;
    margin-left: 0;
  }
}

/* Section bar and list styles */
.section-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0); /* semi-transparent white */
  backdrop-filter: blur(8px);            /* blur effect for modern look */
  -webkit-backdrop-filter: blur(8px);    /* Safari support */
  border-bottom: 1px solid #eee;
  margin-bottom: 0;
  padding: 0 0 4px 0;
  position: static;
  z-index: 1001;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  margin: 18px auto 32px auto;
  max-width: 900px;
  padding: 8px 0;
  transition: background 0.3s;
}
.section-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 12px 24px 0 24px;
  overflow-x: auto;
  overflow-y: hidden; /* Prevent vertical scrolling */
  max-height: 120px;  /* Optional: limit height to avoid vertical scroll */
}
.section-list .nav-item {
  position: relative;
  text-align: center;
  min-width: 160px;      /* Increase width */
  padding: 18px 0;       /* More vertical space */
}
.section-list .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #222;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.35rem;    /* Larger text */
  cursor: pointer;
  padding: 12px 0;        /* More padding */
}
.section-list .pokemon-icon {
  width: 80px;           /* Larger icon */
  height: 80px;
  margin-bottom: 12px;
  background: #fff;
  border: 2px solid #eee;
}
.section-list .dropdown-menu {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 110%;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 8px;
  z-index: 100;
  padding: 8px 0;
  list-style: none;
}
.section-list .nav-item:hover .dropdown-menu,
.section-list .nav-item:focus-within .dropdown-menu {
  display: block;
}
.section-list .dropdown-menu li {
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.section-list .dropdown-menu li:hover {
  background: #f0f5ff;
}
@media (max-width: 600px) {
  .section-list {
    gap: 16px;
    padding: 8px 8px 0 8px;
  }
}

/* Section bar text color for light and dark mode */
.section-bar,
.section-bar .section-list .nav-link,
.section-bar .section-list .nav-item,
.section-bar .section-list .dropdown-menu,
.section-bar .section-list .dropdown-menu li {
  color: #111 !important; /* Black text in light mode */
}

/* Dark mode: section bar text white */
body.dark-mode .section-bar,
body.dark-mode .section-bar .section-list .nav-link,
body.dark-mode .section-bar .section-list .nav-item,
body.dark-mode .section-bar .section-list .dropdown-menu,
body.dark-mode .section-bar .section-list .dropdown-menu li {
  color: #fff !important; /* White text in dark mode */
}
/* Promo Banner - Image Only */
.promo-banner {
  width: 100%;
  overflow: hidden;
  margin: 20px auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}
@media (max-width: 480px) {
  .promo-image {
    max-height: 200px;
  }
}
.slider {
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0 auto 16px auto;
}
.banner-section {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.banner-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.banner-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.banner-carousel img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.dots {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: #333;
}
#carousel {
  border-radius: 12px;
  overflow: hidden; /* Needed for curved edges to apply */
}

#carousel picture, 
#carousel img {
  width: 100%;
  height: auto;
  border-radius: 12px; /* Slightly curved corners */
  object-fit: cover;
}
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-height: 200px; /* Smaller height */
  border-radius: 12px; /* Slight curve */
}

.carousel-item img {
  width: 100%;
  height: 200px; /* Limit height */
  object-fit: cover;
  border-radius: 12px;
}
/* General */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-height: 200px;
  overflow: hidden;
  border-radius: 12px;
}

/* Carousel track for horizontal scroll */
.carousel-track {
  display: flex;
  width: fit-content;
  animation: scroll 8s linear infinite;
}

/* Images */
.carousel-img {
  width: 100vw;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

/* Hide mobile/desktop banners based on screen */
.desktop {
  display: none;
}
.mobile {
  display: block;
}

@media (min-width: 768px) {
  .desktop {
    display: block;
  }
  .mobile {
    display: none;
  }
}

/* Auto scroll animation */
@keyframes scroll {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-100vw); }
  100% { transform: translateX(0); }
}

/* Dots */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  opacity: 0.6;
  border-radius: 50%;
}

.dot.active {
  opacity: 1;
}
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  border-radius: 12px;
  height: 200px;
}

.carousel-track {
  display: flex;
  width: 200%; /* Two images side-by-side */
  animation: scrollSlides 6s linear infinite;
}

.carousel-img {
  width: 100vw;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 12px;
}

/* Mobile/Desktop image toggling */
.desktop {
  display: none;
}

.mobile {
  display: block;
}

@media (min-width: 768px) {
  .desktop {
    display: block;
  }

  .mobile {
    display: none;
  }
}

/* Smooth horizontal sliding animation */
@keyframes scrollSlides {
  0% { transform: translateX(0); }
  45% { transform: translateX(0); }
  55% { transform: translateX(-100vw); }
  100% { transform: translateX(-100vw); }
}

/* Dot navigation styling */
.dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #fff;
  opacity: 0.5;
  border-radius: 50%;
}

.dot.active {
  opacity: 1;
}
.section-bar {
  padding: 16px 0; /* was 8px 0 */
  margin: 24px auto 40px auto; /* slightly larger margin */
  max-width: 1000px; /* slightly wider */
}
.section-list .nav-item {
  min-width: 180px;       /* was 160px */
  padding: 24px 0;         /* was 18px 0 */
}

.section-list .nav-link {
  font-size: 1.5rem;       /* was 1.35rem */
  padding: 16px 0;         /* was 12px 0 */
}
@media (max-width: 600px) {
  .section-list {
    gap: 20px;             /* was 16px */
    padding: 12px 12px 0 12px;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

/* Mobile Navigation Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 60px 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.mobile-nav.hidden {
  transform: translateX(100%);
}

.mobile-nav a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  margin: 15px 0;
}
.blur {
  filter: blur(5px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 0 15px #000;
  width: 300px;
  text-align: center;
}

.modal-content input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
}

.modal-content button {
  padding: 10px 20px;
  background-color: #4CAF50;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}
