/**
 * Shop & brand single pages, ACF Extended blocks, Prillipoed + Prillid sections.
 * Sizes follow the Figma file "EagleVision - Updates" (1920px frame, 1360px content).
 */

:root {
    --block-purple: #9161a0;
    --block-purple-dark: #532d5f;
    --block-purple-line: rgba(145, 97, 160, .43);
    --block-grey: #f6f6f6;
    --block-line: #d9d9d9;
    --section-space: 96px;
}

/* ==========================================================================
   Base: buttons, links, pills, text
   ========================================================================== */

.blockBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 28px 9px; /* same as the theme's .btn: 3px extra below centres Calibre */
    border: 1px solid var(--block-purple);
    border-radius: 100px;
    background-color: var(--block-purple);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 225ms ease-in-out, color 225ms ease-in-out, border-color 225ms ease-in-out;
}

.blockBtn:hover,
.blockBtn:focus {
    border-color: var(--block-purple-dark);
    background-color: var(--block-purple-dark);
    color: #fff;
}

.blockBtn--border {
    background-color: transparent;
    color: var(--block-purple);
}

.blockBtn--border:hover,
.blockBtn--border:focus {
    border-color: var(--block-purple);
    background-color: var(--block-purple);
    color: #fff;
}

.blockBtn--white {
    border-color: #fff;
    background-color: #fff;
    color: var(--block-purple);
}

.blockBtn--white:hover,
.blockBtn--white:focus {
    border-color: var(--block-purple-dark);
    background-color: var(--block-purple-dark);
    color: #fff;
}

.blockLink {
    padding: 0;
    border: 0;
    background: none;
    color: var(--block-purple);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.blockLink:hover,
.blockLink:focus {
    color: var(--block-purple-dark);
}

/* Outbound link (e.g. shop address -> Google Maps): small arrow pointing up-right after the text */
.blockLink__icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: 1px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pills li {
    margin: 0;
    padding: 0;
}

.pills li::before {
    display: none;
}

.pill,
.blockTag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 24px 8px; /* 40px tall, a step smaller than .blockBtn; 2px extra below centres Calibre */
    border: 1px solid var(--block-purple);
    border-radius: 100px;
    background-color: transparent;
    color: var(--block-purple);
    font: inherit;
    font-size: 19px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 225ms ease-in-out, color 225ms ease-in-out;
}

/* Prillipoed city filter: same size as the buttons */
.pill--large {
    padding: 6px 28px 9px;
    font-size: 22px;
    line-height: 32px;
}

.pill:hover,
.pill:focus,
.pill.is-active,
.blockTag:hover,
.blockTag:focus {
    background-color: var(--block-purple);
    color: #fff;
}

.blockTag {
    background-color: #fff;
}

.blockText {
    font-size: 20px;
    font-weight: 300;
    line-height: 32px;
}

.blockText p {
    margin: 0 0 32px;
}

.blockText > :last-child {
    margin-bottom: 0;
}

.blockText strong,
.blockText b {
    font-weight: 500;
}

/* ==========================================================================
   Page + sections
   ========================================================================== */

.singlePage {
    padding-bottom: var(--section-space);
}

.singlePage:has(> .postsBlock:last-child) {
    padding-bottom: 0;
}

.breadcrumbs {
    padding-top: 16px;
    font-size: 14px;
    line-height: 24px;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--block-purple);
}

.breadcrumbs__sep {
    margin: 0 4px;
}

.contentBlock {
    position: relative;
    padding: var(--section-space) 0;
}

.contentBlock + .contentBlock:not(.contentBlock--bg):not(.contentBlock--cta) {
    padding-top: 0;
}

.contentBlock--bg + .contentBlock:not(.contentBlock--bg) {
    padding-top: var(--section-space) !important;
}

.contentBlock--bg {
    padding: var(--section-space) 0;
}

.contentBlock--bg::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    background-color: var(--block-grey);
    transform: translateX(-50%);
}

.contentBlock--bg + .contentBlock--bg {
    padding-top: 0;
}

