body {
  font-family: "Poppins", sans-serif;
  background-color: #f8fafc;
  color: #334155;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-bg {
  background-image: url("./frozen-image.jpg");
  background-size: cover; /* Ensures the image covers the entire area without stretching */
  background-position: center; /* Centers the image within the container */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  background-attachment: fixed; /* Keeps the background fixed while content scrolls (good for desktop) */
  min-height: 500px; /* Minimum height for larger screens */
  min-height: 70vh; /* Minimum height as a percentage of viewport height for larger screens */
}

/* Media Query for Mobile Responsiveness */
@media (max-width: 768px) {
  /* Applies styles for screens 768px wide or smaller */
  .hero-bg {
    background-size: cover; /* Crucially, keep 'cover' here to prevent stretching on mobile */
    background-attachment: scroll; /* Change to 'scroll' for better performance/behavior on mobile */
    min-height: 300px; /* Adjust this value to control the height of the hero section on mobile */
    min-height: 50vh; /* Or use viewport height for mobile if preferred, adjust percentage */
  }
}

/* Optional: Even smaller screens (e.g., typical phones in portrait) */
@media (max-width: 480px) {
  .hero-bg {
    min-height: 250px; /* Further adjust height for very small screens */
    min-height: 40vh;
  }
}

.product-card {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  position: relative;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 2px;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0.75rem;
  padding: 2px;
  background: linear-gradient(45deg, #8155ba, #a580d6, #34d399);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
}
.product-card .product-content {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  border-radius: 0.7rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .product-content > div:first-child {
  width: 100%;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.product-card .product-content img {
  height: auto;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  display: block;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}
#category-tabs-container::-webkit-scrollbar {
  display: none;
}
#category-tabs-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #8155ba;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7640c2;
}
.strikethrough-price {
  text-decoration: line-through;
  color: #ef4444;
  font-weight: normal;
  margin-right: 8px;
  font-size: 0.9em;
}
.promo-tag {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: #ef4444;
  color: white;
  padding: 0.3rem 0.6rem;
  border-bottom-left-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateZ(0);
  white-space: nowrap;
  width: auto;
  text-align: initial;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}
.popup-content {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: translateY(10px) scale(0.95);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.popup-overlay.show .popup-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.popup-close-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.popup-close-button:hover {
  color: #334155;
  background-color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}
.popup-image {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#reseller-section {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.reseller-content {
  position: relative;
  z-index: 2;
  color: #334155;
}

.reseller-form-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.reseller-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .reseller-features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}
.reseller-feature-item {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  align-items: flex-start;
}
.reseller-feature-item i {
  color: #8155ba;
  font-size: 1.875rem;
  margin-right: 1rem;
  flex-shrink: 0;
}
.reseller-feature-item h3 {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}
.reseller-feature-item p {
  color: #64748b;
  font-size: 0.875rem;
}

@keyframes realisticFireFlicker {
  0%,
  100% {
    text-shadow: 0 0 6px #fffaaf, 0 0 12px #ffc828, 0 0 18px #ff8f00;
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
  25% {
    text-shadow: 0 0 4px #fffaaf, 0 0 8px #ffc828, 0 0 12px #ff8f00,
      0 0 16px #ff6600;
    opacity: 0.8;
    transform: translateY(-2px) scale(1.02);
  }
  50% {
    text-shadow: 0 0 7px #fffaaf, 0 0 14px #ffc828, 0 0 21px #ff8f00;
    opacity: 1;
    transform: translateY(1px) scale(0.98);
  }
  75% {
    text-shadow: 0 0 5px #fffaaf, 0 0 10px #ffc828, 0 0 15px #ff8f00,
      0 0 20px #ff4d00;
    opacity: 0.85;
    transform: translateY(-1px) scale(1.01);
  }
}

@keyframes fireMovement {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(8px, -8px) scale(1.07) rotate(3deg);
  }
  50% {
    transform: translate(-5px, 5px) scale(0.98) rotate(-2deg);
  }
  75% {
    transform: translate(3px, -3px) scale(1.03) rotate(1deg);
  }
}

@keyframes fireMovementReverse {
  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(-6px, 6px) scale(0.96) rotate(-4deg);
  }
  50% {
    transform: translate(4px, -4px) scale(1.04) rotate(2deg);
  }
  75% {
    transform: translate(-2px, 2px) scale(0.99) rotate(-1deg);
  }
}

