/* ============================================
   PRODUCT PAGE SPECIFIC STYLES
   ============================================ */

.view-cart-link {
  font-size: 0.85rem;
  opacity: 0.6;
  text-decoration: none;
  color: var(--bs-secondary);
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.view-cart-link:hover {
  opacity: 1;
}

.product-page {
  padding: 20px 0 30px;
  color: var(--bs-secondary-text-emphasis);
  font-family: 'Anta';
}

.product-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
  animation: fadeIn 0.4s ease;
  justify-items: center;
}

.product-gallery {
  background: var(--bs-body-bg);
  padding: 20px;
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  max-width: 570px;
  justify-self: center;
  min-width: 320px;
}

.main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--bs-border-radius);
  overflow: hidden;
  background: var(--bs-bg-soft);
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Thumbnail strip with arrows ---- */

.thumbnails-strip {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 12px;
}

.thumb-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--bs-primary);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-text-emphasis);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, opacity 0.15s;
  opacity: 0.7;
}

.thumb-arrow:hover {
  background: var(--bs-secondary-bg);
  opacity: 1;
}

.thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 8px;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnails img {
  flex-shrink: 0;
  width: 75px;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 15px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
  opacity: 0.65;
}

.thumbnails img:hover {
  opacity: 1;
}

.thumbnails img.active {
  opacity: 1;
  border-color: var(--bs-tertiary-color);
}

.product-info {
  background: var(--bs-body-bg);
  padding: 20px;
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  max-width: 600px;
  min-width: 320px;
  text-align: start;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.product-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 40px;
  margin-top: 40px;
  color: var(--bs-secondary);
  border-radius: 5px 5px 20px 20px;
  padding: 12px;
  text-align: center;
}

.product-info P {
  padding-left: 10px;
  padding-right: 10px;
}

.product-category {
  font-size: 0.9rem;
  color: var(--bs-emphasis-color)!important;
  margin-bottom: 6px;
  font-weight: bolder;
}

.product-price {
  font-size: 3em;
  font-weight: 700;
  color: var(--bs-secondary);
  margin-bottom: 12px;
}

.product-description {
  margin: 14px 0 20px;
  color: var(--bs-light)!important;
  line-height: 1.6;
}

.btn-wishlist {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  color: var(--bs-primary-bg-subtle);
  border: 1px solid var(--bs-primary-bg-subtle);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s ease;
  opacity: 0.85;
  box-shadow: 0 4px 4px rgba(var(--bs-primary-rgb), 0.45);
  width: 35px;
  height: 35px;
  background: radial-gradient(circle,var(--bs-primary) 25%, var(--bs-secondary) 74%);
}

.btn-wishlist:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 14px 23px rgba(var(--bs-primary-rgb), 0.45);
  scale: 1.1;
}

.btn-wishlist.active {
  background: var(--bs-light);
  border: 1px solid var(--bs-red);
  opacity: 1;
}

.add-btn {
  background: var(--bs-primary);
  color: var(--bs-light);
  border: 1px solid var(--bs-light-bg-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
  padding: 5px 12px;
  height: 42px;
  font-weight: 800;
}

.add-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 23px rgba(var(--bs-primary-rgb), 0.45);
}

.add-btn.active {
  background: var(--bs-red);
  color: var(--bs-light);
}

/* Image Modal */

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: var(--bs-light);
  cursor: pointer;
  z-index: 10000;
}

.modal-content-wrapper {
  width: 105%;
  max-width: 900px;
}

.modal-swiper-container {
  border-radius: 15px;
  width: 100%;
}

.modal-swiper-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 15px;
}