.contentBlock__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}

.contentBlock__title {
    margin: 0 0 40px;
    padding: 0;
    color: #000;
    font-size: 40px;
    font-weight: 500;
    line-height: 56px;
}

.contentBlock__header .contentBlock__title {
    margin: 0;
}

.contentBlock__title--purple {
    color: var(--block-purple-dark);
}

/* ==========================================================================
   Hero (shop + brand)
   ========================================================================== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 615fr) minmax(0, 680fr);
    gap: 64px;
    align-items: center;
    padding: 40px 0 var(--section-space);
}

.hero__title {
    margin: 0 0 24px;
    padding: 0;
    color: #000;
    font-size: 40px;
    font-weight: 500;
    line-height: 56px;
}

.hero__text {
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__logo {
    margin-block: 16px;
}

.hero__logoImg {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 100px;
}

.hero__available {
    max-width: 380px; /* pills wrap into even rows instead of one long row */
}

.hero__availableLabel {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
    color: #6b6b6b;
}

.hero__media {
    align-self: stretch;
}

.hero__img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 672px;
    object-fit: cover;
}

.hero--brand {
    padding-top: 0;
}

.hero--noImage {
    grid-template-columns: minmax(0, 615px);
}

.shopInfo {
    padding: 48px 56px 48px;
    background-color: var(--block-grey);
}

.shopInfo__title {
    margin: 0 0 24px;
    padding: 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
}

.shopInfo__footer {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--block-purple-line);
    font-size: 19px;
    line-height: 32px;
}

/* Info rows (address, hours, phone, e-mail) */
.shopDetails {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px 48px;
    margin: 0;
    font-size: 20px;
    line-height: 32px;
}

.shopDetails__label {
    margin: 0;
    font-weight: 500;
}

.shopDetails__value {
    margin: 0;
    font-weight: 400;
}

.hours {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    gap: 1px 40px;
}

.shopDetails__value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hours__time:empty {
    display: none;
}

.hours__note {
    grid-column: 1 / -1;
}

.hours__note:not(:first-child) {
    margin-top: 8px;
}

.shopDetails__value strong,
.hours__note strong {
    font-weight: 500;
}

/* ==========================================================================
   Block: Text + Image Slider
   ========================================================================== */

.textSlider__cols {
    margin-bottom: 88px;
}

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

.textSlider__itemTitle,
.galleryCards__title {
    margin: 0 0 16px;
    padding: 0;
    font-size: 30px;
    font-weight: 500;
    line-height: 32px;
}

.textSlider__itemText,
.galleryCards__itemText {
    font-weight: 400;
}

.textSlider__cols--2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 72px;
}

.textSlider__title {
    margin: 0;
    padding: 0;
    color: var(--block-purple-dark);
    font-size: 40px;
    font-weight: 500;
    line-height: 56px;
}

.textSlider__text strong,
.textSlider__text b {
    color: var(--block-purple-dark);
}

/* Slider */
.blockSlider {
    position: relative;
    overflow: hidden;
}

.blockSlider__slide {
    aspect-ratio: 1360 / 484;
}

.blockSlider__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blockSlider__nav {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 2;
    display: flex;
    gap: 16px;
}

.sliderArrow {
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(145, 97, 160, .85) url('../img/ev-blocks/chevron.svg') no-repeat center / 23px 13px;
    cursor: pointer;
    transition: background-color 225ms ease-in-out;
}

.sliderArrow:hover,
.sliderArrow:focus {
    background-color: var(--block-purple-dark);
}

.sliderArrow--prev {
    transform: rotate(90deg);
}

.sliderArrow--next {
    transform: rotate(-90deg);
}

.sliderArrow.swiper-button-disabled {
    opacity: .5;
    cursor: default;
}

/* ==========================================================================
   Block: Services
   ========================================================================== */

.blockServices__group + .blockServices__group {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--block-line);
}

.blockServices__title {
    margin: 0 0 16px;
    padding: 0;
    font-size: 25px;
    font-weight: 500;
    line-height: 32px;
}

