/* Product Detail Page Styles */

/* Product Detail Section */
.product-detail-section {
  padding: var(--spacing-xl) 0;
  padding-bottom: var(--section-padding);
}




.product-gallery-swiper-container {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.product-gallery-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light-1);
}

.product-gallery-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1 / 1;
}

.product-gallery-swiper .swiper-pagination {
  position: relative;
  margin-top: var(--spacing-md);
  text-align: center;
  min-height: 12px;
}

.product-gallery-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: var(--text-secondary);
  opacity: 0.5;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.product-gallery-swiper .swiper-pagination-bullet-active {
  background-color: var(--secondary-color);
  opacity: 1;
  transform: scale(1);
}

.main-product-info-sticky {
  max-width: 750px;
}

.product-gallery {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--bg-light-1);
}

.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-gallery:hover img {
  transform: scale(1.05);
}

.product-detail-images-row {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  padding-bottom: var(--spacing-sm);
}

.product-detail-image {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-light-1);
  transition: transform 0.3s ease;
}

.product-detail-image:hover {
  transform: translateY(-4px);
}

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

/* Sticky Product Info */
.product-info-sticky {
  position: sticky;
  top: 5rem;
  z-index: 10;
}

.product-info-section {
  background-color: var(--text-white);
  padding: var(--spacing-xl);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
}

/* Product Title Section */
.product-title-section {
  margin-bottom: var(--spacing-lg);
}

.product-brand {
  font-size: var(--font-size-xxl);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1;
}

.product-name {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0;
  line-height: 1.2;
}

/* Product Pricing Header */
.product-pricing-header {
  text-align: left;
  margin-bottom: var(--spacing-lg);
}

.product-price-original-header {
  font-size: var(--font-size-xxl);
  color: var(--text-color);
  text-decoration: line-through;
  margin-bottom: var(--spacing-xs);
}

.product-price-current {
  font-size: var(--font-size-xxxl);
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none !important;
  min-height: 3.75rem;
}

/* Product Description */
.product-description {
  margin-bottom: var(--spacing-lg);
}

.product-description h2 {
  font-size: var(--h3-font-size);
  font-weight: 400;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

.product-description-list {
  margin-bottom: 0;
}

.product-description p {
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
  font-size: var(--font-size-xxl);
  line-height: 1.4;
}

.product-description-list p:last-child {
  margin-bottom: 0;
}

.product-specifications .table {
  margin: 0px;
}

.product-specifications table {
  width: 100%;
}

.product-specifications table tbody {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);

  tr {
    display: flex;
    justify-content: flex-start;
    padding: var(--spacing-sm) 0;
    gap: 1rem;
    color: var(--text-color);
    font-size: var(--font-size-xxl);
    font-weight: 300;
  }

  tr:last-child {
    border-bottom: none;
  }
}

.specification-label {
  color: var(--text-color);
  font-size: var(--font-size-xxl);
  font-weight: 300;
}

.specification-value {
  color: var(--text-color);
  font-size: var(--font-size-xxl);
  font-weight: 300;
}

/* Delivery Options Sidebar */
.delivery-options-sidebar {
  margin-bottom: var(--spacing-lg);
}

.delivery-options-card {
  border: 2px solid var(--background-color-light);
  padding: var(--spacing-lg);
}

.delivery-options-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  min-height: 1rem;
}

.delivery-options-list {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: center;

  img {
    min-height: 100px;
    min-width: 110px;
  }
}

.delivery-option-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.delivery-option-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  border-radius: 50%;
  color: var(--text-white);
  font-size: 0.875rem;
}

.delivery-option-content {
  flex: 1;
}

.delivery-option-text {
  font-size: var(--font-size-sm);
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
}

.delivery-option-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.delivery-option-info i {
  width: 16px;
  height: 16px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 0.75rem;
}

/* Product Actions Main */
.product-actions-main {
  margin-top: var(--spacing-xl);
}

.product-gallery-section>div {
  margin-bottom: .5rem;
}

.product-gallery-section>div:last-child {
  margin-bottom: 0;
}

.product-gallery-section img {
  width: auto;
  margin: auto;
  max-height: 80vh;
  padding: 20px;
}

.product-gallery-section > div:first-child img {
  padding-top: 0;
}

.product-gallery-section > div:last-child img {
  padding-bottom: 0;
}

/* Product Actions (Legacy) */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-actions-main .btn {
  padding: var(--spacing-xs) .7rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: var(--font-size-xxl);
}

.tooltip {
  background-color: #fff;
}

.product-detail-section {
	.modal-content {
		padding: 1rem;
		border: none;

		.modal-header {
			border-bottom: none;

			h2 {
				margin-bottom: 0px;
				font-size: 1.6rem;
				width: 100%;
				text-align: center;
			}

      .btn-close:focus {
        box-shadow: none;
        outline: none;
      }
		}

		.modal-body form .form-group:last-child {
			margin-bottom: 0;
		}

		.modal-footer {
			border-top: none;
		}
	}
}

/* Responsive Design */
@media (max-width: 992px) {
  .product-info-sticky {
    position: static;
  }

  .product-pricing-header {
    display: flex;
    gap: 1rem;
  }

  .product-description p {
    font-size: var(--font-size-lg);
  }

  .product-specifications table tbody tr {
    font-size: var(--font-size-lg);
  }

  .specification-value {
    font-size: var(--font-size-lg);
  }

  .product-info-section {
    padding: var(--spacing-lg);
  }

  .product-brand {
    font-size: var(--font-size-xl);
  }

  .product-name {
    font-size: var(--font-size-lg);
  }

  .product-price-current {
    font-size: 1.75rem;
    min-height: 3.75rem;
  }
}

@media (max-width: 768px) {
  .product-info-section {
    padding: var(--spacing-md);
  }

  .product-brand {
    font-size: var(--font-size-lg);
  }

  .product-name {
    font-size: var(--font-size-md);
  }

  .product-price-current {
    font-size: 1.5rem;
    min-height: 2.75rem;
  }


  .specification-item {
    padding: var(--spacing-xs) 0;
  }

  .product-detail-image {
    width: 150px;
    height: 120px;
  }

  .product-detail-images-row {
    gap: var(--spacing-sm);
  }

  .delivery-options-card {
    padding: var(--spacing-md);
  }
}

@media (max-width: 576px) {
  .product-gallery {
    margin-bottom: var(--spacing-md);
  }

  .product-info-section {
    padding: var(--spacing-sm);
  }

  .product-title {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-sm);
  }

  .product-price {
    font-size: 1.25rem;
  }

  .product-price-original {
    font-size: 1rem;
  }

  .delivery-options {
    padding: var(--spacing-sm);
  }

  .product-actions .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-sm);
  }

  .product-detail-image {
    width: 120px;
    height: 100px;
  }

  .product-detail-images-row {
    gap: var(--spacing-xs);
  }
}

/* Accessibility */
.product-gallery:focus,
.product-detail-image:focus,
.product-actions .btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .product-info-sticky {
    position: static;
  }

  .product-actions {
    display: none;
  }
}

@media (min-width: 991px) {
  .product-detail-section {
    .container-fluid {
      padding-right: 30px;
    }
  }
}