/* =========================================================================
   /assets/css/templates/dionysus/ez_store.css
   ONYX 2.1 - ez Store
   Carrito local + links externos + WhatsApp fallback
   ========================================================================= */

#ez-module-ez-store,
#ez-module-ez-store * {
    box-sizing: border-box;
}

.ez-module-ez-store {
    width: 100%;
    padding: 1rem 20px 0;
    margin: 35px 0;
}

.ez-store-section {
    width: 100%;
    display: grid;
    gap: 18px;
}

.ez-store-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.12);
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.26), transparent 42%),
        linear-gradient(135deg, rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.70), rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.92));
    box-shadow: 0 18px 46px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.28);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

html[data-theme="light"] .ez-store-header,
[data-theme="light"] .ez-store-header {
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.16), transparent 42%),
        linear-gradient(135deg, rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92), rgba(var(--ez-pal-soft-light-rgb, 246, 237, 235), 0.82));
    box-shadow: 0 16px 42px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12);
}

.ez-store-copy {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.ez-store-eyebrow {
    margin: 0;
    color: var(--ez-pal-secondary, #AA4493);
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ez-store-title {
    margin: 0;
    color: var(--ez-theme-text-main, #ffffff);
    font-size: clamp(1.35rem, 4.5vw, 2rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.ez-store-desc {
    max-width: 44rem;
    margin: 0;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.93rem;
    line-height: 1.55;
}

.ez-store-cart-button {
    position: relative;
    min-width: 46px;
    min-height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
    color: var(--ez-pal-neutral-light, #ffffff);
    background: var(--ez-pal-secondary, #AA4493);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    box-shadow: 0 12px 30px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.28);
    font-family: var(--ez-font-primary, inherit);
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.ez-store-cart-button:hover,
.ez-store-cart-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 16px 36px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.36);
    outline: none;
}

.ez-store-cart-badge {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ez-pal-neutral-light, #fff);
    background: var(--ez-pal-warning, #FFC107);
    box-shadow: 0 6px 18px rgba(var(--ez-pal-warning-rgb, 255, 193, 7), 0.34);
    font-size: 0.68rem;
    font-weight: 950;
}

.ez-store-banner {
    margin: 0;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    box-shadow: 0 16px 36px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.22);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.50);
}

.ez-store-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.ez-store-tabs {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: none;
}

.ez-store-tabs::-webkit-scrollbar {
    display: none;
}

.ez-store-tab {
    flex: 0 0 auto;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.13);
    color: var(--ez-theme-text-main, #ffffff);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.55);
    padding: 0 15px;
    font-family: var(--ez-font-primary, inherit);
    font-size: 0.82rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ez-store-tab:hover,
.ez-store-tab:focus-visible,
.ez-store-tab.is-active {
    transform: translateY(-1px);
    color: var(--ez-pal-neutral-light, #ffffff);
    background: var(--ez-pal-secondary, #AA4493);
    border-color: var(--ez-pal-secondary, #AA4493);
    outline: none;
}

html[data-theme="light"] .ez-store-tab,
[data-theme="light"] .ez-store-tab {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.72);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

html[data-theme="light"] .ez-store-tab.is-active,
[data-theme="light"] .ez-store-tab.is-active {
    color: var(--ez-pal-neutral-light, #ffffff);
}

.ez-store-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ez-store-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.11);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58);
    color: var(--ez-theme-text-main, #ffffff);
    box-shadow: 0 12px 32px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.20);
    display: grid;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html[data-theme="light"] .ez-store-card,
[data-theme="light"] .ez-store-card {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.88);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    box-shadow: 0 10px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

.ez-store-card.is-unavailable {
    opacity: 0.62;
}

.ez-store-card-media {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 180px;
    border: 0;
    padding: 0;
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.34);
    overflow: hidden;
    cursor: pointer;
}

.ez-store-card-media img,
.ez-store-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ez-store-card-media img {
    aspect-ratio: 1 / 1;
    transition: transform 0.28s ease;
}

.ez-store-card-media:hover img,
.ez-store-card-media:focus-visible img {
    transform: scale(1.035);
}

.ez-store-media-placeholder,
.ez-store-cart-placeholder {
    width: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--ez-pal-secondary, #AA4493);
    background:
        radial-gradient(circle at center, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.16), transparent 58%),
        rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.42);
}

.ez-store-media-placeholder .material-symbols-rounded {
    font-size: 44px;
}

.ez-store-card-body {
    min-width: 0;
    display: grid;
    gap: 8px;
    padding: 15px;
}

.ez-store-card-meta,
.ez-store-external-title {
    margin: 0;
    color: var(--ez-pal-secondary, #AA4493);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ez-store-card-title,
.ez-store-product-title {
    margin: 0;
    color: var(--ez-theme-text-main, #ffffff);
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.ez-store-card-title {
    font-size: 1.05rem;
}

.ez-store-card-desc,
.ez-store-product-desc,
.ez-store-card-status,
.ez-store-cart-note {
    margin: 0;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.84rem;
    line-height: 1.45;
}

.ez-store-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ez-store-card-price,
.ez-store-product-price {
    margin: 0;
    color: var(--ez-theme-text-main, #ffffff);
    font-weight: 950;
    letter-spacing: -0.02em;
}

.ez-store-card-price {
    font-size: 1.05rem;
}

.ez-store-product-price {
    font-size: 1.45rem;
}

.ez-store-card-status {
    font-weight: 800;
}

.ez-store-card-status.is-unavailable,
.ez-store-unavailable-note {
    color: rgba(var(--ez-pal-warning-rgb, 255, 193, 7), 0.92);
}

.ez-store-card-actions {
    display: grid;
    gap: 9px;
    margin-top: 4px;
}

.ez-store-primary-btn,
.ez-store-secondary-btn,
.ez-store-ghost-btn,
.ez-store-wide-btn,
.ez-store-remove-btn,
.ez-store-quantity-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font-family: var(--ez-font-primary, inherit);
    cursor: pointer;
    touch-action: manipulation;
}

.ez-store-primary-btn,
.ez-store-secondary-btn,
.ez-store-ghost-btn {
    min-height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 14px;
    font-size: 0.86rem;
    font-weight: 950;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ez-store-primary-btn {
    color: var(--ez-pal-neutral-light, #ffffff);
    background: linear-gradient(135deg, var(--ez-theme-accent-primary, var(--ez-pal-secondary)), var(--ez-theme-accent-secondary, var(--ez-pal-primary)));
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.26);
}

.ez-store-secondary-btn {
    color: var(--ez-theme-text-main, #ffffff);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.13);
}

html[data-theme="light"] .ez-store-secondary-btn,
[data-theme="light"] .ez-store-secondary-btn {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.72);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12);
}

.ez-store-ghost-btn {
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    background: transparent;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
}

.ez-store-primary-btn:hover,
.ez-store-primary-btn:focus-visible,
.ez-store-secondary-btn:hover,
.ez-store-secondary-btn:focus-visible,
.ez-store-ghost-btn:hover,
.ez-store-ghost-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    outline: none;
}

.ez-store-wide-btn {
    width: 100%;
}

.ez-store-modal-open {
    overflow: hidden;
}

.ez-store-modal-panel {
    max-width: 650px;
    overflow-x: hidden !important; /* FIX: Evita scroll horizontal */
    box-sizing: border-box !important;
}

.ez-store-modal-header {
    text-align: left;
}

.ez-store-modal-title {
    padding-right: 92px;
}

.ez-store-modal-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.ez-store-share-btn,
.ez-store-close-btn {
    width: var(--ez-modal-action-size, 42px);
    height: var(--ez-modal-action-size, 42px);
    min-width: var(--ez-modal-action-size, 42px);
    min-height: var(--ez-modal-action-size, 42px);
    padding: 0;
    border-radius: 999px;
}

.ez-store-share-btn span:last-child,
.ez-store-close-btn span:last-child,
.ez-store-remove-btn span:last-child {
    display: none;
}

.ez-store-modal-body {
    display: grid;
    gap: 18px;
    overflow-x: hidden !important; /* FIX: Evita scroll horizontal */
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ez-store-product-detail {
    display: grid;
    gap: 18px;
}

.ez-store-product-media {
    min-height: 260px;
    max-height: 420px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.54);
}

.ez-store-product-info {
    display: grid;
    gap: 12px;
}

.ez-store-product-title {
    font-size: clamp(1.45rem, 5vw, 2rem);
}

.ez-store-product-desc {
    font-size: 0.96rem;
    line-height: 1.58;
}

.ez-store-purchase-controls,
.ez-store-external-links {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.ez-store-select-field {
    margin: 0;
}

.ez-store-unavailable-note {
    margin: 8px 0 0;
    font-size: 0.9rem;
    font-weight: 850;
}

.ez-store-cart-body {
    display: grid;
    gap: 18px;
}

.ez-store-cart-list {
    display: grid;
    gap: 12px;
}

.ez-store-cart-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.46);
}

html[data-theme="light"] .ez-store-cart-item,
[data-theme="light"] .ez-store-cart-item {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.70);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

.ez-store-cart-item img,
.ez-store-cart-placeholder {
    width: 74px;
    height: 74px;
    min-height: 74px;
    border-radius: 18px;
    object-fit: cover;
    overflow: hidden;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.32);
}

.ez-store-cart-placeholder .material-symbols-rounded {
    font-size: 28px;
}

.ez-store-cart-item-content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.ez-store-cart-item-content h3 {
    margin: 0;
    color: var(--ez-theme-text-main, #ffffff);
    font-size: 0.96rem;
    line-height: 1.15;
    font-weight: 950;
}

.ez-store-cart-item-meta,
.ez-store-cart-item-price {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.ez-store-cart-item-meta {
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
}

.ez-store-cart-item-price {
    color: var(--ez-theme-text-main, #ffffff);
    font-weight: 900;
}

.ez-store-quantity-controls {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 42px minmax(54px, 1fr) 42px 42px;
    gap: 8px;
    align-items: center;
}

.ez-store-quantity-btn,
.ez-store-remove-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ez-theme-text-main, #ffffff);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
}

.ez-store-remove-btn {
    color: #ff8f8f;
}

.ez-store-quantity-value {
    min-height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ez-theme-text-main, #ffffff);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.28);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.08);
    font-size: 16px !important; /* FIX iOS: Deshabilita el auto-zoom */
    font-weight: 900;
}

html[data-theme="light"] .ez-store-quantity-btn,
html[data-theme="light"] .ez-store-remove-btn,
html[data-theme="light"] .ez-store-quantity-value,
[data-theme="light"] .ez-store-quantity-btn,
[data-theme="light"] .ez-store-remove-btn,
[data-theme="light"] .ez-store-quantity-value {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.72);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

.ez-store-cart-summary {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.14), transparent 42%),
        rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.48);
}

html[data-theme="light"] .ez-store-cart-summary,
[data-theme="light"] .ez-store-cart-summary {
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.10), transparent 42%),
        rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.78);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

.ez-store-cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ez-theme-text-main, #ffffff);
    font-size: 1rem;
    font-weight: 900;
}

.ez-store-cart-total strong {
    font-size: 1.2rem;
}

.ez-store-cart-actions {
    display: grid;
    gap: 10px;
}

.ez-store-cart-empty {
    min-height: 260px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 12px;
    text-align: center;
    padding: 22px;
    border-radius: 26px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.42);
}

.ez-store-cart-empty > .material-symbols-rounded {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ez-pal-neutral-light, #ffffff);
    background: var(--ez-pal-secondary, #AA4493);
    box-shadow: 0 12px 30px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.28);
    font-size: 32px;
}

.ez-store-cart-empty h3,
.ez-store-cart-empty p {
    margin: 0;
}

.ez-store-cart-empty h3 {
    color: var(--ez-theme-text-main, #ffffff);
    font-size: 1.25rem;
    font-weight: 950;
}

.ez-store-cart-empty p {
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.94rem;
    line-height: 1.5;
}

.ez-store-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 20px;
    border-radius: 22px;
    text-align: center;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.42);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
}

.ez-store-toast {
    position: fixed;
    left: 50%;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 12000;
    max-width: min(88vw, 420px);
    transform: translate(-50%, 18px);
    opacity: 0;
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--ez-pal-neutral-light, #ffffff);
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.88);
    border: 1px solid rgba(var(--ez-raw-white-rgb, 255, 255, 255), 0.12);
    box-shadow: 0 16px 44px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.32);
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: center;
    transition: transform 0.22s ease, opacity 0.22s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ez-store-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.ez-store-icon {
    flex: 0 0 auto;
    font-size: 1.25em;
    line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 650, 'GRAD' 0, 'opsz' 24;
}

