/* ============================================
   PRODUCTO - ESTILOS ELEGANTES Y MINIMALISTAS
   ============================================ */

/* BREADCRUMBS - FONDO CREMA */
.breadcrumbs {
    background: #FAF8F5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 0;
    font-size: 0.85rem;
    font-weight: 300;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: #6B6B6B;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.breadcrumbs a:hover {
    color: #C9A87C;
}

.breadcrumbs .separator {
    color: #E0E0E0;
    font-size: 0.7rem;
}

.breadcrumbs .current {
    color: #1A1A1A;
    font-weight: 400;
}

/* PRODUCTO DETALLE - FONDO CREMA */
.product-detail {
    padding: 5rem 0;
    background-color: #FAF8F5;
}

.product-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: start;
}

/* ============================================
   GALERÍA DE IMÁGENES CON FLECHAS ELEGANTES
   ============================================ */
.product-gallery {
    position: sticky;
    top: 120px;
    max-width: 520px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #FFFFFF;
    overflow: hidden;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.product-badge-large {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #C9A87C;
    color: white;
    padding: 0.5rem 1.25rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* FLECHAS DE NAVEGACIÓN DE GALERÍA */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
}

.main-image-wrapper:hover .gallery-nav {
    opacity: 1;
    visibility: visible;
}

.gallery-nav:hover {
    background-color: #1A1A1A;
    border-color: #1A1A1A;
    transform: translateY(-50%) scale(1.08);
}

.gallery-nav:hover svg {
    color: #FFFFFF;
}

.gallery-nav svg {
    width: 18px;
    height: 18px;
    color: #1A1A1A;
    transition: color 0.3s ease;
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

/* CONTADOR DE IMÁGENES */
.image-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #1A1A1A;
    letter-spacing: 1px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    z-index: 15;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* THUMBNAILS */
.thumbnails-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #C9A87C #F5F5F5;
    padding-bottom: 0.5rem;
}

.thumbnails-wrapper::-webkit-scrollbar {
    height: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 2px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: #C9A87C;
    border-radius: 2px;
}

.thumbnails {
    display: flex;
    gap: 0.75rem;
}

.thumbnail {
    flex-shrink: 0;
    width: 75px;
    height: 75px;
    border: 1px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    padding: 0;
    position: relative;
}

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

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

.thumbnail:hover {
    border-color: #C9A87C;
}

.thumbnail:hover::after {
    background: rgba(201, 168, 124, 0.1);
}

.thumbnail.active {
    border-color: #C9A87C;
    box-shadow: 0 2px 12px rgba(201, 168, 124, 0.3);
}

/* ============================================
   INFORMACIÓN DEL PRODUCTO
   ============================================ */
.product-info {
    padding-top: 1rem;
}

.product-category-tag {
    display: inline-block;
    color: #C9A87C;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.25rem;
}

.product-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1A1A1A;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* PRECIO SIMPLE Y ELEGANTE */
.product-price-simple {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 2.5rem;
    letter-spacing: 0.5px;
}

/* PRECIO CON VARIACIONES - MÁS GRANDE */
.product-price-container {
    margin-bottom: 2rem;
}

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: #1A1A1A;
    letter-spacing: 0.02em;
    transition: opacity 0.15s ease-in-out;
}

@media (max-width: 768px) {
    .product-price {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .product-price {
        font-size: 1.75rem;
    }
}

.product-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #E0E0E0, transparent);
    margin: 2.5rem 0;
}

.product-description {
    margin-bottom: 2.5rem;
}

.description-title {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1A1A1A;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.25rem;
}

.product-description p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: #6B6B6B;
    font-weight: 300;
}

/* NOTA DE PEDIDO ELEGANTE */
.product-note {
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%);
    border-left: 2px solid #C9A87C;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.product-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #C9A87C, transparent);
}

.product-note p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6B6B6B;
    margin: 0;
    font-weight: 300;
}

/* ACCIONES */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn-large {
    flex: 1;
    padding: 1.1rem 2.5rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 400;
}

.btn-secondary {
    background: white;
    color: #1A1A1A;
    border: 1px solid #E0E0E0;
    padding: 1.1rem 2rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #C9A87C;
    color: #C9A87C;
    background: #FAFAFA;
}

.btn-share {
    min-width: 140px;
}

/* META INFORMACIÓN */
.product-meta {
    border-top: 1px solid #E8E8E8;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 300;
}

.meta-label {
    color: #6B6B6B;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.meta-value {
    color: #1A1A1A;
}

.meta-link {
    color: #C9A87C;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.meta-link:hover {
    color: #8B7355;
}

/* ============================================
   PRODUCTOS RELACIONADOS - FONDO BLANCO
   ============================================ */
.related-products {
    padding: 5rem 0 6rem;
    background: #FFFFFF;
}

.related-products .section-header {
    margin-bottom: 3rem;
}

.related-products .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: #1A1A1A;
    text-align: center;
}

.related-products .section-title em {
    font-style: italic;
    font-weight: 300;
    color: #8B7355;
}

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

.product-card {
    background: white;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #F5F5F5;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.no-image-small {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9E9E9E;
    font-size: 0.9rem;
    font-family: 'Cormorant Garamond', serif;
}

.product-card-info {
    padding: 1.75rem;
}

