/* ---------------------- */
/* Carousel Container      */
/* ---------------------- */

.vpc-swiper-container {
  width: 100%;
  padding: 20px 0;
  box-sizing: border-box;
  position: relative;
}

/* Slide item */
.vpc-slide {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Video Styling */
.vpc-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.vpc-video-wrapper:hover video {
  transform: scale(1.12);
}

/* Carousel overlay on video bottom */
.vpc-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);

  /* Glass effect */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Overlay Thumbnail */
.vpc-overlay-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px !important;
  margin-right: 10px;
  flex-shrink: 0;
}

.vpc-overlay-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vpc-overlay-title {
  font-weight: bold;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vpc-overlay-price {
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vpc-overlay-price del {
  color: #fff;
  margin-left: 6px;
  font-size: 11px;
}

/* -------------------------- */
/* Carousel Navigation Arrows */
/* -------------------------- */
.swiper-button-next,
.swiper-button-prev {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #cfb257;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px;
  color: #000;
}

@media (max-width: 768px) {
  .swiper-button-next,
  .swiper-button-prev {
    width: 32px;
    height: 32px;
    right: 5px;
    left: 5px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }
}

/* ---------------------- */
/* Modal Overlay Layer    */
/* ---------------------- */
.vpc-modal {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.vpc-modal.show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------- */
/* Modal Content          */
/* ---------------------- */
.vpc-modal-content {
  background: #fff;
  padding: 20px;
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.vpc-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 32px;
  cursor: pointer;
  color: red;
  font-weight: bold;
  display: none;
}

/* ---------------------- */
/* Popup Content Layout   */
/* ---------------------- */
.vpc-popup-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
}

.vpc-popup-images {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vpc-popup-main {
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.vpc-popup-main img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.vpc-popup-thumbnails {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
}

.vpc-popup-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.vpc-popup-thumbnails img.active,
.vpc-popup-thumbnails img:hover {
  border: 2px solid #cfb257;
}

/* Popup Details */
.vpc-popup-details {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.vpc-sale-badge {
  background: #d12a2a;
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: bold;
  max-width: fit-content;
}

.vpc-popup-title {
  font-size: 25px !important;
  margin: 20px 0 8px;
  font-weight: 800;
  color: #000 !important;
  font-family: 'Outfit', sans-serif !important;
}

.vpc-price {
  font-size: 20px;
  font-weight: bold;
  color: #cfb257;
  margin-bottom: 12px;
}

.vpc-price del {
  color: #777;
  font-size: 16px;
  margin-left: 6px;
}

.vpc-description {
  font-size: 14px;
  color: #444;
  margin-bottom: 50px;
}

/* ---------------------- */
/* Sticky Add-to-Cart Area */
/* ---------------------- */
.vpc-add-to-cart-sticky {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.vpc-add-to-cart-sticky form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Quantity and Add-to-Cart Button split 50/50 with their own rounded ends */
.vpc-add-to-cart-sticky .quantity {
  flex: 1 1 45%;
  max-width: 45%;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  padding: 10px 15px;
  box-sizing: border-box;
}

.vpc-add-to-cart-sticky .quantity input.qty {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #000;
}

.vpc-modal .quantity .plus,
.vpc-modal .quantity .minus {
  color: #000 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 22px !important;
  padding: 6px 10px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.vpc-modal .quantity input.qty {
  color: #000 !important;
  border: 1px solid #ccc !important;
  background: #fff !important;
  text-align: center;
  max-width: 60px;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 16px;
}

.vpc-add-to-cart-sticky button {
  flex: 1 1 45%;
  max-width: 45%;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.vpc-add-to-cart-sticky button:hover {
  background: #222;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vpc-popup-content {
    flex-direction: column;
  }

  .vpc-popup-images,
  .vpc-popup-details {
    flex: 1 1 100%;
  }

  .vpc-popup-thumbnails img {
    width: 50px;
    height: 50px;
  }

  .vpc-add-to-cart-sticky form {
    flex-direction: row;
    justify-content: center;
  }

  .vpc-add-to-cart-sticky .quantity,
  .vpc-add-to-cart-sticky button {
    flex: 1 1 45%;
    max-width: 45%;
  }
}

/* ---------------------- */
/* Popup Details Sticky Layout */
/* ---------------------- */
.vpc-popup-details {
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 80vh;
  overflow: hidden;
}

.vpc-popup-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 10px;
  z-index: 2;
  border-bottom: 1px solid #eee;
}

.vpc-description-scrollable {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 5px;
}

.vpc-add-to-cart-sticky {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  border-top: 1px solid #eee;
  z-index: 2;
}





.vpc-description-scrollable {
  height: 50px;
  overflow-y: auto;
  padding-right: 5px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .vpc-description-scrollable {
    height: 120px;  /* slightly smaller for mobile if you want */
  }
}