@media (min-width: 720px) {
    .ez-store-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ez-store-product-detail {
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        align-items: start;
    }

    .ez-store-product-media {
        position: sticky;
        top: 0;
    }
}

@media (max-width: 640px) {
    .ez-module-ez-store {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ez-store-header {
        grid-template-columns: 1fr;
        padding: 20px;
        border-radius: 26px;
    }

    .ez-store-cart-button {
        justify-self: start;
        width: auto;
    }

    .ez-store-grid {
        grid-template-columns: 1fr;
    }

    .ez-store-banner img {
        aspect-ratio: 16 / 9;
    }

    .ez-store-card-media {
        min-height: 230px;
    }

    .ez-store-modal-title {
        padding-right: 86px;
    }
}

@media (max-width: 420px) {
    .ez-store-card-body {
        padding: 14px;
    }

    .ez-store-product-media {
        min-height: 220px;
    }

    .ez-store-quantity-controls {
        grid-template-columns: 40px minmax(46px, 1fr) 40px 40px;
        gap: 7px;
    }

    .ez-store-quantity-btn,
    .ez-store-remove-btn {
        width: 40px;
        height: 40px;
    }
}

/* =========================================================================
   ONYX EZ STORE V1B
   Inline reveal flow + width/theme normalization
   ========================================================================= */

#ez-module-ez-store {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 20px 0;
    margin: 35px 0;
}

#ez-module-ez-store .ez-store-section {
    --store-text-main: var(--ez-theme-text-main, var(--text_main, #F8F6F2));
    --store-text-muted: var(--ez-theme-text-muted, var(--text_muted, rgba(248, 246, 242, 0.72)));
    --store-bg-main: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.82);
    --store-bg-soft: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58);
    --store-border: rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
    --store-border-strong: rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.18);
    --store-shadow: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.28);
    width: 100%;
    max-width: 100%;
    color: var(--store-text-main);
}

html[data-theme="light"] #ez-module-ez-store .ez-store-section,
[data-theme="light"] #ez-module-ez-store .ez-store-section {
    --store-text-main: var(--ez-theme-text-main, var(--text_main, #2E2226));
    --store-text-muted: var(--ez-theme-text-muted, var(--text_muted, rgba(46, 34, 38, 0.68)));
    --store-bg-main: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92);
    --store-bg-soft: rgba(var(--ez-pal-soft-light-rgb, 246, 237, 235), 0.82);
    --store-border: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    --store-border-strong: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.16);
    --store-shadow: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12);
}

#ez-module-ez-store .ez-store-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    color: var(--store-text-main);
    border-color: var(--store-border);
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.20), transparent 42%),
        linear-gradient(135deg, var(--store-bg-soft), var(--store-bg-main));
    box-shadow: 0 18px 46px var(--store-shadow);
}

html[data-theme="light"] #ez-module-ez-store .ez-store-header,
[data-theme="light"] #ez-module-ez-store .ez-store-header {
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.14), transparent 42%),
        linear-gradient(135deg, var(--store-bg-main), var(--store-bg-soft));
}

#ez-module-ez-store .ez-store-title,
#ez-module-ez-store .ez-store-card-title,
#ez-module-ez-store .ez-store-card-price,
#ez-module-ez-store .ez-store-product-title,
#ez-module-ez-store .ez-store-product-price,
#ez-module-ez-store .ez-store-cart-total,
#ez-module-ez-store .ez-store-cart-item-content h3,
#ez-module-ez-store .ez-store-cart-item-price {
    color: var(--store-text-main);
}

#ez-module-ez-store .ez-store-desc,
#ez-module-ez-store .ez-store-card-desc,
#ez-module-ez-store .ez-store-card-status,
#ez-module-ez-store .ez-store-product-desc,
#ez-module-ez-store .ez-store-cart-note,
#ez-module-ez-store .ez-store-cart-item-meta,
#ez-module-ez-store .ez-store-empty {
    color: var(--store-text-muted);
}

#ez-module-ez-store .ez-store-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

#ez-module-ez-store .ez-store-toggle-button,
#ez-module-ez-store .ez-store-cart-button,
#ez-module-ez-store .ez-store-header-icon-btn {
    appearance: none;
    -webkit-appearance: none;
    min-height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ez-font-primary, inherit);
    font-size: 0.86rem;
    font-weight: 950;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#ez-module-ez-store .ez-store-toggle-button,
#ez-module-ez-store .ez-store-cart-button {
    padding: 0 14px;
}

#ez-module-ez-store .ez-store-toggle-button {
    color: var(--ez-pal-neutral-light, #ffffff);
    background: var(--ez-pal-secondary, #AA4493);
    border: 1px solid var(--ez-pal-secondary, #AA4493);
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.26);
}

#ez-module-ez-store .ez-store-cart-button {
    color: var(--store-text-main);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36);
    border: 1px solid var(--store-border-strong);
    box-shadow: none;
}

html[data-theme="light"] #ez-module-ez-store .ez-store-cart-button,
[data-theme="light"] #ez-module-ez-store .ez-store-cart-button {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.76);
}

#ez-module-ez-store .ez-store-header-icon-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    color: var(--store-text-main);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.34);
    border: 1px solid var(--store-border-strong);
}

html[data-theme="light"] #ez-module-ez-store .ez-store-header-icon-btn,
[data-theme="light"] #ez-module-ez-store .ez-store-header-icon-btn {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.76);
}

#ez-module-ez-store .ez-ez-store-close-btn {
    color: var(--ez-pal-neutral-light, #ffffff);
    background: var(--ez-pal-secondary, #AA4493);
    border-color: var(--ez-pal-secondary, #AA4493);
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.22);
}

#ez-module-ez-store .ez-store-header-icon-btn span:last-child {
    display: none;
}

#ez-module-ez-store .ez-store-toggle-button:hover,
#ez-module-ez-store .ez-store-toggle-button:focus-visible,
#ez-module-ez-store .ez-store-cart-button:hover,
#ez-module-ez-store .ez-store-cart-button:focus-visible,
#ez-module-ez-store .ez-store-header-icon-btn:hover,
#ez-module-ez-store .ez-store-header-icon-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    outline: none;
}

#ez-module-ez-store .ez-store-content {
    display: grid;
    gap: 16px;
}

#ez-module-ez-store .ez-store-section.is-collapsed .ez-store-content,
#ez-module-ez-store .ez-store-section.is-collapsed .ez-store-tabs,
#ez-module-ez-store .ez-store-section.is-collapsed .ez-store-grid {
    display: none;
}

#ez-module-ez-store .ez-store-section.is-open .ez-store-banner {
    display: none;
}

#ez-module-ez-store .ez-store-banner {
    border-color: var(--store-border);
    background: var(--store-bg-soft);
    box-shadow: 0 16px 36px var(--store-shadow);
}

#ez-module-ez-store .ez-store-tab,
#ez-module-ez-store .ez-store-card,
#ez-module-ez-store .ez-store-cart-item,
#ez-module-ez-store .ez-store-cart-summary,
#ez-module-ez-store .ez-store-cart-empty,
#ez-module-ez-store .ez-store-empty {
    border-color: var(--store-border);
}

#ez-module-ez-store .ez-store-card,
#ez-module-ez-store .ez-store-cart-item,
#ez-module-ez-store .ez-store-cart-empty,
#ez-module-ez-store .ez-store-empty {
    background: var(--store-bg-soft);
    box-shadow: 0 12px 32px var(--store-shadow);
}

html[data-theme="light"] #ez-module-ez-store .ez-store-card,
html[data-theme="light"] #ez-module-ez-store .ez-store-cart-item,
html[data-theme="light"] #ez-module-ez-store .ez-store-cart-empty,
html[data-theme="light"] #ez-module-ez-store .ez-store-empty,
[data-theme="light"] #ez-module-ez-store .ez-store-card,
[data-theme="light"] #ez-module-ez-store .ez-store-cart-item,
[data-theme="light"] #ez-module-ez-store .ez-store-cart-empty,
[data-theme="light"] #ez-module-ez-store .ez-store-empty {
    background: var(--store-bg-main);
}

