body:has(.sg-directory) {
    background: var(--cream);
}

.sg-directory {
    color: var(--ink);
    overflow: clip;
}

.sg-directory a {
    text-decoration: none;
}

.sg-directory-body {
    padding-block: clamp(28px, 4vw, 48px) 80px;
}

.sg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--papaya-dark);
    font: 700 11px/1.2 'DM Mono', ui-monospace, monospace;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sg-eyebrow::before {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: '';
}

.sg-discovery {
    position: relative;
    padding: clamp(22px, 3vw, 34px);
    overflow: hidden;
    border-radius: var(--sg-radius-feature);
    background:
        radial-gradient(circle at 92% -10%, rgba(168, 201, 107, .22), transparent 27%),
        var(--surface);
}

.sg-discovery::after {
    position: absolute;
    top: -112px;
    right: -74px;
    width: 270px;
    height: 210px;
    border: 2px dashed rgba(18, 59, 50, .12);
    border-radius: 50%;
    content: '';
    pointer-events: none;
    transform: rotate(-14deg);
}

.sg-discovery__intro {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
}

.sg-discovery__intro > div {
    min-width: 0;
}

.sg-discovery h1 {
    max-width: 760px;
    margin: 10px 0 8px;
    color: var(--forest-950);
    font: 700 clamp(2rem, 4vw, 3.35rem)/.96 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.sg-discovery__lead {
    max-width: 680px;
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.sg-discovery__summary {
    min-width: 142px;
    padding: 17px 19px;
    border-radius: 20px;
    background: var(--forest-950);
    color: #fff;
    box-shadow: 0 14px 30px rgba(8, 37, 31, .16);
}

.sg-discovery__summary strong,
.sg-discovery__summary span {
    display: block;
}

.sg-discovery__summary strong {
    color: var(--gold);
    font: 700 27px/1 'Space Grotesk', system-ui, sans-serif;
}

.sg-discovery__summary span {
    margin-top: 5px;
    color: #c9d9d1;
    font: 600 10px/1.35 'DM Mono', ui-monospace, monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sg-directory-search {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 24px;
}

.sg-directory-search__field {
    min-width: 0;
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-soft);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.sg-directory-search__field:focus-within {
    border-color: var(--papaya);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(242, 106, 61, .12);
}

.sg-directory-search__field svg {
    width: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: var(--forest-800);
    stroke-linecap: round;
    stroke-width: 2;
}

.sg-directory-search__field input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--forest-950);
    font-size: 15px;
    font-weight: 600;
}

.sg-directory-search__field input::placeholder {
    color: #7d8985;
    opacity: 1;
}

.sg-section-label--gold {
    color: var(--gold);
}

.sg-directory-search__clear {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 20px;
}

.sg-directory-search__clear:hover {
    background: var(--line-soft);
    color: var(--forest-950);
}

.sg-directory-search .sg-button {
    min-width: 170px;
    border-radius: 15px;
}

.sg-category-navigation {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.sg-category-navigation__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 11px;
}

.sg-category-navigation__label strong {
    color: var(--forest-950);
    font-size: 13px;
}

.sg-category-navigation__label span {
    color: var(--text-muted);
    font: 500 10px/1.3 'DM Mono', ui-monospace, monospace;
}

.sg-category-navigation__rail {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 2px 2px 7px;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--line) transparent;
    scrollbar-width: thin;
}

.sg-category-chip {
    min-height: 44px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px 7px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--forest-800);
    scroll-snap-align: start;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.sg-category-chip:hover {
    border-color: #b9ac99;
    transform: translateY(-1px);
}

.sg-category-chip[aria-current='page'] {
    border-color: var(--forest-950);
    background: var(--forest-950);
    color: #fff;
}

.sg-category-chip__icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--forest-950);
    font-size: 14px;
}

.sg-category-chip[aria-current='page'] .sg-category-chip__icon {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.sg-category-chip__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-category-chip__name {
    max-width: 220px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-category-chip__count {
    min-width: 24px;
    padding: 4px 6px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text-muted);
    font: 700 10px/1 'DM Mono', ui-monospace, monospace;
    text-align: center;
}

.sg-category-chip[aria-current='page'] .sg-category-chip__count {
    background: rgba(255, 255, 255, .12);
    color: var(--gold);
}

.sg-directory-featured {
    margin-top: 28px;
    padding: 18px;
    overflow: hidden;
    border-radius: var(--sg-radius-feature);
    background: linear-gradient(135deg, #fff 0%, #faf7ef 100%);
}

.sg-directory-featured__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    padding: 4px 4px 16px;
}

.sg-directory-featured__header > div:first-child {
    min-width: 0;
}

.sg-directory-featured__header :is(h2, h4) {
    margin: 6px 0 3px;
    color: var(--forest-950);
    font: 700 clamp(1.55rem, 2.5vw, 2.15rem)/1 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.045em;
}

.sg-directory-featured__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.sg-directory-featured__controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-directory-featured__controls > span {
    margin-right: 3px;
    color: var(--text-muted);
    font: 600 10px/1 'DM Mono', ui-monospace, monospace;
}

.sg-directory-featured__controls button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--forest-950);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.sg-directory-featured__controls button:hover {
    border-color: var(--forest-950);
    background: var(--forest-950);
    color: var(--forest-950);
    transform: translateY(-1px);
}

