/*--------CSS RESET--------*/
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure text areas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

/*--------CSS RESET--------*/
body {
  margin: 0;
  padding: 0;
  font-family: Arial; 
  background: #fff;
    display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 20px;
}

.product-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
;}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-title {
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
}

.product-price {
  font-size: 14px;
  display: flex;
  gap: 10px;
  color: #000000;
}

.product-sale-price {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  padding-left: 4px;
  padding-right: 5px;
  background-color: #e90000;
}

.old-price {
  text-decoration: line-through;
  color: #888;
}

.load-more-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

#load-more-btn {
  width: 35%;
  padding: 14px;
  display : block;
  margin: 15px auto;
  border: none;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 16px;
}

@media (max-width: 768px){
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

.product-price {
  font-size: 10px;
  color: #000000;
}

.product-sale-price {
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  padding-left: 4px;
  padding-right: 5px;
  background-color: #e90000;
}

.product-title {
  font-size: 10px;
}
}

/*BANNER SLIDE EFFECT*/

.banner-container {
  width: 100%;
  height: auto;
  overflow: hidden;
  position: relative;
  margin: 20px 0;
}

.banner-slider {
  display: flex;
  width: 600%; /* 6 images × 100% each */
  height: auto;
  animation: scroll 40s ease-in-out infinite;
}

.banner-slider img {
  width: 16.6666%; /* Each image is 16.67% of the slider (6 images total) */
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.banner-slider a {
  width: 16.6666%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
}

.banner-slider a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Infinite scrolling animation with slide effect and pauses */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  12.5% {
    transform: translateX(-16.6666%);
  }
  16.6666% {
    transform: translateX(-16.6666%);
  }
  29.1666% {
    transform: translateX(-33.3333%);
  }
  33.3333% {
    transform: translateX(-33.3333%);
  }
  45.8333% {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(-50%);
  }
  62.5% {
    transform: translateX(-66.6666%);
  }
  66.6666% {
    transform: translateX(-66.6666%);
  }
  79.1666% {
    transform: translateX(-83.3333%);
  }
  83.3333% {
    transform: translateX(-83.3333%);
  }
  95.8333% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0);
  }
}
.toast {
  pointer-events: auto;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  font-size: 13px;
  white-space: nowrap;
  transform: translateY(8px) translateX(-50%);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
  z-index: 9999;
}

/* visible state */
.toast.show {
  transform: translateY(0) translateX(-50%);
  opacity: 1;
}