/* ==========================================
             VISTA DETALLE DE PRODUCTO
   ========================================== */
   
/* Contenedor principal */

.product-view {
    display: flex;
    flex-direction: row;
    gap: 50px; 
    justify-content: center;
    align-items: flex-start;
    max-width: 1300px; 
    margin: 40px auto;
    padding: 0 20px;
}

.product-view > div:first-child {
  flex: 1;              
  max-width: 600px;     
}

.product-view-left {
    flex: 3.5; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.product-title {
  text-align: center;
  margin: 20px 0 10px;
}

.product-title h2 {
    margin: 0;
    font-size: 26px;
    color: var(--cafe-oscuro);
}

.product-info {
    flex: 1; 
    max-width: 220px; /* ¡CLAVE!: Esto evita que la columna crezca de más */
    min-width: 180px; /* Mantiene un tamaño mínimo para que se lea bien */
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.product-image-container {
    width: 100%;
    max-width: 600px;    /* Ancho máximo de la imagen */
    height: 550px;       /* ALTURA FIJA: Esto mantiene todo en su sitio */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: none;
    box-shadow: none;
}

#variant-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

#variantGrid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.variant-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: transparent; /* ¡Clave para la integración! */
    border: 1px solid #e0d7c6; /* Un color arena suave */
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.thumbnail {
    width: 130px;         
    height: 130px;        
    object-fit: cover;   
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: #f5f5f5;
    object-fit: cover;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.thumbnail:hover {
    transform: scale(1.1);
    border-color: #c5a253; 
}

.thumbnail.active {
    border-color: #c5a253;
    box-shadow: 0 0 8px rgba(197, 162, 83, 0.3);
}

.size-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 10px; 
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-option img {
    width: 130px; 
    height: 130px;
    object-fit: contain;
    margin-bottom: 15px; 
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.06));
    transition: transform 0.3s ease;
}

.size-option p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #3e2f23;
  font-size: 1.1rem;
}

.size-option p strong {
    font-size: 1rem;
    color: #3e2f23; 
    letter-spacing: 1px; 
    transition: color 0.3s ease;
}

.size-option .price {
    margin-top: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #c5a253; 
}
.size-option:hover img {
    transform: translateY(-5px);
}

.size-option.selected img {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 20px rgba(197, 162, 83, 0.25)); /* Sombra dorada */
}

.size-option.selected p strong {
    color: #000; 
}

.size-option.selected .price {
    color: #b38b3d;
}

.size-option:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: #c5a253;
    transform: translateY(-2px); 
}

.size-option.selected {
    background-color: #ffffff; 
    border-color: #c5a253;
    border-width: 2px;
    box-shadow: 0 8px 20px rgba(197, 162, 83, 0.1); 
}

.size-option.out {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  position: relative;
}

.size-option.out::after {
  content: "Out of stock";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  color: #a94442;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.size-option:not(.out) {
  cursor: pointer;
}

/* Contenedor Principal de Marketing */
.pdp-marketing-fullwide {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 40px;
    background-color: #fcfaf7;
    border: 1px solid #e0d5ba;
    overflow: hidden;
    border-radius: 20px;
    box-sizing: border-box;
}

/* Encabezado */
.marketing-header {
    text-align: center;
    margin-bottom: 40px;
    background-color: #3d342d; /* El marrón de tu tienda */
    padding: 60px 40px;
    border-radius: 15px 15px 0 0; /* Redondeado solo arriba para unirlo con lo de abajo */
    color: #fcfaf7;
}

.marketing-header h3 {
    color: #bfa36a !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1.5rem;
    border-bottom: 1px solid #e0d5ba;
    display: inline-block;
    padding-bottom: 10px;
    width: 100%;
}

.tagline {
    font-size: 1.3rem;
    color: #bfa36a;
    opacity: 0.9;
    font-style: italic;
    margin: 20px 0;
}

.description-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
    color: #ffffff;
    text-align: center;
}

/* Boton para volver*/

.back-nav-container {
    margin-top: 25px;
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Lo alinea a la izquierda de la columna de info */
}