#ez-module-ez-store .ez-store-tab {
    color: var(--store-text-main);
    background: var(--store-bg-soft);
}

#ez-module-ez-store .ez-store-tab.is-active,
#ez-module-ez-store .ez-store-tab:hover,
#ez-module-ez-store .ez-store-tab:focus-visible {
    color: var(--ez-pal-neutral-light, #ffffff);
    background: var(--ez-pal-secondary, #AA4493);
    border-color: var(--ez-pal-secondary, #AA4493);
}

@media (max-width: 720px) {
    #ez-module-ez-store .ez-store-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    #ez-module-ez-store .ez-store-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    #ez-module-ez-store {
        padding-left: 16px;
        padding-right: 16px;
    }

    #ez-module-ez-store .ez-store-header-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 8px;
    }

    #ez-module-ez-store .ez-store-toggle-button {
        width: 100%;
    }

    #ez-module-ez-store .ez-store-cart-button {
        min-width: 46px;
        width: 46px;
        padding: 0;
    }

    #ez-module-ez-store .ez-store-cart-button span:not(.material-symbols-rounded):not(.ez-store-cart-badge) {
        display: none;
    }
}

/* =========================================================================
   ONYX ez Store V1C - Layout / header actions / light-mode hotfix
   ========================================================================= */

#ez-module-ez-store {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-left: 20px;
    padding-right: 20px;
}

#ez-module-ez-store .ez-store-section,
#ez-module-ez-store .ez-store-content,
#ez-module-ez-store .ez-store-header,
#ez-module-ez-store .ez-store-banner,
#ez-module-ez-store .ez-store-grid,
#ez-module-ez-store .ez-store-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#ez-module-ez-store .ez-store-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
}

#ez-module-ez-store .ez-store-header-actions {
    max-width: 100%;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

#ez-module-ez-store .ez-store-toggle-button,
#ez-module-ez-store .ez-store-cart-button,
#ez-module-ez-store .ez-store-header-icon-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    border-radius: 999px !important;
    min-height: 46px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--ez-font-primary, inherit);
    font-size: 0.86rem;
    font-weight: 950;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    white-space: nowrap;
}

#ez-module-ez-store .ez-store-toggle-button,
#ez-module-ez-store .ez-store-cart-button {
    padding: 0 15px !important;
}

#ez-module-ez-store .ez-store-toggle-button,
#ez-module-ez-store .ez-store-cart-button {
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border: 1px solid var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.26) !important;
}

#ez-module-ez-store .ez-ez-store-share-btn,
#ez-module-ez-store .ez-ez-store-close-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
}

#ez-module-ez-store .ez-ez-store-share-btn {
    color: var(--store-text-main, var(--ez-theme-text-main)) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.34) !important;
    border: 1px solid var(--store-border-strong, rgba(255,255,255,0.18)) !important;
    box-shadow: none !important;
}

html[data-theme="light"] #ez-module-ez-store .ez-ez-store-share-btn,
[data-theme="light"] #ez-module-ez-store .ez-ez-store-share-btn {
    color: var(--store-text-main, var(--ez-pal-neutral-dark, #2E2226)) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.78) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.16) !important;
}

#ez-module-ez-store .ez-ez-store-close-btn {
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border: 1px solid var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.24) !important;
}

#ez-module-ez-store .ez-store-header-icon-btn span:not(.material-symbols-rounded),
#ez-module-ez-store .ez-ez-store-share-btn span:not(.material-symbols-rounded),
#ez-module-ez-store .ez-ez-store-close-btn span:not(.material-symbols-rounded) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#ez-module-ez-store .ez-store-toggle-button:hover,
#ez-module-ez-store .ez-store-toggle-button:focus-visible,
#ez-module-ez-store .ez-store-cart-button:hover,
#ez-module-ez-store .ez-store-cart-button:focus-visible,
#ez-module-ez-store .ez-store-header-icon-btn:hover,
#ez-module-ez-store .ez-store-header-icon-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.06);
    outline: none;
}

#ez-module-ez-store .ez-store-tab {
    color: var(--store-text-main, var(--ez-theme-text-main)) !important;
    background: var(--store-bg-soft, rgba(var(--ez-theme-bg-soft-rgb, 14,14,15), 0.58)) !important;
    border-color: var(--store-border, rgba(var(--ez-theme-text-main-rgb, 255,255,255), 0.12)) !important;
}

#ez-module-ez-store .ez-store-tab:hover,
#ez-module-ez-store .ez-store-tab:focus-visible,
#ez-module-ez-store .ez-store-tab.is-active {
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border-color: var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 10px 24px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.20);
    outline: none;
}

html[data-theme="light"] #ez-module-ez-store .ez-store-tab:hover,
html[data-theme="light"] #ez-module-ez-store .ez-store-tab:focus-visible,
html[data-theme="light"] #ez-module-ez-store .ez-store-tab.is-active,
[data-theme="light"] #ez-module-ez-store .ez-store-tab:hover,
[data-theme="light"] #ez-module-ez-store .ez-store-tab:focus-visible,
[data-theme="light"] #ez-module-ez-store .ez-store-tab.is-active {
    color: #ffffff !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border-color: var(--ez-pal-secondary, #AA4493) !important;
}

#ez-module-ez-store .ez-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    overflow: hidden;
}

#ez-module-ez-store .ez-store-card {
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

#ez-module-ez-store .ez-store-card-media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

#ez-module-ez-store .ez-store-card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(4.35em, auto) auto auto auto;
    align-content: start;
    gap: 8px;
}

#ez-module-ez-store .ez-store-card-desc {
    min-height: 4.35em;
}

#ez-module-ez-store .ez-store-card-actions {
    margin-top: auto;
    align-self: stretch;
}

@media (min-width: 900px) {
    #ez-module-ez-store .ez-store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 899px) {
    #ez-module-ez-store .ez-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    #ez-module-ez-store .ez-store-header {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    #ez-module-ez-store .ez-store-header-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    #ez-module-ez-store {
        padding-left: 16px;
        padding-right: 16px;
    }

    #ez-module-ez-store .ez-store-header-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        align-items: center;
    }

    #ez-module-ez-store .ez-store-toggle-button,
    #ez-module-ez-store .ez-store-cart-button {
        width: 100%;
        min-width: 0;
    }

    #ez-module-ez-store .ez-store-section.is-open .ez-store-cart-button {
        width: auto;
        min-width: 46px;
    }

    #ez-module-ez-store .ez-store-section.is-open .ez-store-cart-button span:not(.material-symbols-rounded):not(.ez-store-cart-badge) {
        display: none;
    }

    #ez-module-ez-store .ez-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    #ez-module-ez-store .ez-store-card-body {
        padding: 12px;
        grid-template-rows: auto auto minmax(4.9em, auto) auto auto auto;
    }

    #ez-module-ez-store .ez-store-card-desc {
        min-height: 4.9em;
    }

    #ez-module-ez-store .ez-store-card-title {
        font-size: 0.95rem;
    }

    #ez-module-ez-store .ez-store-primary-btn,
    #ez-module-ez-store .ez-store-secondary-btn {
        min-height: 42px;
        border-radius: 14px;
        font-size: 0.78rem;
        padding-inline: 10px;
    }
}


/* =========================================================================
   ONYX ez Store V1I - Final layout, banner-as-header-bg, actions & light fix
   ========================================================================= */
