/* ═══════════════════════════════════════════════
   SHENOA — Estilos v2.0
   Archivo cacheable por el navegador
═══════════════════════════════════════════════ */

:root {
    --shenoa-radius: 16px;
    --shenoa-gap: 16px;
    --shenoa-shadow: 0 2px 16px rgba(0,0,0,0.07);
    --shenoa-shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
}

/* ─── CARD ─── */
.shenoa-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--shenoa-radius);
    overflow: hidden;
    box-shadow: var(--shenoa-shadow);
    text-decoration: none;
    color: #111;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.shenoa-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shenoa-shadow-hover);
}
.shenoa-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}
.shenoa-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.shenoa-card:hover .shenoa-card__img-wrap img {
    transform: scale(1.04);
}

/* Badge */
.shenoa-card__badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0 8px 0 0;
    text-transform: capitalize;
    letter-spacing: 0.3px;
    line-height: 1.3;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Body */
.shenoa-card__body {
    flex: 1;
    padding: 14px 18px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.shenoa-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.shenoa-card__title {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shenoa-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.3;
}
.shenoa-card__price del {
    font-weight: 400;
    font-size: 14px;
    color: #aaa;
    margin-right: 5px;
}
.shenoa-card__price ins {
    text-decoration: none;
}

/* Botón Ver producto */
.shenoa-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: #edf0f2;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    margin-top: auto;
    letter-spacing: 0.2px;
    border: none;
}
.shenoa-card__btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}
.shenoa-card:hover .shenoa-card__btn {
    background: #000;
    color: #fff;
}
.shenoa-card:hover .shenoa-card__btn svg {
    transform: translateX(3px);
}

/* Card responsive */
@media (max-width: 768px) {
    .shenoa-card__body { padding: 12px 14px 14px; gap: 5px; }
    .shenoa-card__price { font-size: 17px; }
    .shenoa-card__title { font-size: 13px; }
    .shenoa-card__btn { padding: 8px 12px; font-size: 12px; }
    .shenoa-card__badge { font-size: 10px; padding: 3px 8px; }
}
@media (max-width: 420px) {
    .shenoa-card__body { padding: 10px 10px 12px; gap: 4px; }
    .shenoa-card__price { font-size: 15px; }
    .shenoa-card__title { font-size: 12px; }
    .shenoa-card__btn { padding: 7px 10px; font-size: 11px; border-radius: 8px; }
    .shenoa-card__badge { font-size: 9px; padding: 2px 6px; }
}

/* Card video */
.shenoa-card--video {
    position: relative;
    display: block;
    background: #000;
    flex-direction: unset;
}
.shenoa-card--video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* ─── GRID ─── */
.shenoa-grid {
    display: grid;
    gap: var(--shenoa-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}
.shenoa-grid--2 { grid-template-columns: repeat(2, 1fr); }
.shenoa-grid--3 { grid-template-columns: repeat(3, 1fr); }
.shenoa-grid--4 { grid-template-columns: repeat(4, 1fr); }
.shenoa-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
    .shenoa-grid--4,
    .shenoa-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .shenoa-grid--3,
    .shenoa-grid--4,
    .shenoa-grid--5 { grid-template-columns: repeat(2, 1fr); }
    :root { --shenoa-gap: 12px; }
}
@media (max-width: 420px) {
    .shenoa-grid--2,
    .shenoa-grid--3,
    .shenoa-grid--4,
    .shenoa-grid--5 { grid-template-columns: repeat(2, 1fr); }
    :root { --shenoa-gap: 8px; }
}