.blockServices__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.blockServices__list li {
    margin: 0;
    padding: 0;
}

.blockServices__list li::before {
    display: none;
}

/* ==========================================================================
   Block: Image + Text, CTA
   ========================================================================== */

.imageText,
.blockCta {
    display: grid;
    grid-template-columns: minmax(0, 680fr) minmax(0, 615fr);
    gap: 64px;
    align-items: center;
}

.contentBlock--imageText-right .imageText {
    grid-template-columns: minmax(0, 615fr) minmax(0, 680fr);
}

.contentBlock--imageText-right .imageText__media {
    order: 2;
}

.imageText__img,
.blockCta__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 680 / 676;
    object-fit: cover;
}

.imageText__title,
.blockCta__title {
    margin: 0 0 16px;
    padding: 0;
    color: #000;
    font-size: 40px;
    font-weight: 500;
    line-height: 56px;
}

.imageText__text {
    margin-bottom: 32px;
}

.blockCta {
    align-items: stretch;
    background-color: var(--block-purple);
}

/* CTA image fills the full height of the purple panel */
.blockCta__media {
    position: relative;
    min-height: 400px;
}

.blockCta .blockCta__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.blockCta__content {
    align-self: center;
}

.blockCta__content {
    padding: 40px 64px 40px 0;
    color: #fff;
}

.blockCta__title {
    color: #fff;
}

.blockCta__text {
    margin-bottom: 40px;
    color: #fff;
}

.blockCta__text a {
    color: #fff;
}

/* ==========================================================================
   Block: Gallery
   ========================================================================== */

.blockGallery {
    display: grid;
    grid-template-columns: minmax(0, 675fr) minmax(0, 309fr) minmax(0, 309fr);
    gap: 24px 32px;
}

.blockGallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #fff;
    aspect-ratio: 309 / 260;
}

.blockGallery__item--large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.blockGallery__item--hidden {
    display: none;
}

.blockGallery__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}

.blockGallery__item:hover .blockGallery__img {
    transform: scale(1.03);
}

.blockGallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(145, 97, 160, .92);
    color: #fff;
    font-size: 19px;
    line-height: 32px;
    text-align: center;
}

/* ==========================================================================
   Block: Gallery Cards (title + text, 3 cards whose image opens a gallery)
   ========================================================================== */

.galleryCards__header {
    max-width: 680px;
    margin-bottom: 64px;
}

/* Title to text gap: same as the image + text block */
.galleryCards__header .contentBlock__title {
    margin-bottom: 16px;
}

.galleryCards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 64px;
}

.galleryCards__media {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: #fff;
    aspect-ratio: 16 / 9;
}

.galleryCards__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out; /* same zoom as the gallery block */
}

.galleryCards__media:hover .galleryCards__img {
    transform: scale(1.03);
}

/* "Vaata galeriid (+N)": same type and colour as the gallery block's "Rohkem pilte" */
.galleryCards__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 4px 24px;
    border-top-left-radius: 32px;
    background-color: rgba(145, 97, 160, .8);
    color: #fff;
    font-size: 19px;
    line-height: 32px;
    white-space: nowrap;
    transition: background-color 225ms ease-in-out;
}

.galleryCards__media:hover .galleryCards__badge {
    background-color: var(--block-purple-dark);
}

.galleryCards__hidden {
    display: none;
}

/* ==========================================================================
   Shop page: people, brands, other shops
   ========================================================================== */

.people {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 64px;
}

.person__link {
    display: block;
    color: #000;
    text-decoration: none;
}

.person__media {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--block-grey);
}

.person__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}

.person__media:has(.person__placeholder) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.person__placeholder {
    display: block;
    width: 55%;
    height: auto;
    opacity: .2;
}

.person__link:hover .person__img {
    transform: scale(1.03);
}

.person__name {
    margin: 24px 0 0;
    padding: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

.person__meta {
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 300;
    line-height: 32px;
}

/* Brand tiles */
.brandTiles {
    --brand-gap: 32px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--brand-gap);
}

