@import url('font.css');

:root {
    --ink: #111111;
    --muted-ink: #5a5a5a;
    --surface: #f6f7f8;
    --surface-strong: #ffffff;
    --accent: #1a7040;
    --accent-dark: #0f4f2b;
    --divider: rgba(17, 17, 17, 0.08);
    --header-height: 96px;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hidden {
    display: none;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 72px);
    box-sizing: border-box;
    background-color: var(--surface);
    color: var(--ink);
    overflow-x: hidden;
    max-width: 100vw;
}

body.swipe-hub {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 100vh;
    background: #fff;
}

body.catalog-nav-visible {
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

body.nav-open {
    overflow: hidden;
}

.page-shell {
    width: min(1180px, 92vw);
    margin: 0 auto;
    padding-inline: clamp(16px, 6vw, 36px);
    box-sizing: border-box;
}

@media (min-width: 1440px) {
    .page-shell {
        width: min(1280px, 82vw);
        padding-inline: 48px;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--divider);
    backdrop-filter: saturate(180%) blur(16px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.35s ease, opacity 0.35s ease;
}

header:hover,
header:focus-within {
    border-color: rgba(17, 17, 17, 0.16);
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.08);
}

.header-shell {
    width: min(1180px, 92vw);
    margin: 0 auto;
    height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
    align-items: center;
    gap: 32px;
}

.brand {
    grid-area: brand;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
}

.brand-mark {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
    filter: grayscale(0);
}

.primary-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: rgba(17, 17, 17, 0.4);
    background: rgba(17, 17, 17, 0.05);
}

.menu-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    justify-content: center;
    position: relative;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 6px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--accent);
}

.nav-extra {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.nav-meta {
    display: none;
}

.nav-meta-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.7rem;
    color: var(--accent);
}

.nav-meta-copy {
    margin: 8px 0 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted-ink);
}

.nav-meta-link {
    align-self: flex-start;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav-meta-link:hover,
.nav-meta-link:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(26, 112, 64, 0.25);
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: var(--surface-strong);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(26, 112, 64, 0.18);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--ink);
    font-size: 0.85rem;
    width: 180px;
}

.search-input::placeholder {
    color: var(--muted-ink);
    opacity: 0.6;
}

.search-button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
}

.search-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.search-icon::before,
.search-icon::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.search-icon::before {
    inset: 0;
    border: 2px solid var(--ink);
}

.search-icon::after {
    width: 6px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
    bottom: -4px;
    right: -2px;
    transform: rotate(45deg);
}

.search-button:hover .search-icon::before,
.search-button:hover .search-icon::after,
.search-button:focus-visible .search-icon::before,
.search-button:focus-visible .search-icon::after {
    border-color: var(--accent);
    background: var(--accent);
}

.header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header-cta::after {
    content: "→";
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(26, 112, 64, 0.25);
}

.header-cta:hover::after,
.header-cta:focus-visible::after {
    transform: translateX(3px);
}

.header-cta-mobile {
    display: none;
    padding: 10px 16px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    border: 1px solid rgba(17, 17, 17, 0.14);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    margin-right: 12px;
    text-decoration: none;
}

.header-cta-mobile:hover,
.header-cta-mobile:focus-visible {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

#overlay {
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 17, 17, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 900;
}

#overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1180px) {
    .header-shell {
        gap: 24px;
    }

    .nav-links {
        gap: 22px;
    }

    .search-input {
        width: 160px;
    }
}