:is(#ez-module-ez-store, .ez-module-ez-store),
:is(#ez-module-ez-store, .ez-module-ez-store) * {
    box-sizing: border-box;
}

:is(#ez-module-ez-store, .ez-module-ez-store) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 1rem 20px 0 !important;
    margin: 35px 0 !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-content,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tabs,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section {
    --store-text-main: var(--ez-theme-text-main, #F8F6F2);
    --store-text-muted: var(--ez-theme-text-muted, rgba(248, 246, 242, 0.72));
    --store-bg-main: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.90);
    --store-bg-soft: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.74);
    --store-border: rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
    --store-border-strong: rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.18);
    --store-shadow: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.30);
    display: grid;
    gap: 18px;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section {
    --store-text-main: var(--ez-theme-text-main, #2E2226);
    --store-text-muted: var(--ez-theme-text-muted, rgba(46, 34, 38, 0.68));
    --store-bg-main: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.94);
    --store-bg-soft: rgba(var(--ez-pal-soft-light-rgb, 246, 237, 235), 0.86);
    --store-border: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12);
    --store-border-strong: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.18);
    --store-shadow: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12);
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header {
    position: relative !important;
    isolation: isolate;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: clamp(154px, 26vw, 238px);
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: stretch !important; /* FIX: Deja que los hijos se alineen por separado */
    gap: 14px !important;
    padding: clamp(18px, 3vw, 24px) !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    border: 1px solid var(--store-border) !important;
    color: var(--store-text-main) !important;
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.24), transparent 42%),
        linear-gradient(135deg, var(--store-bg-soft), var(--store-bg-main)) !important;
    box-shadow: 0 18px 46px var(--store-shadow) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-open .ez-store-header {
    min-height: auto;
    align-items: center !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-open .ez-store-copy,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-open .ez-store-header-actions {
    align-self: center !important; /* FIX: Restaura centrado vertical cuando el header se encoge */
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.62;
    filter: saturate(1.02) contrast(1.02);
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.94) 0%, rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.70) 46%, rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.42) 100%),
        linear-gradient(0deg, rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.58), rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.20));
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after {
    background:
        linear-gradient(90deg, rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.96) 0%, rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.80) 48%, rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.42) 100%),
        linear-gradient(0deg, rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.38), rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.16));
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-banner {
    display: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: start !important; /* FIX: Texto forzado arriba a la izquierda */
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: end !important; /* FIX: Botones anclados abajo a la derecha */
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-title,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-title,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-price,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-title,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-price {
    color: var(--store-text-main) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-desc,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-desc,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-status,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-desc {
    color: var(--store-text-muted) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-icon-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 46px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 15px !important;
    border: 1px solid var(--ez-pal-secondary, #AA4493) !important;
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: linear-gradient(135deg, var(--ez-pal-secondary, #AA4493), rgba(var(--ez-pal-primary-rgb, 46, 34, 38), 0.94)) !important;
    box-shadow: 0 14px 30px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.30) !important;
    font-family: var(--ez-font-primary, inherit) !important;
    font-size: 0.86rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    touch-action: manipulation;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn,
.ez-store-modal .ez-store-share-btn,
.ez-store-modal .ez-store-close-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
.ez-store-modal .ez-store-share-btn {
    color: var(--store-text-main, var(--ez-theme-text-main, #ffffff)) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.38) !important;
    border: 1px solid var(--store-border-strong, rgba(255,255,255,0.18)) !important;
    box-shadow: none !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
html[data-theme="light"] .ez-store-modal .ez-store-share-btn,
[data-theme="light"] .ez-store-modal .ez-store-share-btn {
    color: var(--ez-pal-neutral-dark, #2E2226) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.88) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.16) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn span:not(.material-symbols-rounded),
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn span:not(.material-symbols-rounded) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button:focus-visible,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button:focus-visible,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-icon-btn:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-icon-btn:focus-visible {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
    outline: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tabs {
    display: flex !important;
    gap: 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 2px 1px 8px !important;
    scrollbar-width: none;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab {
    color: var(--store-text-main, var(--ez-theme-text-main)) !important;
    background: var(--store-bg-soft, rgba(var(--ez-theme-bg-soft-rgb, 14,14,15), 0.58)) !important;
    border: 1px solid var(--store-border, rgba(var(--ez-theme-text-main-rgb, 255,255,255), 0.12)) !important;
    border-radius: 999px !important;
    min-height: 38px !important;
    padding: 0 15px !important;
    opacity: 1 !important;
    font-weight: 850 !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab {
    color: var(--ez-pal-neutral-dark, #2E2226) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.90) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.14) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:focus-visible,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab.is-active,
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:hover,
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:focus-visible,
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab.is-active,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:hover,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:focus-visible,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab.is-active {
    color: #ffffff !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border-color: var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 10px 24px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.22) !important;
    outline: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card {
    min-width: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-media,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-media {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-media img,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-media img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-body {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-rows: 1.1em minmax(2.35em, auto) minmax(4.45em, auto) 1.45em 1.4em auto !important;
    align-content: start !important;
    gap: 8px !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-title {
    min-height: 2.35em !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-desc {
    min-height: 4.45em !important;
    -webkit-line-clamp: 3 !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-actions {
    margin-top: auto !important;
    align-self: stretch !important;
    display: grid !important;
    gap: 9px !important;
}

@media (max-width: 899px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 1fr auto !important; /* FIX: Empuja los botones a la parte de abajo en móviles */
        align-items: stretch !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 520px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        gap: 8px !important;
        align-items: center !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header-actions {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button {
        width: 100% !important;
        min-width: 0 !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button {
        min-width: 46px !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-open .ez-store-cart-button span:not(.material-symbols-rounded):not(.ez-store-cart-badge) {
        display: none !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-body {
        padding: 12px !important;
        grid-template-rows: 1.1em minmax(2.55em, auto) minmax(4.95em, auto) 1.45em 1.4em auto !important;
    }
}


/* =========================================================================
   V1J - FINAL DESIGN CORRECTIONS
   - Header collapsed 16:9
   - Softer overlay so banner is visible
   - ONYX modal/share/close buttons with hover/active animation
   - Product modal media hard 1:1 cover even for 16:9 fallback images
   ========================================================================= */

:is(#ez-module-ez-store, .ez-module-ez-store),
:is(#ez-module-ez-store, .ez-module-ez-store) * {
    box-sizing: border-box;
}

:is(#ez-module-ez-store, .ez-module-ez-store) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    padding-inline: clamp(16px, 2.2vw, 20px) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
}

/* Closed ez Store hero: banner should live inside the header and keep 16:9 */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: stretch !important; /* FIX: Habilita la caja completa para separar elementos */
    padding: clamp(20px, 4vw, 32px) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-open .ez-store-header {
    aspect-ratio: auto !important;
    min-height: auto !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-bg img {
    opacity: 0.86 !important;
    filter: saturate(1.05) contrast(1.04) !important;
}

/* Lower overlay opacity: dark */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after {
    background:
        linear-gradient(90deg,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.76) 0%,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.48) 46%,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.18) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.30),
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.08)) !important;
}

/* Lower overlay opacity: light */
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after {
    background:
        linear-gradient(90deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.82) 0%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.54) 50%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.18) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.20),
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.04)) !important;
}

/* ONYX header buttons */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button {
    border-radius: 999px !important;
    border: 1px solid rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.85) !important;
    color: var(--ez-pal-neutral-light, #fff) !important;
    background: linear-gradient(135deg, var(--ez-pal-secondary, #AA4493), rgba(var(--ez-pal-primary-rgb, 46, 34, 38), 0.92)) !important;
    box-shadow: 0 14px 32px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.34) !important;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), filter .22s ease, box-shadow .22s ease !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button:focus-visible,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button:focus-visible {
    transform: translateY(-1px) scale(1.018) !important;
    filter: brightness(1.08) !important;
    box-shadow: 0 18px 40px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.42) !important;
    outline: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button:active,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button:active {
    transform: translateY(0) scale(0.975) !important;
    filter: brightness(0.98) !important;
}

/* Share = neutral glass circle. Close = ONYX magenta circle. Applies to section and modals. */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
.ez-store-modal .ez-store-share-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-theme-text-main, #fff) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.42) !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.16) !important;
    box-shadow: 0 10px 26px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.20) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    transition: transform .25s cubic-bezier(.175,.885,.32,1.275), background-color .2s ease, color .2s ease, box-shadow .2s ease !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn,
.ez-store-modal .ez-store-close-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-pal-neutral-light, #fff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border: 1px solid var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 12px 30px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.36) !important;
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275), box-shadow .2s ease, filter .2s ease !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn:focus-visible,
.ez-store-modal .ez-store-share-btn:hover,
.ez-store-modal .ez-store-share-btn:focus-visible {
    transform: scale(1.08) !important;
    color: var(--ez-pal-secondary, #AA4493) !important;
    background: rgba(var(--ez-theme-bg-soft-rgb, 255, 255, 255), 0.18) !important;
    box-shadow: 0 16px 34px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.24) !important;
    outline: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn:focus-visible,
.ez-store-modal .ez-store-close-btn:hover,
.ez-store-modal .ez-store-close-btn:focus-visible {
    transform: scale(1.10) rotate(90deg) !important;
    filter: brightness(1.06) !important;
    box-shadow: 0 16px 38px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.46) !important;
    outline: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn:active,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn:active,
.ez-store-modal .ez-store-share-btn:active,
.ez-store-modal .ez-store-close-btn:active {
    transform: scale(0.94) !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
html[data-theme="light"] .ez-store-modal .ez-store-share-btn,
[data-theme="light"] .ez-store-modal .ez-store-share-btn {
    color: var(--ez-pal-neutral-dark, #2E2226) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.90) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.14) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn span:not(.material-symbols-rounded),
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn span:not(.material-symbols-rounded),
.ez-store-modal .ez-store-share-btn span:not(.material-symbols-rounded),
.ez-store-modal .ez-store-close-btn span:not(.material-symbols-rounded) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

/* Product detail media: force 1:1 cover, including 16:9 fallback image. */
.ez-store-modal .ez-store-product-media,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-media {
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.42) !important;
}

.ez-store-modal .ez-store-product-media img,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-media img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* keep tabs readable in light mode */
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab {
    color: var(--ez-pal-neutral-dark, #2E2226) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.94) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.16) !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:hover,
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:focus-visible,
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab.is-active,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:hover,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab:focus-visible,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-tab.is-active {
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border-color: var(--ez-pal-secondary, #AA4493) !important;
}

@media (max-width: 720px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header {
        aspect-ratio: 16 / 9 !important;
        padding: 18px !important;
    }
}

@media (max-width: 520px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
        gap: 8px !important;
        max-width: 100% !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button {
        min-height: 42px !important;
        padding: 0 12px !important;
        font-size: .8rem !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-close-btn,
    .ez-store-modal .ez-store-share-btn,
    .ez-store-modal .ez-store-close-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
    }
}

/* =========================================================================
   V1K - CARD ROW ALIGNMENT HOTFIX
   - Fixed internal rows so sibling cards align even with different title/desc lengths
   - Keeps two action buttons reserved for available and unavailable products
   ========================================================================= */

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-media {
    flex: 0 0 auto !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-body {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-rows:
        1.05rem
        3.75rem
        5.05rem
        1.35rem
        1.35rem
        minmax(101px, auto) !important;
    align-content: start !important;
    gap: 8px !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-meta {
    min-height: 1.05rem !important;
    max-height: 1.05rem !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-title {
    min-height: 3.75rem !important;
    max-height: 3.75rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-desc {
    min-height: 5.05rem !important;
    max-height: 5.05rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-price,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-status {
    min-height: 1.35rem !important;
    max-height: 1.35rem !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-actions {
    min-height: 101px !important;
    align-self: stretch !important;
    align-content: end !important;
    margin-top: 0 !important;
    display: grid !important;
    grid-template-rows: 46px 46px !important;
    gap: 9px !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-actions > button {
    min-height: 46px !important;
    height: 46px !important;
}

@media (max-width: 720px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-body {
        grid-template-rows:
            1.05rem
            3.95rem
            5.30rem
            1.35rem
            1.35rem
            minmax(101px, auto) !important;
        gap: 8px !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-title {
        min-height: 3.95rem !important;
        max-height: 3.95rem !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-desc {
        min-height: 5.30rem !important;
        max-height: 5.30rem !important;
    }
}

@media (max-width: 390px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-body {
        grid-template-rows:
            1.05rem
            4.15rem
            5.55rem
            1.35rem
            1.35rem
            minmax(101px, auto) !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-title {
        min-height: 4.15rem !important;
        max-height: 4.15rem !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-card-desc {
        min-height: 5.55rem !important;
        max-height: 5.55rem !important;
    }
}


/* =========================================================================
   V1M - MEDIA GALLERY
   - Product detail supports several product images and video thumbnails.
   - Keeps product media 1:1 and avoids layout regressions.
   ========================================================================= */

.ez-store-modal .ez-store-product-gallery,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-gallery {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 10px !important;
    align-content: start !important;
}

.ez-store-modal .ez-store-product-media video,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-media video,
.ez-store-modal .ez-store-product-video,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.76) !important;
}

.ez-store-modal .ez-store-media-nav,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav {
    position: absolute !important;
    top: min(50%, 240px) !important;
    left: 10px !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    z-index: 3 !important;
}

.ez-store-modal .ez-store-media-nav-btn,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav-btn {
    pointer-events: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.18) !important;
    color: var(--ez-pal-neutral-light, #fff) !important;
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.46) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.30) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    cursor: pointer !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: transform .22s cubic-bezier(.175,.885,.32,1.275), background-color .2s ease, color .2s ease, box-shadow .2s ease !important;
}

.ez-store-modal .ez-store-media-nav-btn:hover,
.ez-store-modal .ez-store-media-nav-btn:focus-visible,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav-btn:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav-btn:focus-visible {
    transform: scale(1.08) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    color: var(--ez-pal-neutral-light, #fff) !important;
    box-shadow: 0 16px 34px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.38) !important;
    outline: none !important;
}

.ez-store-modal .ez-store-media-nav-btn:active,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav-btn:active {
    transform: scale(0.94) !important;
}

.ez-store-modal .ez-store-media-thumbs,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumbs {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(58px, 72px)) !important;
    gap: 9px !important;
    align-items: center !important;
    justify-content: start !important;
    overflow-x: auto !important;
    padding: 1px 1px 4px !important;
    scrollbar-width: none !important;
}

.ez-store-modal .ez-store-media-thumbs::-webkit-scrollbar,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumbs::-webkit-scrollbar {
    display: none !important;
}

.ez-store-modal .ez-store-media-thumb,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb {
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    min-width: 0 !important;
    border-radius: 16px !important;
    border: 2px solid transparent !important;
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58) !important;
    overflow: hidden !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.14) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s ease !important;
}

.ez-store-modal .ez-store-media-thumb img,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.ez-store-modal .ez-store-media-thumb:hover,
.ez-store-modal .ez-store-media-thumb:focus-visible,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb:hover,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb:focus-visible {
    transform: translateY(-1px) !important;
    border-color: rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.70) !important;
    box-shadow: 0 12px 24px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.20) !important;
    outline: none !important;
}

.ez-store-modal .ez-store-media-thumb.is-active,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb.is-active {
    border-color: var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.28) !important;
}

.ez-store-modal .ez-store-media-thumb-play,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb-play {
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-pal-neutral-light, #fff) !important;
    text-shadow: 0 4px 12px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.52) !important;
    font-size: 32px !important;
    line-height: 1 !important;
}

html[data-theme="light"] .ez-store-modal .ez-store-media-thumb,
[data-theme="light"] .ez-store-modal .ez-store-media-thumb,
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumb {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92) !important;
}

@media (min-width: 760px) {
    .ez-store-modal .ez-store-product-detail,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-product-detail {
        grid-template-columns: minmax(280px, 0.94fr) minmax(0, 1fr) !important;
        align-items: start !important;
    }
}

@media (max-width: 520px) {
    .ez-store-modal .ez-store-media-nav,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav {
        left: 8px !important;
        right: 8px !important;
    }

    .ez-store-modal .ez-store-media-nav-btn,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-nav-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }

    .ez-store-modal .ez-store-media-thumbs,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-media-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(54px, 64px)) !important;
    }
}


/* =========================================================================
   ONYX Product Catalog Schema 1.0 - Specs / SEO landing helpers
   ========================================================================= */
#ez-module-ez-store .ez-store-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 0;
}

#ez-module-ez-store .ez-store-spec-card {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 18px;
    border: 1px solid var(--store-border, rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10));
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.28);
}

html[data-theme="light"] #ez-module-ez-store .ez-store-spec-card,
[data-theme="light"] #ez-module-ez-store .ez-store-spec-card {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.66);
}

#ez-module-ez-store .ez-store-spec-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ez-pal-neutral-light, #fff);
    background: var(--ez-pal-secondary, #AA4493);
    font-size: 18px;
}

#ez-module-ez-store .ez-store-spec-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

#ez-module-ez-store .ez-store-spec-label {
    margin: 0;
    color: var(--store-text-muted, var(--ez-theme-text-muted));
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#ez-module-ez-store .ez-store-spec-value {
    margin: 0;
    color: var(--store-text-main, var(--ez-theme-text-main));
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.32;
    overflow-wrap: anywhere;
}

#ez-module-ez-store .ez-store-product-return-link {
    margin-top: 6px;
}

.ez-product-landing {
    min-height: 100vh;
    padding: 32px 18px;
    display: grid;
    place-items: center;
    background: var(--ez-theme-bg-main, #070708);
    color: var(--ez-theme-text-main, #f8f6f2);
    font-family: var(--ez-font-primary, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.ez-product-landing-card {
    width: min(100%, 760px);
    display: grid;
    gap: 18px;
    padding: 28px;
    border: 1px solid rgba(var(--ez-raw-white-rgb, 255, 255, 255), 0.14);
    border-radius: 28px;
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.88);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.ez-product-landing-eyebrow,
.ez-product-landing-meta {
    margin: 0;
    color: var(--ez-theme-text-muted, rgba(248, 246, 242, 0.72));
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
}

.ez-product-landing-title {
    margin: 0;
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.ez-product-landing-desc {
    margin: 0;
    color: var(--ez-theme-text-muted, rgba(248, 246, 242, 0.78));
    font-size: 1rem;
    line-height: 1.6;
}

.ez-product-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ez-product-landing-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ez-pal-neutral-light, #fff);
    background: var(--ez-pal-secondary, #AA4493);
    font-weight: 900;
}

.ez-product-landing-actions a[data-variant="ghost"] {
    background: transparent;
    border: 1px solid rgba(var(--ez-raw-white-rgb, 255, 255, 255), 0.18);
}

@media (max-width: 640px) {
    #ez-module-ez-store .ez-store-specs {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   ONYX EZ STORE - PRODUCT DETAIL MODAL HOTFIX
   Scope:
   - Mejor layout desktop/tablet/mobile del detalle
   - Media centrada y sin cargarse a la derecha
   - Slider automático cuando JS detecta 2+ medios
   - Specs legibles dentro del modal
   - Botones de share/cerrar homogéneos
   ========================================================================= */

.ez-store-modal .ez-modal-panel.ez-store-modal-panel {
    width: min(980px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: min(85dvh, 780px) !important;
    border-radius: 30px 30px 0 0 !important;
    background: var(--ez-theme-bg-main, #070708) !important;
    overflow: hidden !important;
}

.ez-store-modal .ez-store-modal-header {
    min-height: 74px !important;
    padding: 10px 16px 12px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    border-bottom: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10) !important;
}

.ez-store-modal .ez-drag-handle {
    grid-column: 1 / -1 !important;
    margin-bottom: 4px !important;
}

.ez-store-modal .ez-store-modal-title {
    min-width: 0 !important;
    padding-right: 0 !important;
    color: var(--ez-theme-text-main, #ffffff) !important;
    font-size: clamp(1rem, 2.2vw, 1.22rem) !important;
    line-height: 1.15 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.ez-store-modal .ez-store-modal-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 9px !important;
}

.ez-store-modal .ez-store-share-btn,
.ez-store-modal .ez-store-close-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ez-store-modal .ez-store-share-btn {
    color: var(--ez-theme-text-main, #ffffff) !important;
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.48) !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.16) !important;
    box-shadow: 0 10px 24px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.20) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.ez-store-modal .ez-store-close-btn {
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border: 1px solid var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 10px 24px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.30) !important;
}

.ez-store-modal .ez-store-share-btn span:not(.material-symbols-rounded),
.ez-store-modal .ez-store-close-btn span:not(.material-symbols-rounded) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.ez-store-modal .ez-store-modal-body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 18px !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

.ez-store-modal .ez-store-product-detail {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr) !important;
    gap: 22px !important;
    align-items: start !important;
}

.ez-store-modal .ez-store-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    gap: 12px !important;
    align-content: start !important;
}

.ez-store-modal .ez-store-product-media {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10) !important;
    background:
        radial-gradient(circle at center, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.10), transparent 56%),
        rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.52) !important;
}

.ez-store-modal .ez-store-product-media img,
.ez-store-modal .ez-store-product-media video,
.ez-store-modal .ez-store-product-video {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
}

.ez-store-modal .ez-store-product-info {
    min-width: 0 !important;
    display: grid !important;
    gap: 13px !important;
    align-content: start !important;
}

.ez-store-modal .ez-store-product-title {
    margin: 0 !important;
    color: var(--ez-theme-text-main, #ffffff) !important;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
}

.ez-store-modal .ez-store-product-price {
    margin: 0 !important;
    color: var(--ez-theme-text-main, #ffffff) !important;
    font-size: clamp(1.25rem, 2.4vw, 1.62rem) !important;
    line-height: 1.05 !important;
}

.ez-store-modal .ez-store-product-desc {
    margin: 0 !important;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72)) !important;
    font-size: 0.98rem !important;
    line-height: 1.62 !important;
}

.ez-store-modal .ez-store-media-nav {
    position: absolute !important;
    top: 50% !important;
    left: 10px !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

.ez-store-modal .ez-store-media-nav[hidden],
.ez-store-modal .ez-store-media-thumbs[hidden] {
    display: none !important;
}

.ez-store-modal .ez-store-media-nav-btn {
    pointer-events: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.56) !important;
    border: 1px solid rgba(var(--ez-raw-white-rgb, 255, 255, 255), 0.18) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.30) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    cursor: pointer !important;
}

.ez-store-modal .ez-store-media-thumbs {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(58px, 72px)) !important;
    gap: 9px !important;
    justify-content: start !important;
    overflow-x: auto !important;
    padding: 1px 1px 4px !important;
    scrollbar-width: none !important;
}

.ez-store-modal .ez-store-media-thumbs::-webkit-scrollbar {
    display: none !important;
}

.ez-store-modal .ez-store-media-thumb {
    position: relative !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important;
    border: 2px solid transparent !important;
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58) !important;
    overflow: hidden !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-shadow: 0 8px 18px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.14) !important;
}

.ez-store-modal .ez-store-media-thumb.is-active {
    border-color: var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.28) !important;
}

.ez-store-modal .ez-store-media-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.ez-store-modal .ez-store-media-thumb-play {
    position: absolute !important;
    inset: 0 !important;
    margin: auto !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    text-shadow: 0 4px 12px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.52) !important;
    font-size: 32px !important;
}

.ez-store-modal .ez-store-specs,
#ez-module-ez-store .ez-store-specs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 4px 0 0 !important;
}

.ez-store-modal .ez-store-spec-card,
#ez-module-ez-store .ez-store-spec-card {
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 11px 12px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10) !important;
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58) !important;
}

.ez-store-modal .ez-store-spec-icon,
#ez-module-ez-store .ez-store-spec-icon {
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

.ez-store-modal .ez-store-spec-copy,
#ez-module-ez-store .ez-store-spec-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
}

.ez-store-modal .ez-store-spec-label,
#ez-module-ez-store .ez-store-spec-label {
    margin: 0 !important;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.68)) !important;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