.brandTiles--large {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: var(--brand-gap); /* same space as between the cards */
}

.brandTile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px 16px;
    background-color: #fff;
    text-align: center;
}

.brandTile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 87px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--block-purple-line);
    box-sizing: content-box;
}

.brandTile__img {
    display: block;
    width: auto;
    max-width: min(130px, 100%);
    height: auto;
    max-height: 87px;
    object-fit: contain;
}

.brandTile__name {
    margin: 8px 0 0;
    padding: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
}

.brandTile__name a {
    color: inherit;
    text-decoration: none;
}

/* Brands with a page: the whole card is the link (stretched name link), with a subtle hover */
.brandTile--linked .brandTile__name a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.brandTile--linked .brandTile__links,
.brandTile--linked .brandTile__dropdown {
    position: relative;
    z-index: 2;
}

.brandTile--linked .brandTile__dropdown {
    position: absolute;
    z-index: 20;
}

/* Keep an open "Saadavus" dropdown above the next cards */
.brandTile:has(.brandTile__toggle[aria-expanded='true']) {
    z-index: 30;
}

/* Clickable cards: the border gets 1px thicker on hover (an inner shadow, so nothing moves).
   The title keeps its colour, so it isn't confused with the purple links below it. */
.brandTile--linked {
    transition: box-shadow 225ms ease-in-out;
}

.brandTile--linked:hover,
.brandTile--linked:focus-within {
    box-shadow: inset 0 0 0 1px var(--block-purple);
}

.brandTile__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 24px;
    margin-top: 4px;
}

/* "Loe rohkem" + "Saadavus": medium-weight purple links without underline, same hover */
.brandTile__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--block-purple);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: color 225ms ease-in-out;
}

.brandTile__link:hover,
.brandTile__link:focus-visible,
.brandTile__toggle[aria-expanded='true'] {
    background: none;
    color: var(--block-purple-dark);
    text-decoration: none;
}

.brandTile__link:focus {
    outline: none;
}

/* Keyboard focus only, kept light so it doesn't read as a box around the link */
.brandTile__link:focus-visible {
    outline: 2px solid var(--block-purple-line);
    outline-offset: 4px;
    border-radius: 2px;
}

.brandTile__arrow {
    display: block;
    flex: none;
    width: 11px;
    height: 11px;
    transform: rotate(45deg);
    transition: transform 225ms ease-in-out;
}

.brandTile__toggle[aria-expanded='true'] .brandTile__arrow {
    transform: rotate(-135deg);
}

/* "Saadavus" dropdown: shop rows with dividers; the caret sits under the toggle
   (--caret-x is set by blocks.js when it opens) */
.brandTile__dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 20;
    margin: 0;
    padding: 4px 0;
    background-color: var(--block-purple);
    box-shadow: 0 16px 36px rgba(83, 45, 95, .28), 0 2px 6px rgba(83, 45, 95, .12);
    list-style: none;
    text-align: left;
    animation: dropdownIn 180ms ease-out;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brandTile__dropdown {
        animation: none;
    }
}

.brandTile__dropdown[hidden] {
    display: none;
}

.brandTile__dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: var(--caret-x, 50%);
    border: 8px solid transparent;
    border-top: 0;
    border-bottom-color: var(--block-purple);
    transform: translateX(-50%);
}

.brandTile__dropdown li {
    margin: 0;
    padding: 0;
}

.brandTile__dropdown li::before {
    display: none;
}

.brandTile__dropdown li + li a {
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.brandTile__dropdown a {
    position: relative;
    display: block;
    padding: 12px 40px 12px 24px;
    color: #fff;
    font-size: 15px;
    line-height: 24px;
    text-decoration: none;
    transition: background-color 180ms ease-in-out;
}

/* Chevron on every row; brighter and nudged right on hover */
.brandTile__dropdown a::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 24px;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    opacity: .7;
    transform: translate(-4px, -50%) rotate(45deg);
    transition: opacity 180ms ease-in-out, transform 180ms ease-in-out;
}