footer.bg-primary-500 {
  background-color: #8155ba;
  color: white;
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer .container.text-center.relative.z-10 {
  position: relative;
  z-index: 10;
}

footer p.mb-2 {
  margin-bottom: 0.5rem;
}

.footer-credit {
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  color: #f8d7da;
  animation: realisticFireFlicker 1.5s infinite alternate;
}

footer .font-semibold {
  font-weight: 600;
}

footer .absolute {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 20%;
  filter: blur(2px);
}

footer .absolute:nth-child(2) {
  background: radial-gradient(circle at 35% 35%, #ffc107 10%, transparent 65%),
    radial-gradient(circle at 70% 70%, #ff9800 15%, transparent 70%),
    radial-gradient(circle at 50% 50%, #f44336 20%, transparent 75%);
  opacity: 0.5;
  animation: fireMovement 3s infinite alternate;
}

footer .absolute:nth-child(3) {
  top: auto;
  bottom: -20%;
  left: auto;
  right: -20%;
  transform: scale(1.2) rotate(20deg);
  background: radial-gradient(circle at 55% 45%, #ffea00 5%, transparent 55%),
    radial-gradient(circle at 40% 55%, #ff6d00 10%, transparent 65%);
  opacity: 0.6;
  filter: blur(3px);
  animation: fireMovementReverse 4s infinite alternate;
}

@keyframes loadingShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-card {
  background: #f0f0f0;
  background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
  background-size: 800px 104px;
  position: relative;
  animation: loadingShimmer 1.2s infinite forwards;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 320px;
}

.shimmer-card .shimmer-image {
  width: 100%;
  height: 160px;
  background-color: #e0e0e0;
  margin-bottom: 1rem;
}

.shimmer-card .shimmer-line {
  height: 1em;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 0.5em;
}

.shimmer-card .shimmer-line.long {
  width: 90%;
}

.shimmer-card .shimmer-line.medium {
  width: 70%;
}

.shimmer-card .shimmer-line.short {
  width: 40%;
}

#friday-promo-countdown {
  background: linear-gradient(135deg, #8155ba, #7640c2);
  border-color: rgba(255, 255, 255, 0.4);
}
#friday-promo-countdown .countdown-number {
  font-family: "Poppins", sans-serif;
  letter-spacing: 1px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
#friday-promo-countdown span[data-key] {
  font-family: "Inter", sans-serif;
}

.category-tab-button.active {
  background-color: #8155ba;
  color: white;
  box-shadow: 0 4px 10px rgba(129, 85, 186, 0.3);
  transform: translateY(-2px);
}
.category-tab-button:not(.active) {
  background-color: #e2e8f0;
  color: #64748b;
}
.category-tab-button:hover:not(.active) {
  background-color: #cbd5e1;
}

:root {
  --translate-y-start: 20px;
  --translate-x-start: 20px;
  --translate-x-left-start: -20px;
  --scale-start: 0.9;
}

.animate-on-scroll.opacity-0 {
  opacity: 0;
}
.animate-on-scroll.translate-y-start {
  transform: translateY(var(--translate-y-start));
}
.animate-on-scroll.translate-x-start {
  transform: translateX(var(--translate-x-start));
}
.animate-on-scroll.translate-x-left-start {
  transform: translateX(var(--translate-x-left-start));
}
.animate-on-scroll.scale-start {
  transform: scale(var(--scale-start));
}

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.auth-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.auth-modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  position: relative;
  transform: translateY(10px) scale(0.95);
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
.auth-modal-overlay.show .auth-modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.auth-modal-close-button {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.auth-modal-close-button:hover {
  color: #334155;
  background-color: rgba(255, 255, 255, 0.9);
  transform: rotate(90deg);
}

#product-list {
  min-height: 500px;
}

.shimmer-card .shimmer-image {
  background-color: #e0e0e0;
}
.shimmer-card .shimmer-line {
  background-color: #e0e0e0;
}

@media (min-width: 768px) {
  .header-content-wrapper {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }
  .header-right-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
  }
  .header-search-container {
    flex-grow: 1;
    max-width: 250px;
  }
}

@media (max-width: 767px) {
  /* Existing rules, ensure no conflict */
  .header-top-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .header-logo-and-menu {
    width: 100%;
    justify-content: space-between;
  }
  .header-right-group {
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  .header-search-container {
    width: 100%;
    max-width: 300px;
  }
  .header-language-switcher {
    width: 100%;
    max-width: 200px;
  }
}
