:root {
    /* Color Palette matched to Index */
    --primary-color: #2F5233;
    --secondary-color: #94C973;
    --accent-color: #B1D8B7;
    --background-color: #F8F9FA;
    --surface-light: #FFFFFF;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;

    /* Typography */
    --font-heading: "Krona One", sans-serif;
    --font-body: "AR One Sans", sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --radius-md: 12px;
    --radius-lg: 24px;
}

body {
    margin: 0;
    background-color: var(--background-color);
    font-family: var(--font-body);
    color: var(--text-main);
}

/* Make header mimic the index file design */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 0 5%;
    box-sizing: border-box;
}

header img {
    height: 60px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
    position: absolute;
    left: 5%;
}

#buttons_header {
    font-family: var(--font-heading);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

#buttons_header span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    padding: 10px 0;
    transition: color var(--transition-fast);
}

#buttons_header a {
    text-decoration: none;
    color: inherit;
}

#buttons_header span:hover {
    color: var(--secondary-color);
}

#container_principal {
    padding: 120px 5% 50px;
    min-height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#container_secundario {
    background-color: var(--surface-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    padding: 50px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

#imagen_producto {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#imagen_producto img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

#imagen_producto:hover img {
    transform: scale(1.05);
}

#Textbox_producto {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

#title_producto {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
}

#info_precio {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--secondary-color);
    background: rgba(148, 201, 115, 0.1);
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    align-self: flex-start;
}

#descripcion_producto {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

#Info_producto {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#especificaciones {
    background: var(--background-color);
    padding: 20px;
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-main);
}

#container_button {
    margin-top: 10px;
}

.btn-agregar-carrito {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 16px;
    border: none;
    color: var(--white);
    width: 100%;
    max-width: 300px;
    height: 60px;
    border-radius: 30px;
    background-color: var(--primary-color);
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-agregar-carrito:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

#container_productos_similares {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    width: 100%;
}






#title_productos_similares {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

#title_productos_similares::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

#container_productos {
    width: 100%;
    border: 3px solid rgba(255, 65, 65, 0.878);
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 30px;
}

.enlace_similar {
    text-decoration: none;
    color: inherit;
    display: block;
}

.producto_similar {
    background-color: var(--white);
    width: 220px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.03);
}

.producto_similar:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.img_container_similar {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.img_container_similar img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.producto_similar:hover .img_container_similar img {
    transform: scale(1.08);
}

.similar_nombre {
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar_precio {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--secondary-color);
    font-weight: 700;
    margin: auto 0 0 0;
}

/* Responsive */
@media (max-width: 900px) {
    #container_secundario {
        flex-direction: column;
        padding: 30px;
        gap: 40px;
    }

    #imagen_producto {
        width: 100%;
    }

    #Textbox_producto {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    #info_precio {
        align-self: center;
    }
}