/* ===== Section ===== */
.video-banner {
  margin: 40px 0;
  position: relative;
  height: 500px;
}

@media (min-width: 768px) {
  .video-banner {
    height: 75vh;
  }
}

/* ===== Container ===== */
.video-banner .video-banner-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ===== Video ===== */
.video-banner .video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Overlay ===== */
.video-banner .video-overlay {
  position: absolute;
  inset: 0;
  background: black;
  pointer-events: none;
  z-index: 5;
}

/* ===== Content Wrapper ===== */
.video-banner .video-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.video-banner .content-wrapper {
  width: 60%;
  text-align: center;
}

@media (max-width: 768px) {
  .video-banner .content-wrapper {
    width: 95%;
  }
}

/* ===== Typography ===== */
.video-banner .content-wrapper h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
  color: var(--main-color);
}

@media (min-width: 768px) {
  .video-banner .content-wrapper h2 {
    font-size: 48px;
  }
}

.video-banner .content-wrapper p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--sub-color);
}

@media (min-width: 768px) {
  .video-banner .content-wrapper p {
    font-size: 20px;
  }
}

/* ===== Dark Mode ===== */
body.dark .video-banner .content-wrapper h2,
html.dark .video-banner .content-wrapper h2,
[data-theme="dark"] .video-banner .content-wrapper h2 {
  color: var(--main-color-dark);
}

body.dark .video-banner .content-wrapper p,
html.dark .video-banner .content-wrapper p,
[data-theme="dark"] .video-banner .content-wrapper p {
  color: var(--sub-color-dark);
}

/* ===== Mobile Vertical Position ===== */
.video-banner .video-position-mobile-top {
  align-items: flex-start;
}
.video-banner .video-position-mobile-center {
  align-items: center;
}
.video-banner .video-position-mobile-bottom {
  align-items: flex-end;
}

/* Reset on desktop */
@media (min-width: 768px) {
  .video-banner .video-position-mobile-top,
  .video-banner .video-position-mobile-center,
  .video-banner .video-position-mobile-bottom {
    align-items: center;
  }
}

/* ===== Desktop Horizontal Position (RTL aware) ===== */
@media (min-width: 768px) {
  [dir="rtl"] .video-banner .video-position-desktop-left {
    justify-content: flex-end;
  }
  [dir="rtl"] .video-banner .video-position-desktop-right {
    justify-content: flex-start;
  }

  [dir="ltr"] .video-banner .video-position-desktop-left {
    justify-content: flex-start;
  }
  [dir="ltr"] .video-banner .video-position-desktop-right {
    justify-content: flex-end;
  }

  .video-banner .video-position-desktop-center {
    justify-content: center;
  }
}

/* ===== Controls ===== */
.video-banner .video-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.3s ease;
}

.video-banner .opacity-hidden {
  opacity: 0;
}

.video-banner .video-controls button:not(.hidden) {
  display: flex;
}

.video-banner .video-controls button {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: transform 0.3s;
}

.video-banner .video-controls button:hover {
  transform: scale(1.1);
}

.video-banner .hidden {
  display: none;
}

.video-banner .video-controls svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary-color);
}

@media (min-width: 768px) {
  .video-banner .video-controls svg {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.video-banner .video-container {
  display: flex;
  width: fit-content;
  align-items: center;
  overflow-x: hidden;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  margin-bottom: 43px;
}
.video-banner .video-banner-timer {
  --color-countdown: #ffffff;
}

.video-banner .product-item-wrapper {
  padding-inline: 17px;
}

.video-banner .product-item {
  display: flex;
  align-items: stretch;
  background: #ffffff8f;
  padding-block: 18px;
  padding-inline-start: 12px;
  padding-inline-end: 30px;
  position: relative;
}

.dark .video-banner .product-item {
  border-color: var(--product-color-dark);
}

.video-banner .product-image-wrapper {
  width: 81px;
  height: 81px;
  background-color: white;
  flex-shrink: 0;
}

.video-banner .product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-banner .product-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: start;
  gap: 13px;
}

.video-banner .product-name {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  color: inherit;
  font-weight: 400;
  color: var(--product-color);
}

.dark .video-banner .product-name {
  color: var(--product-color-dark);
}

@media (max-width: 768px) {
  .video-banner .product-name {
    font-size: 12px;
  }
}

.video-banner .product-info .product-card-rating {
  height: fit-content;
  flex-direction: row;
}

.video-banner .product-info .product-card-rating .icon-star1:before {
  color: black;
}

@media (max-width: 768px) {
  .video-banner .product-info .product-card-rating .icon-star1,
  .video-banner .product-info .product-card-rating .icon-half-star {
    font-size: 11px;
  }
}

.video-banner .product-item .add-to-card-wrapper {
  position: static;
  align-self: end;
}

.video-banner .product-details {
  width: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
}

.video-banner .section-product-price {
  display: none;
}

.video-banner .product-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  bottom: 8px;
  left: 8px;
}
.video-banner .product-category {
  color: var(--product-color);
}
