:root {
    --theme-bg-color: #f29c55;
    --theme-bg-color-light: #eba46a;
    --theme-bg-strong-color: #d98641;
    --theme-bg-gray: #423f3a;
    --theme-bg-gray-dark: #2b2824;
    --link-color: #0077cc;
}
[v-cloak] {
    visibility: hidden;
}
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
    /* Stop the vertical rubber-band / pull-to-refresh bounce on mobile. Unlike `overflow`,
       this doesn't create a scroll container, so it won't affect the back-to-top floater. */
    overscroll-behavior-y: none;
}
html, body {
    height: 100%;
    margin: 0;
}
main {
    padding-bottom: 3rem;
}
body {
    overflow-x: hidden;
    overscroll-behavior-y: none;
    font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size-adjust: 0.52;
    font-weight: 400;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
}
.help-text {
    font-size: 12px;
    color: #999;
    width: 100%;
    text-align: left;
}
.container {
    position: relative;
}
.hidden {
    display: none !important;
}
.social-media-lnk {
    font-size: 1.5em;
}
/* Centered social strip at the bottom of the pre-footer block (above the © bar). */
.footer-sns {
    display: flex;
    justify-content: center;
    gap: 28px;
    padding: 16px 0 4px;
}
.footer-sns .social-media-lnk { color: #ddd; }
.footer-sns .social-media-lnk:hover { color: var(--theme-bg-color, #f29c55); }
/* Social icons in the top navbar, next to the language selector. */
.nav-sns { gap: 12px; padding: 0 12px; }
/* Match the navbar's dark link text ("Cerrar sesión", menu items) instead of gray. */
.nav-sns-link { color: #212529; font-size: 18px; line-height: 1; }
/* No dark block behind the icons on hover any more, so keep them dark (white would wash out
   against the orange bar) and just dim slightly as the hover affordance. */
.nav-sns-link:hover { color: #212529; opacity: .65; }
/* In the collapsed mobile menu the icons need a real tap target — bigger and centered. */
@media (max-width: 991.98px) {
    .nav-sns { justify-content: center; gap: 44px; padding: 18px 4px; }
    .nav-sns-link { font-size: 34px; }
    /* Center every item in the expanded mobile menu and size up the text links. */
    .navbar-collapse .navbar-nav .nav-link {
        text-align: center;
        font-size: 20px;
        font-weight: 600;
    }
    .navbar-collapse .nav-item { text-align: center; }
    /* "Mi cuenta" + the points pill are a flex row, and text-align does nothing to flex
       items — without this the pair sits left while every other menu entry is centred. */
    .navbar-collapse .nav-account { justify-content: center; }
    /* Language selector: near full-width button, and the open menu OVERLAYS the page
       (Bootstrap makes navbar dropdowns position:static on mobile, which pushes content). */
    .navbar-collapse .nav-item-lang { padding: 8px 16px 14px; }
    .navbar-collapse .nav-item-lang .dropdown { position: relative; width: 100%; }
    .navbar-collapse .nav-item-lang .dropdown > button { width: 100%; padding: 10px 12px; font-size: 16px; text-align: center; }
    .navbar-collapse .nav-item-lang .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1050;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }
    .navbar-collapse .nav-item-lang .dropdown-item { padding: 12px 16px; font-size: 16px; text-align: center; }
}
footer .link-item {
    line-height: 2em;
    font-size: 14px;
    position: relative;
}
.pre2footer .footer-containers {
    padding-top: 0;
    margin-top: -160px;
}
.link-item[role=heading] {
    line-height: 2em;
    color: #ddd;
    font-weight: 900;
}
.footer, .pre2footer {
    padding-bottom: 10px;
}
.footer-about-us {
    padding: 15px 25px;
}
.footer-logo img {
    opacity: 0.075;
}
.logo-top img {
    /* Logo shrunk to 55px so the 10px top/bottom margin fits inside the original ~75px header
       height (55 + 10 + 10) instead of growing the navbar. */
    height: 55px;
    width: auto;
    margin: 10px 40px 10px 0;
    /* New logo art is black on a transparent background; recolor it to solid white for the
       orange navbar. brightness(0) forces every opaque pixel to black, invert(1) flips that
       to white (transparent pixels stay transparent). */
    filter: brightness(0) invert(1);
}
.pre2footer {
    padding-bottom: 20px;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
    .pre2footer .footer-containers {
        margin-top: 10px;
    }
    .footer-about-us {
        padding: 0;
    }
    footer .link-item {
        line-height: 1.6em;
    }
    .footer {
        padding-bottom: 0;
    }
    .footer-logo img {
        opacity: 0.15;
    }
    .footer-about-us {
        margin-top: 10px;
    }
}
footer {
    width: 100%;
    white-space: nowrap;
    border-top: 1px solid #e5e5e5;
}
.pre2footer {
    border-bottom: 2px solid var(--theme-bg-strong-color);
    background: var(--theme-bg-gray);
    line-height: 40px;
}
.prefooter {
    border-bottom: 2px solid var(--theme-bg-strong-color);
    background: var(--theme-bg-color);
    line-height: 40px;
}
.prefooter .container,
.prefooter .container a {
    color: #222;
}
.footer {
    line-height: 40px;
    background: var(--theme-bg-gray-dark);
}
footer .container,
footer .container a {
    color: #999;
}
.page-content {
    flex-grow: 1;
}
.content {
    margin-bottom: 120px;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
a {
    color: var(--link-color);
    text-decoration: none;
}
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}
.navbar-brand {
    font-size: 30px;
    text-transform: uppercase;
    border-radius: 5px;
    padding: 0;
}
.navbar-nav .nav-item .nav-link {
    font-weight: 500;
    color: #000 !important;
}
.navbar-nav .nav-item-lang {
    line-height: 30px;
    padding-left: 10px;
}
.navbar-nav .nav-item-lang * {
    z-index: 99999;
}
/* Currency picker (views/partials/currency-picker.ejs): the note under the choices wraps
   instead of widening the menu. */
.currency-picker .dropdown-menu { min-width: 15rem; }
.currency-picker-note { white-space: normal; font-size: 12px; line-height: 1.4; color: #666; }
.prefooter .currency-picker { margin-left: 6px; }
/* Fine print under the © line while prices are in a converted currency. The footer is
   white-space: nowrap — this must wrap, or a phone shows only the first half of it. */
.footer .currency-disclaimer {
    white-space: normal;
    font-size: 12px;
    line-height: 1.5;
    color: #888;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 4px 0 6px;
}
/* Narrower screens: the text reaches the floating favorites heart (.fav-fab, fixed at the
   bottom right, ~73px tall with its margin) — leave room so the last line scrolls clear. */
@media (max-width: 991.98px) {
    .footer .currency-disclaimer { padding-bottom: 76px; }
}
/* The social-icon group is a .nav-item too, but it's a row of icons rather than a menu
   entry — the dark hover block behind it looks like a stray box, so exclude it (.nav-sns)
   the same way the language selector is excluded. */
.navbar-nav .nav-item:hover:not(.nav-item-special):not(.nav-sns),
.navbar-nav .nav-item:active:not(.nav-item-special):not(.nav-sns),
.navbar-nav .nav-item:hover:not(.nav-item-special):not(.nav-sns) .nav-link,
.navbar-nav .nav-item:active:not(.nav-item-special):not(.nav-sns) .nav-link,
.navbar-nav .nav-item.active:not(.nav-item-special):not(.nav-sns) .nav-link {
    background: var(--theme-bg-strong-color) !important;
    color: #f8f8f8 !important;
    border-radius: 5px !important;
}
.navbar-nav .btn-link {
    padding: 15px;
    width: 100%;
    height: 100%;
    text-align: left;
}
h1, h2 {
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 45px;
}
h1 {
    margin-top: 30px;
}
.navbar {
    background: var(--theme-bg-color) !important;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}
.dropdown-item.active {
    background: var(--theme-bg-strong-color) !important;
    color: #f8f8f8 !important;
}
.dropdown-item:active {
    background: #ccc !important;
}
.link-button {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    display: inline;
    line-height: inherit;
    color: #0077cc;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}
.btn-orange {
    background: var(--theme-bg-color);
    color: #fff;
    border: 2px solid var(--theme-bg-color);
    font-size: 36px;
}
.btn-orange:hover,
.btn-orange:active {
    background: var(--theme-bg-color-light) !important;
    border: 2px solid var(--theme-bg-color-light) !important;
    color: #fff !important;
}
.btn-orange.small {
    font-size: 18px;
}
.loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid var(--theme-bg-gray);
    border-right-color: orange;
    animation: l2 0.4s infinite linear;
    position: fixed;
    left: calc(50% - 25px);
    top: calc(50% - 25px);
    z-index: 9999;
}
@keyframes l2 {
    to { transform: rotate(1turn) }
}
#submenu {
    margin-bottom: 0;
}

/* ---- Favorites FAB + slide-over panel (global; built by favorites.js) ---- */
.fav-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 9000;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #e0245e;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fav-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e0245e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}
.fav-fab.has-items .fav-fab-badge { display: flex; }

.fav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.fav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 360px;
    max-width: 88vw;
    background: #fff;
    z-index: 9999;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
}
body.fav-open .fav-overlay { opacity: 1; visibility: visible; }
body.fav-open .fav-panel { transform: translateX(0); }
.fav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #eee;
}
.fav-panel-title {
    font-weight: 700;
    font-size: 17px;
    color: #222;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.fav-panel-title .bi-heart-fill { color: #e0245e; }
.fav-panel-close {
    border: none;
    background: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
}
.fav-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}
.fav-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}
.fav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
}
.fav-item:hover { background: #fafafa; }
.fav-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.fav-item-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex: 0 0 48px;
    background: #f6f6f6;
    border-radius: 6px;
}
.fav-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.fav-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fav-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
}
.fav-was {
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    font-size: 11px;
}
.fav-item-remove {
    border: none;
    background: none;
    color: #bbb;
    cursor: pointer;
    font-size: 14px;
    padding: 6px;
}
.fav-item-remove:hover { color: #e0245e; }
.fav-panel-foot {
    padding: 12px 16px;
    border-top: 1px solid #eee;
}
.fav-clear {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-weight: 600;
}
.fav-clear:hover { background: #f5f5f5; }

/* Banner */
.banner {
    background: var(--theme-bg-gray-dark);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}
.banner h2 {
    margin-bottom: 15px;
    color: #fff;
}
.follow-us-ig {
    color: #fff;
    background: var(--theme-bg-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.follow-us-ig:hover {
    background: var(--theme-bg-color-light);
    color: #fff;
}

/* ---- Puntos (club) integration ------------------------------------------
   The pill and the share buttons only exist for a signed-in club member, and
   membership is only known after puntos.js resolves /points/me. Reveal is CSS-
   driven off body.puntos-ready so cards added later by infinite scroll light up
   with no re-wiring. */
.puntos-pill {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 11px; border-radius: 999px;
    background: #fff; color: #d2691e; border: 1px solid rgba(0,0,0,.08);
    font-size: 14px; font-weight: 700; line-height: 1.4;
    text-decoration: none; white-space: nowrap;
}
.puntos-pill:hover { color: #b35418; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.puntos-pill .bi { font-size: 12px; color: #f0ad4e; }

/* Share button on product cards — hidden until we know the member's referral code
   (without it a share link can't be attributed, so showing it would be a dead end). */
.puntos-share { display: none; }
body.puntos-ready .puntos-share { display: inline-flex; }
.puntos-share {
    align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.92); color: #d2691e;
    box-shadow: 0 1px 4px rgba(0,0,0,.16);
    cursor: pointer; font-size: 15px;
}
.puntos-share:hover { background: #fff; color: #b35418; }

/* On cards the button sits in the shared .card-actions bar alongside the favourite heart —
   outside the artwork and outside the card's link. See deals.css. */

.puntos-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 12px);
    background: #212529; color: #fff; padding: 10px 18px; border-radius: 10px;
    font-size: 14px; z-index: 100000; opacity: 0; transition: opacity .25s, transform .25s;
    pointer-events: none; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
.puntos-toast.show { opacity: 1; transform: translate(-50%, 0); }
