/* ===================================
   PRODUCT PAGES STYLES
   =================================== */

/* Página de Productos (Listado) */
.productos-hero {
    background-color: #f5f5f5;
    padding: var(--space-lg) 0 var(--space-lg);
    width: 100%;
}

.productos-hero-content {
    text-align: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.breadcrumb-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.breadcrumb {
    font-size: var(--font-xs);
    color: #666;
    margin-bottom: var(--space-md);
}

/* Breadcrumb List Styles */
.breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1000px;

    font-size: var(--font-xs);
    color: #666;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;

    font-size: 1rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: ">";
    margin: 0 1.5rem;
    text-align: center;
    font-size: 1rem;
    /* Controla el espacio alrededor de la flecha aquí */
    color: #999;
}

.breadcrumb-list a {
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    transition: color 0.3s;
}

.breadcrumb-list a:hover {
    color: #333;
}

.productos-hero-content h1 {
    font-size: var(--font-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--space-sm);
    color: #333;
}

.hero-description {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #555;
    max-width: 50rem;
    margin: 0 auto;
}

.productos-page-section {
    width: 100%;
    background-color: #ffffff;
}

.productos-page-title {
    font-size: var(--font-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.productos-page-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto var(--space-lg);
    padding: 0 var(--container-padding);
}

.productos-page-grid.grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 56.25rem;
    margin-left: auto;
    margin-right: auto;
}

.producto-page-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.producto-page-card:hover {
    transform: translateY(-0.1875rem);
}

.producto-page-image {
    width: 100%;
    height: 21.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.productos-page-grid.grid-2col .producto-page-image {
    border: 0.0625rem solid #e0e0e0;
}

.producto-page-image.pink-bg {
    background-color: #f8d7da;
}

.producto-page-image.orange-bg {
    background-color: #f5dcc4;
}

.producto-page-image.green-bg {
    background-color: #dcedc8;
}

.producto-page-image.beige-bg {
    background-color: #f5e8d4;
}

.producto-page-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.producto-page-name {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #333;
    font-weight: var(--font-weight-normal);
}

/* Página de Detalle de Producto */
.detalle-breadcrumb {
    margin: 0 auto;
    padding: .6rem 4rem;
    width: 100%;

}

.detalle-breadcrumb p {
    font-size: 1rem;
    max-width: 1000px;
}

.detalle-hero {
    background-color: #f5f5f5;
    padding: var(--space-md) 0 var(--space-lg);
    width: 100%;

}

.detalle-hero-content {
    text-align: center;
}

.detalle-hero-content h1 {
    font-size: var(--font-xl);
    font-weight: var(--font-weight-normal);

}

.detalle-hero-description {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #555;
    max-width: 50rem;
    margin: 0 auto;
}

.producto-detalle-section {
    width: 100%;
    background-color: #ffffff;
}

.producto-detalle-container {
    display: flex;
    justify-content: center;
    max-width: 1050px;
    margin: 2rem auto;
    padding: 0 var(--container-padding);
    gap: var(--space-xl);
    align-items: flex-start;
}

.producto-detalle-image {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-md);
    flex: 0 0 auto;
}

.imagen-principal {
    max-width: 400px;
    height: auto;
    object-fit: cover;
}

.producto-detalle-info {
    flex: 0 1 500px;
    max-width: 500px;
}

.miniaturas {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.miniatura {
    width: 4.375rem;
    height: 4.375rem;
    object-fit: contain;
    cursor: pointer;
    border: 0.125rem solid transparent;
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    transition: border 0.3s;
}

.miniatura:hover,
.miniatura.active {
    border-color: #333;
}

.producto-detalle-info h2 {
    font-size: var(--font-lg);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
}

.producto-detalle-info>p {
    font-size: var(--font-sm);
    line-height: var(--line-height-relaxed);
    color: #333;
    margin-bottom: var(--space-lg);
    text-align: justify;
}

.ingredientes-toggle {
    margin-top: var(--space-lg);
}

.ingredientes-titulo {
    font-size: var(--font-base);
    font-weight: var(--font-weight-semibold);
    color: #333;
    margin-bottom: var(--space-sm);
}

.ingredientes-content {
    display: block;
    padding-top: var(--space-sm);
    border-top: 0.0625rem solid #e0e0e0;
}

.ingredientes-content p {
    font-size: var(--font-sm);
    line-height: var(--line-height-relaxed);
    color: #555;
    text-align: justify;
}

.fragancia-section {
    width: 100%;
    background-color: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
}

.fragancia-container {
    display: grid;

    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.fragancia-text h3 {
    font-size: var(--font-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--space-md);
}

.fragancia-text p {
    font-size: var(--font-sm);
    line-height: var(--line-height-relaxed);
    color: #333;
    text-align: justify;
}

.fragancia-image {
    text-align: center;
}

.fragancia-circle {
    max-width: 500px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.fragancia-label {
    font-size: var(--font-base);
    color: #333;
    font-weight: var(--font-weight-normal);
}

.relacionados-section {
    width: 100%;
    background-color: #ffffff;
    margin-bottom: 4rem;
}

.relacionados-section h3 {
    font-size: var(--font-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width:1000px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.relacionado-card {
    text-align: center;
}

.relacionado-image {
    width: 100%;
 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}



.relacionado-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.relacionado-card p {
    font-size: var(--font-sm);
    line-height: var(--line-height-normal);
    color: #333;
}

/* Responsive Product Pages */
@media (max-width: 768px) {
    .productos-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .productos-page-grid.grid-2col {
        grid-template-columns: 1fr;
    }

    .producto-detalle-container {
        flex-direction: column;
        align-items: center;
    }

    .producto-detalle-image {
        align-items: center;
    }

    .fragancia-container {
        grid-template-columns: 1fr;
    }

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