.product-details-wrapper {
    max-width: 1300px;
    margin: 5px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
}

/* -------- IMAGES LEFT SIDE -------- */
.product-images {
    display: flex;
    gap: 20px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumbnail:hover {
    opacity: 0.7;
}

.active-thumb {
    border-color: #D4AF37;
}
.main-image {
    position: relative; /* IMPORTANTE */
    width: fit-content;
}

.main-image img {
    width: 420px;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* -------- RIGHT SECTION -------- */
.product-info {
    flex: 1;
    padding-top: 10px;
    height: 100%;
    overflow-y: auto;
}

.pd-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;

  
}

.pd-price {
    font-size: 26px;
    font-weight: 600;
    margin-top: 8px;
    color: #D4AF37;
}

.pd-actions {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
}

/* ======================
   QTY INPUT INTEGRADO
====================== */
.pd-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 18px;
    overflow: hidden;
    height: 42px;
}

/* botones - + */
.pd-qty-wrapper button {
    width: 44px;
    height: 100%;
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
    color: #000;
    transition: background 0.2s ease;
}

.pd-qty-wrapper button:hover {
    background: rgba(0,0,0,0.05);
}

/* input */
.pd-qty-wrapper input {
    width: 50px;
    border: none;
    outline: none;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

/* quitar flechas */
.pd-qty-wrapper input::-webkit-inner-spin-button,
.pd-qty-wrapper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
.pd-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.pd-addcart {
    flex: 1;
    padding: 12px;
    border: none;
    background: #000;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.pd-buynow {
    position: relative;
    overflow: hidden;
    display: block;
    flex: 1;
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #D4AF37, #f9e076);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: white;
    font-weight: bold;
    border-radius: 18px;
    cursor: pointer;
    box-sizing: border-box;
}

.pd-buynow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: transform 0.6s ease;
}

.pd-buynow:hover::after {
    transform: translateX(240%);
}

.pd-buynow:hover {
    transform: scale(1.02);
}
/* ======================
   WISHLIST
====================== */
.pd-wishlist {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border 0.2s ease, background 0.2s ease;
}

.pd-wishlist svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #000;
    stroke-width: 1.8;
    transition: stroke 0.2s ease, fill 0.2s ease;
}

.pd-wishlist:hover {
    border-color: #ff4d7a;
}

.pd-wishlist:hover svg {
    stroke: #ff4d7a;
}

/* estado activo (cuando ya está en wishlist) */
.pd-wishlist.active svg {
    fill: #ff4d7a;
    stroke: #ff4d7a;
}


.pd-hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, #b8860b, #ffd700, #b8860b);
  margin: 15px 0 20px;
}

.pd-top-card {
  display: flex;
  gap: 40px;
  width: 1000px;
  background: #ffffff;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  align-items: flex-start; /* asegura alineación en la parte superior */
  overflow: hidden;
  padding-top: 40px;
  position: relative;
}

/* Description */
.product-description {
    background: #ffffff;
    border-radius: 12px;
    text-align: left;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.product-description h2 {
    margin-bottom: 2px;
}



/* BACK BUTTON */
.pd-back-btn {
    position: absolute;
    background: none;
    border: none;
    cursor: pointer;
    transform: scale(1.2);
    transition: transform 0.15s ease;
    z-index: 10;
    top: 12px;
    left: 12px;
}

.pd-back-btn svg {
    stroke: #333; /* cambialo si quieres otro color */
}

.pd-back-btn:hover {
    transform: scale(1.35);
}

/* MAIN FULLSCREEN ICON */

.fullscreen-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0,0,0,0.55);
    padding: 8px;
    width: 26px;
    height: 26px;
    border-radius: 4px; /* cuadrado con esquinas suaves */
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}
.fullscreen-btn:hover {
    background: rgba(0,0,0,0.75);
}

/* FULLSCREEN MODAL */
.pd-fullscreen-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.pd-fullscreen-modal.active {
    display: flex;
}
.pd-fullscreen-modal img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 12px;
}

/* SHORT DESCRIPTION */
.pd-short-desc {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #444;
}

.pd-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.pd-option-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.pd-required {
    color: #b33;
    margin-left: 4px;
}

.pd-option-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pd-option-select:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212,175,55,.15);
}

.pd-option-error {
    border-color: #b33;
    box-shadow: 0 0 0 3px rgba(179,51,51,.15);
}

.pd-comment {
    margin-top: 14px;
}

.pd-comment label {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.pd-comment textarea {
    width: 90%;
    min-height: 80px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    resize: none;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.pd-comment textarea:focus {
    border-color: #d4af37;      /* dorado */
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.25);
}


/* =========================
   PRODUCT DETAILS MOBILE
========================= */
@media (max-width: 768px) {

  /* wrapper general */
  .product-details-wrapper {
    padding: 12px;
  }

  /* card principal */
  .pd-top-card {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 16px;
    padding-top: 36px;
    box-sizing: border-box;
     
  }

  /* ---------- IMÁGENES ARRIBA ---------- */
  .product-images {
    order: 1;
    width: 100%;
    flex-direction: column-reverse; /* thumbnails abajo */
    gap: 12px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  /* imagen principal */
  .main-image {
    width: 100%;
  }

  .main-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
  }

  /* thumbnails horizontales */
  .thumbnails {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    max-width: 330px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .thumbnail {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
  }

  /* ---------- INFO ABAJO ---------- */
  .product-info {
    order: 2;
    width: 100%;
    padding-top: 0;
    overflow: visible;
  }

  .pd-title {
    font-size: 24px;
  }

  .pd-price {
    font-size: 22px;
  }

  .pd-short-desc {
    font-size: 14px;
  }

  /* opciones */
  .pd-option-select {
    font-size: 14px;
  }

  /* comentario */
  .pd-comment textarea {
      box-sizing: border-box;
    width: 100%;
  }

  /* ---------- ACCIONES ---------- */
  .pd-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .pd-qty-wrapper {
    width: 100%;
    justify-content: center;
  }

  .pd-buynow {
    width: 100%;
  }

  .pd-wishlist {
    width: 44px;
    height: 44px;
  }

  /* back button */
  .pd-back-btn {
    top: 10px;
    left: 10px;
  }

}


