/* Experiencia de tienda Sushuma: catálogo claro, fichas serenas y compra accesible. */

.store-shell {
    --store-ink: #352c39;
    --store-muted: #706873;
    --store-line: rgba(61, 45, 95, .14);
    --store-lilac: #f2edf6;
    --store-cream: #fbf8f2;
}

.store-portal-hero {
    max-width: 820px;
    margin-inline: auto;
}

.store-category-card {
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(52, 40, 59, .08);
}

.store-category-card .unified-card-image {
    min-height: 250px;
    transition: transform .45s ease;
}

.store-category-card:hover .unified-card-image,
.store-category-card:focus-visible .unified-card-image {
    transform: scale(1.025);
}

.store-section-eyebrow,
.product-detail-eyebrow,
.product-configurator-step {
    color: #765f80;
    font-family: var(--font-sans-serif);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.store-toolbar {
    display: grid;
    grid-template-columns: minmax(160px, auto) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--store-cream);
    border: 1px solid var(--store-line);
    border-radius: 18px;
}

.store-result-count {
    color: var(--store-muted);
    font-size: .9rem;
}

.store-result-count strong {
    color: var(--store-ink);
    font-size: 1.05rem;
}

.store-result-count span {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-toolbar-form {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(165px, auto) auto auto;
    gap: .65rem;
    align-items: center;
}

.store-search-field {
    position: relative;
}

.store-search-field i {
    position: absolute;
    top: 50%;
    left: .9rem;
    color: #86798c;
    transform: translateY(-50%);
    pointer-events: none;
}

.store-search-field input,
.store-toolbar-form select {
    width: 100%;
    min-height: 46px;
    padding: .7rem .9rem;
    color: var(--store-ink);
    background: #fff;
    border: 1px solid rgba(61, 45, 95, .2);
    border-radius: 12px;
    font: 500 .9rem/1.3 var(--font-sans-serif);
}

.store-search-field input {
    padding-left: 2.55rem;
}

.store-search-field input:focus,
.store-toolbar-form select:focus {
    border-color: #7454a6;
    outline: 3px solid rgba(116, 84, 166, .16);
}

.store-filter-button {
    min-height: 46px;
    padding: .65rem 1rem;
    color: #fff;
    background: var(--purpura-principal);
    border: 1px solid var(--purpura-principal);
    border-radius: 12px;
    font: 700 .8rem/1 var(--font-sans-serif);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.store-filter-reset {
    padding: .65rem .3rem;
    font-size: .82rem;
    font-weight: 700;
    text-align: center;
}

.product-card {
    overflow: hidden;
    border: 1px solid var(--store-line);
    border-radius: 20px;
}

.product-card-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .55rem;
    color: #807684;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.product-option-badge {
    padding: .25rem .5rem;
    color: #5e4677;
    background: var(--store-lilac);
    border-radius: 999px;
    letter-spacing: .02em;
    text-transform: none;
}

.product-card-title {
    min-height: 2.5em;
    font-size: 1.35rem;
    line-height: 1.18;
}

.product-body > p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.product-detail-page {
    --store-ink: #352c39;
    --store-muted: #706873;
    --store-line: rgba(61, 45, 95, .14);
    --store-lilac: #f2edf6;
    --store-cream: #fbf8f2;
}

.product-detail-layout {
    align-items: flex-start;
    --bs-gutter-x: clamp(2rem, 5vw, 5rem);
}

.product-gallery-column,
.product-purchase-panel {
    min-width: 0;
}

.product-detail-title {
    color: var(--store-ink);
    font-family: var(--font-serif);
    font-size: clamp(2.35rem, 4.2vw, 3.7rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.product-detail-price .price-tag {
    font-size: clamp(1.9rem, 3vw, 2.35rem) !important;
}

.product-configurator-heading {
    margin: 1.4rem 0 1rem;
    padding: 1rem 1.1rem;
    background: var(--store-cream);
    border-left: 3px solid #9d7bb4;
    border-radius: 0 14px 14px 0;
}

.product-configurator-heading h2 {
    margin: .15rem 0 .2rem;
    color: var(--store-ink);
    font-size: 1.55rem;
}

.product-configurator-heading p {
    margin: 0;
    color: var(--store-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.product-detail-page #talle-selector label {
    min-width: 46px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-detail-page .color-swatch {
    width: 44px;
    height: 44px;
    padding: 0;
    appearance: none;
    font: inherit;
}

.product-detail-page .color-swatch:focus-visible {
    outline: 3px solid rgba(116, 84, 166, .3);
    outline-offset: 3px;
}

.product-purchase-assurances {
    display: grid;
    gap: .65rem;
    margin: .75rem 0 0;
    padding: .9rem 1rem;
    color: var(--store-muted);
    background: #fff;
    border: 1px solid var(--store-line);
    border-radius: 14px;
    font-size: .82rem;
    line-height: 1.4;
    list-style: none;
}

.product-purchase-assurances li {
    display: flex;
    gap: .65rem;
    align-items: center;
}

.product-purchase-assurances i {
    width: 18px;
    color: #6f557b;
    text-align: center;
}

.product-consult-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-top: .9rem;
    padding: 1rem;
    color: var(--store-muted);
    background: var(--store-lilac);
    border: 1px solid rgba(116, 84, 166, .16);
    border-radius: 14px;
}

.product-consult-panel strong,
.product-consult-panel span {
    display: block;
}

.product-consult-panel strong {
    margin-bottom: .2rem;
    color: var(--store-ink);
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

.product-consult-panel span {
    font-size: .82rem;
    line-height: 1.45;
}

.product-consult-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .65rem .9rem;
    color: #fff;
    background: #486f58;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.product-consult-link:hover,
.product-consult-link:focus-visible {
    color: #fff;
    background: #385b47;
}

.product-unavailable-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.product-description {
    color: var(--store-muted) !important;
    font-size: 1rem;
    line-height: 1.75;
}

.product-description h2 {
    margin-bottom: 1rem;
    color: var(--store-ink);
    font-size: 1.9rem;
}

@media (max-width: 991.98px) {
    .store-toolbar,
    .store-toolbar-form {
        grid-template-columns: 1fr;
    }

    .store-result-count span {
        display: inline;
        max-width: none;
        white-space: normal;
    }

    .store-filter-reset {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .store-shell {
        margin-top: 1.25rem !important;
    }

    .store-portal-hero {
        margin-bottom: 2.2rem !important;
    }

    .store-category-card .unified-card-image {
        min-height: 215px;
    }

    .store-toolbar {
        padding: .85rem;
        border-radius: 15px;
    }

    .product-detail-page {
        margin-top: 1.5rem !important;
    }

    .product-detail-title {
        font-size: clamp(2.25rem, 11vw, 2.8rem);
    }

    .product-detail-page .design-selection-overlay {
        margin-top: .65rem;
    }

    .product-consult-panel,
    .product-unavailable-actions {
        grid-template-columns: 1fr;
    }

    .product-consult-link {
        width: 100%;
        white-space: normal;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .store-category-card .unified-card-image,
    .product-detail-page .color-swatch {
        transition: none;
    }
}