@media (max-width: 1000px) {
  .product-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .product-gallery, .product-info {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .thumbnails img {
    width: 62px;
  }
}

@media (max-width: 576px) {
  .thumb-arrow {
    width: 26px;
    height: 26px;
  }
}

.shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.shipping-badge-free {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  color: var(--bs-emphasis-color);
  width: 100%;
}

.shipping-badge-paid {
  background: var(--bs-light-bg-subtle);
  border: 1.5px solid var(--bs-border-color, #e5e7eb);
  color: var(--bs-emphasis-color);
  width: 100%;
}

[data-bs-theme="dark"] .shipping-badge-free {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--bs-emphasis-color);
  width: 100%;
}

[data-bs-theme="dark"] .shipping-badge-paid {
  background: rgba(255,255,255,0.05);
  border-color: rgba(129,13,13,0.1);
  color: var(--bs-emphasis-color);
  width: 100%;
}

.shipping-badge-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.shipping-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.shipping-badge-text strong {
  font-weight: 700;
  font-size: 0.9rem;
}

.shipping-badge-text small {
  font-size: 0.78rem;
  opacity: 0.8;
  margin-top: 1px;
}

.NPbadge {
  position: absolute;
  top: 15px;
  left: -55px;
  transform: rotate(-45deg);
  width: 180px;
  height: 30px;
  line-height: 30px;
  background: var(--bs-secondary);
  color: var(--bs-light-bg-subtle);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0px 0px 0px 4px rgba(255, 255, 255, 0.34);
  z-index: 5;
}

.NSbadge {
  position: absolute;
  top: 15px;
  left: -55px;
  transform: rotate(-45deg);
  width: 180px;
  height: 30px;
  line-height: 30px;
  background: var(--bs-secondary);
  color: var(--bs-body-bg);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0px 0px 0px 4px rgba(255, 255, 255, 0.34);
  z-index: 5;
}

.NPC-Badge {
  position: absolute;
  top: 16px;
  right: 60px;
  z-index: 11;
  color: var(--bs-body-bg);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 4px 4px rgba(var(--bs-primary-rgb), 0.45);
  border: 1px solid var(--bs-primary-bg-subtle);
  background: radial-gradient(circle,var(--bs-primary) 25%, var(--bs-secondary) 74%);
}

.NPB-Badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 23px rgba(var(--bs-primary-rgb), 0.45);
}

/* ============================================
   MODAL SWIPER — ONE IMAGE AT A TIME
   ============================================ */

/* Swiper CSS may not be loaded; these rules guarantee correct layout */

.modal-swiper-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.modal-swiper-container .swiper-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  align-items: center;
}

.modal-swiper-container .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-swiper-container .swiper-zoom-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.modal-swiper-container .swiper-zoom-container img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  user-select: none;
  -webkit-user-drag: none;
}

/* Pagination dots */

.modal-swiper-container .swiper-pagination {
  position: absolute;
  bottom: -28px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.modal-swiper-container .swiper-pagination-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  margin: 0 4px;
  cursor: pointer;
}

.modal-swiper-container .swiper-pagination-bullet-active {
  background: #fff;
}

/* ============================================
   MODAL NAVIGATION ARROWS (desktop only)
   ============================================ */

.product-gallery {
  width: 100%;
  max-width: 600px;
}

.mainSwiper {
  height: 500px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.thumbSwiper {
  height: 100px;
  box-sizing: border-box;
  padding: 10px 0;
}

.thumbSwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.4;
  cursor: pointer;
}

.thumbSwiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #000;
  border-radius: 4px;
}

.thumbSwiper img, .mainSwiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal Styling */

#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
}

.modalSwiper {
  width: 100%;
  height: 100%;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 10001;
}

.modal-nav-btn {
  --swiper-navigation-color: #ffffff;
  --swiper-navigation-size: 28px;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s;
  top: 50%;
  transform: translateY(-50%);
  color: gold!important;
}

.modal-nav-btn::after {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  display: none;
}

.modal-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.swiper-button-prev.modal-nav-btn {
  left: 12px;
}

.swiper-button-next.modal-nav-btn {
  right: 12px;
}

.swiper-button-prev .swiper-button-next {
  color: gold!important;
}

/* Hide arrows on touch screens / small screens — swipe handles it */

@media (max-width: 768px) {
  .modal-nav-btn {
    display: none !important;
  }
}

.NPbadge {
  position: absolute;
  top: 15px;
  left: -58px;
  transform: rotate(-45deg);
  width: 180px;
  height: 30px;
  line-height: 30px;
  background: var(--bs-secondary);
  color: var(--bs-light-bg-subtle);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: inset 0px 0px 0px 4px rgba(255, 255, 255, 0.34);
  z-index: 5;
}

.bdg-hdr {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: -26px;
  margin-bottom: 0;
  width: 100%;
  top: 30px;
}

