/* ========================================
   PRODUCTO DETALLE - ESTILOS ELEGANTES
======================================== */

body {
    font-family: 'Cormorant Garamond', serif;
    background: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

.producto-detalle,
.producto-detalle * {
    box-sizing: border-box;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.barra-volver {
    background: var(--color-light, #faf8f5);
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(44, 44, 44, 0.08);
    margin-top: 130px;
    /* altura del header de 2 filas */
    position: sticky;
    top: 130px;
    /* se pega justo debajo del header */
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    border: 1px solid rgba(44, 44, 44, 0.2);
    padding: 8px 18px;
    border-radius: 999px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-volver:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.producto-marca {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C49A6C;
    font-weight: 600;
    display: block;
    margin-bottom: -1rem;
}

/* ========================================
   HEADER
======================================== */

.header {
    background: #F5E6E8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}


.logo {
    font-family: var(--font-secondary);
    font-size: var(--fs-large);
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--color-dark);
    transition: font-size 0.3s ease;
    overflow: hidden;
}

.logo img {
    width: auto;
    height: 56px;          /* logo visible y consistente */
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
}

.btn-carrito {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-carrito:hover {
    transform: scale(1.1);
}

.btn-carrito svg {
    stroke: #2c3e50;
}

.carrito-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #C96480;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.header-nav {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
}

.btn-volver-header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
    text-decoration: none;
    border: 1px solid rgba(44, 44, 44, 0.2);
    padding: 7px 18px;
    border-radius: 999px;
    font-family: inherit;
    transition: all 0.25s ease;
}

.btn-volver-header:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

/* ========================================
   PRODUCTO DETALLE
======================================== */

.producto-detalle {
    padding: 4rem 0 6rem;
}

.producto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-bottom: 6rem;
    align-items: start;
    /* ← cambia esto, antes era center o stretch */
}

/* ========================================
   GALERÍA DE IMÁGENES
======================================== */

.producto-galeria {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 185px;
    /* header(130) + barra-volver(44) + margen(11) */
    align-self: flex-start;
    /* ← necesario para que sticky funcione en grid */
    height: fit-content;
    max-height: calc(100vh - 200px);
}

.imagen-principal {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    padding: 1.5rem;
    background-color: #faf8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.imagen-principal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.imagenes-miniaturas {
    display: none;
    /* ocultar hasta tener múltiples imágenes */
}

.miniatura {
    width: 120px;
    height: 120px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.75rem;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.miniatura:hover {
    border-color: #C49A6C;
}

.miniatura.active {
    border-color: #C49A6C;
    border-width: 2px;
    background: white;
}

.miniatura img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .producto-galeria {
        position: static;
        /* ← cancela el sticky */
        align-self: auto;
        height: auto;
    }
}

/* ========================================
   INFORMACIÓN DEL PRODUCTO
======================================== */

.producto-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.producto-titulo {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #2c3e50;
    text-transform: uppercase;
    margin-bottom: -1rem;
}

.producto-precio {
    font-size: 2.25rem;
    font-weight: 400;
    color: #2c3e50;
}

.producto-descripcion {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
}

.producto-beneficios {
    background: #fafafa;
    padding: 2rem;
    border-radius: 8px;
}

.producto-beneficios h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #2c3e50;
}

.producto-beneficios ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.producto-beneficios li {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

/* ========================================
   ACCIONES DEL PRODUCTO
======================================== */

.producto-acciones {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
}

.cantidad-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cantidad-selector label {
    font-size: 0.95rem;
    color: #666;
    text-transform: lowercase;
}

.cantidad-controles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.btn-cantidad {
    width: 60px;
    height: 32px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.btn-cantidad:last-child {
    border-bottom: none;
    border-top: 1px solid #e0e0e0;
}

.btn-cantidad:hover {
    background: #f5f5f5;
}

.btn-cantidad svg {
    stroke: #666;
}

#cantidad {
    width: 60px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    font-family: inherit;
    background: white;
}

#cantidad:focus {
    outline: none;
}

/* Chrome, Safari, Edge, Opera */
#cantidad::-webkit-outer-spin-button,
#cantidad::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-agregar-carrito {
    flex: 1;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, #C96480 0%, #B55570 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 100, 128, 0.25);
}

.btn-agregar-carrito:hover {
    background: linear-gradient(135deg, #B55570 0%, #A04560 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 100, 128, 0.35);
}

/* ========================================
   INFORMACIÓN EXTRA
======================================== */

.producto-extra {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #666;
    font-size: 0.95rem;
}

.info-item svg {
    stroke: #C96480;
    flex-shrink: 0;
}

/* ========================================
   PRODUCTOS RELACIONADOS
======================================== */
.productos-relacionados {
    padding-top: 3rem;
    border-top: 2px solid #e0e0e0;
}

.productos-relacionados h2 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.producto-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
}

.producto-card.hidden {
    display: none;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}


