.product-detail {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}


.product-detail .product-image {
  background: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail .product-image a {
  display: block;
  width: 100%;
}

.product-detail .product-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
}


.product-detail .product-info {
  flex: 1;
  min-width: 0;
}


.product-detail .product-id {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


.product-detail .product-name {
  font-size: 1.875rem;
  font-weight: 400;
  color: #1f2937;
  line-height: 1.3;
  margin: 0 0 1rem 0;
}

.product-detail .product-name a {
  color: inherit;
  text-decoration: none;
}


.product-detail .product-description {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 2rem;
}


.product-detail .product-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}


.product-detail .quantity-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-detail .quantity-controls label {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  display: none; 
}

.product-detail .quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.product-detail .qty-btn {
  background: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: #374151;
  transition: background-color 0.2s ease;
}

.product-detail .qty-btn:hover {
  background-color: #f3f4f6;
}

.product-detail .qty-btn:active {
  background-color: #e5e7eb;
}

.product-detail .qty-input {
  width: 60px;
  height: 40px;
  border: none;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  appearance: textfield;
  -moz-appearance: textfield;
}

.product-detail .qty-input::-webkit-outer-spin-button,
.product-detail .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail .qty-input:focus {
  outline: none;
}


.product-detail .quantity-controls::after {
  content: 'Unidad';
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

.product-detail .btn-add-cart {
  background: #0EA5E9;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.product-detail .btn-add-cart:hover {
  background: #0284C7;
}

.product-detail .btn-add-cart:active {
  background: #115e59;
}

.product-detail .btn-add-cart svg {
  width: 18px;
  height: 18px;
}

.product-detail .btn-datasheet {
  background: #0EA5E9 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 0.75rem 2rem !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: background-color 0.2s ease !important;
  white-space: nowrap !important;
  text-decoration: none !important;
}

.product-detail .btn-datasheet:hover {
  background: #0284C7 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.product-detail .btn-datasheet:active {
  background: #0369a1 !important;
}

.product-detail .btn-datasheet svg {
  width: 18px !important;
  height: 18px !important;
  fill: #ffffff !important;
}


@media (max-width: 768px) {
  .product-detail { flex-direction: column; gap: 24px; }
  .product-detail .product-media { flex: 1 1 100%; max-width: 100%; }
  .product-detail .product-image { flex: 1 1 100%; max-width: 100%; padding: 1.5rem; }
  .product-detail .product-name { font-size: 1.5rem; }
  .product-detail .product-actions { flex-direction: column; align-items: stretch; gap: 1rem; }
  .product-detail .btn-add-cart { width: 100%; justify-content: center; }
  .product-detail .btn-datasheet { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .product-detail { margin: 1rem auto; }
  .product-detail .product-image { padding: 1rem; }
  .product-detail .product-name { font-size: 1.25rem; }
}

.product-detail .product-media {
  flex: 0 0 320px;
  max-width: 320px;
  display: flex;
  flex-direction: column; 
  gap: 12px;
}