.ez-store-modal .ez-store-spec-value,
#ez-module-ez-store .ez-store-spec-value {
    margin: 0 !important;
    color: var(--ez-theme-text-main, #ffffff) !important;
    font-size: 0.86rem !important;
    font-weight: 780 !important;
    line-height: 1.36 !important;
    overflow-wrap: anywhere !important;
}

html[data-theme="light"] .ez-store-modal .ez-store-spec-card,
[data-theme="light"] .ez-store-modal .ez-store-spec-card,
html[data-theme="light"] #ez-module-ez-store .ez-store-spec-card,
[data-theme="light"] #ez-module-ez-store .ez-store-spec-card {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.78) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10) !important;
}

@media (max-width: 760px) {
    .ez-store-modal .ez-modal-panel.ez-store-modal-panel {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85dvh !important;
        border-radius: 28px 28px 0 0 !important;
    }

    .ez-store-modal .ez-store-modal-body {
        padding: 16px !important;
    }

    .ez-store-modal .ez-store-product-detail {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .ez-store-modal .ez-store-product-gallery {
        max-width: min(100%, 430px) !important;
        margin: 0 auto !important;
    }

    .ez-store-modal .ez-store-specs,
    #ez-module-ez-store .ez-store-specs {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 420px) {
    .ez-store-modal .ez-store-modal-body {
        padding: 14px !important;
    }

    .ez-store-modal .ez-store-product-title {
        font-size: 1.55rem !important;
    }

    .ez-store-modal .ez-store-product-gallery {
        max-width: 100% !important;
    }

    .ez-store-modal .ez-store-media-nav-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
    }
}