.producto-imagen img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: 1rem;
}

.producto-card:hover .producto-image img {
    transform: scale(1.1);
}

.producto-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.producto-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    min-height: 2.8em;
}

.producto-descripcion {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.producto-precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C96480;
    margin: 0.5rem 0;
}

.btn-comprar {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #C96480 0%, #B55570 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    background: linear-gradient(135deg, #B55570 0%, #A04560 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 100, 128, 0.35);
}

.sin-resultados {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sin-resultados p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-reset {
    padding: 0.875rem 2rem;
    background: #C96480;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #B55570;
}





.info-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.info-tab-btn {
    padding: 9px 20px;
    border: 1.5px solid rgba(44, 44, 44, 0.2);
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.info-tab-btn:hover {
    border-color: #C96480;
    color: #C96480;
}

/* Overlay */
.info-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.info-modal {
    background: white;
    width: 100%;
    max-width: 600px;
    max-height: 75vh;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-modal-overlay.active .info-modal {
    transform: translateY(0);
}

/* Línea decorativa arriba */
.info-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 999px;
    margin: 0 auto 1.5rem;
}

.info-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: white;
    font-size: 0.85rem;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.info-modal-close:hover {
    background: #C96480;
    color: white;
    border-color: #C96480;
}

.info-modal-titulo {
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 1.25rem;
    letter-spacing: 0.04em;
}

.info-modal-contenido {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.8;
}

.info-modal-contenido ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-modal-contenido li::before {
    content: '✦ ';
    color: #C49A6C;
    font-size: 0.7rem;
}

.info-modal-contenido .detalle-fila {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.88rem;
}

.info-modal-contenido .detalle-label {
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    min-width: 120px;
    padding-top: 0.1rem;
}

/* Desktop: modal centrado */
@media (min-width: 768px) {
    .info-modal-overlay {
        align-items: center;
    }

    .info-modal {
        border-radius: 16px;
        transform: translateY(20px) scale(0.97);
        max-height: 80vh;
    }

    .info-modal-overlay.active .info-modal {
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   VARIANTES — agregar al final de producto.css
======================================== */

.bloque-variantes {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.variantes-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    font-family: inherit;
}

.variantes-botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.btn-variante {
    padding: 8px 20px;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    background: white;
    font-size: 0.82rem;
    font-family: inherit;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
}

.btn-variante:hover {
    border-color: #C96480;
    color: #C96480;
}

.btn-variante.active {
    border-color: #C96480;
    background: #C96480;
    color: white;
}

.producto-card-info {
    padding: 1.25rem;
    text-align: center;
}

.producto-card-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.producto-card-info .precio {
    font-size: 1.3rem;
    font-weight: 700;
    color: #C96480;
}

/* ========================================
   RELACIONADOS
======================================== */
.relacionado-marca {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C49A6C;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.producto-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 2rem;
    letter-spacing: 6px;
    margin-bottom: 0.25rem;
    color: #C49A6C;
    font-weight: 400;
}

.footer-logo p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #C49A6C;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* ========================================
   CARRITO MODAL (Mismo estilo de tienda.html)
======================================== */

.carrito-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.carrito-modal.active {
    visibility: visible;
    opacity: 1;
}

.carrito-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.carrito-panel {
    position: absolute;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
}

.carrito-modal.active .carrito-panel {
    right: 0;
}

.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #C49A6C 0%, #B88A5F 100%);
}

.carrito-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
}

.btn-cerrar {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.btn-cerrar:hover {
    transform: rotate(90deg);
}

.btn-cerrar svg {
    stroke: white;
}

.carrito-vacio {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
}

.carrito-vacio svg {
    stroke: #ddd;
}

.carrito-vacio p {
    font-size: 1.25rem;
    color: #999;
}

.btn-seguir {
    padding: 0.875rem 2rem;
    background: #C96480;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-seguir:hover {
    background: #B55570;
}

.carrito-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: none;
}

.carrito-items.active {
    display: block;
}

.carrito-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.carrito-item:hover {
    background: #fafafa;
}

.item-imagen {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffeef8 0%, #fff5f9 100%);
    border-radius: 6px;
    padding: 0.5rem;
    flex-shrink: 0;
}

.item-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-nombre {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.item-precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: #C96480;
}

.item-cantidad {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-cantidad {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: #666;
}

.btn-cantidad:hover {
    border-color: #C96480;
    color: #C96480;
}

.cantidad-numero {
    font-size: 1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.btn-eliminar {
    background: transparent;
    border: none;
    color: #C96480;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.btn-eliminar:hover {
    color: #B55570;
}

.carrito-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.carrito-subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #666;
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.btn-finalizar {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #C96480 0%, #B55570 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.btn-finalizar:hover {
    background: linear-gradient(135deg, #B55570 0%, #A04560 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 100, 128, 0.35);
}

.btn-seguir-comprando {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: #C96480;
    border: 2px solid #C96480;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-seguir-comprando:hover {
    background: #C96480;
    color: white;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .producto-layout {
        gap: 4rem;
    }

    .relacionados-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-nav ul {
        gap: 2rem;
        font-size: 0.95rem;
    }

    .producto-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .imagen-principal {
        max-width: 500px;
        margin: 0 auto;
    }

    .producto-titulo {
        font-size: 2.25rem;
    }

    .relacionados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header-top {
        padding: 1.5rem 1rem;
    }

    .logo h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .header-nav ul {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .header-nav a {
        font-size: 0.9rem;
    }

    .producto-detalle {
        padding: 2rem 0 4rem;
    }

    .producto-titulo {
        font-size: 1.75rem;
        letter-spacing: 3px;
    }

    .producto-precio {
        font-size: 1.75rem;
    }

    .producto-acciones {
        flex-direction: column;
        width: 100%;
    }

    .cantidad-selector {
        width: 100%;
    }

    .cantidad-controles {
        flex-direction: row;
        width: 100%;
    }

    .btn-cantidad {
        width: 50px;
        height: 50px;
        border-bottom: none;
        border-right: 1px solid #e0e0e0;
    }

    .btn-cantidad:last-child {
        border-right: none;
        border-left: 1px solid #e0e0e0;
        border-top: none;
    }

    #cantidad {
        flex: 1;
        height: 50px;
    }

    .btn-agregar-carrito {
        width: 100%;
    }

    .imagenes-miniaturas {
        justify-content: center;
        flex-wrap: wrap;
    }

    .miniatura {
        width: 90px;
        height: 90px;
    }

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

    .carrito-panel {
        max-width: 100%;
    }
}

/* ========================================
   MEJORAS PÁGINA INDIVIDUAL — SILK UPDATE
======================================== */

/* Precio más grande y prominente */
.producto-titulo {
    font-size: 2.75rem !important;
    font-weight: 300 !important;
    letter-spacing: 5px !important;
}

.producto-precio {
    font-size: 2rem !important;
    font-weight: 400 !important;
    color: #2c3e50 !important;
    letter-spacing: 1px;
}

/* Beneficios con bullets dorados */
.producto-beneficios li {
    padding-left: 1.2rem;
    position: relative;
}

.producto-beneficios li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #C49A6C;
    font-size: 0.6rem;
    top: 5px;
}

/* Botón carrito más grande y pill */
.btn-agregar-carrito {
    padding: 1.35rem 3rem !important;
    font-size: 1rem !important;
    border-radius: 50px !important;
    letter-spacing: 0.5px !important;
}

/* Relacionados: imagen más grande, sin cortes */
.relacionados-grid .producto-imagen {
    aspect-ratio: 1 / 1.15;
    overflow: hidden;
    background: #faf7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.relacionados-grid .producto-imagen img {
    width: 85%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.relacionados-grid .producto-card:hover .producto-imagen img {
    transform: scale(1.06) translateY(-4px);
}

.relacionados-grid .producto-card {
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.relacionados-grid .producto-card:hover {
    box-shadow: 0 12px 32px rgba(201, 100, 128, 0.15);
    transform: translateY(-6px);
}

/* Nombre más grande en relacionados */
.producto-card-info h3 {
    font-size: 1.0rem !important;
    font-weight: 400 !important;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.35;
}

.producto-card-info .precio {
    font-size: 1.15rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    font-family: 'Cormorant Garamond', serif;
}

/* Responsive: ajustes móvil para imagen sobresaliente */
@media (max-width: 768px) {
    .producto-titulo {
        font-size: 2rem !important;
        letter-spacing: 3px !important;
    }

    .btn-agregar-carrito {
        padding: 1.15rem 2rem !important;
    }
}


/* ================================================
   STICKY PRODUCTO FIX
   Mismo fix que tienda: overflow-x:clip no rompe sticky
================================================ */
html,
body {
    overflow-x: clip !important;
}

#page,
#content,
.site-content,
main,
.producto-detalle {
    overflow: visible !important;
}
/* ====== FIX CARRITO MÓVIL (producto.css) ====== */
@media (max-width: 600px) {
    .carrito-panel {
        height: 100dvh;
        max-width: 100%;
    }
    .carrito-items {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
    .carrito-footer {
        flex: 0 0 auto;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)) !important;
    }
    .btn-finalizar,
    .btn-seguir-comprando {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }
}

/* ====== FIX REAL: wrapper .carrito-botones (producto.css) ====== */
.carrito-botones {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}
.carrito-botones .btn-finalizar,
.carrito-botones .btn-seguir-comprando {
    width: 100%;
    display: block;
    text-align: center;
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    float: none;
}

/* ====== BOTÓN AGOTADO ====== */
.btn-agregar-carrito.agotado,
.btn-agregar-carrito:disabled {
    background: #d9d9d9 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}
