/* Responsive dimensional compartido de tiendas públicas.
 * Extraído literalmente de store-base.css.
 * No editar desktop aquí.
 */

@media (max-width: 720px) {
    .store-promo-banner {
        min-height: 40px;
        padding: 8px 0;
    }

    .store-promo-banner__track {
        gap: max(20px, calc(var(--promo-spacing, 48px) * 0.45));
        padding-inline: 20px;
    }
}

@media (max-width: 1024px) {

    .artist-theme-section {
        padding: 30px 14px;
    }
    
    .site-header {
        grid-template-columns: auto 1fr auto;
        padding: 14px;
    }

    .product-grid,
    .product-grid--three,
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .artist-store .section-title h2 {
        font-size: 22px;
    }

    .product-detail__media .product-card__image {
        min-height: 420px;
    }
}

@media (max-width: 720px) {
    .topbar {
        height: 28px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
        gap: 18px;
        padding: 18px;
    }

    .main-nav {
        grid-column: 1 / -1;
        order: 3;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
    }

    .section-block,
    .artist-theme-section {
        width: calc(100% - 36px);
    }

    .artist-hero__title {
        letter-spacing: 0.5px;
    }

    .section-title--with-sort,
    .catalog-toolbar {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 12px;
    }

    .product-card__promo-badge {
        font-size: 10px;
        top: 10px;
        right: 10px;
        min-height: 24px;
        padding: 0 10px;
        font-size: 11px;
    }

    .catalog-toolbar > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
    }

    .catalog-sort {
        width: 148px;
        min-width: 0;
        max-width: 148px;
        flex: 0 1 148px;
        margin-left: auto;
        box-sizing: border-box;
    }

    .catalog-sort__button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        min-height: 44px;
        box-sizing: border-box;
        gap: 8px;
        padding: 10px 12px;
    }

    .catalog-sort__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .catalog-sort__value {
        min-width: 0;
        margin-left: 0;
    }

    .catalog-sort__menu {
        right: 0;
        left: auto;
        width: 210px;
        max-width: 210px;
        box-sizing: border-box;
    }

    .product-grid,
    .product-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 12px;
    }

    .product-card__image {
        min-height: 0;
        border-radius: var(--radius-sm);
    }

    .product-card__buy-row {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .product-card__buy-row .product-card__price {
        width: 100%;
        min-width: 0;
    }

    .product-card__buy-row .product-card__cta {
        position: static;
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .product-detail__media .product-card__image {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .product-grid,
    .product-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-block,
    .artist-theme-section {
        width: calc(100% - 28px);
    }
    .product-card__image {
        min-height: 0;
    }

    .product-detail__media .product-card__image {
        min-height: 340px;
    }

    .product-card h3 {
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.15;
    }

    .product-card__summary {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.35;
    }

    .product-card__buy-row .product-card__cta {
        padding-inline: 8px;
    }

    .product-detail__actions .btn,
    .product-card .btn {
        width: 100%;
    }

    .quantity-control {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .store-buy-modal__product-head {
        grid-template-columns: 72px 1fr;
        gap: 12px;
        align-items: flex-start;
    }

    .store-buy-modal__product-image {
        width: 72px;
        border-radius: 14px;
    }
}

@media (max-width: 1024px) {
    .product-show__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .product-show__gallery {
        grid-template-columns: 1fr;
    }

    .product-show__thumbs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .product-show__thumb {
        flex: 0 0 72px;
    }

    .product-show__image {
        min-height: 420px;
    }

    .product-show__modal-dialog {
        width: calc(100vw - 20px);
        height: calc(100vh - 44px);
        margin: 22px auto;
    }

    .product-show__modal-content {
        padding: 18px;
    }
}

@media (max-width: 720px) {
    .store-buy-modal__dialog {
        width: calc(100vw - 20px);
        margin: 22px auto;
        padding: 24px 18px;
    }
}

@media (max-width: 720px) {
    .store-page__card > ol {
        gap: 12px;
    }

    .store-page__card > ol > li {
        min-height: 68px;
        padding: 16px 16px 16px 64px;
        border-radius: 16px;
    }

    .store-page__card > ol > li::before {
        top: 16px;
        left: 16px;
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 720px) {
    .store-page {
        padding: 34px 16px 56px;
    }

    .store-page__head {
        gap: 14px;
        margin-bottom: 18px;
    }

    .store-page__head h1 {
        align-items: flex-start;
        gap: 8px;
    }

    .store-page__card {
        padding: 22px;
        border-radius: 18px;
    }
}

@media (max-width: 860px) {
    .store-footer__inner,
    .store-footer__bottom {
        width: min(100% - 32px, 1180px);
        flex-direction: column;
        align-items: flex-start;
    }

    .store-footer__links {
        width: 100%;
        grid-template-columns: 1fr;
        justify-content: start;
    }

    .store-footer__newsletter {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .product-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .product-grid--related {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .main-nav--store {
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    .artist-store .section-title h2 {
        font-size: 26px;
    }

    .store-collections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .main-nav__dropdown-menu {
        display: none;
    }

    .store-collection-hero,
    .store-collection-hero__content {
        min-height: 260px;
    }

    .store-collection-hero__content {
        padding: 24px;
    }
}

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

@media (max-width: 720px) {
    .store-faq-card__question {
        padding: 16px;
        align-items: flex-start;
    }

    .store-faq-card__icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 0.8rem;
    }

    .store-faq-card__answer {
        padding: 0 16px 18px 16px;
    }
}

@media (max-width: 720px) {
    .store-form__actions--captcha {
        flex-direction: column;
        align-items: stretch;
    }

    .store-form__actions--captcha .store-form__submit,
    .store-form__actions--captcha button[type="submit"] {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .store-legal-section {
        padding-top: 22px;
        margin-top: 22px;
    }

    .store-legal-alpha-list > li {
        padding-left: 32px;
    }
}

@media (max-width: 860px) {
    .store-form-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

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

    .size-guide-grid {
        grid-template-columns: 1fr;
    }

    .size-guide-table {
        min-width: 520px;
        font-size: 0.76rem;
    }

    .size-guide-table--caps {
        min-width: 360px;
    }

    .size-guide-table th,
    .size-guide-table td {
        padding: 7px 6px;
    }
}


@media (max-width: 720px) {
    .site-header--template-classic,
    .site-header--template-visual,
    .site-header--template-minimal {
        gap: 0;
        padding: 0;
    }

    .site-header--template-classic .site-header-container,
    .site-header--template-visual .site-header-container,
    .site-header--template-minimal .site-header-container {
        width: min(100%, calc(100% ));
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 12px 16px;
    }

    .site-header--template-classic .site-header-center,
    .site-header--template-visual .site-header-center,
    .site-header--template-minimal .site-header-center,
    .site-header--template-classic .main-nav--store,
    .site-header--template-visual .main-nav--store,
    .site-header--template-minimal .main-nav--store {
        display: none;
    }

    .site-header--template-classic .brand,
    .site-header--template-visual .brand,
    .site-header--template-minimal .brand {
        flex: 0 0 auto;
        margin: 0 0 0 4px;
    }

    .site-header--template-classic .brand__logo,
    .site-header--template-visual .brand__logo,
    .site-header--template-minimal .brand__logo {
        max-width: 176px;
    }

    .site-header--template-classic .brand__logo img,
    .site-header--template-visual .brand__logo img,
    .site-header--template-minimal .brand__logo img {
        width: auto;
        max-width: 176px;
        max-height: 32px;
        height: auto;
        object-fit: contain;
    }

    .site-header--template-classic .header-actions,
    .site-header--template-visual .header-actions,
    .site-header--template-minimal .header-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .site-header--template-classic .cart-link,
    .site-header--template-visual .cart-link,
    .site-header--template-minimal .cart-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }

    .site-header--template-classic .cart-link span,
    .site-header--template-visual .cart-link span,
    .site-header--template-minimal .cart-link span {
        top: 4px;
        right: 4px;
    }
}

@media (max-width: 720px) {
    .artist-store.artist-store--template-classic .artist-hero,
    .artist-store.artist-store--template-visual .artist-hero,
    .artist-store.artist-store--template-minimal .artist-hero {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        align-items: flex-end;
        background-size: cover;
        background-position: 62% center;
    }

    .artist-store .artist-hero__slide {
        align-items: flex-end;
        background-size: cover;
        background-position: 55% center;
    }

    .artist-store .artist-hero__content,
    .artist-store .artist-hero__slide-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: calc(100% - 36px);
        min-width: 0;
        gap: 8px;
        padding: 0 0 24px 10px;
        overflow: visible;
    }

    .artist-store .artist-hero .eyebrow {
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap;
    }

    .artist-store .artist-hero .artist-hero__title {
        min-width: 0;
        max-width: 60%;
        margin: 0;
        overflow: visible;
        font-size: clamp(50px, 7vw, 44px);
        line-height: 0.9;
        white-space: normal;
        text-overflow: clip;
    }

    .artist-store .artist-hero__description,
    .artist-store .artist-hero .hero__actions {
        display: none;
    }
}

@media (max-width: 480px) {
    .artist-store .artist-hero__content,
    .artist-store .artist-hero__slide-content {
        width: calc(100% - 28px);
    }
}

@media (max-width: 720px) {
    .artist-store > #productos.artist-theme-section,
    .artist-store > #destacados.store-featured {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 26px;
        box-sizing: border-box;
    }

    .artist-store #productos .catalog-toolbar {
        margin-top: 0;
    }

    .artist-store #destacados.store-featured {
        background: color-mix(in srgb, var(--artist-page-bg) 90%, white 10%);
        border-radius: 0 !important;
    }

    .artist-store #destacados .store-featured__head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        width: 100%;
        margin-top: 0;
        margin-inline: 0;
        gap: 10px 12px;
    }

    .artist-store #destacados .store-featured__head h2 {
        min-width: 0;
        margin: 0;
    }

    .artist-store #destacados .store-featured__head .section-link {
        display: none;
    }

    .artist-store #destacados .store-featured__controls {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .artist-store #destacados .store-featured__controls[hidden] {
        display: none;
    }

    .artist-store #destacados .store-featured__control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 1px solid var(--artist-section-accent);
        border-radius: 999px;
        background: var(--artist-page-bg);
        color: var(--artist-page-text);
        cursor: pointer;
    }

    .artist-store #destacados .store-featured__control:disabled {
        opacity: 0.36;
        cursor: default;
    }

    .artist-store #destacados .store-featured__control:focus-visible {
        outline: 2px solid var(--artist-section-accent);
        outline-offset: 2px;
    }

    .artist-store #destacados .store-featured__track {
        --store-featured-gap: 12px;
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - var(--store-featured-gap)) / 2);
        gap: var(--store-featured-gap);
        width: 100%;
        margin-inline: 0;
        min-width: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .artist-store #destacados .store-featured__track::-webkit-scrollbar {
        display: none;
    }

    .artist-store #destacados .store-featured__track > :nth-child(n) {
        display: flex;
        min-width: 0;
        scroll-snap-align: start;
    }
}


