/* Variant Button Styles */
.variant-selection {
  margin: 15px 0;
}

.variant-title {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-btn {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  font-size: 14px;
  min-width: 60px;
  padding: 8px 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.variant-btn:hover {
  border-color: #ff7004;
  color: #ff7004;
}

.variant-btn.selected {
  background-color: #ff7004;
  border-color: #ff7004;
  color: #fff;
}

.variant-btn[disabled] {
  background-color: #f5f5f5;
  border-color: #ddd;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
  text-decoration: line-through;
}

/* Out of stock message styling */
.out-of-stock-message,
.out-of-stock-notice {
  color: red;
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
}

.disabled {
  background-color: #cccccc !important;
  border-color: #999999 !important;
  color: #666666 !important;
  cursor: not-allowed;
}

/* Consultation section styling */
.consultation-wrapper {
  background-color: #f8f8f8;
  border-radius: 5px;
  margin: 15px 0;
  padding: 15px;
}

.consultation-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.consultation-text i {
  color: #fb5d5d;
  font-size: 20px;
}

.phone-number {
  color: #fb5d5d;
  font-weight: 700;
  font-size: 16px;
}

.support-text {
  color: #666;
  font-size: 13px;
  font-style: italic;
}

/* Image lightbox styling */
#imageModal .modal-body {
  padding: 0;
}

#modalImage {
  max-height: 80vh;
  object-fit: contain;
}

/* Cart page styling */
.quantity-control {
  max-width: 120px;
  margin: 0 auto;
}

.quantity-control input {
  max-width: 50px;
}

.remove-item {
  font-size: 0.8rem;
  text-decoration: none;
}

.remove-item:hover {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .quantity-control {
    margin: 0;
  }
}

/* Product image sliders styles */
.product-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#main-slider {
  margin-bottom: 1rem;
  width: 100%;
}

#main-slider .splide__track {
  border-radius: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#main-slider .splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  aspect-ratio: 1/1; /* Force square aspect ratio */
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: #fff;
}

#main-slider .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Position the arrows inside the slider */
#main-slider .splide__arrows {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  left: 0;
}

#main-slider .splide__arrow {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s ease;
}

#main-slider .splide__arrow:hover {
  background: white;
  opacity: 1;
}

#main-slider .splide__arrow--prev {
  left: 15px;
}

#main-slider .splide__arrow--next {
  right: 15px;
}

/* Thumbnail slider */
#thumbnail-slider {
  margin-top: 10px;
  width: 100%;
  position: relative;
}

#thumbnail-slider .splide__track {
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
  box-shadow: none;
}

#thumbnail-slider .splide__list {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: none !important; /* Keep the list fixed in place */
}

#thumbnail-slider .splide__arrows {
  display: none; /* Hide arrows for thumbnail slider */
}

#thumbnail-slider .splide__slide {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  margin: 0 5px;
  flex-shrink: 0;
  aspect-ratio: 1/1; /* Force square aspect ratio for thumbnails */
}

#thumbnail-slider .splide__slide.is-active {
  opacity: 1;
  border-color: #fb5d5d;
  position: relative;
  z-index: 1;
}

#thumbnail-slider .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product detail page layout adjustments */
.product-details-area .product-details-content {
  padding-left: 15px;
}

/* Full width button in product details */
.pro-details-quality {
  width: 100%;
}

.cart-quantity-row {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.cart-plus-minus {
  width: 120px;
  flex-shrink: 0;
}

.pro-details-cart {
  flex-grow: 1;
}

.pro-details-cart .add-cart {
  width: 100%;
  margin-left: 0 !important;
  white-space: nowrap;
}

.pro-details-cart {
  width: 100%;
}

.pro-details-cart .add-cart {
  width: 100%;
  margin-left: 0 !important;
}

.pro-details-quality {
  flex-direction: column;
}

/* Product price styling */
.pricing-meta ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.pricing-meta li {
  list-style: none;
}

.new-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ff7004; /* Changed from #fb5d5d to #ff7004 */
  text-decoration: none; /* Ensure no strikethrough */
}

.old-price {
  text-decoration: line-through;
  color: #777;
  font-size: 1rem;
  font-weight: normal;
}

/* Override any existing strikethrough styles */
.pricing-meta .old-price.not-cut {
  text-decoration: none !important;
}

.pricing-meta .old-price.not-cut .new-price {
  text-decoration: none !important;
}

/* Discount tag styling */
.discount-tag {
  display: inline-flex;
  align-items: center;
  background-color: #007a58;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  height: 22px;
}

/* Product price display container */
.price-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

/* Quick description styling */
.quick-description {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  margin-bottom: 15px;
}

.quick-description h4 {
  margin-bottom: 8px;
}

.quick-description-content {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  overflow: hidden;
  max-height: none;
  position: relative;
}

.read-more-btn {
  color: #ff7004;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  margin-top: 8px;
  padding: 5px 0;
  position: relative;
  transition: all 0.3s ease;
}

