/* Homepage spacing and sliders */
.homepage {
    padding-top: 24px;
    padding-bottom: 64px;
}

.hero {
    margin-bottom: 48px;
}

.swiper {
    overflow: visible;
}

.hero-swiper .swiper-slide {
    width: min(86%, 800px);
}

.hero-swiper .swiper-slide > a {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #f6f6f6;
    transition: transform 350ms ease, opacity 350ms ease;
}

.hero-swiper.swiper-initialized .swiper-slide > a {
    transform: scale(.8);
    opacity: .55;
}

.hero-swiper.swiper-initialized .swiper-slide-active > a {
    transform: scale(1);
    opacity: 1;
}

@media (min-width: 992px) {
    .hero-swiper .swiper-slide {
        width: calc((100% - 48px) / 1.8);
    }
}

.hero-swiper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1672 / 941;
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.hero-prev {
    left: 16px;
}

.hero-next {
    right: 16px;
}

.hero-pagination {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    --swiper-theme-color: var(--brand-red);
    --swiper-pagination-bullet-size: 10px;
}

.hero-pagination .swiper-pagination-bullet {
    margin: 0 !important;
    padding: 12px;
    background-clip: content-box;
    box-sizing: content-box;
}

/* Compact category tiles */
.category-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.category-catalog-link {
    flex-shrink: 0;
    color: var(--brand-red);
    font-size: 14px;
    text-decoration: none;
}

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

.category-tile {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 144px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid #e9e9e9;
    border-radius: 20px;
    background: #f5f5f5;
    color: var(--store-ink);
    text-decoration: none;
    transition: color 280ms ease, border-color 280ms ease;
}

.category-tile:nth-child(8n + 1),
.category-tile:nth-child(8n + 4),
.category-tile:nth-child(8n + 6),
.category-tile:nth-child(8n + 7) {
    grid-column: span 2;
}

.category-tile:nth-child(3n + 2) {
    background: #fff;
}

.category-tile:nth-child(4n) {
    background: #fff1f1;
}

.category-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--brand-red);
    transform: translateY(101%);
    transition: transform 280ms ease;
}

.category-tile:hover,
.category-tile:focus-visible {
    border-color: var(--brand-red);
    color: #fff;
}

.category-tile:hover::before,
.category-tile:focus-visible::before {
    transform: translateY(0);
}

.category-tile-name {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.category-tile-arrow {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    align-self: flex-end;
    font-size: 22px;
    transition: transform 280ms ease;
}

/* Decorative photos blend into each tile; text stays above them. */
.category-tile-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72%;
    max-width: 240px;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    filter: saturate(.66) contrast(1.08);
    mix-blend-mode: multiply;
    opacity: .66;
    -webkit-mask-image: linear-gradient(115deg, transparent 22%, #000 60%);
    mask-image: linear-gradient(115deg, transparent 22%, #000 60%);
    transition: transform 350ms ease, opacity 350ms ease;
}

.category-tile:hover .category-tile-image,
.category-tile:focus-visible .category-tile-image {
    transform: scale(1.06);
    opacity: .7;
}

@media (prefers-reduced-motion: reduce) {
    .category-tile,
    .category-tile::before,
    .category-tile-image,
    .category-tile-arrow {
        transition: none;
    }
}

.category-tile:hover .category-tile-arrow,
.category-tile:focus-visible .category-tile-arrow {
    transform: translate(3px, -3px);
}

/* Store information and maps */
.store-info-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    margin-top: 48px;
}

.store-location {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
    padding: 20px;
    border-radius: 20px;
    background: #f6f6f6;
}

.store-location-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.store-location-heading h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.store-location-badge {
    padding: 6px 12px;
    border-radius: 20px;
    background: #fff;
    color: var(--brand-red);
    font-size: 12px;
}

.store-phone,
.store-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.store-phone {
    text-decoration: none;
    font-weight: 700;
}

.store-phone small {
    display: block;
    margin-bottom: 2px;
    color: #616161;
    font-size: 12px;
    font-weight: 400;
}

.store-phone i,
.store-address i {
    color: var(--brand-red);
    font-size: 22px;
}

.store-address {
    font-size: 14px;
}

.store-map {
    margin-top: auto;
    overflow: hidden;
    border-radius: 14px;
    background: #e9e9e9;
}

.store-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}

.store-map-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    color: var(--brand-red);
    font-size: 13px;
    text-decoration: none;
}

.store-phone:hover,
.store-map-link:hover {
    color: var(--brand-red);
    text-decoration: underline;
}

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

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

    .category-grid .category-tile {
        grid-column: span 1;
        min-height: 120px;
        padding: 18px;
    }

    .category-tile:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .store-info-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-top: 32px;
    }

    .category-section {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .category-section > .d-flex {
        flex-wrap: wrap;
    }

    .homepage {
        padding-top: 12px;
        padding-bottom: 40px;
    }

    .hero {
        margin-bottom: 28px;
    }

    .hero-swiper .swiper-slide > a {
        border-radius: 12px;
    }

    .hero-prev,
    .hero-next {
        display: none;
    }
}
