/* Estilos generales */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #ff6b6b;
  --dark-color: #333;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --border-radius: 4px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}



/* Product detail section */
.product-detail {
  padding: 40px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Product gallery styles */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.main-image {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
}

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

.thumbnail-container {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.thumbnail:hover {
  border-color: var(--primary-color);
}

.thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color);
}

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

/* Product info styles */
.product-title {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 15px;
}

.product-sku {
  color: var(--gray-color);
  font-size: 14px;
}

.product-stock {
  color: var(--gray-color);
  font-size: 14px;
}

.product-stock strong {
  color: var(--dark-color);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
}

.stars {
  color: var(--warning-color);
}

.rating-value {
  font-weight: 600;
}

.review-count, .sales-count {
  color: var(--gray-color);
  font-size: 14px;
}

.product-price {
  margin: 20px 0;
}

.current-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
}

.product-description {
  margin-bottom: 25px;
}

.product-description p {
  margin-bottom: 15px;
  color: var(--gray-color);
}

.features-list {
  margin-top: 15px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.features-list i {
  color: var(--success-color);
}

/* Product actions */
.product-main-actions {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}

.btn-add-to-cart,
.btn-buy-now {
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-add-to-cart {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-to-cart:hover {
  background-color: #123a45;
}

.btn-buy-now {
  background-color: #f39325;
  color: white;
}

.btn-buy-now:hover {
  background-color: #f6ae31
}

/* Quantity selector */
.option-quantity {
  margin-bottom: 20px;
}

.option-quantity label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  width: fit-content;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  color: var(--dark-color);
  font-size: 14px;
  transition: var(--transition);
}

.quantity-btn:hover {
  background-color: #ddd;
}

.quantity-selector input {
  width: 52px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--light-gray);
  border-right: 1px solid var(--light-gray);
  outline: none;
  font-size: 1rem;
  font-weight: 600;
}

.quantity-selector input[readonly] {
  background: #fff;
  -moz-appearance: textfield;
}

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

.qty-btn,
.quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 400;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.qty-btn:hover,
.quantity-btn:hover {
  background: #0A2B32;
  color: #fff;
}

.option-quantity--styled .option-quantity-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}

