/* =========================================================================
   STORES (Nov 2026): the block of regional store buttons drawn by
   library/stores.php. Black on the site's white; the site's own
   paralucent-condensed for the region names. No colour.
   ========================================================================= */

.sf-stores {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 40px;
    text-align: center;
}

.sf-stores-kicker {
    margin: 0 0 16px;
    color: #000;
    font-family: "paralucent-condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.sf-stores-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* the theme colours every link (a:visited is #333): these rules have to outrank that */
.sf-stores .sf-store,
.sf-stores a.sf-store:link,
.sf-stores a.sf-store:visited {
    background: #000 !important;
    color: #fff !important;
}

.sf-store {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 22px 22px 22px 26px;
    background: #000;
    color: #fff !important;
    text-align: left;
    text-decoration: none !important;
    border: 1px solid #000;
    border-radius: 0;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.sf-stores a.sf-store:hover,
.sf-stores a.sf-store:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px -18px rgba(0, 0, 0, 0.55);
    background: #000 !important;
    color: #fff !important;
}

a.sf-store:active {
    transform: translateY(0);
}

a.sf-store:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}

.sf-store-words {
    display: block;
    min-width: 0;
}

.sf-store-region {
    display: block;
    font-family: "paralucent-condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-wrap: balance;
}

.sf-store-label {
    display: block;
    margin-top: 9px;
    font-family: "paralucent-condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    opacity: 0.78;
}

/* a thick chevron, nothing around it */
.sf-store-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: -4px;
    transition: transform 0.18s ease;
}

.sf-store-arrow svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #fff;
    stroke-width: 3.2;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

a.sf-store:hover .sf-store-arrow,
a.sf-store:focus-visible .sf-store-arrow {
    transform: translateX(5px);
}

/* the store whose link has not arrived yet */
.sf-stores .sf-store.is-soon {
    background: #fff !important;
    color: #000 !important;
    cursor: default;
}

.sf-store.is-soon .sf-store-label {
    opacity: 1;
}

.sf-store-soon {
    display: inline-block;
    padding: 9px 12px 8px;
    border: 1px solid #000;
    border-radius: 999px;
    color: #000;
    font-family: "paralucent-condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 900px) {

    .sf-stores {
        max-width: 560px;
    }

    .sf-stores-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .sf-store {
        min-height: 0;
        padding: 20px 20px 20px 22px;
    }

    .sf-store-region {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sf-store,
    .sf-store-arrow,
    .sf-store-arrow svg {
        transition: none;
    }

    a.sf-store:hover {
        transform: none;
    }
}


/* ---- the /shop/ page: a photo behind the buttons, under the fixed header ---- */

body.sf-shop-page .elementor-top-section:first-child > .elementor-container {
    padding-top: 130px;
    padding-bottom: 24px;
}

body.sf-shop-page .sf-stores {
    padding: 0 10px;
}

/* phones: the buttons in the hero, on the photo; desktop: in the white section under it */
body.sf-shop-page .sf-stores--phone .sf-stores-kicker {
    color: #fff;
}

body.sf-shop-page .sf-stores--desk {
    padding: 56px 10px 24px;
}

@media (max-width: 767px) {

    body.sf-shop-page .elementor-top-section:first-child > .elementor-container {
        padding-top: 110px;
    }

    body.sf-shop-page .sf-stores--desk {
        display: none;
    }
}

@media (min-width: 768px) {

    body.sf-shop-page .sf-stores--phone {
        display: none;
    }
}
