.only-store-document body,
.only-store {
    background: #f7f8fb;
}

.only-store {
    --store-ink: #142033;
    --store-muted: #6b7789;
    --store-line: #e5e9f0;
    --store-brand: #392481;
    --store-brand-dark: #2d1b6d;
    --store-soft: #f2efff;
    --store-white: #fff;
    min-height: 100vh;
    color: var(--store-ink);
}

.only-store__wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

/* Slider recuperado, más limpio y compacto para ecommerce. */
.only-store__slider {
    width: min(1320px, calc(100% - 24px));
    margin: 16px auto 0;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(24, 31, 52, .12);
}

.only-store__slider .sfx-slider__viewport {
    border-radius: 26px;
}

.only-store__slider .sfx-slide,
.only-store__slider .sfx-slide__media,
.only-store__slider .sfx-slide__asset {
    min-height: clamp(270px, 34vw, 440px);
    max-height: 440px;
}

.only-store__slider .sfx-slide__asset {
    width: 100%;
    object-fit: cover;
}

.only-store__slide-fallback {
    background:
        radial-gradient(circle at 18% 24%, rgba(255,255,255,.22), transparent 28%),
        radial-gradient(circle at 82% 78%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #31206f 0%, #5b35aa 52%, #6f52d8 100%);
}

.only-store__slide-copy {
    max-width: 620px;
}

.only-store__slide-copy .sfx-slide__title {
    max-width: 560px;
}

/* El buscador es la acción principal: grande, simple y debajo del slider. */
.only-store__search-section {
    position: relative;
    z-index: 8;
    margin-top: 22px;
}

.only-store__search {
    width: min(920px, 100%);
    min-height: 68px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 7px 8px 7px 20px;
    border: 1px solid #dfe4ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(30, 38, 59, .10);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.only-store__search:focus-within {
    border-color: rgba(57, 36, 129, .5);
    box-shadow: 0 18px 48px rgba(57, 36, 129, .14);
    transform: translateY(-1px);
}

.only-store__search-icon {
    color: var(--store-brand);
    font-size: 18px;
}

.only-store__search input[type="search"] {
    width: 100%;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--store-ink);
    font-size: 16px;
    font-weight: 600;
}

.only-store__search input::placeholder {
    color: #98a1af;
    font-weight: 500;
}

.only-store__search button {
    height: 52px;
    min-width: 126px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--store-brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.only-store__search button:hover {
    background: var(--store-brand-dark);
    transform: translateY(-1px);
}

.only-store__categories {
    margin-top: 20px;
}

.only-store__categories-row {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: thin;
}

.only-store__category {
    flex: 0 0 auto;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid var(--store-line);
    border-radius: 999px;
    background: #fff;
    color: #46546a;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    transition: .16s ease;
}

.only-store__category:hover,
.only-store__category.is-active {
    border-color: var(--store-brand);
    background: var(--store-soft);
    color: var(--store-brand);
}

.only-store__category i {
    font-size: 13px;
}

.only-store__catalog {
    padding: 20px 0 54px;
}

.only-store__head {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.only-store__head h2 {
    margin: 0;
    color: var(--store-ink);
    font-size: clamp(20px, 2.1vw, 26px);
    font-weight: 850;
    letter-spacing: -.025em;
}

.only-store__count {
    min-width: 34px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eceff4;
    color: #586477;
    font-size: 12px;
    font-weight: 800;
}

.only-store__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.only-store__product {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--store-line);
    border-radius: 18px;
    background: #fff;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.only-store__product:hover {
    transform: translateY(-3px);
    border-color: #d8dbea;
    box-shadow: 0 16px 34px rgba(29, 38, 59, .09);
}

.only-store__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / .88;
    overflow: hidden;
    background: #f8f9fb;
}

.only-store__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    padding: 10px;
    transition: transform .2s ease;
}

.only-store__product:hover .only-store__media img {
    transform: scale(1.025);
}

.only-store__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 850;
}

.only-store__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 13px 13px 8px;
}

.only-store__category-link {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    color: #7a8492;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-decoration: none;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.only-store__name {
    margin: 7px 0 10px;
    min-height: 42px;
    color: var(--store-ink);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.only-store__name a {
    color: inherit;
    text-decoration: none;
}

.only-store__price-row {
    margin-top: auto;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 8px;
}

.only-store__price {
    color: var(--store-brand);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.02em;
}

.only-store__stock {
    color: #7b8794;
    font-size: 10px;
    font-weight: 700;
}

.only-store__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 8px 12px 12px;
}

.only-store__detail,
.only-store__cart {
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 850;
    transition: .15s ease;
}

.only-store__detail {
    border: 1px solid #dfe3ea;
    background: #fff;
    color: #37465a;
}

.only-store__detail:hover {
    border-color: var(--store-brand);
    color: var(--store-brand);
}

.only-store__cart {
    border: 0;
    background: var(--store-brand);
    color: #fff;
    cursor: pointer;
}

.only-store__cart:hover {
    background: var(--store-brand-dark);
    transform: translateY(-1px);
}

.only-store__cart.is-loading {
    pointer-events: none;
    opacity: .72;
}

.only-store__empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px dashed #d8dee8;
    border-radius: 18px;
    color: #8490a1;
    background: #fff;
}

.only-store__empty i {
    font-size: 24px;
    color: #a2aabb;
}

.only-store [hidden] {
    display: none !important;
}

.cart-notification {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 9999;
    transform: translateY(18px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
}

.cart-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border-radius: 12px;
    background: #132033;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .2);
    font-size: 12px;
    font-weight: 750;
}

.cart-notification.success .notification-content { background: #166534; }
.cart-notification.error .notification-content { background: #991b1b; }

@media (max-width: 1199.98px) {
    .only-store__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 899.98px) {
    .only-store__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .only-store__slider { width: min(100% - 20px, 1320px); border-radius: 20px; }
    .only-store__slider .sfx-slider__viewport { border-radius: 20px; }
}

@media (max-width: 679.98px) {
    .only-store__wrap { width: min(100% - 22px, 1240px); }
    .only-store__slider { margin-top: 8px; width: calc(100% - 14px); border-radius: 16px; }
    .only-store__slider .sfx-slider__viewport { border-radius: 16px; }
    .only-store__slider .sfx-slide,
    .only-store__slider .sfx-slide__media,
    .only-store__slider .sfx-slide__asset { min-height: 220px; max-height: 260px; }
    .only-store__slide-copy .sfx-slide__description { display: none; }
    .only-store__search-section { margin-top: 14px; }
    .only-store__search { min-height: 60px; grid-template-columns: 22px minmax(0,1fr) 50px; padding: 5px 6px 5px 14px; border-radius: 16px; }
    .only-store__search input[type="search"] { height: 48px; font-size: 14px; }
    .only-store__search button { min-width: 50px; width: 50px; height: 48px; padding: 0; border-radius: 12px; }
    .only-store__search button span { display: none; }
    .only-store__categories { margin-top: 14px; }
    .only-store__catalog { padding-top: 14px; }
    .only-store__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .only-store__product { border-radius: 15px; }
    .only-store__body { padding: 10px 10px 6px; }
    .only-store__name { min-height: 38px; font-size: 12px; margin: 6px 0 8px; }
    .only-store__price { font-size: 15px; }
    .only-store__stock { display: none; }
    .only-store__actions { grid-template-columns: minmax(0,1fr) 39px; padding: 7px 9px 9px; }
    .only-store__detail, .only-store__cart { height: 38px; }
}

@media (max-width: 379.98px) {
    .only-store__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .only-store__category { min-height: 38px; padding: 0 12px; }
}
