:root {
    --bg: #f4efe6;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --ink: #14281d;
    --muted: #5f6d63;
    --brand: #d97706;
    --brand-deep: #9a3412;
    --accent: #1f6f5f;
    --accent-deep: #123c33;
    --accent-soft: #e4f4ef;
    --card-border: rgba(20, 40, 29, 0.12);
    --card-shadow: 0 16px 38px rgba(20, 40, 29, 0.12);
    --shadow: 0 24px 60px rgba(43, 33, 14, 0.12);
}



h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", sans-serif;
}

a {
    text-decoration: none;
}

.magasines-page {
    padding: 1.5rem 0 3rem;
}

.hero-panel,
.directory-panel,
.store-card,
.hero-stat,
.empty-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.hero-panel,
.directory-panel,
.empty-card {
    border-radius: 34px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-panel::before {
    width: 260px;
    height: 260px;
    top: -100px;
    right: -60px;
    background: rgba(217, 119, 6, 0.16);
}

.hero-panel::after {
    width: 220px;
    height: 220px;
    bottom: -110px;
    left: -70px;
    background: rgba(31, 111, 95, 0.12);
}

.eyebrow,
.section-badge,
.meta-chip,
.category-pill,
.count-pill,
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    font-weight: 800;
}

.eyebrow {
    padding: .6rem .9rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--brand-deep);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 4.2rem);
    line-height: 1.04;
    margin: 1rem 0;
    max-width: 11ch;
}

.hero-copy,
.section-copy,
.store-copy,
.empty-card p {
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.5rem;
}

.btn-brand,
.btn-soft,
.btn-outline-soft {
    border-radius: 999px;
    padding: .92rem 1.3rem;
    font-weight: 800;
}

.btn,
.sort-select,
.filter-pill-button,
.store-cta {
    min-height: 44px;
}

.btn-brand {
    color: #fff;
    border: none;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    box-shadow: 0 14px 28px rgba(154, 52, 18, 0.2);
}

.btn-brand:hover {
    color: #fff;
}

.btn-soft {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(20, 40, 29, 0.08);
}

.btn-outline-soft {
    color: var(--accent);
    background: rgba(31, 111, 95, 0.08);
    border: 1px solid rgba(31, 111, 95, 0.14);
}


.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.6rem;
}

.hero-stat {
    min-width: 160px;
    padding: 1rem 1.1rem;
    border-radius: 22px;
}

.hero-stat strong {
    display: block;
    font-size: 1.45rem;
    font-family: "Sora", sans-serif;
}

.hero-visual {
    position: relative;
    min-height: 360px;
}