/* =========================================================================
   V1N - EZ STORE HEADER BG + BODY FLOATING ACTIONS
   - Banner image lives inside the ez Store container
   - Dark/light readable overlay
   - Original banner actions stay inside header while ez Store is collapsed
   - Body-level floating actions appear under profile nav while ez Store is open
   ========================================================================= */

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background {
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.12) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-bg img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    filter: saturate(1.04) contrast(1.04) brightness(0.92) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background:
        linear-gradient(90deg,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.84) 0%,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.58) 48%,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.30) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.38),
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.12)) !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background::after,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background::after {
    background:
        linear-gradient(90deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.88) 0%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.66) 50%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.34) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.34),
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.10)) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-copy,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
    position: relative !important;
    z-index: 2 !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions {
    min-width: 0 !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-open .ez-store-header .ez-store-header-actions {
    display: none !important;
}

.ez-store-floating-actions {
    position: fixed !important;
    top: calc(max(10px, env(safe-area-inset-top)) + 72px) !important;
    left: 50% !important;
    z-index: 11000 !important;
    width: min(960px, calc(100vw - 28px)) !important;
    max-width: min(960px, calc(100vw - 28px)) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 46px 46px !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: stretch !important;
    padding: 10px 12px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(var(--ez-raw-white-rgb, 255, 255, 255), 0.10) !important;
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.92) !important;
    box-shadow: 0 10px 34px rgba(var(--ez-raw-black-rgb, 0, 0, 0), 0.18) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
}

html[data-theme="light"] .ez-store-floating-actions,
[data-theme="light"] .ez-store-floating-actions {
    border-color: rgba(var(--ez-raw-black-rgb, 0, 0, 0), 0.08) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92) !important;
}

.ez-store-floating-actions,
.ez-store-floating-actions * {
    box-sizing: border-box !important;
}

.ez-store-floating-actions .ez-store-toggle-button,
.ez-store-floating-actions .ez-store-cart-button,
.ez-store-floating-actions .ez-store-header-icon-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    min-height: 46px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: var(--ez-font-primary, inherit) !important;
    font-size: 0.86rem !important;
    font-weight: 950 !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease !important;
}

.ez-store-floating-actions .ez-store-toggle-button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-secondary, #AA4493) !important;
    border: 1px solid var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 12px 28px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.26) !important;
}

.ez-store-floating-actions .ez-store-cart-button,
.ez-store-floating-actions .ez-store-header-icon-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    color: var(--ez-theme-text-main, #ffffff) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36) !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.13) !important;
    box-shadow: none !important;
}

html[data-theme="light"] .ez-store-floating-actions .ez-store-cart-button,
html[data-theme="light"] .ez-store-floating-actions .ez-store-header-icon-btn,
[data-theme="light"] .ez-store-floating-actions .ez-store-cart-button,
[data-theme="light"] .ez-store-floating-actions .ez-store-header-icon-btn {
    color: var(--ez-theme-text-main, #070708) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.76) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.16) !important;
}

.ez-store-floating-actions .ez-store-toggle-button:hover,
.ez-store-floating-actions .ez-store-toggle-button:focus-visible,
.ez-store-floating-actions .ez-store-cart-button:hover,
.ez-store-floating-actions .ez-store-cart-button:focus-visible,
.ez-store-floating-actions .ez-store-header-icon-btn:hover,
.ez-store-floating-actions .ez-store-header-icon-btn:focus-visible {
    transform: translateY(-1px) !important;
    filter: brightness(1.06) !important;
    outline: none !important;
}

.ez-store-floating-actions .ez-store-cart-badge {
    position: absolute !important;
    top: -7px !important;
    right: -6px !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--ez-pal-neutral-light, #ffffff) !important;
    background: var(--ez-pal-warning, #FFC107) !important;
    box-shadow: 0 6px 18px rgba(var(--ez-pal-warning-rgb, 255, 193, 7), 0.34) !important;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
}

.ez-store-floating-actions .ez-store-cart-button,
.ez-store-floating-actions .ez-store-header-icon-btn {
    position: relative !important;
}

.ez-store-floating-actions .ez-store-cart-button span:not(.material-symbols-rounded):not(.ez-store-cart-badge),
.ez-store-floating-actions .ez-ez-store-share-btn span:not(.material-symbols-rounded) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 520px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-actions,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px 42px !important;
        gap: 7px !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .ez-store-floating-actions {
        top: calc(max(10px, env(safe-area-inset-top)) + 70px) !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        grid-template-columns: minmax(0, 1fr) 42px 42px !important;
        gap: 7px !important;
        padding: 9px 10px !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-toggle-button,
    .ez-store-floating-actions .ez-store-toggle-button {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 0 12px !important;
        font-size: 0.78rem !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn,
    .ez-store-floating-actions .ez-store-cart-button,
    .ez-store-floating-actions .ez-ez-store-share-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
    }

    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-cart-button span:not(.material-symbols-rounded):not(.ez-store-cart-badge),
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-ez-store-share-btn span:not(.material-symbols-rounded),
    .ez-store-floating-actions .ez-store-cart-button span:not(.material-symbols-rounded):not(.ez-store-cart-badge),
    .ez-store-floating-actions .ez-ez-store-share-btn span:not(.material-symbols-rounded) {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
        clip: rect(0 0 0 0) !important;
        white-space: nowrap !important;
    }
}

/* =========================================================================
   ONYX EZ STORE - FINAL UX PASS
   Scope:
   - Softer banner overlay.
   - Quick add / edit panel.
   - Premium variant selects.
   - Mobile specs wrap as many cards per row as fit.
   - Cart thumbnails, icon-only quantity buttons, edit variants from cart.
   ========================================================================= */

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background::after {
    background:
        linear-gradient(90deg,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.66) 0%,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.42) 44%,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.14) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.22),
            rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.04)) !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background::after,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header.has-background::after {
    background:
        linear-gradient(90deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.78) 0%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.50) 50%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.18) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.24),
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.06)) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-bg img {
    opacity: 1 !important;
    filter: saturate(1.08) contrast(1.04) brightness(0.96) !important;
}

.ez-store-modal .ez-store-option-panel {
    display: grid !important;
    gap: 16px !important;
    width: 100% !important;
}

.ez-store-modal .ez-store-option-hero {
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
    padding: 12px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10) !important;
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.14), transparent 48%),
        rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.54) !important;
}

html[data-theme="light"] .ez-store-modal .ez-store-option-hero,
[data-theme="light"] .ez-store-modal .ez-store-option-hero {
    background:
        radial-gradient(circle at top left, rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.10), transparent 48%),
        rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.76) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10) !important;
}

.ez-store-modal .ez-store-option-hero img,
.ez-store-modal .ez-store-option-hero .ez-store-media-placeholder {
    width: 86px !important;
    height: 86px !important;
    min-height: 86px !important;
    border-radius: 18px !important;
    object-fit: cover !important;
    overflow: hidden !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36) !important;
}

.ez-store-modal .ez-store-option-copy {
    display: grid !important;
    gap: 4px !important;
    min-width: 0 !important;
}

.ez-store-modal .ez-store-option-title,
.ez-store-modal .ez-store-option-price {
    margin: 0 !important;
    color: var(--ez-theme-text-main, #fff) !important;
    font-weight: 950 !important;
    letter-spacing: -0.035em !important;
}

.ez-store-modal .ez-store-option-title {
    font-size: clamp(1.05rem, 4vw, 1.35rem) !important;
    line-height: 1.05 !important;
}

.ez-store-modal .ez-store-option-price {
    font-size: 1.1rem !important;
}

.ez-store-modal .ez-store-option-controls,
#ez-module-ez-store .ez-store-option-controls {
    display: grid !important;
    gap: 12px !important;
}

.ez-store-modal .ez-store-select-field,
#ez-module-ez-store .ez-store-select-field,
.ez-store-modal .ez-store-quantity-field,
#ez-module-ez-store .ez-store-quantity-field {
    display: grid !important;
    grid-template-columns: minmax(88px, 0.34fr) minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.34) !important;
}

