#tienda {
    background: var(--black);
}
.tienda-bg-img {
    background: url('../img/storelogo-opt.webp') center/cover no-repeat;
    background-image: image-set(url('../img/storelogo-opt.avif') type('image/avif'), url('../img/storelogo-opt.webp') type('image/webp'));
}
@media (max-width: 48rem) {
    .tienda-bg-img {
        background-image: url('../img/storelogo-mobile.webp');
        background-image: image-set(url('../img/storelogo-mobile.avif') type('image/avif'), url('../img/storelogo-mobile.webp') type('image/webp'));
    }
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 1.5vw, 1.8rem);
    margin-top: clamp(2rem, 4vh, 3rem);
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.shop-filters-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    margin-top: clamp(1.2rem, 2.5vh, 1.7rem);
}
.shop-filters {
    --blob-x: 0px;
    --blob-w: 0px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    width: fit-content;
    min-width: 0;
    flex: 0 1 auto;
    margin: 0;
    padding: 0.3rem;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0.5rem 1.4rem rgba(0,0,0,0.18), 0 1.4rem 3rem rgba(0,0,0,0.14);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}
.shop-filters::before {
    content: '';
    position: absolute;
    top: 0.3rem;
    bottom: 0.3rem;
    left: 0;
    width: var(--blob-w);
    transform: translateX(var(--blob-x));
    border-radius: 999px;
    background: var(--red);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0.35rem 1rem rgba(230,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.22, 1.2, 0.36, 1), width 0.5s cubic-bezier(0.22, 1.2, 0.36, 1), border-radius 0.35s ease, opacity 0.25s ease;
}
.shop-filters.blob-ready::before { opacity: 1; }
.shop-filters.is-morphing::before { border-radius: 46% 54% 48% 52% / 62% 38% 64% 36%; }
.shop-arrow {
    display: none;
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s, border-radius 0.4s var(--ease-out-expo);
}
.shop-filters-wrap.scrollable .shop-arrow { display: flex; }
.shop-arrow svg { width: 0.85rem; height: 0.85rem; }
.shop-arrow:hover { color: var(--white); border-color: rgba(230,0,0,0.6); background: rgba(230,0,0,0.35); border-radius: 44% 56% 52% 48% / 56% 44% 54% 46%; }
.shop-arrow[disabled] { opacity: 0.3; pointer-events: none; }
.shop-sep {
    position: relative;
    z-index: 1;
    flex: none;
    font-family: var(--font-main);
    font-size: 0.5rem;
    color: rgba(255,255,255,0.18);
    user-select: none;
}
.shop-filters::-webkit-scrollbar { display: none; }
.shop-pill {
    position: relative;
    z-index: 1;
    flex: none;
    font-family: var(--font-main);
    font-size: clamp(0.48rem, 0.5952vw, 0.56rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.25s, background 0.25s;
}
.shop-pill:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.shop-pill.active {
    color: var(--white);
    background: transparent;
}
.shop-pill.active:hover { background: transparent; }
.shop-pill-count {
    opacity: 0.5;
    margin-left: 0.35em;
}
@media (max-width: 64rem) {
    .shop-grid {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 40rem) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
}
.p-card--focus {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}
.p-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: max(1.2rem, var(--curve-r));
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0.6rem 1.6rem rgba(0,0,0,0.20), 0 1.8rem 3.6rem rgba(0,0,0,0.16);
    transition: transform 0.4s var(--ease-out-expo), border-radius 0.55s var(--ease-out-expo), box-shadow 0.4s, border-color 0.3s, background 0.3s;
}
.p-card:hover {
    transform: translateY(-0.4rem);
    border-radius: max(1.45rem, var(--curve-r)) max(1.2rem, var(--curve-r)) max(1.5rem, var(--curve-r)) max(1.2rem, var(--curve-r));
    box-shadow: 0 0.8rem 1.8rem rgba(0,0,0,0.24), 0 2rem 4rem rgba(0,0,0,0.18), 0 0 0 1px rgba(230,0,0,0.2);
    border-color: rgba(230,0,0,0.2);
}
.p-card-img {
    aspect-ratio: 1 / 0.7;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.2rem, 3.84vw, 3rem);
    position: relative;
}
.p-card-img::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
}
.p-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.p-tag {
    position: absolute; top: 0; left: 0;
    font-family: var(--font-main);
    font-size: clamp(0.35rem, 0.48vw, 0.45rem);
    font-weight: 700; letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--red); color: var(--white);
    padding: 0.2rem 0.6rem;
    z-index: 2;
}
.p-card-body {
    padding: clamp(0.6rem, 1.2vw, 1rem);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.p-card-body h3 {
    font-family: var(--font-main);
    font-size: clamp(0.85rem, 1.056vw, 1rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}
.p-card-body .p-desc {
    font-size: clamp(0.6rem, 0.72vw, 0.7rem);
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.p-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.p-price {
    font-family: var(--font-main);
    font-size: clamp(1.1rem, 1.536vw, 1.3rem);
    font-weight: 700;
    color: var(--red);
}
.cart-btn {
    background: none;
    border: none;
    color: var(--white);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.cart-btn svg { width: 1.2rem; height: 1.2rem; }
.cart-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
.p-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}
.share-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.68);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.share-btn svg { width: 1.1rem; height: 1.1rem; }
.share-btn:hover {
    transform: scale(1.15);
    color: var(--red-bright);
    filter: drop-shadow(0 0 8px rgba(230,0,0,0.35));
}
.share-toast {
    position: fixed;
    left: 50%;
    bottom: calc(1.4rem + env(safe-area-inset-bottom));
    transform: translate(-50%, 1rem);
    z-index: 100000;
    max-width: calc(100vw - 2rem);
    padding: 0.6rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(230,0,0,0.45);
    background: rgba(7,7,7,0.92);
    color: var(--red-bright);
    font-family: var(--font-main);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    box-shadow: 0 0.6rem 1.6rem rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.share-toast.active {
    opacity: 1;
    transform: translate(-50%, 0);
}
@media (max-width: 40rem) {
    .p-card-img { aspect-ratio: 1 / 0.65; }
}
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: calc(clamp(1rem, 4vw, 2.5rem) + env(safe-area-inset-top)) calc(clamp(1rem, 4vw, 2.5rem) + env(safe-area-inset-right)) calc(clamp(1rem, 4vw, 2.5rem) + env(safe-area-inset-bottom)) calc(clamp(1rem, 4vw, 2.5rem) + env(safe-area-inset-left));
    background: rgba(5, 5, 5, 0.88);
    cursor: zoom-out;
}
.img-modal.open {
    display: flex;
    animation: modalFade 0.3s ease both;
}
.img-modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: max(1rem, var(--curve-r));
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 2rem 5rem rgba(0,0,0,0.6);
    animation: modalZoom 0.35s var(--ease-out-expo) both;
}
@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalZoom {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
.img-modal-close {
    position: absolute;
    top: calc(max(clamp(0.8rem, 2vw, 1.4rem), var(--edge-safe)) + env(safe-area-inset-top));
    right: calc(max(clamp(0.8rem, 2vw, 1.4rem), var(--edge-safe)) + env(safe-area-inset-right));
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.1);
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, border-radius 0.4s var(--ease-out-expo);
}
.img-modal-close:hover {
    background: rgba(230,0,0,0.75);
    border-color: rgba(230,0,0,0.6);
    border-radius: 44% 56% 52% 48% / 56% 44% 54% 46%;
}