.sg-directory-featured__controls svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sg-directory-featured__viewport {
    overflow-x: auto;
    border-radius: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sg-directory-featured__viewport::-webkit-scrollbar {
    display: none;
}

.sg-directory-featured__track {
    display: grid;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 12px;
}

.sg-directory-featured__slide {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--forest-950);
    color: #fff;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.sg-directory-featured__slide > a {
    min-height: 286px;
    display: grid;
    grid-template-columns: minmax(270px, .92fr) minmax(0, 1.2fr);
}

.sg-directory-featured__image {
    position: relative;
    min-height: 286px;
    display: block;
    overflow: hidden;
    background: var(--forest-800);
}

.sg-directory-featured__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 62%, rgba(8, 37, 31, .48));
    content: '';
}

.sg-directory-featured__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.sg-directory-featured__slide > a:hover .sg-directory-featured__image img {
    transform: scale(1.025);
}

.sg-directory-featured__ad-label {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 999px;
    background: rgba(8, 37, 31, .78);
    color: var(--gold);
    font: 700 10px/1 'DM Mono', ui-monospace, monospace;
    letter-spacing: .07em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.sg-directory-featured__ad-label::before {
    color: var(--papaya);
    content: '●';
    font-size: 8px;
}

.sg-directory-featured__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(24px, 3.2vw, 42px);
    background:
        radial-gradient(circle at 100% 0, rgba(168, 201, 107, .16), transparent 33%),
        var(--forest-950);
}

.sg-directory-featured__storeline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--leaf);
    font: 700 10px/1.3 'DM Mono', ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sg-directory-featured__storeline > span:first-child {
    min-width: 0;
}

.sg-directory-featured__storeline strong,
.sg-directory-featured__storeline small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-directory-featured__storeline strong {
    color: #fff;
    font: 700 12px/1.25 'Manrope', system-ui, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}

.sg-directory-featured__storeline small {
    margin-top: 4px;
    color: var(--leaf);
    font: 700 10px/1.3 'DM Mono', ui-monospace, monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sg-directory-featured__storeline > span:last-child {
    flex: 0 0 auto;
    color: #cce6b7;
}

.sg-directory-featured__storeline > span.is-closed {
    color: var(--gold);
}

.sg-directory-featured__title {
    max-width: 100%;
    margin-top: 13px;
    overflow: hidden;
    color: #fff;
    font: 700 clamp(1.75rem, 3vw, 2.8rem)/1 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.05em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-directory-featured__description {
    max-width: 64ch;
    margin-top: 9px;
    color: #c4d4cc;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sg-directory-featured__meta {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.sg-directory-featured__meta > span {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    background: rgba(255, 255, 255, .055);
}

.sg-directory-featured__meta strong,
.sg-directory-featured__meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-directory-featured__meta strong {
    color: #fff;
    font: 700 11px/1.3 'DM Mono', ui-monospace, monospace;
}

.sg-directory-featured__meta strong span {
    color: var(--gold);
}

.sg-directory-featured__meta small {
    margin-top: 3px;
    color: #92aaa0;
    font-size: 10px;
}

.sg-directory-featured__address {
    max-width: 100%;
    margin-top: 12px;
    overflow: hidden;
    color: #c4d4cc;
    font: 500 10px/1.45 'DM Mono', ui-monospace, monospace;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-directory-featured__action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--papaya);
    color: var(--forest-950);
    font-size: 12px;
    font-weight: 800;
}

.sg-directory-featured__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding-top: 11px;
}

.sg-directory-featured__dots button {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sg-directory-featured__dots button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 5px;
    border-radius: 999px;
    background: #d4cbbb;
    content: '';
    transform: translate(-50%, -50%);
    transition: width .18s ease, background .18s ease;
}

.sg-directory-featured__dots button[aria-current='true']::before {
    width: 30px;
    background: var(--papaya);
}

.sg-results-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(36px, 5vw, 58px);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.sg-results-heading > div {
    min-width: 0;
}

.sg-results-heading h2 {
    margin: 8px 0 5px;
    color: var(--forest-950);
    font: 700 clamp(2rem, 4vw, 3.35rem)/.96 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.055em;
}

