/* ====== TOKENS Y BASE — Víveres Emmanuel ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color */
    --white: #FFFFFF;
    --surface: #F6F5F2;
    --ink: #1D1D1B;
    --ink-soft: #726F68;
    --line: #E8E6E1;

    --green: #2F6B4F;
    --green-dark: #1E4A36;
    --green-tint: #E9F1EC;

    --amber: #D9762E;
    --amber-dark: #B85F1F;

    /* Compat con nombres anteriores usados en otros archivos CSS */
    --primary-green: var(--green);
    --dark-green: var(--green-dark);
    --light-green: var(--green-tint);
    --accent-orange: var(--amber);
    --accent-orange-hover: var(--amber-dark);
    --text-dark: var(--ink);
    --text-light: var(--ink-soft);
    --gray-light: var(--surface);
    --gray-medium: var(--line);

    --shadow: 0 1px 2px rgba(29,29,27,0.06);
    --shadow-hover: 0 8px 24px rgba(29,29,27,0.10);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--white);
    color: var(--ink);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .producto-nombre, .producto-titulo, .relacionado-nombre {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

a {
    color: var(--green);
}

/* Foco visible para accesibilidad de teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   SELECTOR DE ORDENAMIENTO
   ============================================================ */
.orden-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.25rem 0;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    flex-wrap: wrap;
}

.orden-wrap label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.orden-wrap select {
    flex: 1;
    min-width: 180px;
    padding: 0.55rem 0.75rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orden-wrap select:hover {
    border-color: var(--ink-soft);
}

.orden-wrap select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.15);
}

@media (max-width: 600px) {
    .orden-wrap {
        padding: 0.65rem 0.85rem;
    }
    .orden-wrap label {
        font-size: 0.85rem;
    }
    .orden-wrap select {
        font-size: 0.85rem;
        min-width: 150px;
    }
}