.brandTile__dropdown a:hover,
.brandTile__dropdown a:focus-visible {
    background-color: var(--block-purple-dark);
    outline: none;
}

.brandTile__dropdown a:hover::after,
.brandTile__dropdown a:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) rotate(45deg);
}

.brandTile--large {
    padding: 24px 32px 32px;
    border: 1px solid var(--block-purple);
}

.brandTile--large .brandTile__logo {
    height: 100px;
    padding-bottom: 24px;
}

.brandTile--large .brandTile__img {
    max-width: min(202px, 100%);
    max-height: 100px;
}

.brandTile--large .brandTile__name {
    margin-top: 16px;
}

.brandTile--large .brandTile__links {
    font-size: 19px;
    line-height: 32px;
}

/* Shop cards */
.shops {
    display: grid;
    gap: 48px;
}

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

.shops--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.shopCard {
    display: flex;
    flex-direction: column;
    background-color: var(--block-grey);
}

.shopCard[hidden] {
    display: none;
}

.contentBlock--bg .shopCard {
    background-color: #fff;
}

.shopCard__media {
    display: block;
    overflow: hidden;
    height: 342px;
    background-color: var(--block-line);
}

.shopCard__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease-in-out;
}

.shopCard__media:hover .shopCard__img {
    transform: scale(1.03);
}

.shopCard__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 40px 32px;
}

.shopCard__title {
    margin: 0 0 24px;
    padding: 0;
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
}

.shopCard__title a {
    color: #000;
    text-decoration: none;
}

.shopCard__title a:hover {
    color: var(--block-purple);
}

.shopCard .shopDetails {
    gap: 4px 8px;
}

/* Small shop cards ("Teised prillipoed") below 1600px: label above its value, compact.
   From 1600px the cards are wide enough for label and value side by side. */
@media (max-width: 1599px) {
    .shopCard:not(.shopCard--full) .shopDetails {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        line-height: 28px;
    }

    .shopCard:not(.shopCard--full) .shopDetails__label {
        margin-bottom: 0;
    }

    .shopCard:not(.shopCard--full) .shopDetails__value + .shopDetails__label {
        margin-top: 12px;
    }
}

.shopCard__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
}

.shopCard--full .shopCard__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    border-top: 1px solid var(--block-purple-line);
}

.shopCard--full .shopCard__actions .blockBtn {
    padding-right: 16px;
    padding-left: 16px;
}

/* Prillipoed page: horizontal cards on desktop (photo left, details right) */
@media (min-width: 1201px) {
    .shops--2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .shopCard--full {
        flex-direction: row;
    }

    .shopCard--full .shopCard__media {
        flex: 0 0 45%;
        height: auto;
        min-height: 342px;
    }

    .shopCard--full .shopCard__body {
        padding: 40px 48px;
    }

    .shopCard--full .shopCard__actions {
        grid-template-columns: repeat(2, minmax(0, 220px)); /* equal buttons, divider line stays full width */
    }
}

/* ==========================================================================
   Prillipoed page: city filter
   ========================================================================== */

.shopsFilter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 64px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--block-line);
}

.shopsFilter__label {
    margin: 0;
    font-size: 32px; /* same as the shop card title */
    font-weight: 500;
    line-height: 48px;
}

.shopsFilter__list {
    gap: 12px;
}

/* ==========================================================================
   Brand page: logo marquee
   ========================================================================== */

.contentBlock--marquee .contentBlock__title {
    margin-bottom: 56px;
}

.marquee {
    position: relative;
    left: 50%;
    width: 100vw;
    overflow: hidden;
    transform: translateX(-50%);
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 15vw;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.marquee::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0));
}

.marquee__row {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee__row + .marquee__row {
    margin-top: 24px;
}

.marquee__track {
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0 16px;
    list-style: none;
}

.marquee__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 201px;
    height: 134px;
    margin: 0;
    padding: 0;
}

.marquee__item::before {
    display: none;
}