@media (max-width: 1024px) {
    .nav-panel {
        gap: 24px;
    }

    .header-cta {
        padding: 11px 20px;
        letter-spacing: 0.12em;
    }

    .brand-mark {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 960px) {
    .header-shell {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "brand nav actions";
        align-items: center;
        gap: 16px;
        width: min(1180px, 94vw);
        padding: 0 clamp(12px, 5vw, 20px);
        box-sizing: border-box;
    }

    .primary-nav {
        grid-area: nav;
        justify-content: flex-end;
        align-items: center;
        gap: 12px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .brand-mark {
        width: 60px;
        height: 60px;
    }

    .header-actions {
        display: none;
    }

    .header-cta-mobile {
        display: inline-flex;
    }

    .nav-panel {
        position: fixed;
        top: calc(var(--header-height) + env(safe-area-inset-top));
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        min-height: calc(100vh - (var(--header-height) + env(safe-area-inset-top)));
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.75) 70%, rgba(26, 112, 64, 0.16) 120%);
        backdrop-filter: saturate(160%) blur(26px);
        border-top: 1px solid var(--divider);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 32px clamp(20px, 7vw, 40px) calc(48px + env(safe-area-inset-bottom));
        gap: 24px;
        transform: translateY(calc(-100% - var(--header-height) - env(safe-area-inset-top)));
        transition: transform 0.45s cubic-bezier(0.19, 1, 0.22, 1);
        overflow-y: auto;
        box-sizing: border-box;
        box-shadow: 0 30px 60px rgba(17, 17, 17, 0.18);
        z-index: 1000;
    }

    .nav-panel::before {
        content: "";
        position: absolute;
        top: 12%;
        right: clamp(12px, 18vw, 120px);
        width: 200px;
        height: 200px;
        background: radial-gradient(circle at center, rgba(26, 112, 64, 0.3), transparent 70%);
        pointer-events: none;
        opacity: 0.4;
        filter: blur(4px);
    }

    .nav-panel::after {
        content: "";
        position: absolute;
        bottom: 12%;
        left: clamp(12px, 12vw, 120px);
        width: 140px;
        height: 140px;
        border-radius: 32px;
        border: 1px solid rgba(17, 17, 17, 0.12);
        background: rgba(255, 255, 255, 0.5);
        pointer-events: none;
        backdrop-filter: blur(16px);
    }

    .nav-panel > * {
        position: relative;
        z-index: 1;
    }

    .nav-panel.show {
        transform: translateY(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        width: 100%;
        counter-reset: navitem;
        flex: 1;
    }

    .nav-item {
        width: 100%;
        counter-increment: navitem;
    }

    .nav-link {
        color: var(--ink);
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: none;
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    }

    .nav-link::before {
        content: counter(navitem, decimal-leading-zero);
        font-size: 0.78rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(17, 17, 17, 0.38);
    }

    .nav-link::after {
        content: "↗";
        font-size: 1rem;
        color: rgba(17, 17, 17, 0.28);
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link:focus-visible::after {
        transform: translate(4px, -2px);
        color: var(--accent);
    }

    .nav-extra {
        width: 100%;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
        order: -1;
        padding-bottom: 12px;
    }

    .nav-panel .search-form {
        width: 100%;
        background: rgba(255, 255, 255, 0.82);
        border-color: rgba(17, 17, 17, 0.08);
        color: var(--ink);
        box-shadow: 0 20px 45px rgba(17, 17, 17, 0.12);
        padding: 12px 18px;
        backdrop-filter: blur(14px);
    }

    .nav-panel .search-input {
        width: 100%;
        color: inherit;
        font-size: 1rem;
    }

    .nav-panel .search-input::placeholder {
        color: rgba(17, 17, 17, 0.4);
    }

    .nav-panel .search-icon::before {
        border-color: var(--ink);
    }

    .nav-panel .search-icon::after {
        background: var(--ink);
    }

    .nav-meta {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 28px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(17, 17, 17, 0.12);
        box-shadow: 0 25px 38px rgba(17, 17, 17, 0.12);
        margin-top: auto;
    }
}

@media (max-width: 720px) {
    .header-shell {
        width: min(1180px, 95vw);
    }

    .header-cta {
        display: none;
    }

    .header-cta-mobile {
        padding: 8px 14px;
        font-size: 0.68rem;
        margin-right: 8px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 540px) {
    :root {
        --header-height: 72px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }
}

main {
    flex: 1;
    padding: 20px clamp(16px, 6vw, 28px);
    display: flex;
    margin-top: 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#combos {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
    align-items: center;
    max-width: 600px;
    width: 100%;
}

.title h2 {
    margin-bottom: 20px;
}

.combo-grid {
    display: grid;

    gap: 20px;
    justify-content: center;
}

#perfumes {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

#perfumes .perfume {
    background-color: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

#perfumes .perfume.fade-out {
    opacity: 0;
}

#perfumes .perfume:hover {
    transform: scale(1.05);
    /* Aumenta el tamaño */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Aumenta la sombra */
    background-color: #ffffff;
    /* Cambia el color de fondo */
}

#perfumes .perfume img {
    max-width: 100%;
    height: 220px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    /* Efecto de hover en la imagen */
}

#perfumes .perfume:hover img {
    transform: scale(1.1);
    /* Aumenta el tamaño de la imagen al hacer hover */
}

