/* Raro shop: actual category links and WooCommerce ordering. */
.raro-shop {
    padding-bottom: 64px
}

.raro-archive-hero,
.raro-archive-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid var(--raro-line)
}

.raro-archive-hero-photo,
.raro-archive-banner-photo {
    position: absolute;
    inset: 0 0 0 36%;
    z-index: -2
}

.raro-shop-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.raro-archive-hero::after,
.raro-archive-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #0b0d0c 0%, #0b0d0cf5 25%, #0b0d0cb3 43%, transparent 70%)
}

.raro-archive-hero-copy {
    padding-top: 24px;
    padding-bottom: 28px;
    min-height: 270px
}

.woocommerce .raro-shop .woocommerce-breadcrumb {
    color: var(--raro-ivory);
    font-size: 13px;
    margin-bottom: 20px
}

.woocommerce .raro-shop .woocommerce-breadcrumb a {
    color: var(--raro-muted)
}

.raro-archive .woocommerce-products-header {
    max-width: 520px
}

.raro-archive .page-title {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    margin: 0 0 12px;
    overflow-wrap: anywhere
}

.raro-archive .term-description {
    font: 400 clamp(17px, 1.8vw, 22px)/1.3 "Cormorant Garamond", Georgia, serif;
    max-width: 440px
}

.raro-archive .term-description p {
    margin: 0
}

.raro-archive-hero-description {
    font: 400 clamp(17px, 1.8vw, 22px)/1.3 "Cormorant Garamond", Georgia, serif;
    max-width: 440px;
    margin: 14px 0 0;
    color: var(--raro-ivory, inherit)
}

.raro-archive-toolbar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 22px 0
}

.raro-archive-toolbar>.woocommerce-notices-wrapper {
    flex-basis: 100%
}

.raro-archive-toolbar>.woocommerce-notices-wrapper:empty {
    display: none
}

.woocommerce .raro-archive-toolbar .woocommerce-result-count,
.woocommerce .raro-archive-toolbar .woocommerce-ordering {
    float: none;
    margin: 0;
    font-size: 13px
}


/* RARO — Navegación visual de modelos */

.raro-archive-categories {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--raro-gold) transparent;
    padding: 6px 2px 10px;
}

/* Título lateral */
.raro-archive-categories .raro-model-label {
    flex: 0 0 105px;
    font: 500 12px/1.5 Inter, sans-serif;
    color: var(--raro-gold);
    border-right: 1px solid #51411b;
    margin-right: 8px;
    padding-right: 12px;
}

/* Tarjetas */
.raro-archive-categories a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 7px 4px;
    gap: 5px;

    border: 1px solid #38352d;
    border-radius: 8px;
    background: #141410;
    color: #eee7d9;

    text-align: center;
    text-decoration: none;
    white-space: normal;
    font: 400 10px/1.2 Inter, sans-serif;

    transition: border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

/* Íconos luminosos */
.raro-archive-categories .raro-model-icon {
    display: block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: #edc477;
    filter: drop-shadow(0 0 4px rgba(224, 163, 65, .35));
}

/* Hover y modelo seleccionado */
.raro-archive-categories a:hover,
.raro-archive-categories a[aria-current="page"] {
    border-color: var(--raro-gold);
    background: #201b10;
    color: var(--raro-gold);
}

.raro-archive-categories a[aria-current="page"] .raro-model-icon {
    color: #ffd16e;
    filter: drop-shadow(0 0 6px rgba(255, 190, 65, .6));
}

/* Celulares */
@media (max-width:700px) {
    .raro-archive-categories {
        gap: 6px;
    }

    .raro-archive-categories .raro-model-label {
        flex-basis: 80px;
        font-size: 10px;
    }

    .raro-archive-categories a {
        flex-basis: 68px;
        width: 68px;
        height: 72px;
        font-size: 9px;
    }

    .raro-archive-categories .raro-model-icon {
        width: 27px;
        height: 27px;
    }
}


.raro-shop select {
    max-width: 100%;
    min-height: 44px;
    background: var(--raro-bg);
    color: var(--raro-ivory);
    border: 1px solid var(--raro-gold);
    padding: 10px;
    font: inherit;
    font-size: 14px
}

.raro-select {
    position: relative;
    min-width: 210px;
    max-width: 100%;
    font-size: 13px;
    z-index: 5
}

.raro-select-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--raro-bg);
    color: var(--raro-ivory);
    border: 1px solid var(--raro-gold);
    border-radius: 0;
    font: inherit;
    text-align: left
}

.raro-select-toggle::after {
    content: "⌄";
    color: var(--raro-gold)
}

.raro-select-toggle:hover,
.raro-select-toggle:focus {
    background: var(--raro-bg-soft);
    color: var(--raro-gold)
}

.raro-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(320px, 85vw);
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    background: #111311;
    border: 1px solid var(--raro-gold);
    box-shadow: 0 12px 28px #0008
}

.raro-select-menu button {
    display: block;
    width: 100%;
    min-height: 44px;
    text-align: left;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--raro-ivory);
    font: inherit;
    padding: 10px 14px
}

.raro-select-menu button:hover,
.raro-select-menu button:focus,
.raro-select-menu button[aria-selected=true] {
    color: var(--raro-gold);
    background: #d4a01714
}

.raro-select-menu[hidden],
.raro-save-product[hidden] {
    display: none !important
}

.woocommerce .raro-shop ul.products {
    gap: 20px;
    margin-bottom: 30px
}

