/* Importing Google fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

:root {
    --shopee: #ee4d2d;
    --lazada: #0f146d;
    --tokopedia: #00aa5b;
    --tiktok: #000000;
}

//.wrapper {
  //max-width: 100%;
  //padding: 20px 10px;
  //margin: 0 20px 15px;
  //overflow: hidden;
//}

.wrapper .card {
  background: #fff;
  display: flex;
  height: auto;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.wrapper .card:hover {
  transform: translateY(-10px);
}

.card .card-image {
  position: relative;
}

.card .card-image img {
  width: 100%;
  padding: 10px;
  border-radius: 22px;
  object-fit: cover;

}

.card .card-image1 img {
  width: 100%;    
  padding: 6px;
  border-radius: 22px;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  display: absolute;
}

.card .card-image1 .card-tag {
  position: absolute;
  top: 25px;
  left: 25px;
  font-size: 0.6rem;
  color: #000000;
  padding: 5px 15px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.card .card-image .card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 0.6rem;
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 10px 10px;
}

.card .card-content .card-title {
  color: #111111;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 15px;
  font-family: 'Outfit', sans-serif;
}

.card-title-1 {
	text-align: center;
}

.card-title-1 h2 {
	font-size: 1.1rem;
	font-weight: 400;
	margin-top: -12px;
	text-transform: uppercase;
}

.card-title-1 h3 {
	font-size: 0.8rem !important;
	font-weight: 400;
}

.card .card-content .card-text {
  color: #747474;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card .card-footer {
  display: flex;
  margin-top: auto;
  align-items: center;
  padding-top: 15px;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.card .card-footer .card-profile {
  display: flex;
  align-items: center;
}

.card .card-profile .card-profile-info {
  display: flex;
  flex-direction: column;
}

.card .card-profile .card-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202020;
}

.card .card-profile .card-profile-role {
  font-size: 0.8rem;
  color: #7A7A7A;
}

.card .card-profile img {
  width: 35px;
  height: 35px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card .card-button {
  color: #fff;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 0.6rem;
  font-weight: 600;
  text-decoration: none;
  //background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
  margin: 2px;
}

.card .card-button.shopee { background-color: var(--shopee);}
.card .card-button.lazada { background-color: var(--lazada);}
.card .card-button.tokopedia { background-color: var(--tokopedia);}
.card .card-button.tiktok { background-color: var(--tiktok); }



.card .card-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3);
}








.wrapper .swiper-pagination-bullet {
  height: 15px;
  width: 15px;
  opacity: 1;
  overflow: hidden;
  position: relative;
  background: #B1B3F8;
}

.wrapper .swiper-pagination-bullet-active {
  background: #a4a7fd;
}

/* Auto-play loading indicator */
.wrapper .swiper-pagination-bullet-active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #6366f1;
  transform-origin: left center;
  transform: scaleX(0);
  animation: autoplay-loading 5s linear forwards;
}

.container:hover .wrapper .swiper-pagination-bullet-active::before {
  animation-play-state: paused;
}

@keyframes autoplay-loading {
  0% {
    transform: scaleX(0);
  }

  100% {
    transform: scaleX(1);
  }
}

.wrapper :where(.swiper-button-prev, .swiper-button-next) {
  color: #6366f1;
  margin-top: -35px;
  transition: all 0.3s ease;
}

.wrapper :where(.swiper-button-prev, .swiper-button-next):hover {
  color: #8b5cf6;
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {
  .wrapper {
    margin: 0 10px 25px;
  }

  .wrapper :where(.swiper-button-prev, .swiper-button-next) {
    display: none;
  }

}




.product-swiper.products-grid,
.product-swiper .swiper-wrapper {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
}

/* Ensure individual slides respect Swiper's width calculation */
.product-swiper .swiper-slide {
    width: auto !important;
    flex-shrink: 0 !important;
}




/* Container holding the title and slider controls */
.slider-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.slider-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 26px;
  text-transform: uppercase;
}

.slider-section p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 24px;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0; /* Space for overlay buttons */
}

/* Track containing cards */
.carousel-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: 16px;
  padding: 10px 0; /* Padding for hover card shadows */
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Individual Card Style */
.video-card {
  flex: 0 0 calc(25% - 12px); /* 4 cards on desktop */
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* Video Frame Container (Portrait 9:16 aspect ratio) */
.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #000;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills frame without distortion */
  display: block;
}

/* Card Footer Caption */
.card-footera {
  color: #fff;
  padding: 4px 2px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-wrap: wrap;
}

.card-footera h2 {
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    padding-top: 12px;
    margin-bottom: -2px;
}

.card-footera h3 {
    color: #ffffff;
    font-size: 14px;
    text-transform: lowercase;
    padding-top: -12px;
}

/* Ensure Navigation Buttons are Always Visible */
.navi-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
  display: flex !important; /* Force buttons to always show */
  opacity: 1 !important;    /* Force opacity */
  visibility: visible !important;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.navi-btn:hover {
  background: #111;
  border-color: #111;
}

.navi-btn:hover svg {
  fill: #fff;
}

.navi-btn.prev {
  left: 5px;
}

.navi-btn.next {
  right: 8px;
}

.navi-btn svg {
  width: 32px;
  height: 32px;
  fill: #111;
  transition: fill 0.25s ease;
}



/* Responsive Breakpoints */
@media (max-width: 992px) {
  .video-card { 
    flex: 0 0 calc(33.333% - 11px); /* 3 cards */
  } 
}

@media (max-width: 768px) {
  .video-card { 
    flex: 0 0 calc(50% - 28px); /* 2 cards */
  } 
  .swiper-slide { 
    flex: 0 0 100%;
  } 
  .navi-btn.prev { left: 0px; }
  .navi-btn.next { right: 0px; }
}

@media (max-width: 480px) {
  .video-card { 
    flex: 0 0 100%; /* Shows full card + peek of next card */
  } 
  .swiper-slide { 
    flex: 0 0 100%;
  } 
  .navi-btn.prev { 
    left: 5px; 
  }
  .navi-btn.next { 
    right: 5px; 
  }
}

.wrapper-video {
    padding-top: 10px;
}