.hero-image {
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-image-main {
    width: 100%;
    height: 360px;
}

.hero-image-float {
    position: absolute;
    width: 210px;
    height: 210px;
    right: -10px;
    bottom: -14px;
    border: 8px solid rgba(255, 250, 244, 0.9);
}

.directory-panel {
    padding: 1.45rem;
    margin-bottom: 1.5rem;
}

.directory-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.directory-tools {
    display: flex;
    align-items: center;
    gap: .7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sort-label {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0;
}

.sort-select {
    min-width: 190px;
    border-radius: 999px;
    border: 1px solid rgba(20, 40, 29, 0.14);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font-weight: 600;
}

.clear-filters-btn {
    border-radius: 999px;
    white-space: nowrap;
}

.section-badge {
    padding: .38rem .72rem;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .8rem;
}

.section-title {
    margin: .9rem 0 .35rem;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.filter-shell {
    display: grid;
    gap: 1rem;
    margin-top: 1.3rem;
}

.filter-group {
    display: grid;
    gap: .7rem;
}

.filter-label {
    font-weight: 800;
    color: var(--ink);
}

.multi-filter-wrap {
    display: grid;
    gap: .45rem;
}

.multi-filter-select {
    min-height: 110px;
    border-radius: 16px;
    border: 1px solid rgba(20, 40, 29, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-weight: 600;
    padding: .55rem .8rem;
}

.multi-filter-select option {
    padding: .42rem .3rem;
    border-radius: 8px;
}

.filter-hint {
    color: var(--muted);
    font-size: .82rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.filter-pill {
    padding: .58rem .92rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    border: 1px solid rgba(20, 40, 29, 0.08);
}

.filter-pill-button {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.filter-pill-button:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 40, 29, 0.2);
}

.filter-pill-button:focus-visible,
.btn:focus-visible,
.store-link:focus-visible {
    outline: 3px solid rgba(31, 111, 95, 0.35);
    outline-offset: 3px;
}

.filter-pill-button.is-active {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.1));
    border-color: rgba(154, 52, 18, 0.34);
    color: var(--brand-deep);
    box-shadow: 0 8px 16px rgba(154, 52, 18, 0.16);
}

html[data-theme="light"] .filter-pill-button.is-active {
    background: linear-gradient(135deg, rgba(31, 111, 95, 0.2), rgba(31, 111, 95, 0.08));
    border-color: rgba(31, 111, 95, 0.35);
    color: var(--accent-deep);
    box-shadow: 0 8px 16px rgba(18, 60, 51, 0.16);
}

.filter-pill-accent.filter-pill-button.is-active {
    background: linear-gradient(135deg, rgba(31, 111, 95, 0.2), rgba(31, 111, 95, 0.08));
    border-color: rgba(31, 111, 95, 0.35);
    color: var(--accent-deep);
    box-shadow: 0 8px 16px rgba(18, 60, 51, 0.16);
}

.results-meta {
    margin: .75rem 0 0;
    color: var(--muted);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(20, 40, 29, 0.12);
    border-radius: 999px;
    padding: .42rem .75rem;
}

.results-meta::before {
    content: "\f3e8";
    font-family: "bootstrap-icons";
    color: var(--accent);
    font-size: .9rem;
}

.filter-pill-accent {
    background: rgba(31, 111, 95, 0.08);
    color: var(--accent);
}

.store-link {
    display: block;
    color: inherit;
}

.store-link:focus-visible {
    outline: 3px solid rgba(31, 111, 95, 0.35);
    outline-offset: 6px;
    border-radius: 34px;
}

.store-card {
    position: relative;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease;
    height: 100%;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.stores-grid .col-lg-4,
.stores-grid .col-md-6 {
    animation: storeFadeUp .55s ease both;
}

.stores-grid .col-lg-4:nth-child(2n),
.stores-grid .col-md-6:nth-child(2n) {
    animation-delay: .06s;
}

.stores-grid .col-lg-4:nth-child(3n),
.stores-grid .col-md-6:nth-child(3n) {
    animation-delay: .12s;
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(20, 40, 29, 0.2);
}

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

.store-media {
    position: relative;
    height: 240px;
}

.store-ribbon {
    position: absolute;
    top: 14px;
    left: -38px;
    z-index: 3;
    transform: rotate(-14deg);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .9rem;
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 22px rgba(154, 52, 18, 0.25);
    border-radius: 999px;
}

.store-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.store-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 40, 29, 0.06), rgba(20, 40, 29, 0.58));
}

.store-overlay {
    position: absolute;
    inset: auto 1rem 1rem 1rem;
    z-index: 2;
}

.meta-chip {
    padding: .5rem .75rem;
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-deep);
    font-size: .78rem;
    border: 1px solid rgba(18, 60, 51, 0.14);
}

.store-body {
    padding: 1.3rem;
    background: var(--surface-strong);
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
}

.store-topline,
.store-meta,
.store-footer {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}

.store-topline {
    margin-bottom: .85rem;
}

.category-pill {
    padding: .42rem .78rem;
    background: rgba(31, 111, 95, 0.08);
    color: var(--accent);
    font-size: .78rem;
    border: 1px solid rgba(31, 111, 95, 0.16);
}

.count-pill {
    padding: .42rem .78rem;
    background: rgba(217, 119, 6, 0.1);
    color: var(--brand-deep);
    font-size: .78rem;
    border: 1px solid rgba(154, 52, 18, 0.14);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.store-title {
    font-size: 1.3rem;
    margin-bottom: .25rem;
    line-height: 1.2;
}

.store-copy {
    margin-bottom: .15rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.3em;
}

.store-meta {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .92rem;
    row-gap: .5rem;
}

.store-meta i {
    color: var(--accent);
    margin-right: .2rem;
}

.store-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .72rem;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    border-radius: 999px;
    padding: .32rem .58rem;
    font-size: .74rem;
    font-weight: 800;
    color: #184136;
    background: rgba(31, 111, 95, 0.1);
    border: 1px solid rgba(31, 111, 95, 0.2);
}

.trust-chip i {
    font-size: .78rem;
}

.trust-chip-accent {
    color: var(--brand-deep);
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(154, 52, 18, 0.2);
}

.store-footer {
    align-items: center;
    margin-top: auto;
    padding-top: .95rem;
    border-top: 1px solid rgba(20, 40, 29, 0.1);
}

.store-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: white;
    font-weight: 800;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    padding: .72rem .95rem;
    box-shadow: 0 12px 22px rgba(18, 60, 51, 0.18);
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.store-card:hover .store-cta {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 14px 26px rgba(18, 60, 51, 0.24);
}

