/* ============================================
   PRODUCT IMAGE CAROUSEL & THUMBNAILS
   ============================================ */

/* Main carousel container */
.carousel-container {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
}

#productImagesCarousel .carousel-inner {
  border-radius: 16px;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

#productImagesCarousel .carousel-item img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  filter: brightness(0.98);
}

#productImagesCarousel .carousel-item img:hover {
  transform: scale(1.03);
  filter: brightness(1);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
  width: 45px;
  height: 45px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#productImagesCarousel:hover .carousel-control-prev,
#productImagesCarousel:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #b17a30;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 4px 12px rgba(177, 122, 48, 0.4);
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: #0a2734;
  transform: scale(1.1);
}

/* Thumbnail styles */
.thumbnail-wrapper {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 39, 52, 0.1),
    rgba(177, 122, 48, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.thumbnail-wrapper:hover::after {
  opacity: 1;
}

.thumbnail-img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #e9ecef;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-img:hover {
  border-color: #b17a30;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(177, 122, 48, 0.3);
}

.thumbnail-img.active {
  border-color: #0a2734;
  box-shadow: 0 0 0 3px rgba(10, 39, 52, 0.2);
  transform: scale(1.05);
}

/* ============================================
   PRODUCT DETAILS SECTION
   ============================================ */

.product-details-container {
  padding: 2.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a2734;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.price-original {
  font-size: 1.5rem;
  color: #6c757d;
  text-decoration: line-through;
  margin-right: 1rem;
}

.price-discount {
  color: #dc3545;
  position: relative;
}

.price-discount::after {
  content: "SALE";
  position: absolute;
  top: -8px;
  right: -50px;
  background: #dc3545;
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

/* Info alert */
.product-info-alert {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-left: 4px solid #2196f3;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.1);
}

.product-info-alert i {
  font-size: 1.5rem;
  color: #1976d2;
}

.product-info-alert span {
  color: #0d47a1;
  font-weight: 500;
}

/* Quantity selector */
.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-wrapper label {
  font-weight: 600;
  color: #0a2734;
  font-size: 1.1rem;
  margin: 0;
}

.quantity-wrapper input {
  border: 2px solid #0a2734;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.quantity-wrapper input:focus {
  outline: none;
  border-color: #b17a30;
  box-shadow: 0 0 0 3px rgba(177, 122, 48, 0.1);
}

/* Product meta information */
.product-meta-box {
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-meta-box h6 {
  margin-bottom: 0;
  color: #495057;
}

.product-meta-box strong {
  color: #0a2734;
}

/* Social icons */
.social-icons-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-whatsapp,
.social-icon-facebook,
.social-icon-instagram,
.social-icon-twitter,
.social-icon-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon-facebook {
  color: #1877f3 !important;
}

.social-icon-instagram {
  color: #e4405f !important;
}

.social-icon-twitter {
  color: #1da1f2 !important;
}

.social-icon-whatsapp {
  color: #25d366 !important;
}

.social-icon-linkedin {
  color: #0077b5 !important;
}

.social-icon-whatsapp:hover,
.social-icon-facebook:hover,
.social-icon-instagram:hover,
.social-icon-twitter:hover,
.social-icon-linkedin:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Product description */
.product-description {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.product-description h5 {
  color: #0a2734;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.product-description h5::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0a2734 0%, #b17a30 100%);
  border-radius: 2px;
}

.product-description p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #495057;
}

/* ============================================
   BUTTONS
   ============================================ */

.add-to-cart-btn,
.add-to-cart-btn-2 {
  position: relative;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #0a2734 0%, #164a66 100%);
  color: white;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #164a66 0%, #0a2734 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(10, 39, 52, 0.3);
}

.add-to-cart-btn-2 {
  background: linear-gradient(135deg, #25d366 0%, #1ebe58 100%);
  color: white;
}

.add-to-cart-btn-2:hover {
  background: linear-gradient(135deg, #1ebe58 0%, #25d366 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.add-to-cart-btn::before,
.add-to-cart-btn-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.add-to-cart-btn:hover::before,
.add-to-cart-btn-2:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   TABS (ADDITIONAL INFORMATION)
   ============================================ */

.nav-tabs {
  border-bottom: 3px solid #b17a30;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px 12px 0 0;
  padding: 0.75rem 1.5rem 0 1.5rem;
  margin-bottom: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-tabs .nav-link {
  color: #0a2734;
  font-weight: 600;
  border: none;
  border-radius: 12px 12px 0 0;
  margin-right: 8px;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem 2rem;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-tabs .nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0a2734 0%, #b17a30 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-tabs .nav-link.active::after {
  transform: scaleX(1);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  background: linear-gradient(90deg, #0a2734 0%, #b17a30 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(10, 39, 52, 0.2);
  transform: translateY(-2px);
}

.tab-content {
  background: #fff;
  border: 2px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #495057;
}

/* ============================================
   SERVICE REQUEST SECTION
   ============================================ */

.service-request-section {
  background: linear-gradient(135deg, #0a2734 0%, #164a66 50%, #b17a30 100%);
  border-radius: 20px;
  padding: 3rem 2rem;
  margin: 3rem 0;
  box-shadow: 0 8px 30px rgba(10, 39, 52, 0.3);
  position: relative;
  overflow: hidden;
}

.service-request-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.service-request-section h2 {
  color: white;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.service-request-section h5 {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.related-products-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0a2734;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.related-products-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #0a2734 0%, #b17a30 100%);
  border-radius: 2px;
}

.product-card {
  border: 2px solid #e9ecef;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: white;
  height: 100%;
}

.product-card:hover {
  border-color: #b17a30;
  box-shadow: 0 12px 40px rgba(177, 122, 48, 0.2);
  transform: translateY(-8px);
}

.product-img-hover {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-img-hover {
  transform: scale(1.1) rotate(2deg);
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a2734;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-card .card-footer {
  padding: 1rem 1.5rem;
  background: transparent;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.breadcrumb-item a {
  color: #0a2734;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #b17a30;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
  .product-details-container {
    padding: 2rem 1.5rem;
  }

  .product-title {
    font-size: 1.75rem;
  }

  .product-price {
    font-size: 1.75rem;
  }
}

@media (max-width: 767px) {
  .product-details-container {
    padding: 1.5rem 1rem;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .thumbnail-img {
    width: 70px;
    height: 70px;
  }

  .nav-tabs .nav-link {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
  }

  .tab-content {
    padding: 1.5rem 1rem;
  }

  .service-request-section {
    padding: 2rem 1rem;
  }

  .service-request-section h2 {
    font-size: 1.5rem;
  }

  .service-request-section h5 {
    font-size: 1rem;
  }

  .product-meta-box {
    padding: 1rem;
  }

  .social-icons-container {
    justify-content: center;
    margin-top: 1rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 575px) {
  .add-to-cart-btn,
  .add-to-cart-btn-2 {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .quantity-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .quantity-wrapper input {
    width: 100%;
  }
}