@media (max-width: 720px) {
    .site-header--template-classic .header-actions,
    .site-header--template-visual .header-actions,
    .site-header--template-minimal .header-actions {
        gap: 8px;
    }

    .store-mobile-nav-toggle,
    .store-mobile-navigation__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--artist-page-text, #ffffff);
        font-size: 18px;
        cursor: pointer;
    }

    .store-mobile-nav-toggle[hidden],
    .store-mobile-navigation[hidden] {
        display: none !important;
    }

    .store-mobile-nav-toggle:focus-visible,
    .store-mobile-navigation__close:focus-visible,
    .store-mobile-navigation__nav a:focus-visible {
        outline: 2px solid var(--artist-section-accent, #e51b23);
        outline-offset: 2px;
    }

    .store-mobile-navigation {
        position: fixed;
        inset: 0;
        z-index: 170;
        pointer-events: none;
    }

    .store-mobile-navigation__backdrop {
        position: fixed;
        inset: 0;
        z-index: 170;
        pointer-events: none;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.62);
        opacity: 0;
        transition: opacity 0.22s ease;
        cursor: pointer;
    }

    .store-mobile-navigation__panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 171;
        pointer-events: none;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        background: var(--color-black, #050505);
        color: var(--color-white, #ffffff);
        box-shadow: -18px 0 48px rgba(0, 0, 0, 0.28);
        transform: translateX(100%);
        transition: transform 0.22s ease;
    }

    .store-mobile-navigation.is-open .store-mobile-navigation__backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .store-mobile-navigation.is-open .store-mobile-navigation__panel {
        transform: translateX(0);
        pointer-events: auto;
    }

    .store-mobile-navigation__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 72px;
        padding: max(14px, env(safe-area-inset-top)) 16px 14px;
        border-bottom: 1px solid color-mix(in srgb, var(--artist-page-text, #ffffff) 16%, transparent);
        background: var(--color-black, #050505);
    }

    .store-mobile-navigation__header strong {
        font-family: var(--artist-display-font, inherit);
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .store-mobile-navigation__nav {
        padding: 0 0 max(20px, env(safe-area-inset-bottom));
    }

    .store-mobile-navigation__list {
        display: grid;
        gap: 0;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .store-mobile-navigation__list li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid color-mix(in srgb, var(--artist-page-text, #ffffff) 12%, transparent);
    }

    .store-mobile-navigation__nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 16px;
        color: var(--artist-page-text, #ffffff);
        font-family: var(--artist-display-font, inherit);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
        text-decoration: none;
    }

    body.store-mobile-nav-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) and (prefers-reduced-motion: reduce) {
    .store-mobile-navigation__backdrop,
    .store-mobile-navigation__panel {
        transition: none;
    }
}

@media (max-width: 720px) {
    .catalog-sort__button {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .catalog-sort__value {
        flex: 1 1 auto;
        text-align: left;
    }

    .catalog-sort__button > i {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .store-footer {
        margin-top: 24px;
        padding: 32px 0 24px;
        text-align: center;
    }

    .store-footer__inner,
    .store-footer__bottom {
        width: min(100% - 40px, 520px);
        align-items: center;
        text-align: center;
    }

    .store-footer__inner {
        gap: 20px;
    }

    .store-footer__brand-block {
        width: 100%;
        max-width: none;
        justify-items: center;
        gap: 6px;
    }

    .store-footer__logo-link,
    .store-footer__logo {
        margin-inline: auto;
    }

    .store-footer__newsletter {
        width: min(100%, 520px);
        min-width: 0;
        max-width: 520px;
        justify-items: center;
        gap: 6px;
        text-align: center;
    }

    .store-footer__newsletter-form,
    .store-footer__newsletter-alert,
    .store-footer__newsletter-message {
        width: 100%;
    }

    .store-footer__newsletter-alert {
        justify-content: center;
    }

    .store-footer__links {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 2px;
        justify-items: center;
    }

    .store-footer__links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .store-footer__bottom {
        margin-top: 16px;
        padding-top: 14px;
        gap: 10px;
        justify-content: center;
    }

    .store-footer__powered {
        margin-inline: auto;
    }
    .artist-store.artist-store--template-minimal .store-footer {
        margin-top: 24px;
    }

    .artist-store .store-footer.store-footer--template-visual .store-footer__links {
        gap: 2px;
    }
}

@media (max-width: 720px) {
    .artist-store .store-footer__newsletter {
        width: 100%;
        max-width: 380px;
        margin-inline: auto;
        justify-items: stretch;
        gap: 0;
        text-align: left;
    }

    .artist-store .store-footer__newsletter-title {
        margin: 0 0 6px;
        text-align: left;
    }

    .artist-store .store-footer__newsletter-copy {
        width: 100%;
        margin: 0 0 14px;
        text-align: left;
    }

    .artist-store .store-footer__newsletter-form {
        display: flex;
        align-items: stretch;
        width: 100%;
        gap: 8px;
    }

    .artist-store .store-footer__newsletter-input {
        min-width: 0;
        height: 48px;
        min-height: 48px;
        padding: 0 13px;
        box-sizing: border-box;
        line-height: normal;
    }

    .artist-store .store-footer__newsletter-button {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
    }

    .artist-store .store-footer__newsletter-alert,
    .artist-store .store-footer__newsletter-message {
        text-align: left;
    }

    .artist-store .store-footer__newsletter-alert {
        justify-content: flex-start;
        margin-top: 8px;
    }

    .artist-store .store-footer__inner {
        gap: 16px;
    }

    .artist-store .store-footer__links {
        row-gap: 0;
    }

    .artist-store .store-footer__links a {
        padding-block: 4px;
        box-sizing: border-box;
    }

    .artist-store .store-footer__bottom--brand {
        margin-top: 12px;
        padding-top: 12px;
        justify-content: center;
    }

    .artist-store .store-footer__merchvox-logo {
        width: 112px;
        max-width: 100%;
        height: auto;
        margin-inline: auto;
    }
}