.read-more-btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #ff7004;
  transition: width 0.3s ease;
}

.read-more-btn:hover {
  color: #e05a00;
  text-decoration: none;
}

.read-more-btn:hover:after {
  width: 100%;
}

.read-more-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateY(2px);
}

/* Product details and reviews block styling */
.product-details-block,
.product-reviews-block {
  background-color: #fff;
  border-radius: 5px;
  padding: 30px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.block-title {
  position: relative;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.block-title h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.product-reviews-block {
  margin-top: 50px;
}

/* Modify existing review styles to work with new block structure */
.review-wrapper {
  margin-top: 20px;
}

.ratting-form-wrapper {
  padding-left: 20px;
  margin-top: 20px;
}

@media (max-width: 991px) {
  .ratting-form-wrapper {
    padding-left: 0;
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .product-details-block,
  .product-reviews-block {
    padding: 20px;
  }

  .block-title h2 {
    font-size: 20px;
  }
}

/* Utility classes */
.pt-50 {
  padding-top: 50px !important;
}

@media (max-width: 767px) {
  .product-details-area .product-details-content {
    padding-left: 0;
    margin-top: 30px;
  }

  #main-slider .splide__slide {
    aspect-ratio: 1/1; /* Maintain square aspect ratio on mobile */
  }

  #main-slider .splide__arrow {
    width: 30px;
    height: 30px;
  }
}

/* Add Review Form Styling */
.add-review-section {
  background-color: #f8f8f8;
  border-radius: 5px;
  padding: 30px;
  margin-top: 20px;
}

.form-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.form-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #ff7004;
}

.rating-form-style {
  margin-bottom: 15px;
}

.rating-form-style input,
.rating-form-style textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.rating-form-style input:focus,
.rating-form-style textarea:focus {
  border-color: #ff7004;
  outline: none;
}

.rating-form-style textarea {
  min-height: 120px;
  resize: vertical;
}

.star-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.star-box span {
  font-weight: 500;
}

.rating-product i {
  color: #ffb800;
  font-size: 18px;
  cursor: pointer;
}

.form-submit button {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .add-review-section {
    padding: 20px;
  }
}

/* Product metrics styling */
.product-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-label {
  font-size: 14px;
  color: #666;
}

.metric-value {
  font-weight: 600;
  color: #333;
}

.metric-stars {
  display: flex;
  align-items: center;
}

.metric-stars i {
  color: #ffb800;
  font-size: 16px;
}

.category-selected {
  color: #ff7004 !important;
}
.order-wrapper {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
}

.table thead th {
  border-top: none;
  background-color: #f8f9fa;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.order-details-btn {
  transition: all 0.3s ease;
}

.empty-order-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Toast notification styles */
.custom-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 300px;
}

.custom-toast.show {
  opacity: 1;
}

.custom-toast.error {
  background-color: #dc3545;
}

/* Order items table styles */
.order-items-table td {
  vertical-align: middle;
}

.order-items-table .img-thumbnail {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.order-items-table a {
  text-decoration: none;
  color: #333;
}

.order-items-table a:hover {
  color: #ff7004;
}

/* Additional table alignment styles */
.table th,
.table td {
  vertical-align: middle;
}

.table th {
  text-align: center;
}

@media (max-width: 767px) {
  .table-responsive {
    overflow-x: auto;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
}
/* Button loading state styles */
#checkout-button.loading .btn-text {
  display: none;
}

#checkout-button.loading .btn-loading {
  display: inline-block !important;
}

#checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
/* Button loading state styles */
#checkout-button.loading .btn-text {
  display: none;
}

#checkout-button.loading .btn-loading {
  display: inline-block !important;
}

#checkout-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Button hover effect */
#checkout-button {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#checkout-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#checkout-button:hover:before {
  left: 100%;
}
.required {
  color: #e74c3c;
  font-weight: bold;
}

.is-invalid {
  border-color: #e74c3c !important;
}

.countdown-timer {
  font-size: 1.5rem;
  font-weight: bold;
  color: #dc3545;
}

.banking-instructions {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
}

.copy-btn:focus {
  box-shadow: none;
}

/* Button loading state styles */
#place-order-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

#place-order-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

#place-order-btn:hover:before {
  left: 100%;
}

#place-order-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Social Login Styles */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider-with-text span {
    margin: 0 10px;
    color: #777;
    font-size: 14px;
}

.social-button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    width: 250px;
    margin: 0 auto;
    border: 1px solid #ddd;
    background-color: white;
    transition: background-color 0.3s;
}

.google-btn:hover {
    background-color: #f8f9fa;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

.google-btn span {
    font-weight: 500;
}

/* Verification Alert Styles */
.verification-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.verification-message {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 450px;
    width: 90%;
}

.verification-message button {
    margin: 10px 5px;
    white-space: normal;
    word-wrap: break-word;
    height: auto;
    min-height: 38px;
    width: auto;
    min-width: 120px;
    padding: 8px 15px;
}