html[data-theme="light"] .ez-store-modal .ez-store-select-field,
html[data-theme="light"] #ez-module-ez-store .ez-store-select-field,
html[data-theme="light"] .ez-store-modal .ez-store-quantity-field,
html[data-theme="light"] #ez-module-ez-store .ez-store-quantity-field,
[data-theme="light"] .ez-store-modal .ez-store-select-field,
[data-theme="light"] #ez-module-ez-store .ez-store-select-field,
[data-theme="light"] .ez-store-modal .ez-store-quantity-field,
[data-theme="light"] #ez-module-ez-store .ez-store-quantity-field {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.72) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10) !important;
}

.ez-store-modal .ez-store-select-label,
#ez-module-ez-store .ez-store-select-label,
.ez-store-modal .ez-store-quantity-label,
#ez-module-ez-store .ez-store-quantity-label {
    display: block !important;
    margin: 0 !important;
    color: var(--ez-pal-secondary, #AA4493) !important;
    font-size: 0.68rem !important;
    font-weight: 950 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
}

.ez-store-modal .ez-store-select-control,
#ez-module-ez-store .ez-store-select-control {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
}

.ez-store-modal .ez-store-select,
#ez-module-ez-store .ez-store-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 42px 0 14px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.13) !important;
    color: var(--ez-theme-text-main, #fff) !important;
    background:
        linear-gradient(135deg, rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.70), rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.48)) !important;
    font-family: var(--ez-font-primary, inherit) !important;
    font-size: 16px !important;
    font-weight: 850 !important;
    line-height: 42px !important;
    outline: none !important;
}

html[data-theme="light"] .ez-store-modal .ez-store-select,
html[data-theme="light"] #ez-module-ez-store .ez-store-select,
[data-theme="light"] .ez-store-modal .ez-store-select,
[data-theme="light"] #ez-module-ez-store .ez-store-select {
    color: var(--ez-pal-neutral-dark, #2E2226) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12) !important;
}

.ez-store-modal .ez-store-select:focus-visible,
#ez-module-ez-store .ez-store-select:focus-visible {
    border-color: var(--ez-pal-secondary, #AA4493) !important;
    box-shadow: 0 0 0 3px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.20) !important;
}

.ez-store-modal .ez-store-select-arrow,
#ez-module-ez-store .ez-store-select-arrow {
    position: absolute !important;
    top: 50% !important;
    right: 12px !important;
    transform: translateY(-50%) !important;
    color: var(--ez-pal-secondary, #AA4493) !important;
    pointer-events: none !important;
    font-size: 22px !important;
}

.ez-store-modal .ez-store-inline-quantity-controls,
#ez-module-ez-store .ez-store-inline-quantity-controls {
    display: grid !important;
    grid-template-columns: 42px minmax(54px, 1fr) 42px !important;
    gap: 8px !important;
    align-items: center !important;
}

.ez-store-modal .ez-store-quantity-input,
#ez-module-ez-store .ez-store-quantity-input {
    width: 100% !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10) !important;
    color: var(--ez-theme-text-main, #fff) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36) !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    text-align: center !important;
    outline: none !important;
}

html[data-theme="light"] .ez-store-modal .ez-store-quantity-input,
html[data-theme="light"] #ez-module-ez-store .ez-store-quantity-input,
[data-theme="light"] .ez-store-modal .ez-store-quantity-input,
[data-theme="light"] #ez-module-ez-store .ez-store-quantity-input {
    color: var(--ez-pal-neutral-dark, #2E2226) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.92) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12) !important;
}

.ez-store-modal .ez-store-option-submit {
    margin-top: 2px !important;
}

/* Product specs: auto-wrap cards instead of forcing one huge vertical list on mobile. */
.ez-store-modal .ez-store-specs,
#ez-module-ez-store .ez-store-specs {
    grid-template-columns: repeat(auto-fit, minmax(156px, 1fr)) !important;
    gap: 10px !important;
}

@media (max-width: 640px) {
    .ez-store-modal .ez-store-specs,
    #ez-module-ez-store .ez-store-specs {
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)) !important;
    }
}

@media (max-width: 360px) {
    .ez-store-modal .ez-store-specs,
    #ez-module-ez-store .ez-store-specs {
        grid-template-columns: 1fr !important;
    }
}

.ez-store-modal .ez-store-spec-card,
#ez-module-ez-store .ez-store-spec-card {
    min-height: 58px !important;
    padding: 10px 11px !important;
}

/* Cart: thumbnail, icon-only controls, and edit variants. */
.ez-store-modal .ez-store-cart-item {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    align-items: center !important;
}

.ez-store-modal .ez-store-cart-thumb-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    min-height: 72px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36) !important;
    cursor: pointer !important;
}

.ez-store-modal .ez-store-cart-thumb-btn img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.ez-store-modal .ez-store-cart-item-content {
    align-self: center !important;
}

.ez-store-modal .ez-store-quantity-controls {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(54px, 1fr) 42px 42px 42px !important;
    gap: 8px !important;
    align-items: center !important;
}

.ez-store-modal .ez-store-quantity-btn span:not(.material-symbols-rounded),
.ez-store-modal .ez-store-remove-btn span:not(.material-symbols-rounded),
.ez-store-modal .ez-store-edit-btn span:not(.material-symbols-rounded),
#ez-module-ez-store .ez-store-quantity-btn span:not(.material-symbols-rounded),
#ez-module-ez-store .ez-store-remove-btn span:not(.material-symbols-rounded),
#ez-module-ez-store .ez-store-edit-btn span:not(.material-symbols-rounded) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ez-store-modal .ez-store-edit-btn {
    color: var(--ez-pal-neutral-light, #fff) !important;
    background: rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.24) !important;
    border: 1px solid rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.36) !important;
}

@media (max-width: 420px) {
    .ez-store-modal .ez-store-option-hero {
        grid-template-columns: 74px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .ez-store-modal .ez-store-option-hero img,
    .ez-store-modal .ez-store-option-hero .ez-store-media-placeholder {
        width: 74px !important;
        height: 74px !important;
        min-height: 74px !important;
    }

    .ez-store-modal .ez-store-select-field,
    #ez-module-ez-store .ez-store-select-field,
    .ez-store-modal .ez-store-quantity-field,
    #ez-module-ez-store .ez-store-quantity-field {
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }

    .ez-store-modal .ez-store-quantity-controls {
        grid-template-columns: 40px minmax(48px, 1fr) 40px 40px 40px !important;
    }
}


/* =========================================================================
   ONYX EZ STORE MEDIA CART FIX
   Product thumbnails in quick-add/cart must use the first media display asset:
   image as image, video as poster, with safe contain framing.
   ========================================================================= */
.ez-store-modal .ez-store-option-hero img,
.ez-store-modal .ez-store-cart-thumb-btn img {
    object-fit: contain !important;
    background: #ffffff !important;
}

/* =========================================================================
   ONYX EZ STORE MOBILE FORM ZOOM FIX
   iOS evita el auto-zoom cuando inputs/selects/textarea son >= 16px.
   ========================================================================= */
@media (max-width: 768px) {
    .ez-store-modal input,
    .ez-store-modal select,
    .ez-store-modal textarea,
    .ez-store-modal .ez-store-select,
    .ez-store-modal .ez-store-quantity-input {
        font-size: 16px !important;
    }
}


/* =========================================================================
   ez Store - fulfillment / pickup / delivery
   ========================================================================= */

.ez-store-fulfillment {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.38);
}

.ez-store-fulfillment-title {
    margin: 0;
    color: var(--ez-theme-text-main, #ffffff);
    font-size: 0.86rem;
    font-weight: 900;
}

.ez-store-fulfillment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ez-store-fulfillment-btn {
    min-height: 44px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
    border-radius: 16px;
    color: var(--ez-theme-text-main, #ffffff);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    font-family: var(--ez-font-primary, inherit);
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.ez-store-fulfillment-btn.is-active,
.ez-store-fulfillment-btn:hover,
.ez-store-fulfillment-btn:focus-visible {
    color: var(--btn_secondary_text, var(--ez-pal-neutral-light, #ffffff));
    background: var(--ez-theme-accent-secondary, var(--ez-pal-secondary, #AA4493));
    border-color: var(--ez-theme-accent-secondary, var(--ez-pal-secondary, #AA4493));
    outline: none;
}

.ez-store-shipping-summary {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.32);
}

.ez-store-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.88rem;
}

.ez-store-summary-row strong {
    color: var(--ez-theme-text-main, #ffffff);
    font-weight: 950;
    text-align: right;
}

.ez-store-summary-row--total {
    padding-top: 8px;
    border-top: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
}

.ez-store-shipping-note {
    margin: 0;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.72));
    font-size: 0.8rem;
    line-height: 1.42;
}

html[data-theme="light"] .ez-store-fulfillment,
[data-theme="light"] .ez-store-fulfillment,
html[data-theme="light"] .ez-store-shipping-summary,
[data-theme="light"] .ez-store-shipping-summary {
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.58);
}

html[data-theme="light"] .ez-store-fulfillment-btn,
[data-theme="light"] .ez-store-fulfillment-btn {
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.78);
}

@media (max-width: 520px) {
    .ez-store-fulfillment-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   ez Store v1 UI hotfix
   - Share buttons are icon-only in store header/floating bar.
   - Keep accessible aria-labels from JS.
   ========================================================================= */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-icon-only-btn,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn,
.ez-store-floating-actions .ez-store-icon-only-btn,
.ez-store-floating-actions .ez-store-store-share-btn,
.ez-store-modal .ez-store-icon-only-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn,
.ez-store-floating-actions .ez-store-store-share-btn {
    color: var(--ez-theme-text-main, #ffffff) !important;
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.36) !important;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.13) !important;
    box-shadow: none !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn,
html[data-theme="light"] .ez-store-floating-actions .ez-store-store-share-btn,
[data-theme="light"] .ez-store-floating-actions .ez-store-store-share-btn {
    color: var(--ez-theme-text-main, #070708) !important;
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.76) !important;
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.16) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-icon-only-btn span:not(.material-symbols-rounded),
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn span:not(.material-symbols-rounded),
.ez-store-floating-actions .ez-store-icon-only-btn span:not(.material-symbols-rounded),
.ez-store-floating-actions .ez-store-store-share-btn span:not(.material-symbols-rounded),
.ez-store-modal .ez-store-icon-only-btn span:not(.material-symbols-rounded) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 520px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-icon-only-btn,
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn,
    .ez-store-floating-actions .ez-store-icon-only-btn,
    .ez-store-floating-actions .ez-store-store-share-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
    }
}

/* =========================================================================
   ez Store checkout capture: pickup + delivery
   ========================================================================= */

.ez-store-checkout-form {
    display: grid;
    gap: 12px;
    margin: 14px 0 0;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.10);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.46);
}

.ez-store-checkout-title {
    margin: 0 0 2px;
    color: var(--ez-theme-text-main, #fff);
    font-size: 0.96rem;
    font-weight: 900;
    line-height: 1.35;
}

.ez-store-checkout-input {
    width: 100%;
    min-height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.13);
    background: rgba(var(--ez-theme-bg-main-rgb, 7, 7, 8), 0.48);
    color: var(--ez-theme-text-main, #fff);
    padding: 0 14px;
    font-family: var(--ez-font-primary, inherit);
    font-size: 0.92rem;
    outline: none;
}

textarea.ez-store-checkout-input {
    min-height: 82px;
    padding-top: 13px;
    resize: vertical;
}

.ez-store-checkout-input::placeholder {
    color: rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.48);
}

.ez-store-checkout-input:focus-visible {
    border-color: rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.72);
    box-shadow: 0 0 0 3px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.16);
}