/* Configuración del grid */
.perfume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .perfume-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Fuerza dos columnas */
        gap: 10px;
        /* Reduce el espacio entre los elementos si es necesario */
    }

    #perfumes .perfume img {
        height: 150px;
    }
}



.combo {
    background-color: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.combo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.combo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.combo h3 {
    margin-top: 0;
    font-size: 1.5em;
}

#decants {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
    max-width: 1400px;
    /* Define un ancho máximo para el contenedor */
    width: 100%;
    /* Ocupa todo el ancho del contenedor */
    box-sizing: border-box;
    /* Asegura que el padding no aumente el ancho total */
    margin-left: auto;
    /* Centra el contenedor */
    margin-right: auto;
    /* Centra el contenedor */
}

#decants .decant {
    background-color: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#decants.fade-out .decant {
    opacity: 0;
}

#decants .decant:hover {
    transform: scale(1.05);
    /* Aumenta el tamaño al hacer hover */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Aumenta la sombra */
    background-color: #ffffff;
    /* Cambia el fondo */
}

#decants .decant img {
    max-width: 100%;
    height: 220px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    /* Efecto de hover en la imagen */
}

#decants .decant:hover img {
    transform: scale(1.1);
    /* Aumenta el tamaño de la imagen al hacer hover */
}

/* Configuración del grid */
.decant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .decant-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Fuerza dos columnas */
        gap: 10px;
        /* Reduce el espacio entre los elementos si es necesario */
    }

    #decants .decant img {
        height: 150px;
    }
}


.etiquetas {
    margin-top: 10px;
}

.etiqueta {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-top: 10px;
    margin-right: 5px;
    color: #fff;
}

.mas-vendidos {
    background-color: #28a745;
}

.descuento {
    background-color: #c5260a;
}

.fuera-de-stock {
    background-color: #000000;
}

.novedad {
    background-color: #ffc107;
}

.a-pedido {
    background-color: #075eff;
}

#sobre-nosotros {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.integrante {
    background-color: #f5f5f7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.integrante h3 {
    margin-top: 0;
}

#contacto {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
}

.contacto-info {
    margin-top: 20px;
}

.boton-red-social {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #0071e3;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.boton-red-social:hover {
    background-color: #005bb5;
}

.boton-red-social img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

.whatsapp-link {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
    background-color: #1ebe5b;
}

.marca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.marca {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #333;
}

.marca:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.marca a {
    text-decoration: none;
    color: #333;
}

.marca-image-container {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    margin-bottom: 10px;
}

.marca-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
}

.marca h3 {
    margin: 10px 0 0;
}

.marca img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

footer {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.footer-menu li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: #0071e3;
}

.combo-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding: 30px;
    max-width: 1250px;
    margin: auto;
}

.combo-item.selected {
    animation: itemSelected 0.6s ease;
    border: 2px solid #4CAF50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.combo-item.fade-out {
    animation: fadeOut 0.4s ease forwards;
}

@keyframes itemSelected {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .total-container-combo {
        width: 90%;
        margin: 20px auto;
    }
}

/* Estilo para los items dentro del dropdown */
.dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 120px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dropdown-item img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.dropdown-item p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    text-align: center;
}

/* Hover effect for dropdown items */
.dropdown-item:hover {
    background-color: #e0e0e0;
}


.dropdown-item img {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 5px;
}

.dropdown-item p {
    flex: 1;
    margin: 0;
    font-size: 14px;
    text-align: center;
}

/* Hover effect for dropdown items */
.dropdown-item:hover {
    background-color: #e0e0e0;
}

.combo-selection select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.combo-selection select:focus {
    border-color: #0071e3;
    box-shadow: 0 0 5px rgba(0, 113, 227, 0.5);
}


@media (max-width: 768px) {
    .marca-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-content: center;
    }
}

.extras {
    margin-top: 20px;
    text-align: left;
}

.extras h3 {
    margin-bottom: 10px;
}

.extras label {
    display: block;
    margin-bottom: 10px;
}

.total {
    margin-top: 20px;
}

#whatsapp {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    /* Puedes usar center, flex-start, flex-end según tus necesidades */
    gap: 10px;
    /* Espaciado entre los botones */
    margin-top: 20px;
}

.tiktok-profile {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    /* Aumenta el tamaño máximo */
    min-width: 1000px;
    margin-top: 60px;
    /* Ajustar para acercar la caja al header */
}