.product-card-category {
    font-size: 0.65rem;
    color: #C9A87C;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.product-card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: #1A1A1A;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-card-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: #1A1A1A;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .product-gallery {
        position: static;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 1024px) {
    .product-detail {
        padding: 4rem 0;
    }
    
    .product-title {
        font-size: 2.5rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 0.75rem;
        padding: 1rem 0;
    }
    
    .breadcrumbs .container {
        gap: 0.5rem;
    }
    
    .product-detail {
        padding: 2.5rem 0;
    }
    
    .product-layout {
        gap: 2.5rem;
    }
    
    .product-gallery {
        max-width: 100%;
        top: 90px;
    }
    
    .main-image-wrapper {
        aspect-ratio: 4/5;
        margin-bottom: 1rem;
    }
    
    .product-badge-large {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 1rem;
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }
    
    /* Flechas siempre visibles en móvil */
    .gallery-nav {
        opacity: 1;
        visibility: visible;
        width: 38px;
        height: 38px;
    }
    
    .gallery-nav svg {
        width: 16px;
        height: 16px;
    }
    
    .gallery-prev {
        left: 0.75rem;
    }
    
    .gallery-next {
        right: 0.75rem;
    }
    
    .image-counter {
        font-size: 0.7rem;
        padding: 0.4rem 0.85rem;
    }
    
    .thumbnails {
        gap: 0.6rem;
    }
    
    .thumbnail {
        width: 65px;
        height: 65px;
    }
    
    .product-info {
        padding-top: 0;
    }
    
    .product-category-tag {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }
    
    .product-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .product-price-simple {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }
    
    .product-divider {
        margin: 2rem 0;
    }
    
    .description-title {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .product-description p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .product-note {
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .product-note p {
        font-size: 0.9rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.85rem;
        margin-bottom: 2rem;
    }
    
    .btn-large {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }
    
    .btn-secondary {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.8rem;
    }
    
    .product-meta {
        padding-top: 1.75rem;
    }
    
    .related-products {
        padding: 3.5rem 0 4rem;
    }
    
    .related-products .section-title {
        font-size: 2.2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }
    
    .product-card-info {
        padding: 1.25rem;
    }
    
    .product-card-name {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }
    
    .product-card-price {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price-simple {
        font-size: 1.5rem;
    }
    
    .related-products .section-title {
        font-size: 1.9rem;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    .gallery-nav {
        width: 34px;
        height: 34px;
    }
    
    .gallery-nav svg {
        width: 14px;
        height: 14px;
    }
    
    .gallery-prev {
        left: 0.5rem;
    }
    
    .gallery-next {
        right: 0.5rem;
    }
}

/* ============================================
   MEJORAS PARA TOUCH DEVICES
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .gallery-nav {
        opacity: 1;
        visibility: visible;
    }
    
    .thumbnail:active {
        transform: scale(0.95);
    }
    
    .product-card:active {
        transform: translateY(-4px);
    }
}





/* ============================================
   VARIACIONES - SELECTORES
   ============================================ */

.variation-selector {
    margin-bottom: 2rem;
}

.variation-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

/* Opciones de Color */
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.color-option {
    padding: 0.75rem 1.5rem;
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    color: #1A1A1A;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

.color-option:hover {
    border-color: #C9A87C;
    background: #FAF8F5;
}

.color-option.active {
    background: #C9A87C;
    border-color: #C9A87C;
    color: white;
    font-weight: 500;
}

/* Opciones de Tamaño */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.size-option {
    min-width: 60px;
    padding: 0.75rem 1.25rem;
    background: #F5F5F5;
    border: 2px solid #E0E0E0;
    color: #1A1A1A;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.size-option:hover {
    border-color: #C9A87C;
    background: #FAF8F5;
}

.size-option.active {
    background: #1A1A1A;
    border-color: #1A1A1A;
    color: white;
    font-weight: 500;
}

/* Selección Actual */
.selected-option {
    font-size: 0.85rem;
    color: #6B6B6B;
    font-style: italic;
}

.selected-option span {
    color: #1A1A1A;
    font-weight: 500;
    font-style: normal;
}

/* Detalles y Acerca */
.product-details-section,
.product-about-section {
    margin-bottom: 1.5rem;
}

.details-title,
.about-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
}

.details-content,
.about-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #2C2C2C;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 640px) {
    .color-option,
    .size-option {
        font-size: 0.85rem;
        padding: 0.65rem 1.25rem;
    }
    
    .variation-label {
        font-size: 0.85rem;
    }
}


/* Selectores circulares de color - VERSIÓN FORZADA */
.color-options-circular {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.color-option-circular {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    border-radius: 50% !important;
    border: 3px solid #E0E0E0 !important;
    background-size: cover !important;
    background-position: center !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

.color-option-circular:hover {
    transform: scale(1.1) !important;
    border-color: #C9A87C !important;
    box-shadow: 0 4px 12px rgba(201, 168, 124, 0.3) !important;
}

.color-option-circular.active {
    border-color: #C9A87C !important;
    border-width: 4px !important;
    box-shadow: 0 0 0 2px white, 0 0 0 5px #C9A87C !important;
}

/* Responsive */
@media (max-width: 640px) {
    .color-option-circular {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }
}