/* ─── SLIDER ─── */
.shenoa-slider-wrap {
    position: relative;
    overflow: hidden;
    padding: 0 4px;
}
.shenoa-slider {
    display: flex;
    gap: var(--shenoa-gap);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.shenoa-slider__item {
    flex: 0 0 calc(20% - 13px);
    min-width: 0;
}
@media (max-width: 1024px) {
    .shenoa-slider__item { flex: 0 0 calc(33.33% - 11px); }
}
@media (max-width: 768px) {
    .shenoa-slider__item { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 420px) {
    .shenoa-slider__item { flex: 0 0 calc(50% - 5px); }
    .shenoa-slider { gap: 8px; }
}
.shenoa-slider-btn {
    position: absolute;
    top: 36%;
    transform: translateY(-50%);
    z-index: 10;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    padding: 0;
}
.shenoa-slider-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.shenoa-slider-btn--prev { left: -6px; }
.shenoa-slider-btn--next { right: -6px; }
.shenoa-slider-btn svg { width: 16px; height: 16px; }
.shenoa-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.shenoa-slider-dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.shenoa-slider-dots button.active {
    background: #333;
    transform: scale(1.35);
}

/* ─── VIDEO GRID ─── */
.shenoa-video-grid {
    display: grid;
    gap: var(--shenoa-gap);
    list-style: none;
    margin: 0;
    padding: 0;
}
.shenoa-video-grid--1 { grid-template-columns: repeat(1, 1fr); }
.shenoa-video-grid--2 { grid-template-columns: repeat(2, 1fr); }
.shenoa-video-grid--3 { grid-template-columns: repeat(3, 1fr); }
.shenoa-video-grid--4 { grid-template-columns: repeat(4, 1fr); }
.shenoa-video-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1024px) {
    .shenoa-video-grid--4,
    .shenoa-video-grid--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .shenoa-video-grid--3,
    .shenoa-video-grid--4,
    .shenoa-video-grid--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
    .shenoa-video-grid--2,
    .shenoa-video-grid--3,
    .shenoa-video-grid--4,
    .shenoa-video-grid--5 { grid-template-columns: repeat(1, 1fr); }
}
.shenoa-video-item {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: var(--shenoa-radius);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shenoa-shadow);
}
.shenoa-video-item iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

/* Video lazy placeholder */
.shenoa-video-item--lazy {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.shenoa-video-item--lazy::after {
    content: '';
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: shenoa-spin 0.8s linear infinite;
}
@keyframes shenoa-spin {
    to { transform: rotate(360deg); }
}

/* ─── VIDEO SLIDER ─── */
.shenoa-video-slider-wrap {
    position: relative;
    overflow: hidden;
    padding: 0 4px;
}
.shenoa-video-slider {
    display: flex;
    gap: var(--shenoa-gap);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}
.shenoa-video-slider__item {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
}
@media (max-width: 1024px) {
    .shenoa-video-slider__item { flex: 0 0 calc(33.33% - 11px); }
}
@media (max-width: 768px) {
    .shenoa-video-slider__item { flex: 0 0 calc(50% - 8px); }
}
@media (max-width: 420px) {
    .shenoa-video-slider__item { flex: 0 0 calc(100% - 5px); }
}

/* ─── TIENDA ─── */
.shenoa-tienda-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.shenoa-tienda-filters button {
    padding: 8px 18px;
    border: 1.5px solid #ddd;
    border-radius: 30px;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.shenoa-tienda-filters button:hover {
    border-color: #000;
    color: #000;
}
.shenoa-tienda-filters button.active {
    background: #000;
    color: #fff;
    border-color: #000;
}
.shenoa-tienda-load-more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.shenoa-tienda-load-more button {
    padding: 12px 40px;
    background: #edf0f2;
    color: #222;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.2px;
}
.shenoa-tienda-load-more button:hover {
    background: #000;
    color: #fff;
}
.shenoa-tienda-load-more button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.shenoa-tienda-grid {
    transition: opacity 0.3s ease;
}
.shenoa-tienda-grid--loading {
    opacity: 0.4;
    pointer-events: none;
}
.shenoa-tienda-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}
@media (max-width: 768px) {
    .shenoa-tienda-filters { gap: 6px; margin-bottom: 18px; }
    .shenoa-tienda-filters button { padding: 6px 14px; font-size: 12px; }
}