.ez-store-phone-row {
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
}

.ez-store-dial-wrap {
    position: relative;
    min-width: 0;
}

.ez-store-dial-flag {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    object-fit: cover;
    transform: translateY(-50%);
    pointer-events: none;
}

.ez-store-dial-select {
    padding-left: 36px;
}

.ez-store-address-fieldset {
    margin: 0;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.12);
}

.ez-store-address-fieldset legend {
    padding: 0 8px;
    color: var(--ez-theme-text-main, #fff);
    font-size: 0.82rem;
    font-weight: 900;
}

.ez-store-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ez-store-address-grid .ez-store-checkout-input:first-child,
.ez-store-address-grid .ez-store-checkout-input:nth-child(4),
.ez-store-address-grid .ez-store-checkout-input:nth-child(8),
.ez-store-address-grid .ez-store-checkout-input:nth-child(9) {
    grid-column: 1 / -1;
}

.ez-store-address-helper {
    display: block;
    margin-top: 8px;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.75rem;
    line-height: 1.4;
}

.ez-store-checkout-status {
    margin: 0;
    color: var(--ez-theme-text-muted, rgba(255, 255, 255, 0.68));
    font-size: 0.82rem;
    line-height: 1.4;
}

.ez-store-checkout-status.is-error {
    color: #ff7d87;
}

html[data-theme="light"] .ez-store-checkout-form,
[data-theme="light"] .ez-store-checkout-form,
html[data-theme="light"] .ez-store-address-fieldset,
[data-theme="light"] .ez-store-address-fieldset {
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.11);
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.72);
}

html[data-theme="light"] .ez-store-checkout-input,
[data-theme="light"] .ez-store-checkout-input {
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.13);
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.86);
    color: var(--ez-theme-text-main, #090907);
}

html[data-theme="light"] .ez-store-checkout-input::placeholder,
[data-theme="light"] .ez-store-checkout-input::placeholder {
    color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.46);
}

@media (max-width: 520px) {
    .ez-store-phone-row,
    .ez-store-address-grid {
        grid-template-columns: 1fr;
    }

    .ez-store-address-grid .ez-store-checkout-input {
        grid-column: 1 / -1;
    }
}

/* =========================================================================
   ez Store hotfix - share icon visibility only
   Restores icon rendering for icon-only share buttons without changing layout.
   ========================================================================= */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-icon-only-btn .material-symbols-rounded,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-store-share-btn .material-symbols-rounded,
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header-icon-btn .material-symbols-rounded,
.ez-store-floating-actions .ez-store-icon-only-btn .material-symbols-rounded,
.ez-store-floating-actions .ez-store-store-share-btn .material-symbols-rounded,
.ez-store-floating-actions .ez-store-header-icon-btn .material-symbols-rounded,
.ez-store-modal .ez-store-icon-only-btn .material-symbols-rounded,
.ez-store-modal .ez-store-share-btn .material-symbols-rounded {
    display: inline-flex !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: currentColor !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
}

/* =========================================================================
   ONYX ez Store checkout mobile form hotfix
   - Matches owned_ordering control sizing.
   - Prevents iOS auto-zoom and fieldset overflow.
   ========================================================================= */
.ez-store-modal .ez-store-checkout-form,
#ez-module-ez-store .ez-store-checkout-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.ez-store-modal .ez-store-checkout-input,
.ez-store-modal .ez-store-dial-select,
.ez-store-modal input,
.ez-store-modal select,
.ez-store-modal textarea,
#ez-module-ez-store .ez-store-checkout-input,
#ez-module-ez-store .ez-store-dial-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    min-height: 48px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
}

.ez-store-modal .ez-store-address-fieldset,
.ez-store-modal .ez-store-address-grid,
.ez-store-modal .ez-store-phone-row,
#ez-module-ez-store .ez-store-address-fieldset,
#ez-module-ez-store .ez-store-address-grid,
#ez-module-ez-store .ez-store-phone-row {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

.ez-store-modal .ez-store-address-fieldset,
#ez-module-ez-store .ez-store-address-fieldset {
    padding: 14px !important;
}

@media (max-width: 520px) {
    .ez-store-modal .ez-store-address-grid,
    .ez-store-modal .ez-store-phone-row,
    #ez-module-ez-store .ez-store-address-grid,
    #ez-module-ez-store .ez-store-phone-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* =========================================================================
   EZ STORE COLLAPSED COVER DYNAMIC HEIGHT CLOSURE
   The background remains absolute and fills the header, but the header itself
   is content-driven. This prevents title/description/actions from being clipped
   on mobile or whenever localized copy needs more vertical space.
   ========================================================================= */
:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    align-content: space-between !important;
}

@media (max-width: 720px) {
    :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header {
        aspect-ratio: auto !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 18px !important;
    }
}

/* NEXT_7 — native select contrast parity across light/dark checkout modes. */
.ez-store-modal select,
#ez-module-ez-store select,
.ez-store-checkout-input,
.ez-store-dial-select,
.ez-store-select {
    color: var(--ez-theme-text-main) !important;
    -webkit-text-fill-color: currentColor;
}
html[data-theme="dark"] .ez-store-modal select,
html[data-theme="dark"] #ez-module-ez-store select,
[data-theme="dark"] .ez-store-modal select,
[data-theme="dark"] #ez-module-ez-store select {
    color-scheme: dark;
}
html[data-theme="dark"] .ez-store-modal select option,
html[data-theme="dark"] #ez-module-ez-store select option,
[data-theme="dark"] .ez-store-modal select option,
[data-theme="dark"] #ez-module-ez-store select option {
    color: var(--ez-pal-neutral-light) !important;
    background: var(--ez-pal-neutral-dark) !important;
}
html[data-theme="light"] .ez-store-modal select,
html[data-theme="light"] #ez-module-ez-store select,
[data-theme="light"] .ez-store-modal select,
[data-theme="light"] #ez-module-ez-store select {
    color-scheme: light;
}
html[data-theme="light"] .ez-store-modal select option,
html[data-theme="light"] #ez-module-ez-store select option,
[data-theme="light"] .ez-store-modal select option,
[data-theme="light"] #ez-module-ez-store select option {
    color: var(--ez-pal-neutral-dark) !important;
    background: var(--ez-pal-neutral-light) !important;
}

/* =========================================================================
   NEXT_8 — LIGHT EZ STORE READABILITY + CONTENT-DRIVEN COVER
   ========================================================================= */
html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-title,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-title {
    color: var(--ez-pal-neutral-dark, #070708) !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-desc,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-desc {
    color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.80) !important;
}

html[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after,
[data-theme="light"] :is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-header::after {
    background:
        linear-gradient(90deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.94) 0%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.76) 52%,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.42) 100%),
        linear-gradient(0deg,
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.36),
            rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.14)) !important;
}

:is(#ez-module-ez-store, .ez-module-ez-store) .ez-store-section.is-collapsed .ez-store-header {
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}


/* NEXT_10 — fulfillment selected-state uses canonical theme button tokens.
   This override is intentionally after the light-mode base button rule so the
   selected background/foreground cannot be flattened by the unselected state. */
html[data-theme="light"] .ez-store-fulfillment-btn.is-active,
[data-theme="light"] .ez-store-fulfillment-btn.is-active,
html[data-theme="dark"] .ez-store-fulfillment-btn.is-active,
[data-theme="dark"] .ez-store-fulfillment-btn.is-active {
    border-color: var(--ez-theme-btn-secondary-bg, var(--ez-theme-accent-secondary, var(--ez-pal-secondary, #AA4493))) !important;
    background: var(--ez-theme-btn-secondary-bg, var(--ez-theme-accent-secondary, var(--ez-pal-secondary, #AA4493))) !important;
    color: var(--ez-theme-btn-secondary-text, var(--ez-pal-neutral-light, #ffffff)) !important;
    -webkit-text-fill-color: var(--ez-theme-btn-secondary-text, var(--ez-pal-neutral-light, #ffffff)) !important;
}
.ez-store-payment-field{display:grid;gap:7px}.ez-store-payment-label{margin:0;color:var(--ez-theme-text-main);font-size:.82rem;font-weight:900}


/* =========================================================================
   R9 — semantic ez Store address layout
   Desktop/tablet:
   street
   exterior | interior
   neighborhood | postal code
   state | municipality
   country
   Pickup keeps its compact branch/contact layout and does not invent an
   address section.
   ========================================================================= */
.ez-store-address-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.ez-store-address-grid > * {
    min-width: 0;
}

.ez-store-address-grid .ez-store-address-field--street,
.ez-store-address-grid .ez-store-address-field--country {
    grid-column: 1 / -1 !important;
}

.ez-store-address-grid .ez-store-address-field--external-number,
.ez-store-address-grid .ez-store-address-field--internal-number,
.ez-store-address-grid .ez-store-address-field--neighborhood,
.ez-store-address-grid .ez-store-address-field--postal-code,
.ez-store-address-grid .ez-store-address-field--state,
.ez-store-address-grid .ez-store-address-field--municipality {
    grid-column: auto !important;
}

@media (max-width: 640px) {
    .ez-store-address-grid,
    .ez-store-phone-row {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ez-store-address-grid > * {
        grid-column: 1 / -1 !important;
    }
}
