:root {
  /* Big Sale Theme Colors */
  --big-sale-bg-color: #fdfdfd;
  --big-sale-primary-color: #d6141d;
  --big-sale-accent-color: #012d5e;
  --big-sale-text-dark: #333333;
  --big-sale-text-light: #fdfdfd;

  /* Font Settings */
  --big-sale-font-family: "Oswald", sans-serif;
  --big-sale-font-size: 16px;
}

.hn-main-container {
  width: 100%;
  max-width: 1920px;
}

.big-sale-container {
  background-color: var(--big-sale-bg-color);
  color: var(--big-sale-text-dark);
  font-family: var(--big-sale-font-family);
  font-size: var(--big-sale-font-size);
}

.big-sale-content {
  max-width: 1260px !important;
  padding-top: 0;
  margin: 40px auto;
}

.big-sale-sub-banner {
  margin-bottom: 40px;
}

.shop-all-deals {
  text-align: center;
  margin-bottom: 40px;
  margin-top: 20px;
}
.shop-all-deals a {
  display: inline-block;
  background: var(--big-sale-accent-color);
  text-decoration: none;
  color: var(--big-sale-text-light);
  padding: 10px 15px;
  text-transform: uppercase;
  font-weight: bold;
  border-radius: 8px;
}

.big-sale-hr {
  border: 0;
  border-radius: 40%;
  height: 5px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--big-sale-primary-color), var(--big-sale-accent-color), var(--big-sale-primary-color), rgba(0, 0, 0, 0));
  margin: 40px 0;
}

.big-four-grid .big-sale {
  border-radius: 8px;
}
.big-four-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  margin-bottom: 30px;
}
.grid-item {
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.grid-item:hover,
.grid-item.active-default {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.grid-item a {
  text-decoration: none;
  display: block;
}
@media (max-width: 768px) {
  .big-four-grid {
    display: flex;
    overflow: hidden;
    padding: 20px 0;
    margin-bottom: 30px;
    flex-wrap: wrap;
  }
  .grid-item {
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    min-width: 300px;
  }
  .big-four-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
  }
}

/* Carousel */
.big-sale-categories-carousel {
  margin: 30px 0;
}
.big-sale-categories-carousel h3 {
  margin-bottom: 20px;
  font-size: 24px;
}
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 20px 0;
  user-select: none; /* Prevent text selection during drag */
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-track.dragging {
  scroll-behavior: auto; /* Disable smooth scrolling during drag */
}

.carousel-item:hover,
.carousel-item.active-default {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.carousel-item {
  flex: 0 0 auto;
  width: 200px;
  margin: 0 10px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(to right, transparent, var(--big-sale-accent-color), var(--big-sale-primary-color), var(--big-sale-accent-color), transparent) 1;
}

.carousel-item h4 {
  margin: 15px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}
.carousel-item h5 {
  font-size: 16px;
  font-weight: 600;
  color: rgb(255, 235, 0);
  background: #000000;
  line-height: 1.5;
  border-radius: 4px;
}
.carousel-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.carousel-item a:hover {
  text-decoration: none;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: 1px solid #ddd;
  color: #333;
  transition: all 0.3s ease;
}
.carousel-nav:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #00447a;
}
.carousel-nav:hover,
.carousel-nav:active {
  text-decoration: none;
}
.carousel-nav:focus {
  text-decoration: none;
  outline: none;
}
.carousel-nav::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
}
.carousel-nav.prev::before {
  border-width: 8px 12px 8px 0;
  border-color: transparent currentColor transparent transparent;
  margin-left: -2px;
}
.carousel-nav.next::before {
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
