/*
 * Reggaeton El Real — dedicated mobile storefront overrides.
 * Loaded only on phone-sized viewports so desktop styles remain untouched.
 */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    min-width: 0;
}

.promo-strip,
.site-header,
main,
.site-footer {
    width: 100vw;
    max-width: 100vw;
}

/*
 * Keep the logo/cart bar sticky on the homepage just like product pages.
 * overflow-x: clip above prevents horizontal bleed without creating the
 * scrolling ancestor that overflow-x: hidden created and that broke sticky.
 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
}

.page-shell {
    width: calc(100% - 32px);
    max-width: none;
    margin-inline: auto;
}

.promo-strip .promo-strip__inner {
    width: 100%;
    min-height: 34px;
    padding: 7px 16px;
    margin: 0;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 9px;
    row-gap: 3px;
    text-align: center;
    font-size: 8px;
    line-height: 1.3;
}

.promo-strip .promo-strip__inner.promo-strip__inner--shipping-scope {
    width: 100%;
    padding: 7px 16px;
    justify-content: center;
    row-gap: 2px;
}

.site-header__main {
    width: 100%;
    min-height: 68px;
    margin: 0;
    padding: 0 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.brand {
    min-width: 0;
}

.header-actions {
    gap: 8px;
}

/*
 * store.css hides header icon buttons below 640px. The homepage already has
 * a working .js-focus-search button, so keep that magnifier visible on phones
 * and let the existing JavaScript scroll to/focus the catalog search field.
 */
.header-actions .js-focus-search {
    width: 44px;
    height: 44px;
    display: inline-grid !important;
    flex: 0 0 44px;
}

.cart-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
}

.cart-count {
    min-width: 24px;
    height: 24px;
}

.hero {
    width: calc(100% - 32px);
    min-height: 0;
    grid-template-columns: 1fr;
    border-left: 1px solid var(--soft-line);
    border-right: 1px solid var(--soft-line);
}

.hero__content {
    min-height: 0;
    padding: 42px 20px 46px;
}

.hero .eyebrow {
    max-width: 100%;
    font-size: 9px;
    line-height: 1.4;
}

.hero h1 {
    max-width: 100%;
    font-size: clamp(52px, 16vw, 68px);
    line-height: .88;
    letter-spacing: -.065em;
    overflow-wrap: normal;
}

.hero__lead {
    max-width: 100%;
    margin: 24px 0 24px;
    font-size: 17px;
    line-height: 1.45;
}

.hero__freshness {
    font-size: 8px;
    line-height: 1.4;
}

.hero .button {
    min-height: 50px;
    padding-inline: 20px;
}

.hero__panel {
    min-height: 118px;
    padding: 20px;
    border-left: 0;
    border-top: 1px solid var(--soft-line);
    flex-direction: row;
    align-items: flex-end;
}

.hero__number {
    font-size: 58px;
    line-height: .82;
}

.hero__label {
    max-width: 120px;
    font-size: 9px;
    line-height: 1.35;
    text-align: right;
}

.catalog-section {
    padding: 48px 0 64px;
}

.catalog-section > .page-shell {
    width: calc(100% - 32px);
}

.section-heading {
    margin-bottom: 22px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
}

.section-heading h2 {
    font-size: clamp(38px, 11vw, 48px);
    line-height: .94;
}

.section-heading__count {
    font-size: 10px;
}

.catalog-toolbar {
    width: 100%;
    grid-template-columns: 1fr;
}

.search-box,
.sort-box {
    min-height: 56px;
}

.search-box {
    padding-inline: 16px;
}

.search-box input {
    height: 54px;
    min-width: 0;
    font-size: 16px;
}

.sort-box {
    border-left: 0;
    border-top: 1px solid var(--soft-line);
}

.sort-box span {
    padding-left: 16px;
}

.sort-box select {
    height: 54px;
    padding-right: 42px;
    font-size: 14px;
}

.artist-filter {
    width: 100%;
    margin-top: 12px;
    padding-bottom: 8px;
    gap: 6px;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.artist-filter::-webkit-scrollbar {
    display: none;
}

.artist-chip {
    min-height: 40px;
    padding: 0 13px;
    scroll-snap-align: start;
}

/*
 * Keep exactly the same two-column phone rhythm used by the
 * "OTROS CDS" related-products block on product detail pages.
 * The stronger homepage selector intentionally overrides store.css's
 * legacy <=390px single-column rule.
 */
.catalog-section .product-grid,
.product-grid--related {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card__image-wrap {
    width: 100%;
}

.product-card__body {
    min-height: 0;
    padding: 15px;
}

.product-card__artist {
    font-size: 8px;
}

.product-card__title {
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.product-card__meta {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 8px;
}

.product-card__meta span + span {
    display: inline;
}

.product-card__meta span + span::before {
    margin-right: 6px;
}

.product-card__footer {
    margin-top: 18px;
    padding-top: 14px;
    gap: 8px;
}

.product-card__price {
    font-size: 25px;
}

.square-action {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
}

.seo-editorial__grid {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.seo-editorial h2 {
    font-size: 34px;
    line-height: 1;
}

.seo-editorial__copy {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.65;
}

.store-info {
    width: 100vw;
}

.store-info__grid {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    border-left: 0;
}

.info-card {
    min-height: 200px;
    padding: 28px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
}

.info-card__index {
    font-size: 10px;
}

.info-card h3 {
    margin: 40px 0 10px;
    font-size: 32px;
    line-height: 1;
}

.info-card p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.55;
}

.site-footer {
    width: 100vw;
}

.site-footer__grid,
.site-footer__grid--social {
    width: 100%;
    margin: 0;
    grid-template-columns: 1fr;
    border-left: 0;
}

.site-footer__grid--social > div {
    padding: 28px 20px;
    border-right: 0;
}

.footer-brand-logo {
    width: min(100%, 220px);
    margin-bottom: 18px;
}

.footer-social-links a,
.footer-guide-link,
.footer-whatsapp-link {
    min-height: 46px;
}

.cart-drawer {
    width: 100vw;
    max-width: 100vw;
    padding: 20px;
}

.cart-item {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
}

.cart-item__image {
    width: 72px;
    height: 72px;
}

@media (max-width: 520px) {
    .page-shell,
    .catalog-section > .page-shell,
    .seo-editorial__grid,
    .hero {
        width: calc(100% - 24px);
    }

    .site-header__main {
        padding-inline: 12px;
    }

    .hero__content {
        padding: 38px 18px 42px;
    }

    .hero h1 {
        font-size: clamp(50px, 16vw, 64px);
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__panel {
        min-height: 108px;
        padding: 18px;
    }

    .hero__number {
        font-size: 54px;
    }

    .section-heading h2 {
        font-size: clamp(36px, 11vw, 44px);
    }

    .catalog-section .product-grid,
    .product-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card__body {
        min-height: 184px;
        padding: 13px;
    }

    .product-card__artist {
        font-size: 8px;
    }

    .product-card__title {
        font-size: 15px;
        line-height: 1.18;
    }

    .product-card__meta {
        font-size: 8px;
    }

    .product-card__price {
        font-size: 24px;
    }

    .square-action {
        width: 38px;
        height: 38px;
    }

    .info-card {
        padding-inline: 18px;
    }

    .site-footer__grid--social > div {
        padding-inline: 18px;
    }
}