.sg-results-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.sg-results-heading__meta {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

[data-store-results] {
    transition: opacity .18s ease;
}

[data-store-results].is-loading {
    opacity: .55;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-store-results] {
        transition: none;
    }
}

.sg-results-count {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--forest-800);
    font: 700 11px/1 'DM Mono', ui-monospace, monospace;
    white-space: nowrap;
}

.sg-results-clear {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--papaya-dark);
    font-size: 12px;
    font-weight: 800;
}

.sg-results-clear:hover {
    background: rgba(242, 106, 61, .08);
}

.sg-store-group {
    margin-top: 30px;
}

.sg-store-group__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.sg-store-group__identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-store-group__icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--forest-950);
    font-size: 17px;
    box-shadow: var(--sg-shadow-card);
}

.sg-store-group__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-store-group__identity > div {
    min-width: 0;
}

.sg-store-group__identity h3 {
    margin: 0;
    overflow: hidden;
    color: var(--forest-950);
    font: 700 clamp(1.35rem, 2vw, 1.65rem)/1.1 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-store-group__identity p {
    margin: 4px 0 0;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-store-group__count {
    flex: 0 0 auto;
    color: var(--text-muted);
    font: 600 10px/1.3 'DM Mono', ui-monospace, monospace;
}

.sg-store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.sg-store-card:hover {
    border-color: #cdbfaa;
    box-shadow: var(--sg-shadow-lift);
    transform: translateY(-3px);
}

.sg-store-card__cover {
    position: relative;
    height: 158px;
    display: block;
    background: var(--forest-800);
}

.sg-store-card__cover > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .28s ease;
}

.sg-store-card:hover .sg-store-card__cover > img {
    transform: scale(1.025);
}

.sg-store-card__wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 37, 31, .73), transparent 64%);
}

.sg-store-card__status {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid rgba(168, 201, 107, .9);
    border-radius: 999px;
    background: rgba(244, 248, 235, .94);
    color: var(--success);
    font: 700 10px/1 'DM Mono', ui-monospace, monospace;
    backdrop-filter: blur(7px);
}

.sg-store-card__status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--leaf);
}

.sg-store-card__status.is-closed {
    border-color: rgba(248, 189, 116, .9);
    background: rgba(255, 247, 233, .94);
    color: #85410b;
}

.sg-store-card__status.is-closed > span {
    background: var(--gold);
}

.sg-store-card__logo {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: -32px;
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 3px solid #fff;
    border-radius: 20px;
    background: var(--forest-950);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 37, 31, .22), 0 1px 0 rgba(255,255,255,.9) inset;
    font: 700 17px/1 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.02em;
}

.sg-store-card__logo:has(img) {
    background: #fff;
    color: var(--forest-950);
    padding: 0;
}

.sg-store-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.sg-store-card__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 16px 16px;
}

.sg-store-card__topline {
    min-width: 0;
    min-height: 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sg-store-card__topline:empty {
    visibility: hidden;
}

/* Cuando la tarjeta no repite la categoría del grupo, el badge queda a la derecha. */
.sg-store-card__topline--end {
    justify-content: flex-end;
}

.sg-store-card__category {
    min-width: 0;
    overflow: hidden;
    color: var(--papaya-dark);
    font: 700 10px/1.3 'DM Mono', ui-monospace, monospace;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.sg-store-card__rating-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border: 1px solid #F0E0C2;
    border-radius: 999px;
    background: #FFFBF0;
    color: var(--forest-950);
    font: 700 11px/1 'DM Mono', ui-monospace, monospace;
    box-shadow: 0 1px 6px rgba(8,37,31,.06);
}

.sg-store-card__rating-badge > span {
    color: #E8A735;
    font-size: 10px;
    line-height: 1;
}

.sg-store-card__name {
    min-height: 28px;
    margin-top: 6px;
    color: var(--forest-950);
    font: 700 19px/1.15 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.03em;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sg-store-card__description {
    min-height: 32px;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sg-store-card__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 7px;
}

.sg-store-card__facts > span {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 11px;
    background: var(--surface-soft);
}

.sg-store-card__facts small,
.sg-store-card__facts strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-store-card__facts small {
    color: var(--text-muted);
    font: 500 10px/1.25 'DM Mono', ui-monospace, monospace;
}

.sg-store-card__facts strong {
    margin-top: 4px;
    color: var(--forest-950);
    font-size: 12px;
}

.sg-store-card__address {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 11px;
}

.sg-store-card__address svg {
    width: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sg-store-card__address > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sg-store-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 0;
    border-top: 0;
}

.sg-store-card__products {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    border: 1px solid #E7DDC6;
    border-radius: 999px;
    background: #fff;
    color: var(--forest-950);
    font: 600 11px/1 'Manrope', system-ui, sans-serif;
    white-space: nowrap;
}

.sg-store-card__products svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg-store-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    border: 1px solid #E9DDC6;
    border-radius: 999px;
    background: #F5F1E8;
    color: var(--forest-950);
    font: 700 11px/1 'Manrope', system-ui, sans-serif;
    white-space: nowrap;
}

.sg-store-group > .sg-directory-featured {
    margin-top: 20px;
}

.sg-directory-empty {
    margin-top: 26px;
    padding: clamp(34px, 6vw, 66px) 22px;
    border: 1px dashed #cfc4b4;
    border-radius: var(--sg-radius-feature);
    background: #fff;
    text-align: center;
}

.sg-directory-empty__icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: #f4f8eb;
    color: var(--forest-800);
}