.store-cta i {
    transition: transform .2s ease;
}

.store-card:hover .store-cta i {
    transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
    .stores-grid .col-lg-4,
    .stores-grid .col-md-6,
    .store-card,
    .store-media img,
    .store-cta,
    .store-cta i {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

@keyframes storeFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.empty-card {
    padding: 2rem;
    text-align: center;
}

@media (max-width: 1199.98px) {
    .hero-panel,
    .directory-panel,
    .empty-card {
        border-radius: 28px;
    }

    .hero-image-main {
        height: 330px;
    }
}

@media (max-width: 991.98px) {
    .magasines-page {
        padding: 1.2rem 0 2.5rem;
    }

    .hero-title {
        max-width: none;
        font-size: clamp(2rem, 5.8vw, 3rem);
    }

    .hero-copy {
        max-width: 62ch;
    }

    .hero-image-float {
        width: 170px;
        height: 170px;
        right: 10px;
        bottom: -8px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
    }

    .hero-stat {
        min-width: 0;
    }

    .directory-head {
        flex-direction: column;
        align-items: start;
    }

    .directory-tools {
        width: 100%;
        justify-content: flex-start;
    }

    .sort-select {
        min-width: 210px;
    }

    .clear-filters-btn {
        width: fit-content;
    }

    .directory-head .btn {
        width: fit-content;
    }
}

@media (max-width: 767.98px) {
    .magasines-page {
        padding-top: 1rem;
    }

    .hero-panel,
    .directory-panel {
        padding: 1.2rem;
        border-radius: 24px;
    }

    .hero-actions {
        gap: .65rem;
    }

    .hero-actions .btn {
        flex: 1 1 calc(50% - .65rem);
        justify-content: center;
        text-align: center;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-image-main {
        height: 280px;
    }

    .hero-image-float {
        display: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat {
        padding: .9rem 1rem;
        border-radius: 18px;
    }

    .hero-stat strong {
        font-size: 1.2rem;
    }

    .directory-head .btn {
        width: 100%;
    }

    .directory-tools {
        position: sticky;
        top: calc(64px + env(safe-area-inset-top, 0px));
        z-index: 20;
        gap: .55rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: .62rem;
        margin: .25rem -.2rem 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(20, 40, 29, 0.12);
    }

    .directory-tools > * {
        flex: 0 0 auto;
    }

    .sort-label {
        font-size: .88rem;
    }

    .sort-select {
        min-width: 165px;
    }

    .clear-filters-btn {
        width: auto;
        text-align: center;
    }

    .filter-shell {
        gap: .8rem;
    }

    .filter-group {
        padding: .75rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.68);
        border: 1px solid rgba(20, 40, 29, 0.1);
    }

    .filter-pills {
        gap: .5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: .2rem;
    }

    .multi-filter-select {
        min-height: 120px;
        font-size: .9rem;
    }

    .filter-pill {
        padding: .5rem .78rem;
        font-size: .8rem;
        white-space: nowrap;
    }

    .store-media {
        height: 210px;
    }

    .store-body {
        padding: 1rem;
    }

    .store-ribbon {
        left: -28px;
        top: 10px;
        font-size: .68rem;
        padding: .33rem .72rem;
    }

    .store-title {
        font-size: 1.1rem;
    }

    .store-meta {
        flex-direction: column;
        gap: .45rem;
        font-size: .87rem;
    }

    .store-footer {
        margin-top: .9rem;
    }

    .store-cta {
        width: 100%;
        justify-content: center;
        padding: .66rem .88rem;
    }

    .store-copy {
        min-height: auto;
    }

    .store-trust-row {
        gap: .4rem;
    }

    .trust-chip {
        font-size: .7rem;
    }
}

@media (max-width: 479.98px) {
    .hero-panel,
    .directory-panel {
        padding: 1rem;
        border-radius: 20px;
    }

    .eyebrow {
        font-size: .74rem;
        letter-spacing: .06em;
    }

    .hero-title {
        font-size: clamp(1.72rem, 8.8vw, 2.05rem);
        margin: .8rem 0;
    }

    .hero-copy,
    .section-copy,
    .store-copy {
        font-size: .93rem;
    }

    .multi-filter-select {
        min-height: 90px;
    }

    .directory-tools {
        top: calc(58px + env(safe-area-inset-top, 0px));
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .section-title {
        font-size: clamp(1.35rem, 7.5vw, 1.6rem);
    }

    .store-media {
        height: 190px;
    }

    .store-card {
        border-radius: 22px;
    }

    .store-ribbon {
        display: none;
    }

    .results-meta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
