/* Ficha de producto (producto.html). Portado de plantilla/assets/css/main.css (Product Details Section), sin reseñas, miniaturas, colores, tallas ni lista de deseos, que la plantilla no usa. */

.product-details .product-images {
  position: relative;
  margin-bottom: 2rem;
}

.product-details .product-images .main-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--surface-color);
}

.product-details .product-images .main-image-container .image-zoom-container {
  position: relative;
  width: 100%;
}

.product-details .product-images .main-image-container .image-zoom-container .main-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: crosshair;
}

@keyframes drift-fadeZoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drift-fadeZoomOut {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

.product-details .product-info {
  padding: 0 0.5rem;
}

@media (min-width: 992px) {
  .product-details .product-info {
      padding: 0 1rem;
    }
}

.product-details .product-info .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-details .product-info .product-meta .product-category {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-details .product-info .product-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
  color: var(--heading-color);
}

@media (min-width: 768px) {
  .product-details .product-info .product-title {
      font-size: 2rem;
    }
}

.product-details .product-info .product-price-container {
  display: flex;
  align-items: center;
}

.product-details .product-info .product-price-container .current-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--heading-color);
}

.product-details .product-info .product-price-container .original-price {
  font-size: 1.125rem;
  text-decoration: line-through;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-left: 0.75rem;
}

.product-details .product-info .product-short-description {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
}

.product-details .product-info .product-availability {
  display: flex;
  align-items: center;
}

.product-details .product-info .product-availability i {
  margin-right: 0.5rem;
}

.product-details .product-info .product-availability .stock-count {
  margin-left: 0.5rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.product-details .product-info .product-quantity .option-title {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.product-details .product-info .product-quantity .quantity-selector {
  display: flex;
  align-items: center;
  max-width: 150px;
}

.product-details .product-info .product-quantity .quantity-selector .quantity-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-details .product-info .product-quantity .quantity-selector .quantity-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.product-details .product-info .product-quantity .quantity-selector .quantity-btn.decrease {
  border-radius: 4px 0 0 4px;
}

.product-details .product-info .product-quantity .quantity-selector .quantity-btn.increase {
  border-radius: 0 4px 4px 0;
}

.product-details .product-info .product-quantity .quantity-selector .quantity-input {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  border-left: none;
  border-right: none;
  color: var(--default-color);
  background-color: var(--surface-color);
  font-size: 14px;
}

.product-details .product-info .product-quantity .quantity-selector .quantity-input:focus {
  border-color: var(--accent-color);
  outline: none;
}

.product-details .product-info .product-quantity .quantity-selector .quantity-input::-webkit-inner-spin-button,
.product-details .product-info .product-quantity .quantity-selector .quantity-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-details .product-info .product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.product-details .product-info .product-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.product-details .product-info .product-actions .btn i {
  margin-right: 0.5rem;
}

.product-details .product-info .product-actions .add-to-cart-btn {
  flex: 1;
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

.product-details .product-info .product-actions .add-to-cart-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), #000 10%);
  border-color: color-mix(in srgb, var(--accent-color), #000 10%);
}

.product-details .product-info .product-actions .buy-now-btn {
  flex: 1;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.product-details .product-info .product-actions .buy-now-btn:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

@media (max-width: 575px) {
  .product-details .product-info .product-actions {
      flex-direction: column;
      justify-content: center;
    }
}

.product-details .product-info .additional-info {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.product-details .product-info .additional-info .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.product-details .product-info .additional-info .info-item i {
  color: var(--accent-color);
  font-size: 1.125rem;
  margin-right: 0.75rem;
}

.product-details .product-info .additional-info .info-item span {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.product-details .product-details-tabs {
  margin-top: 3rem;
}

.product-details .product-details-tabs .nav-tabs {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 1.5rem;
}

.product-details .product-details-tabs .nav-tabs .nav-item {
  margin-bottom: -1px;
}

.product-details .product-details-tabs .nav-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: all 0.3s ease;
}

.product-details .product-details-tabs .nav-tabs .nav-link:hover {
  color: var(--accent-color);
}

.product-details .product-details-tabs .nav-tabs .nav-link.active {
  color: var(--accent-color);
  background-color: transparent;
  border-bottom: 2px solid var(--accent-color);
}

.product-details .product-details-tabs .tab-content {
  padding: 1rem 0;
}

.product-details .product-details-tabs .tab-content h2 {
  color: var(--heading-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.product-details .product-details-tabs .tab-content p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-details .product-details-tabs .tab-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-details .product-details-tabs .tab-content ul li {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.product-details .product-details-tabs .product-specifications .specs-group {
  margin-bottom: 2rem;
}

.product-details .product-details-tabs .product-specifications .specs-group h2 {
  margin-bottom: 1rem;
}

.product-details .product-details-tabs .product-specifications .specs-table .specs-row {
  display: flex;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.product-details .product-details-tabs .product-specifications .specs-table .specs-row:last-child {
  border-bottom: none;
}

.product-details .product-details-tabs .product-specifications .specs-table .specs-row .specs-label {
  width: 40%;
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--heading-color);
}

.product-details .product-details-tabs .product-specifications .specs-table .specs-row .specs-value {
  width: 60%;
  padding: 0.75rem 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

/* Ajustes de plantilla/assets/css/theme.css */
.product-details .product-details-tabs .nav-tabs .nav-link.active,
.product-details .product-details-tabs .nav-tabs .nav-link:hover {
  color: var(--color-accent-text);
  border-bottom-color: var(--color-accent);
}

.product-details .product-info .product-quantity {
  margin-bottom: 1.25rem;
}
