/* =========================================================
   Amazon Single Product Display - Estilos (Versión 1 columna)
   ========================================================= */

.aspd-single-product {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==============================
   CONTENEDOR PRINCIPAL
   ============================== */
.aspd-product-container {
  display: flex;
  flex-direction: column; /* <<< ahora vertical */
  align-items: center;
  gap: 40px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Mantener mismo ancho en todos los bloques */
.aspd-product-images,
.aspd-product-description,
.aspd-product-info {
  width: 100%;
  max-width: 900px;
}
/* ==============================
   DESCRIPCIÓN (debajo de imágenes)
   ============================== */
.aspd-product-description {
  margin: 30px 0 10px 0;
  text-align: left;
  line-height: 1.6;
  color: #0f1111;
  background: #f9f9f9;
  padding: 20px 25px;
  border-radius: 8px;
}

.aspd-description-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f1111;
  border-bottom: 2px solid #e7e7e7;
  padding-bottom: 8px;
}

.aspd-product-description p {
  margin-bottom: 15px;
  line-height: 1.7;
}

/* ==============================
   IMÁGENES
   ============================== */
.aspd-product-images {
  width: 100%;
}

.aspd-main-image {
  width: 100%;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #f9f9f9;
}

.aspd-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.aspd-image-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.aspd-gallery-item {
  width: calc(20% - 8px);
  border: 2px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s;
}

.aspd-gallery-item:hover {
  border-color: #ff9900;
}

.aspd-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==============================
   INFORMACIÓN
   ============================== */
.aspd-product-info {
  flex: 1;
  text-align: center;
}

.aspd-product-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 15px 0;
  color: #0f1111;
}

.aspd-product-brand {
  margin-bottom: 10px;
  font-size: 14px;
}

.aspd-brand-label {
  color: #565959;
}

.aspd-brand-name {
  color: #007185;
  font-weight: 500;
}

/* ==============================
   VALORACIONES
   ============================== */
.aspd-product-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.aspd-stars {
  display: flex;
  gap: 2px;
}

.aspd-star {
  font-size: 20px;
}

.aspd-star-full {
  color: #ff9900;
}

.aspd-star-half {
  color: #ff9900;
  opacity: 0.5;
}

.aspd-star-empty {
  color: #ddd;
}

.aspd-rating-value {
  font-size: 14px;
  color: #0f1111;
  font-weight: 500;
}

.aspd-review-count {
  font-size: 14px;
  color: #007185;
}

/* ==============================
   DIVISORES
   ============================== */
.aspd-divider {
  border: none;
  border-top: 1px solid #e7e7e7;
  margin: 20px 0;
}

/* ==============================
   PRECIO
   ============================== */
.aspd-product-pricing {
  margin-bottom: 20px;
}

.aspd-discount-badge {
  display: inline-block;
  background: #cc0c39;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.aspd-price-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.aspd-current-price {
  font-size: 28px;
  font-weight: 600;
  color: #b12704;
}

.aspd-original-price {
  font-size: 16px;
  color: #565959;
  text-decoration: line-through;
}

.apd-prime-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

.apd-prime-badge-sprite {
    display: inline-block;
    width: 52px;
    height: 15px;
    background-image: url("https://images-na.ssl-images-amazon.com/images/G/01/AUIClients/AmazonUIBaseCSS-sprite_2x_weblab_AUI_100106_T1-4e9f4ae74b1b576e5f55de370aae7aedaedf390d._V2_.png");
    background-position: -192px -911px;
    background-size: 560px 938px;
    background-repeat: no-repeat;
}


/* ==============================
   BOTÓN DE COMPRA
   ============================== */
.aspd-product-actions {
  margin: 20px 0;
}

.aspd-buy-button {
  display: inline-block;
  background: #ff9900;
  color: #0f1111;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s;
  border: 1px solid #ff9900;
}

.aspd-buy-button:hover {
  background: #fa8900;
  border-color: #fa8900;
  color: #0f1111;
}

/* ==============================
   CARACTERÍSTICAS / ESPECIFICACIONES
   ============================== */
.aspd-product-features {
  margin: 20px 0;
  text-align: left;
}

.aspd-features-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #0f1111;
}

.aspd-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aspd-features-list li {
  padding: 8px 0 8px 25px;
  position: relative;
  line-height: 1.5;
  color: #0f1111;
}

.aspd-features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #067d62;
  font-weight: bold;
}

/* ==============================
   ERROR
   ============================== */
.aspd-error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .aspd-product-container {
    flex-direction: column;
    padding: 20px;
  }

  .aspd-gallery-item {
    width: calc(25% - 8px);
  }

  .aspd-product-title {
    font-size: 20px;
  }

  .aspd-current-price {
    font-size: 24px;
  }

  .aspd-product-description {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .aspd-single-product {
    padding: 10px;
  }

  .aspd-product-container {
    padding: 15px;
    gap: 20px;
  }

  .aspd-gallery-item {
    width: calc(33.333% - 7px);
  }

  .aspd-product-description {
    padding: 15px;
  }
}