.sg-directory-empty__icon svg {
    width: 31px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sg-directory-empty h2 {
    margin: 0;
    color: var(--forest-950);
    font: 700 clamp(1.7rem, 3vw, 2.3rem)/1 'Space Grotesk', system-ui, sans-serif;
    letter-spacing: -.045em;
}

.sg-directory-empty p {
    max-width: 570px;
    margin: 10px auto 20px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.sg-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.sg-pagination__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.sg-pagination__links a,
.sg-pagination__links span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--forest-800);
    font: 700 11px/1 'DM Mono', ui-monospace, monospace;
}

.sg-pagination__links a:hover,
.sg-pagination__links a[aria-current='page'],
.sg-pagination__links span[aria-current='page'] {
    border-color: var(--forest-950);
    background: var(--forest-950);
    color: #fff;
}

.sg-pagination__links span[aria-disabled='true'] {
    opacity: .42;
}

.sg-pagination__links .sg-pagination__ellipsis {
    min-width: 24px;
    padding-inline: 3px;
    border-color: transparent;
    background: transparent;
}

.sg-pagination__links .sg-pagination__arrow {
    min-width: 46px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
}

@media (min-width: 2200px) {
    .sg-store-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .sg-store-card__cover {
        height: 176px;
    }
}

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

    .sg-directory-featured__slide > a {
        grid-template-columns: minmax(230px, .8fr) minmax(0, 1.2fr);
    }
}

@media (max-width: 760px) {
    .sg-discovery__intro {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .sg-discovery__summary {
        width: max-content;
        min-width: 126px;
    }

    .sg-directory-featured__slide > a {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg-directory-featured__image {
        min-height: 210px;
        max-height: 240px;
    }

    .sg-directory-featured__image::after {
        background: linear-gradient(0deg, rgba(8, 37, 31, .42), transparent 55%);
    }

    .sg-directory-featured__content {
        min-height: 300px;
    }

    .sg-results-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .sg-results-heading__meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 620px) {
    .sg-directory-body {
        padding-block: 18px 58px;
    }

    .sg-discovery {
        padding: 20px 16px;
    }

    .sg-discovery::after {
        display: none;
    }

    .sg-directory-search {
        grid-template-columns: minmax(0, 1fr);
    }

    .sg-directory-search .sg-button {
        width: 100%;
    }

    .sg-directory-featured {
        padding: 12px;
    }

    .sg-directory-featured__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding-inline: 2px;
    }

    .sg-directory-featured__controls {
        width: 100%;
        justify-content: flex-end;
    }

    .sg-directory-featured__content {
        padding: 22px 18px;
    }

    .sg-directory-featured__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

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

    /* En móvil cada categoría muestra máximo 5 tiendas por grupo. */
    .sg-store-grid > .sg-store-card:nth-child(n + 6) {
        display: none;
    }

    .sg-store-card__cover {
        height: 174px;
    }

    .sg-store-group__header {
        align-items: flex-start;
    }

    .sg-store-group__identity p {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .sg-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .sg-pagination__links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 390px) {
    .sg-category-chip__name {
        max-width: 180px;
    }

    .sg-directory-featured__image {
        min-height: 185px;
    }

    .sg-directory-featured__storeline {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sg-directory-featured__meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sg-directory-featured__meta > span:last-child {
        grid-column: 1 / -1;
    }

    .sg-store-group__count {
        display: none;
    }
}

@media (max-height: 820px) and (min-width: 761px) {
    .sg-directory-featured__slide > a,
    .sg-directory-featured__image {
        min-height: 250px;
    }

    .sg-directory-featured__content {
        padding-block: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sg-category-chip,
    .sg-directory-search__field,
    .sg-directory-featured__controls button,
    .sg-directory-featured__dots button::before,
    .sg-directory-featured__image img,
    .sg-store-card,
    .sg-store-card__cover > img {
        transition: none;
    }

    .sg-directory-featured__viewport {
        scroll-behavior: auto;
    }
}