.option-quantity--styled .quantity-selector {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Shipping info */
.product-shipping {
  margin-top: 30px;
  padding: 15px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
}

.shipping-info,
.delivery-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.shipping-info i,
.delivery-info i {
  color: var(--primary-color);
  font-size: 18px;
}

/* Reviews section */
.product-reviews {
  padding: 40px 0;
  border-top: 1px solid var(--light-gray);
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.reviews-header h3 {
  font-size: 24px;
  color: var(--dark-color);
}

.overall-rating {
  display: flex;
  gap: 40px;
}

.rating-summary {
  text-align: center;
}

.average-rating {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-color);
}

.total-reviews {
  color: var(--gray-color);
  font-size: 14px;
}

.rating-bars {
  width: 250px;
}

.rating-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rating-bar span:first-child {
  width: 70px;
  font-size: 14px;
  color: var(--gray-color);
}

.bar-container {
  flex: 1;
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background-color: var(--warning-color);
}

.rating-bar span:last-child {
  width: 30px;
  text-align: right;
  font-size: 14px;
  color: var(--gray-color);
}

/* Review form */
.review-form {
  background-color: var(--light-gray);
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 40px;
}

.review-form h4 {
  margin-bottom: 20px;
  font-size: 18px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.rating-input {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rating-input input {
  display: none;
}

.rating-input label {
  cursor: pointer;
  color: #ddd;
  font-size: 24px;
  margin: 0;
  transition: var(--transition);
}

.rating-input input:checked~label,
.rating-input label:hover,
.rating-input label:hover~label {
  color: var(--warning-color);
}

.rating-input input:checked+label {
  color: var(--warning-color);
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: var(--transition);
}

.review-form textarea {
  resize: vertical;
  min-height: 100px;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.btn-submit-review {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.btn-submit-review:hover {
  background-color: #47596b;
}

/* Reviews list */
.reviews-list h4 {
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--light-gray);
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-name {
  font-weight: 600;
}

.review-date {
  color: var(--gray-color);
  font-size: 14px;
}

.review-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.review-text {
  color: var(--gray-color);
}

/* Sección reseñas en detalle de producto */
.product-reviews-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
}

.product-reviews-title {
  font-size: 1.35rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-reviews-title i {
  color: var(--warning-color);
  margin-right: 0.35rem;
}

.review-form {
  background: var(--light-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  max-width: 560px;
}

.review-form-row {
  margin-bottom: 1rem;
}

.review-form-row label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--dark-color);
}

.review-form-row input,
.review-form-row select,
.review-form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.btn-submit-review {
  padding: 0.65rem 1.25rem;
  background: var(--primary-color);
  color: #fff;
  border-radius: var(--border-radius);
  font-weight: 600;
  margin-top: 0.5rem;
}

.btn-submit-review:hover {
  opacity: 0.9;
}

.review-login-prompt {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.review-login-prompt a {
  color: var(--primary-color);
  text-decoration: underline;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review-item {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
}

.review-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.review-stars {
  color: var(--warning-color);
}

.review-author {
  font-weight: 600;
  color: var(--dark-color);
}

.review-date {
  font-size: 0.9rem;
  color: var(--gray-color);
  margin-left: auto;
}

.review-item-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--dark-color);
}

.review-item-comment {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.review-empty {
  color: var(--gray-color);
  padding: 1.5rem;
  text-align: center;
}

.review-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.review-pagination a {
  padding: 0.5rem 1rem;
  background: var(--light-color);
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  color: var(--primary-color);
}

.review-pagination a:hover {
  background: var(--light-gray);
}

.review-pagination-current {
  font-size: 0.9rem;
  color: var(--gray-color);
}


/* —— Ficha de producto (MUXDRY): acciones, compartir, info, reseñas —— */
:root {
  --pd-brand: #0A2B32;
  --pd-accent: #c75a28;
  --pd-muted: #64748b;
}

.pd-section-h {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pd-brand);
  margin: 0 0 0.65rem 0;
  letter-spacing: 0.02em;
}

.pd-desc-block {
  margin: 1.25rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e8ecf0;
}

.pd-desc-prose {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
}

.pd-desc-prose p {
  margin-bottom: 0.75rem;
}

.pd-desc-prose p:last-child {
  margin-bottom: 0;
}

.review-count-link {
  color: var(--pd-muted);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.review-count-link:hover {
  color: var(--pd-brand);
  border-bottom-color: rgba(10, 43, 50, 0.35);
}

.pd-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.pd-qty-wrap {
  margin-bottom: 0 !important;
}

/* Misma altura que los botones: control de cantidad alineado con CTAs */
.pd-cart-form .quantity-selector {
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
}

.pd-cart-form .qty-btn {
  width: 44px;
  min-height: 48px;
  height: 100%;
  box-sizing: border-box;
}

.pd-cart-form .quantity-input {
  min-height: 48px;
  height: 100%;
  box-sizing: border-box;
}

.pd-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  align-items: stretch;
}

.pd-actions-btns .btn-add-to-cart,
.pd-actions-btns .btn-buy-now {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 200px;
  width: auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.1s;
}

.pd-actions-btns .btn-add-to-cart {
  background: var(--pd-brand);
  color: #fff;
}

.pd-actions-btns .btn-add-to-cart:hover {
  filter: brightness(1.06);
}

.pd-actions-btns .btn-buy-now {
  background: #fff;
  color: var(--pd-brand);
  border: 2px solid var(--pd-brand);
}

.pd-actions-btns .btn-buy-now:hover {
  background: #f8fafc;
}

.pd-compare-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid #e8ecf0;
  border-bottom: 1px solid #e8ecf0;
}

.pd-compare-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pd-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.pd-compare-link:hover {
  text-decoration: underline;
}

.pd-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pd-share-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pd-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pd-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.pd-share-btn i {
  line-height: 1;
}

.pd-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Marcas actuales (2024–2026): WhatsApp, Instagram, Meta/Facebook, X */
.pd-share-wa { background: #25d366; }
.pd-share-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.pd-share-fb { background: #0866ff; }
.pd-share-x { background: #000000; }

.pd-trust-line {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin: 1rem 0 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f1f5f9;
  border-radius: 8px;
  border-left: 3px solid var(--pd-accent);
}

.pd-trust-line i {
  color: var(--pd-brand);
  margin-right: 0.35rem;
}

.pd-info-lines {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pd-info-line {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eef2f6;
}

.pd-info-line:last-child {
  border-bottom: none;
}

.pd-info-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0f4f8;
  color: var(--pd-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.pd-info-text strong {
  display: block;
  font-size: 0.92rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.pd-info-text span {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
}

.pd-info-text a {
  color: var(--pd-brand);
  font-weight: 600;
}

.pd-pay-footnote {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}

.pd-pay-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.pd-pay-tags {
  font-size: 0.88rem;
  color: #475569;
}

/* Reseñas — layout empresarial */
.pd-reviews-enterprise {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e2e8f0;
}

.pd-reviews-head {
  margin-bottom: 1.5rem;
}

.pd-reviews-h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--pd-brand);
  margin: 0 0 0.35rem 0;
}

.pd-reviews-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--pd-muted);
}

.pd-reviews-grid {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.pd-reviews-summary {
  text-align: center;
  padding: 1.25rem 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.pd-reviews-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.pd-reviews-stars {
  color: #f59e0b;
  margin: 0.5rem 0 0.35rem;
  font-size: 1rem;
}

.pd-reviews-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--pd-muted);
}

.pd-review-form {
  max-width: 100%;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}

.pd-review-form .review-form-row label {
  font-size: 0.88rem;
}

.pd-opt {
  font-weight: 400;
  color: #94a3b8;
}

.pd-review-list .pd-review-entry {
  border: none;
  border-left: 3px solid var(--pd-brand);
  padding: 1.1rem 1rem 1.1rem 1.15rem;
  background: #fafbfc;
  border-radius: 0 8px 8px 0;
}

.pd-review-empty {
  text-align: left;
  padding: 1rem 0;
}

.pd-review-login {
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .pd-reviews-grid {
    grid-template-columns: 1fr;
  }

  .pd-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-actions-btns {
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .pd-actions-btns .btn-add-to-cart,
  .pd-actions-btns .btn-buy-now {
    max-width: none;
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 140px;
  }

  .pd-compare-share {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Responsive styles */
@media (max-width: 992px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .main-image {
    height: 400px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .product-main-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-add-to-cart,
  .btn-buy-now {
    width: 100%;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .product-detail {
    padding: 24px 0;
  }

  .main-image {
    height: 320px;
  }

  .thumbnail-container {
    flex-wrap: wrap;
  }

  .thumbnail {
    width: 70px;
    height: 70px;
  }

  .product-title {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .product-meta {
    gap: 8px 10px;
    margin-bottom: 10px;
  }

  .quantity-selector {
    min-height: 38px;
  }

  .qty-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .quantity-input {
    width: 44px;
    font-size: 0.95rem;
  }

  .current-price {
    font-size: 1.5rem;
  }

  .header-top {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .search-container {
    width: 100%;
    margin: 15px 0;
  }

  .user-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-container {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .overall-rating {
    flex-direction: column;
    gap: 20px;
  }

  .partners-logos {
    flex-direction: column;
    gap: 30px;
  }

  .divider {
    width: 80px;
    height: 1px;
  }
}

@media (max-width: 576px) {
  .product-main-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}