@media (max-width: 768px) {
    .tiktok-profile {
        display: none;
    }
}

.tiktok-profile h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.tiktok-profile .follow-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff0050;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.tiktok-profile .follow-button:hover {
    background-color: #e60045;
}

.tiktok-embed {
    width: 100%;
    /* Asegúrate de que ocupe todo el ancho disponible */
    min-height: 300px;
    /* Ajusta la altura mínima para que sea más grande */
}

.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-buttons button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background-color: #0071e3;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.filter-buttons button:hover {
    background-color: #005bb5;
}

/* Carrusel */
#carousel {
    position: relative;
    max-width: 100%;
    margin-top: 20px;

    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    /* Transición más suave */
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;

}

.carousel-content {
    position: relative;
    width: 100%;
    height: 400px;
    /* Tamaño fijo del contenedor */
}

.carousel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajusta la imagen al tamaño del contenedor */
    border-radius: 15px;
    /* Bordes redondeados */
    filter: brightness(0.85);
    /* Aplica un pequeño oscurecimiento a la imagen */
    transition: transform 0.6s ease;
    /* Transición suave en la imagen */
}

.carousel-content img:hover {
    transform: scale(1.05);
    /* Zoom suave al hacer hover */
    border-radius: 15px;
}

.carousel-text1 {
    position: absolute;
    bottom: 30px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    /* Sombra al texto para mayor visibilidad */
}

.carousel-text2 {
    position: absolute;
    bottom: 10px;
    left: 20px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    /* Sombra al texto para mayor visibilidad */
}

#carousel .prev,
#carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

#carousel .prev {
    left: 10px;
}

#carousel .next {
    right: 10px;
}

/* Botones de navegación */
#buttons-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.nav-button {
    background-color: #0071e3;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #005bb5;
}

#perfume-results,
#decant-results {
    position: relative;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: center;
    max-width: 1400px;
    width: 100%;
}

.filter-select {
    margin-top: 20px;
    margin-bottom: 20px;
}

#decant-filter,
#perfume-filter,
#combo-type,
#decant-quantity,
#decant-search {
    width: 100%;
    max-width: 100%;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#decant-filter:focus,
#perfume-filter:focus,
#combo-type:focus,
#decant-quantity:focus,
#decant-search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(26, 112, 64, 0.12);
}

.stock-filter,
.new-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted-ink);
}

#stock-filter,
#new-filter {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.combo-builder-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.combo-builder-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.combo-selection {
    position: relative;
    text-align: center;
    padding: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.combo-builder-dropdown {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    top: calc(100% + 10px);
    left: 0;
}

.combo-builder-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.4;
    }
}

.combo-selection .selected-product {
    border: 2px solid #4CAF50;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border-color: #4CAF50;
    background-color: #f8fff8;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-button-combo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-button-combo:hover {
    transform: scale(1.05);
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {

    .combo-builder-item {
        margin-bottom: 20px;
    }

    .combo-builder-dropdown {
        position: static;
        margin-top: 10px;
        box-shadow: none;
    }

    .size-selector {
        font-size: 16px;
    }

    .whatsapp-button-combo {
        bottom: 20px;
        right: 20px;
        width: calc(100% - 40px);
    }
}

/* ===== Estilos generales ===== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    padding-top: calc(var(--header-height) + env(safe-area-inset-top) + 32px);
    box-sizing: border-box;
    background-color: var(--surface);
    color: var(--ink);
    overflow-x: hidden;
}

header {
    background-color: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--divider);
    width: 100%;
    top: 0;
    z-index: 1004;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    backdrop-filter: saturate(180%) blur(16px);
}

main {
    flex: 1;
    padding: 20px clamp(16px, 6vw, 28px);
    display: flex;
    margin-top: 0;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* ===== Estilos específicos para Arma Tu Combo ===== */
#combos-personalizados .container {
    width: 94%;
    max-width: 1600px;
    padding: 20px 3%;
    margin: 100px auto 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.combo-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.combo-type-selection,
.decant-quantity-container {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.combo-type-selection label,
.decant-quantity-container label {
    font-size: 1.1em;
    color: #555;
}

.combo-type-selection select,
.decant-quantity-container select {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.combo-type-selection select:hover,
.decant-quantity-container select:hover {
    border-color: #0071e3;
}

.combo-builder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
    width: 100%;
}

.combo-item {
    position: relative;
    background: #fff;
    align-content: left !important;
    border-radius: 12px;
    padding-left: 10px;
    padding-right: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.combo-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.combo-selection img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
}

.combo-selection h3 {
    font-size: 1.2em;
    color: #1d1d1f;
    margin: 10px 0;
}

.combo-selection p {
    font-size: 1em;
    color: #555;
    text-align: center;
}

.dropdown-toggle {
    background: #0071e3;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dropdown-toggle:hover {
    background: #005bb5;
}

/* ===== Dropdown mejorado ===== */
.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    /* Centrado horizontal */
    transform: translateX(-50%);
    /* Centrado horizontal */
    width: 800px;
    /* Ancho fijo para PC */
    max-width: 60vw;
    /* Máximo ancho en móviles */
    max-height: 400px;
    /* Altura máxima */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) translateX(-50%);
    /* Centrado y animación */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    /* Scroll vertical */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columnas en PC */
    gap: 15px;
    padding: 15px;
}

.dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) translateX(-50%);
    /* Centrado y animación */
}

.dropdown-item-combo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-item-combo:hover {
    background: #f8f9fa;
}

.dropdown-item-combo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 6px;
}

.dropdown-item-combo p {
    font-size: 0.95em;
    color: #333;
    flex: 1;
    text-align: left;
}

/* ===== Selector de tamaños ===== */
.size-selector-container {
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
}

.size-selector {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    appearance: none;
    background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat right 12px center/16px;
    font-size: 1em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.size-selector:focus {
    border-color: #0071e3;
    outline: none;
}

/* ===== Total y WhatsApp ===== */
.total-container-combo {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 30px auto 0;
    max-width: 400px;
    text-align: center;
}

#total-price {
    font-size: 2em;
    color: #1d1d1f;
    font-weight: 600;
}

#savings {
    font-size: 1.1em;
    color: #28a745;
    margin-bottom: 15px;
}

.whatsapp-button {
    margin: 25px auto;
    width: fit-content;
}

.whatsapp-button a {
    display: inline-block;
    padding: 12px 24px;
    background-color: #25d366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.whatsapp-button a.disabled {
    background-color: #cccccc;
    pointer-events: none;
}

.whatsapp-button a:hover:not(.disabled) {
    background-color: #1ebe5b;
}

/* ===== Media Queries ===== */
@media (max-width: 768px) {
    .dropdown {
        width: 90vw;
        /* Ancho casi completo en móviles */
        max-width: 75vw;
        /* Evita que se salga de la pantalla */
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en móviles */
        gap: 10px;
        padding: 10px;
    }

    #combos-personalizados .container {
        width: 95%;
        border-radius: 12px;
        margin-top: 40px;
        padding: 15px;
        align-content: center;
    }

    .combo-builder-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
        padding-left: 0;
    }

    .combo-selection img {
        width: 140px;
        height: 140px;
    }

    .dropdown {
        width: 94vw;
        left: 3vw;
        right: 3vw;
        transform: none !important;
    }

    .dropdown-item-combo {
        flex-direction: column;
        text-align: center;
    }

    .dropdown-item-combo img {
        width: 80px;
        height: 80px;
    }

    .dropdown-item-combo p {
        text-align: center;
    }

    .size-selector-container {
        width: 100%;
        max-width: none;
    }

    .total-container-combo {
        width: 90%;
        padding-left: 0;
    }

    /* Carrusel Mejorado */
    .hero-carousel {
        position: relative;
        width: 100%;
        height: 70vh;
        max-height: 600px;
        overflow: hidden;
        margin-top: 100px;
    }

    .carousel-track {
        display: flex;
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .carousel-item {
        min-width: 100%;
        position: relative;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .carousel-item.active {
        opacity: 1;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: brightness(0.8);
    }

    .carousel-caption {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: white;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
        animation: slideIn 0.8s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translate(-50%, -40%);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    .carousel-dots {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 12px;
    }

    .dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: #fff;
        transform: scale(1.3);
    }

    /* Navegación con iconos */
    .icon-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
        padding: 3rem 5%;
        max-width: 1200px;
        margin: 0 auto;
    }

    .nav-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        color: #333;
    }

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

    .nav-card img {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
        object-fit: contain;
    }

    /* Productos destacados */
    .best-sellers {
        padding: 4rem 5%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .section-title {
        text-align: center;
        font-size: 2.2rem;
        margin-bottom: 3rem;
        position: relative;
        color: #2a2a2a;
    }

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: #0071e3;
        margin: 0.5rem auto;
    }

    .product-grid,
    .decant-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 2rem;
    }

    .product-card,
    .decant-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
    }

    .product-card:hover {
        transform: translateY(-5px);
    }

    .product-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
    }

    .decant-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .price {
        font-size: 1.2rem;
        color: #28a745;
        font-weight: 600;
        margin: 1rem 0;
    }

    .buy-button {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.8rem 1.5rem;
        background: #0071e3;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .buy-button:hover {
        background: #005bb5;
    }

    /* WhatsApp FAB */
    .whatsapp-fab {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 1000;
    }

    .whatsapp-fab a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: #25d366;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
    }

    .whatsapp-fab a:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

    .whatsapp-fab i {
        font-size: 28px;
        color: white;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .hero-carousel {
            height: 50vh;
        }

        .icon-nav {
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            padding: 2rem;
        }

        .product-grid,
        .decant-grid {
            grid-template-columns: 1fr 1fr;
        }
    }

}