.woocommerce .raro-shop ul.products li.product {
    border: 1px solid var(--raro-line);
    padding-bottom: 12px;
    overflow-wrap: anywhere
}

.woocommerce .raro-shop ul.products li.product a img {
    aspect-ratio: 1;
    object-fit: contain;
    margin: 0
}

.woocommerce .raro-shop ul.products li.product .woocommerce-loop-product__title {
    padding: 12px 14px 5px;
    font-size: 14px
}

.woocommerce .raro-shop ul.products li.product .price {
    padding: 0 14px;
    margin-bottom: 8px;
    font-size: 16px
}

.woocommerce .raro-shop ul.products li.product .button {
    margin: 0 12px;
    background: transparent;
    border: 1px solid var(--raro-gold);
    color: var(--raro-gold);
    border-radius: 0;
    font-weight: 400;
    min-height: 0;
    height: auto;
    line-height: 1.2;
    font-size: 12px;
    padding: 6px 10px
}

.woocommerce .raro-shop ul.products li.product .button:hover {
    background: var(--raro-gold);
    color: var(--raro-bg)
}

.woocommerce .raro-shop ul.products li.product .added_to_cart {
    padding: 8px 14px;
    color: var(--raro-gold)
}

.raro-save-product {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #0b0d0c66;
    color: #fff;
    z-index: 2
}

.raro-save-product:hover,
.raro-save-product[aria-pressed=true] {
    color: var(--raro-gold);
    background: #0b0d0cbb
}

.raro-save-product[aria-pressed=true] svg {
    fill: currentColor
}

.raro-archive-banner {
    min-height: 290px;
    border: 1px solid var(--raro-line);
    margin: 28px 0
}

.raro-archive-banner-copy {
    max-width: 490px;
    padding: 30px 36px
}

.raro-archive-banner h2 {
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.05;
    margin: 0 0 12px
}

.raro-archive-banner p {
    font: 20px/1.3 "Cormorant Garamond", Georgia, serif;
    margin: 0 0 18px
}

.woocommerce .raro-shop nav.woocommerce-pagination ul {
    border: 0;
    display: flex;
    gap: 12px;
    justify-content: center
}

.woocommerce .raro-shop nav.woocommerce-pagination ul li {
    border: 0
}

.woocommerce .raro-shop nav.woocommerce-pagination ul li a,
.woocommerce .raro-shop nav.woocommerce-pagination ul li span {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--raro-ivory)
}

.woocommerce .raro-shop nav.woocommerce-pagination ul li .current,
.woocommerce .raro-shop nav.woocommerce-pagination ul li a:hover {
    border-color: var(--raro-gold);
    color: var(--raro-gold);
    background: transparent
}

@media(max-width:1100px) {
    .raro-archive-categories {
        order: 3;
        flex-basis: 100%
    }

    .woocommerce .raro-archive-toolbar .woocommerce-ordering {
        margin-left: auto
    }
}

@media(max-width:700px) {

    .raro-archive-hero-photo,
    .raro-archive-banner-photo {
        inset: 0
    }

    .raro-archive-hero::after,
    .raro-archive-banner::after {
        background: linear-gradient(90deg, #0b0d0cf5, #0b0d0c55)
    }

    .raro-archive-hero-copy {
        min-height: 320px;
        padding-top: 24px
    }

    .raro-archive .woocommerce-products-header {
        max-width: 85%
    }

    .raro-archive-toolbar {
        gap: 12px
    }

    .raro-select {
        min-width: 0;
        width: 190px
    }

    .woocommerce .raro-archive-toolbar .woocommerce-result-count {
        font-size: 11px;
        flex: 1
    }

    .woocommerce .raro-shop ul.products {
        gap: 18px 12px
    }

    .woocommerce .raro-shop ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
        padding: 10px
    }

    .woocommerce .raro-shop ul.products li.product .price {
        padding: 0 10px;
        font-size: 14px
    }

    .woocommerce .raro-shop ul.products li.product .button {
        margin: 0 8px;
        font-size: 11px
    }

    .raro-archive-banner-copy {
        padding: 28px 20px;
        max-width: 90%
    }
}

/* Native selects stay available without JavaScript. */
.raro-shop select[hidden] {
    display: none !important
}

.woocommerce .raro-archive-toolbar .woocommerce-ordering {
    margin-left: auto
}

.raro-catalog-navigation {
    display: none;
    flex-basis: 100%;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: thin;
    scrollbar-color: var(--raro-gold) transparent
}

.raro-catalog-navigation a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid transparent;
    white-space: nowrap
}

.raro-catalog-navigation a:hover,
.raro-catalog-navigation a[aria-current] {
    border-color: var(--raro-gold);
    color: var(--raro-gold);
    background: #d4a01710
}

.raro-model-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 11px;
    color: var(--raro-muted);
    padding-right: 12px
}

@media(min-width:1101px) {
    .raro-archive-toolbar .raro-catalog-navigation {
        flex: 1 1 0;
        width: auto;
        min-width: 0
    }

    .woocommerce .raro-archive-toolbar .woocommerce-ordering {
        flex: 0 0 210px;
        margin: 0
    }

    .raro-archive-toolbar .raro-archive-categories {
        order: 3;
        flex-basis: 100%
    }
}

/* Categories remain available through Productos in the mobile dialog. */
@media(max-width:1100px) {
    .raro-catalog-navigation {
        display: none
    }
}

/* Hacer que la imagen cubra la altura del banner */
.raro-archive-hero-photo>img.raro-shop-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