.back-to-shop-link {
    background: transparent !important;
    border: none !important;
    color: #3d342d !important; /* El color café de tu paleta */
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px; /* Espaciado de lujo a juego con el resto de la web */
    cursor: pointer;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Efecto Hover: Se desplaza sutilmente a la izquierda y se tiñe de dorado */
.back-to-shop-link:hover {
    color: #bfa36a !important; /* Tu dorado característico */
    transform: translateX(-4px); /* Movimiento interactivo suave */
}

.back-to-shop-link:hover::after {
    width: 100%;
}

/* Barra de Especificaciones */
.specs-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    color: #bfa36a;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid de Notas */
.composition-section h3, 
.faq-section h3 {
    color: #bfa36a;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.note-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #e0d5ba;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.note-card strong {
    display: block;
    color: #bfa36a;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Sección de FAQ */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 5px solid #bfa36a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.faq-question {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.faq-answer {
    color: #666;
    line-height: 1.6;
}

/*  FAQ button style */

/* Botón de la pregunta */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e0d5ba;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question-btn {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-family: inherit;
}

.faq-question-btn strong {
    color: #3d342d;
}

.faq-question-btn:hover strong {
    color: #bfa36a;
    transition: color 0.3s ease;
}

/* Icono de flecha o signo + */
.faq-question-btn::after {
    content: '+';
    color: #bfa36a;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* Cuando está abierto */
.faq-item.active {
    border-left: 5px solid #bfa36a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.faq-item.active .faq-question-btn::after {
    content: '-';
    transform: rotate(180deg);
}

/* Contenido de la respuesta (oculto por defecto) */
.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background-color: #fdfaf4;
}

.faq-answer-content p {
    padding: 0 25px 20px 25px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.faq-item.active .faq-answer-content {
    max-height: 500px; /* Ajusta según el largo de tus textos */
    padding-top: 10px;
}

/* ==========================================
      SECCIÓN DE RESEÑAS PREMIUM
   ========================================== */

.reviews-section {
    margin-top: 50px;
    padding-top: 20px;
}

.soft-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0d5ba, transparent);
    margin: 40px 0;
}

/* --- Lista de Reseñas --- */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.review-card {
    background: #ffffff;
    border: 1px solid #e0d5ba;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(61, 52, 45, 0.02);
    transition: transform 0.2s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 162, 83, 0.05);
}

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

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

.rev-avatar {
    font-size: 16px;
    background: #fdfaf4;
    padding: 6px;
    border-radius: 50%;
    border: 1px solid #e0d5ba;
}

.rev-user-info strong {
    color: #3d342d;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.gold-stars {
    color: #bfa36a;
    font-size: 1.1rem;
}

.empty-stars {
    color: #ccc2b0;
    font-size: 1.1rem;
}

.rev-text {
    font-style: italic;
    color: #4a423a;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 12px 0;
    padding-left: 5px;
}

.rev-footer {
    text-align: right;
}

.rev-date {
    color: #a69c8e;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-reviews {
    text-align: center;
    color: #8c8174;
    font-style: italic;
    padding: 30px 0;
}

/* --- Formulario de Reseñas --- */
.review-form {
    background: #ffffff;
    border: 1px solid #e0d5ba;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    max-width: 800px;
    margin: 0 auto;
}

.review-form h4 {
    margin: 0 0 20px 0;
    font-family: inherit;
    font-size: 1.2rem;
    color: #3d342d;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

/* Estrellas Interactivas Selector */
.rating-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.rating-input-wrapper label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #594f46;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.star-rating {
    display: inline-flex;
    gap: 5px;
}

.star-rating .star {
    font-size: 1.8rem;
    color: #e0d5ba;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.star-rating .star:hover {
    transform: scale(1.2);
}

.star-rating .star.active {
    color: #bfa36a;
    text-shadow: 0 0 4px rgba(197, 162, 83, 0.2);
}

/* Textarea Premium */
.textarea-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.review-form textarea {
    width: 100%;
    min-height: 110px;
    max-height: 180px;
    background-color: #fdfaf4;
    border: 1px solid #e0d5ba;
    border-radius: 10px;
    padding: 15px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #3d342d;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
    resize: vertical;
}

.review-form textarea:focus {
    border-color: #bfa36a;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(197, 162, 83, 0.15);
}

.review-form textarea::placeholder {
    color: #a69c8e;
    font-style: italic;
    font-size: 0.9rem;
}

/* Botón y Disclaimer */
.btn-review-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 12px auto;
    font-weight: bold;
    letter-spacing: 2px;
}

.small-disclaimer {
    text-align: center;
    font-size: 0.78rem;
    color: #a68b54;
    margin: 0;
    font-style: italic;
}

.login-msg-reviews {
    text-align: center;
    color: #594f46;
    background: #fdfaf4;
    border: 1px dashed #e0d5ba;
    padding: 20px;
    border-radius: 10px;
    font-size: 0.95rem;
}