.marquee__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.marquee__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 225ms ease-in-out;
}

.marquee__item a:hover,
.marquee__item a:focus {
    opacity: .8;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1440px) {
    .brandTiles:not(.brandTiles--large) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    :root {
        --section-space: 80px;
    }

    .hero,
    .imageText,
    .contentBlock--imageText-right .imageText,
    .blockCta {
        gap: 40px;
    }

    .shopInfo {
        padding: 32px 40px;
    }

    .brandTiles:not(.brandTiles--large) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .brandTiles--large {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .shops--2 {
        gap: 32px;
    }

    .galleryCards {
        column-gap: 32px;
    }

    .blockGallery {
        gap: 16px;
    }

    .galleryCards__header {
        margin-bottom: 40px;
    }

    .shopCard__body {
        padding: 24px 24px 32px;
    }
}

@media (max-width: 900px) {
    .blockCta__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    :root {
        --section-space: 56px;
    }

    .contentBlock__title,
    .hero__title,
    .textSlider__title,
    .imageText__title,
    .blockCta__title {
        font-size: 32px;
        line-height: 40px;
    }

    .hero,
    .imageText,
    .contentBlock--imageText-right .imageText,
    .blockCta,
    .textSlider__cols--2,
    .textSlider__cols--3,
    .shops--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .contentBlock--imageText-right .imageText__media {
        order: 0;
    }

    .textSlider__cols {
        margin-bottom: 48px;
    }

    .blockCta__content {
        padding: 0 32px 40px;
    }

    .people,
    .shops--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .brandTiles:not(.brandTiles--large) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .brandTiles {
        --brand-gap: 16px;
    }

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

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

    .galleryCards__header {
        margin-bottom: 40px;
    }

    .blockGallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .blockGallery__item--large {
        grid-column: span 2;
        grid-row: auto;
        aspect-ratio: 675 / 544;
    }

    .blockSlider__slide {
        aspect-ratio: 16 / 9;
    }

    .blockSlider__nav {
        right: 16px;
        bottom: 16px;
    }

    .sliderArrow {
        width: 48px;
        height: 48px;
    }
}

/* Russian uses Roboto (Calibre has no Cyrillic), which runs larger: the theme sets its own buttons to
   18px for Russian, so ours follow (same height as the theme's Russian buttons), pills a step smaller. */
[lang=ru-RU] .blockBtn,
[lang=ru-RU] .pill--large {
    font-size: 18px;
    line-height: 26px;
}

[lang=ru-RU] .pill,
[lang=ru-RU] .blockTag {
    font-size: 16px;
}

/* Russian titles and text a step smaller too, the same ratio the theme uses (h2 38 -> 30px, body 20 -> 18px) */
[lang=ru-RU] .contentBlock__title,
[lang=ru-RU] .hero__title,
[lang=ru-RU] .textSlider__title,
[lang=ru-RU] .imageText__title,
[lang=ru-RU] .blockCta__title {
    font-size: 32px;
    line-height: 40px;
}

[lang=ru-RU] .shopCard__title,
[lang=ru-RU] .shopInfo__title,
[lang=ru-RU] .shopsFilter__label {
    font-size: 26px;
    line-height: 32px;
}

[lang=ru-RU] .textSlider__itemTitle,
[lang=ru-RU] .galleryCards__title {
    font-size: 24px;
    line-height: 32px;
}

[lang=ru-RU] .blockText,
[lang=ru-RU] .shopDetails,
[lang=ru-RU] .hero__availableLabel {
    font-size: 18px;
    line-height: 28px;
}

@media (max-width: 600px) {
    [lang=ru-RU] .contentBlock__title,
    [lang=ru-RU] .hero__title,
    [lang=ru-RU] .textSlider__title,
    [lang=ru-RU] .imageText__title,
    [lang=ru-RU] .blockCta__title {
        font-size: 28px;
        line-height: 36px;
    }

    [lang=ru-RU] .shopCard__title,
    [lang=ru-RU] .shopInfo__title,
    [lang=ru-RU] .shopsFilter__label {
        font-size: 22px;
        line-height: 28px;
    }

    [lang=ru-RU] .blockText,
    [lang=ru-RU] .shopDetails,
    [lang=ru-RU] .hero__availableLabel {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Buttons on phones: same as the theme's .btn (e.g. "Kõik artiklid"); pills a step smaller */
@media (max-width: 767px) {
    .blockBtn {
        font-size: 18px;
        line-height: 26px;
    }

    .pill,
    .blockTag {
        font-size: 17px;
    }

    .pill--large {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (max-width: 600px) {
    /* Section title + button (e.g. "Teised prillipoed" / "Kõik prillipoed") on one row */
    .contentBlock__header {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .contentBlock__header .contentBlock__title {
        min-width: 0; /* title wraps, the button keeps its size */
    }

    .contentBlock__header .blockBtn {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .contentBlock--bg {
        padding: 40px 0;
    }

    .contentBlock__title {
        margin-bottom: 24px;
    }

    /* Hero */
    .hero__text {
        margin-bottom: 16px;
    }

    .hero__actions {
        gap: 8px;
    }

    .hero__availableLabel {
        margin-bottom: 12px;
    }

    /* Slider arrows below the image */
    .blockSlider__nav {
        position: static;
        justify-content: flex-end;
        gap: 8px;
        margin-top: 12px;
    }

    .sliderArrow {
        width: 40px;
        height: 40px;
        background-size: 15px 9px;
    }

    /* Text */
    .blockText,
    .shopDetails,
    .hero__availableLabel {
        font-size: 18px;
        line-height: 28px;
    }

    .blockText p {
        margin-bottom: 16px;
    }

    .textSlider__cols--2 {
        gap: 16px;
        margin-bottom: 32px;
    }

    .textSlider__itemTitle,
    .galleryCards__title,
    .galleryCards__header .contentBlock__title,
    .imageText__title,
    .blockCta__title {
        margin-bottom: 12px;
    }

    .imageText__text {
        margin-bottom: 24px;
    }

    /* Buttons, pills */
    .blockBtn,
    .pill,
    .blockTag {
        white-space: normal;
    }

    .pill,
    .blockTag {
        padding-right: 24px;
        padding-left: 24px;
        font-size: 17px;
    }

    /* Prillipoed city filter, brand "Saadaval": 36px pills, tighter gap */
    .shopsFilter {
        margin-bottom: 24px;
    }

    .shopsFilter__list,
    .hero .pills {
        gap: 8px;
    }

    .shopsFilter .pill--large,
    .hero .pill {
        min-height: 36px;
        padding: 0 16px 4px;
        line-height: 24px;
    }

    /* Shop info (single shop + shop cards): label right above its value */
    .shopInfo {
        padding: 24px 16px;
    }

    .shopInfo__title,
    .shopCard__title {
        margin-bottom: 16px;
    }

    .shopDetails,
    .shopCard .shopDetails {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .shopDetails__label {
        margin-bottom: 4px;
    }

    .shopDetails__value + .shopDetails__label {
        margin-top: 16px;
    }

    .hours {
        gap: 0 32px;
    }

    /* Shop cards */
    .people,
    .shops--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .shopCard__media {
        height: 240px;
    }

    .shopCard__body {
        padding: 16px 16px 24px;
    }

    .shopCard__title,
    .shopsFilter__label {
        font-size: 26px;
        line-height: 32px;
    }

    .shopCard__actions {
        gap: 8px;
        padding-top: 16px;
    }

    .shopCard--full .shopCard__actions {
        margin-top: 16px;
    }

    .marquee__item {
        width: 140px;
        height: 96px;
    }
}

@media (max-width: 500px) {
    .brandTiles--large {
        grid-template-columns: minmax(0, 1fr);
    }

    .brandTiles:not(.brandTiles--large) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brandTile--large {
        padding: 16px;
    }

    .brandTile {
        padding-right: 16px;
        padding-left: 16px;
    }
}
