/* Product Details Page Styles */

/* Product Images Section */
.product-images-container {
  position: sticky;
  top: 60px;
}

.main-image-wrapper {
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

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

.thumbnail-images {
  margin-top: 15px;
}

.thumbnail-image {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.thumbnail-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.thumbnail-image.active {
  border-color: #ff4c3b;
}

.thumbnail-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Product Details Section */
.product-details {
  padding: 0 15px;
}

.product-title {
  font-size: 24px;
  font-weight: 700;
  color: #212529;
  margin-bottom: 10px;
}

.product-rating {
  margin-bottom: 15px;
}

.product-rating i {
  color: #ffc107;
}

.rating-count {
  color: #e73c2a;
  font-size: 14px;
  margin-left: 5px;
  font-weight: 500;
}

.product-description {
  color: #000;
  margin-bottom: 20px;
  font-weight: 500;

  line-height: 1.6;
}

.option-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #000;
}

/* Container */
.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.size-options .form-check-inline{
  margin-right: 0;
  padding-left:0 ;
}
/* Hide default radio */
.size-options .form-check-input {
  display: none;
}

/* Custom button style */
.size-options .form-check-label {
  display: inline-block;
  padding: 10px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
  min-width: 70px;
  text-align: center;
}

/* Hover effect */
.size-options .form-check-label:hover {
  border-color: #ff4c3b;
  color: #ff4c3b;
}

/* Checked (active) style */
.size-options .form-check-input:checked + .form-check-label {
  background-color: #ff4c3b;
  border-color: #ff4c3b;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}


/* Color Options */

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

/* Hide native radio */
.color-options .form-check-input {
  display: none;
}

/* Circles */
.color-options .color-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
}
.color-options .form-check-inline{
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
}
/* Hover glow */
.color-options .form-check-label:hover .color-circle {
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(8, 32, 168, 0.3);
}

/* Active selection with ring */
.color-options .form-check-input:checked + .form-check-label .color-circle {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2E3191; 
}

/* Colors */
.blue { background-color: #0d6efd; }
.green { background-color: #198754; }
.yellow { background-color: #ffc107; }
.silver { background-color: #adb5bd; }


/* Quantity Selector */
/* Quantity Container */
.quantity-selector {
  display: flex;
  align-items: center;
  max-width: 153px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Buttons */
.quantity-selector .btn-quantity {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2E3191;
  border: none;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-selector .btn-quantity:hover {
  background-color: #ff4c3b;
  color: #fff;
}

.quantity-selector .btn-quantity:disabled {
  background-color: #e9ecef;
  color: #aaa;
  cursor: not-allowed;
}

/* Input */
.quantity-container #mobile-quantity {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  height: 45px;
  outline: none;
}
/* Remove arrows (spin buttons) from number input */
.quantity-container #mobile-quantity::-webkit-outer-spin-button,
.quantity-container #mobile-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-container #mobile-quantity {
  -moz-appearance: textfield; /* For Firefox */
}


.quantity-container #quantity {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  height: 45px;
  outline: none;
}
/* Remove arrows (spin buttons) from number input */
.quantity-container #quantity::-webkit-outer-spin-button,
.quantity-container #quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-container #quantity {
  -moz-appearance: textfield; /* For Firefox */
}

/* Accordion Styles */

/* Accordion Wrapper */
.accordionPro .accordion-item {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #fff;
  transition: all 0.3s ease;
}

.accordionPro .accordion-item:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

/* Accordion Header Button */
.accordionPro .accordion-button {
  font-weight: 600;
  font-size: 16px;
  padding: 16px 20px;
  background: #fff;
  color: #333;
  transition: all 0.3s ease;
  border: none;
  position: relative;
}

/* Active (open) state */
.accordionPro .accordion-button:not(.collapsed) {
  background-color: #fdf3f2;
  color: #ff4c3b;
  box-shadow: none;
}

/* Remove default Bootstrap caret */
.accordionPro .accordion-button::after {
  display: none;
}

/* Custom Icons (Font Awesome) */
.accordionPro .accordion-button.collapsed::before,
.accordionPro .accordion-button::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  font-size: 14px;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Closed (plus icon) */
.accordionPro .accordion-button.collapsed::before {
  content: "\f067"; /* fa-plus */
  color: #666;
}

/* Open (minus icon) */
.accordionPro .accordion-button::before {
  content: "\f068"; /* fa-minus */
  color: #ff4c3b;
}

/* Focus outline fix */
.accordionPro .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

/* Accordion Body */
.accordionPro .accordion-body {
  padding: 18px 22px;
  font-size: 15px;
  color: #000;
  line-height: 1.6;
}

/* Specs List */
.accordionPro .specs-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.accordionPro .specs-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f1f1;
  font-size: 15px;
}

.accordionPro .specs-list li:last-child {
  border-bottom: none;
}


/* Price Card */
.product-price-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 60px;
}

.product-price-card .price-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.product-price-card .current-price {
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  margin-right: 10px;
}

.product-price-card .original-price {
  font-size: 18px;
  color: #6c757d;
  text-decoration: line-through;
  margin-right: 10px;
}

.product-price-card .discount-badge {
  background-color: #198754;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

.product-price-card .delivery-info {
  margin-bottom: 15px;
}

.product-price-card .delivery-option, .product-price-card .delivery-time {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: #212529;
}

.product-price-card .delivery-option i, .delivery-time i {
  margin-right: 8px;
  color: #ff4c3b;
}

.product-price-card .stock-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-weight: 500;
}

.product-price-card .stock-info i {
  margin-right: 8px;
}

.product-price-card .action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-price-card .btn-add-to-cart,.product-price-card .btn-buy-now {
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-add-to-cart {
  background-color: #f8f9fa;
  border: 1px solid #ff4c3b;
  color: #ff4c3b;
}

.btn-buy-now {
  background-color: #2E3191;
  border: 1px solid #2E3191;
  color: white;
}

.btn-add-to-cart:hover {
  background-color: #2E3191;
  color: white;
  transform: translateY(-3px);

}

.btn-buy-now:hover {
  background-color: #e73c2a;
  transform: translateY(-3px);

}

.btn-add-to-cart i, .btn-buy-now i {
  margin-right: 8px;
}

/* Mobile Carousel */
.product-mobile-carousel {
  margin-bottom: 70px; /* Space for fixed bottom bar */
}

.carousel-item img {
  border-radius: 10px;
  height: 300px;
  object-fit: contain;
  background-color: #f8f9fa;
}

.carousel-indicators {
  bottom: -40px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #dee2e6;
  opacity: 1;
}

.carousel-indicators button.active {
  background-color: #ff4c3b;
}

/* Mobile Fixed Bottom Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.btn-add-to-cart-mobile, .btn-buy-now-mobile {
  padding: 12px;
  border-radius: 5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-add-to-cart-mobile {
  background-color: #f8f9fa;
  border: 1px solid #ff4c3b;
  color: #ff4c3b;
}

.btn-buy-now-mobile {
  background-color: #2E3191;
  border: 1px solid #2E3191;
  color: white;
}

.btn-add-to-cart-mobile i, .btn-buy-now-mobile i {
  margin-right: 5px;
}


/* Responsive Styles */
@media (max-width: 991.98px) {
  .product-images-container {
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }
  
  .product-price-card {
    position: relative;
    top: 0;
    margin-top: 20px;
  }
  
  .main-image-wrapper {
    height: 300px;
  }
  
  .thumbnail-image {
    height: 60px;
  }
}

@media (max-width: 767.98px) {
 .product-details .product-title {
    font-size: 20px;
  }
  
 .product-details  .current-price {
    font-size: 24px;
  }
  
  .product-details .original-price {
    font-size: 16px;
  }
  
   .product-details .main-image-wrapper {
    height: 250px;
  }
  
  .product-details .thumbnail-image {
    height: 50px;
  }
}

.mobile-action-bar-pro-details {
  position: fixed;
  bottom: -2px;
  left: 0;
  right: 0;
  background-color: white;
  padding: 10px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Carousel Controls */
.product-mobile-carousel .custom-control {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(17, 14, 180, 0.5);
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.product-mobile-carousel.custom-control:hover {
  background: rgba(0, 0, 0, 0.8);
}

.product-mobile-carousel .carousel-control-prev-icon i,
.product-mobile-carousel .carousel-control-next-icon i {
  filter: invert(1);
  width: 20px;
  height: 20px;
}

/* Dots Styling */
.product-mobile-carousel .custom-indicators  button{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #e73c2a;
  margin: 0 6px;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.product-mobile-carousel .custom-indicators button.active {
  background-color: #2E3191; /* Primary color */
  width: 12px;
  height: 12px;
}
/* Review List */
.review-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.review-item:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.review-item .review-author {
  font-weight: 600;
  margin: 0;
  color: #ff4c3b;
}

.review-item .review-date {
  font-size: 14px;
  color: #2E3191;
}

.review-item .review-rating .star {
  color: #ffc107;
  margin-right: 2px;
}

.review-item .review-text {
  margin: 0;
  color: #000;
  font-size: 15px;
  line-height: 1.5;
}

/* Review Card */
.write-review {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 25px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

/* Title */
.write-review-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

/* Labels */
.write-review .form-label {
  font-weight: 500;
  margin-bottom: 6px;
  color: #444;
}

/* Inputs */
.write-review .review-input {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.write-review .review-input:focus {
  border-color: #ff4c3b;
  box-shadow: 0 0 0 3px rgba(255,76,59,0.2);
  outline: none;
}

/* Rating Stars */
.rating-input {
  display: flex;
  gap: 6px;
  margin: 5px 0 10px 0;
}

.rating-input .star-icon {
  font-size: 26px;
  color: #ccc;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.rating-input .star-icon:hover {
  transform: scale(1.2);
  color: #ff9800;
}

.rating-input .star-icon.selected {
  color: #ffc107;
}

/* Submit Button */
.review-submit {
  background: #ff4c3b;
  border: none;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.review-submit:hover {
  background: #e64434;
  transform: translateY(-2px);
}

.review-submit:active {
  transform: translateY(0);
}