/* Bloque de precios con ANTES/AHORA */
.decant .precios {
    margin-top: .25rem;
}

.decant .precio {
    margin: .1rem 0;
    line-height: 1.15;
}

/* Estilos para los precios anteriores (más chicos y tachados) */
.decant .label-antes,
.decant .precio-antes {
    font-size: 0.8em;
}

.decant .precio-antes {
    text-decoration: line-through;
    opacity: .7;
}

/* Etiquetas "ANTES" y "AHORA" */
.decant .label-antes,
.decant .label-ahora {
    font-weight: 600;
    display: block;
    margin-top: .25rem;
    margin-bottom: 0;
}

.decant .label-ahora {
    margin-top: .5rem;
}


/* Y anulamos el margen superior del AHORA para no duplicar el hueco */
.decant .label-ahora {
    margin-bottom: 0;
    margin-top: .7rem;
}

/* ---------- Paginación (arriba y abajo) ---------- */
.pagination-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
}

.pagination-controls .page-size {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Inputs de tamaño de página (top y bottom) */
#page-size-input,
#page-size-input-bottom,
.pagination-controls .page-size input[type="number"] {
  width: 90px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
}

.pagination-controls .pager {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.pagination-controls .pager button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: transform .06s ease, box-shadow .15s ease, border-color .15s ease;
}

.pagination-controls .pager button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-color: #ccc;
}

.pagination-controls .pager button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* Estado de página (top y bottom) */
#page-status,
#page-status-bottom,
.pagination-controls .pager span {
  min-width: 120px;
  text-align: center;
  font-weight: 600;
}

/* Oculta por paginación sin pelearse con tus filtros */
.pag-hidden {
  display: none !important;
}

/* Suaviza el cambio de página para ambas grillas */
.perfume-grid,
.decant-grid,
.vela-grid {
  transition: opacity .18s ease;
}
.perfume-grid.is-paging,
.decant-grid.is-paging,
.vela-grid.is-paging {
  opacity: .5;
}

/* ---------- Lazy images ---------- */
img[loading="lazy"] {
  /* Evita layout shift si declaras width/height; si no, mantenemos por defecto */
  background: #f6f6f6;
}

/* ---------- Catalog bottom nav ---------- */
.catalog-dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 0);
  width: min(560px, calc(100% - 24px));
  padding: 8px;
  border-radius: 32px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(15, 28, 20, 0.18);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  z-index: 120;
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.catalog-dock__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 24px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.catalog-dock__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
}
.catalog-dock__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.catalog-dock__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(26, 112, 64, 0.35);
}

.catalog-dock__link.is-active {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.18);
}

.catalog-dock__link:not(.is-active):hover {
  background: rgba(17, 17, 17, 0.08);
}

@media (min-width: 768px) {
  .catalog-dock {
    display: none;
  }
  body.catalog-nav-visible {
    padding-bottom: 0;
  }
}

body.is-home-panel header {
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
}

body.is-home-panel .catalog-dock {
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
}

/* Responsive: acomoda los controles en pantallas chicas */
@media (max-width: 640px) {
  .pagination-controls {
    gap: .75rem;
  }
  #page-size-input,
  #page-size-input-bottom,
  .pagination-controls .page-size input[type="number"] {
    width: 80px;
    padding: 6px 8px;
  }
}
