/* ==========================================================================
   ikili2.com — design polish layer
   Loaded last (after style.css, restyle.css and Swiper), so it only refines
   what is already there. The desktop mega menu is intentionally untouched:
   every hero-card rule below is scoped to the home hero, not to the
   bestseller cards that the mega menu reuses.
   ========================================================================== */

:root {
    --ik-ink: #0d0e11;
    --ik-text: #1c1e23;
    --ik-muted: #6b7079;
    --ik-line: #e8e9ed;
    --ik-line-strong: #d6d8de;
    --ik-surface: #f5f6f8;
    --ik-accent: #e3002e;
    --ik-radius: 1rem;
    --ik-radius-sm: 0.75rem;
    --ik-shadow-sm: 0 1px 2px rgba(16, 20, 28, 0.04), 0 2px 8px rgba(16, 20, 28, 0.04);
    --ik-shadow-md: 0 14px 32px rgba(16, 20, 28, 0.09), 0 3px 10px rgba(16, 20, 28, 0.05);
    --ik-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ik-section-space: clamp(1.75rem, 3.6vw, 3.25rem);
}

/* ─── 1. Section rhythm & headings ─────────────────────────────────────── */

.section-header {
    gap: 1rem;
}

.section-header__title {
    min-width: 0;
    font-size: clamp(1.375rem, 1.05rem + 1.35vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--ik-ink);
}

.section-header__nav {
    flex-shrink: 0;
}

.section-header__btn,
.swipe-buttons .swipe-button {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ik-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ik-ease) !important;
}

.section-header__btn:hover,
.swipe-buttons .swipe-button:hover {
    background: var(--ik-ink) !important;
    border-color: var(--ik-ink) !important;
    transform: translateY(-1px);
}

.section-header__btn:hover svg path,
.swipe-buttons .swipe-button:hover svg path {
    stroke: #fff;
}

.page--home .products-section,
.page--home .arrivals-section,
.page--home .testimonials-section,
.page--home .partners-section {
    padding-block: calc(var(--ik-section-space) / 2) !important;
}

@media (max-width: 767.98px) {
    .section-header__btn,
    .swipe-buttons .swipe-button {
        width: 2.375rem;
        height: 2.375rem;
    }

    .section-header__btn svg,
    .swipe-buttons .swipe-button svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .content-section {
        gap: 1rem;
    }
}

@media (max-width: 400px) {
    .section-header__title {
        font-size: 1.25rem;
    }
}

/* ─── 2. Product cards (home rows + related products) ──────────────────── */

/* The carousel track: padding gives hover shadows room inside the clipped
   track; the negative margin keeps card edges on the page gutter.
   productsCarousel.js reads this padding when sizing the cards. */
.products-section .products__grid,
.arrivals-section .arrivals__cards {
    gap: 1rem !important;
    width: calc(100% + 1rem) !important;
    max-width: none !important;
    margin: -0.5rem -0.5rem -1rem !important;
    padding: 0.5rem 0.5rem 1rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    touch-action: pan-y;
}

.products-section .products__card,
.arrivals-section .products__card {
    min-height: 0 !important;
    padding: 0.75rem !important;
    border: 1px solid var(--ik-line) !important;
    border-radius: var(--ik-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
    /* Never transition `transform` here: the carousel moves cards with GSAP
       transforms, and a CSS transition on it makes every step overshoot and
       slide back. The hover lift uses the separate `translate` property. */
    transition: translate 0.35s var(--ik-ease), box-shadow 0.35s var(--ik-ease), border-color 0.25s ease !important;
}

.products-section .products__card:hover,
.arrivals-section .products__card:hover {
    transform: none;
    translate: 0 -3px;
    border-color: var(--ik-line-strong) !important;
    box-shadow: var(--ik-shadow-md) !important;
}

.products-section .products__img-wrap,
.arrivals-section .products__img-wrap {
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    padding: 0.875rem !important;
    border-radius: var(--ik-radius-sm);
    background: var(--ik-surface);
}

.products-section .products__img,
.arrivals-section .products__img {
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.products-section .products__info,
.arrivals-section .products__info {
    gap: 0.75rem !important;
    padding: 0.875rem 0.25rem 0.125rem;
    justify-content: flex-start !important;
}

.products-section .products__body-header,
.arrivals-section .products__body-header {
    gap: 0.375rem !important;
}

.products-section .products__category,
.arrivals-section .products__category {
    overflow: hidden;
    color: var(--ik-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-section .products__name,
.arrivals-section .products__name {
    min-height: 2.8em;
    max-height: none !important;
    color: var(--ik-text);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4 !important;
}

.products-section .products__meta,
.arrivals-section .products__meta {
    gap: 0.5rem !important;
    flex-wrap: nowrap;
}

.products-section .products__stars svg,
.arrivals-section .products__stars svg {
    width: 0.9375rem;
    height: 0.9375rem;
}

.products-section .products__footer,
.arrivals-section .products__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between;
    flex-direction: row !important;
    gap: 0.75rem !important;
    margin-top: auto;
    padding-top: 0.25rem;
}

.products-section .products__footer .prices,
.arrivals-section .products__footer .prices {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
}

.products-section .products__footer .prices .main-price,
.arrivals-section .products__footer .prices .main-price {
    color: var(--ik-ink);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.products-section .products__footer .prices .discounted-price,
.arrivals-section .products__footer .prices .discounted-price {
    color: var(--ik-muted);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: line-through;
    white-space: nowrap;
}

/* Related products use the shared product-list card (price-box markup). */
.products-section .products__footer .products__price-box {
    order: -1;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.125rem;
    min-width: 0;
}

.products-section .products__footer .products__price {
    color: var(--ik-ink);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.products-section .products__footer .products__price--old {
    color: var(--ik-muted) !important;
    font-size: 0.75rem !important;
    font-weight: 500;
}

.products-section .products__btn,
.arrivals-section .products__btn {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 2.625rem !important;
    flex: 0 0 auto;
    padding: 0 1rem !important;
    gap: 0.5rem !important;
    border-radius: 0.75rem !important;
    font-size: 0.875rem !important;
}

.products-section .products__btn svg,
.arrivals-section .products__btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Stock badges as soft pills instead of outlined boxes. */
.products__badge {
    padding: 0.25rem 0.625rem !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

.products__badge--blue {
    background: #eaf2ff !important;
    color: #1b5fd6 !important;
}

.products__badge--green {
    background: #e8f8ef !important;
    color: #12814a !important;
}

.products__badge--yellow {
    background: #fff5db !important;
    color: #8f6400 !important;
}

.products__badge--red {
    background: #fdecef !important;
    color: #c8102e !important;
}

@media (max-width: 559.98px) {
    .products-section .products__footer .prices .main-price,
    .arrivals-section .products__footer .prices .main-price {
        font-size: 1rem;
    }

    .products-section .products__btn,
    .arrivals-section .products__btn {
        height: 2.5rem !important;
        padding: 0 0.875rem !important;
    }
}

/* ─── 3. Home hero: "bestseller of the week" card ──────────────────────── */

.page--home .hero__container > .hero__card {
    border: 1px solid var(--ik-line) !important;
    border-radius: var(--ik-radius) !important;
    box-shadow: var(--ik-shadow-sm) !important;
}

.page--home .hero__container > .hero__card .hero__head {
    padding: 0.875rem 1.125rem;
}

.page--home .hero__container > .hero__card .hero__title {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.page--home .hero__container > .hero__card .hero__category {
    color: var(--ik-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.page--home .hero__container > .hero__card .hero__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--ik-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}

.page--home .hero__container > .hero__card .hero__media {
    justify-content: center;
    border-radius: var(--ik-radius-sm);
    background: var(--ik-surface);
}

.page--home .hero__container > .hero__card .hero__img {
    mix-blend-mode: multiply;
}

.page--home .hero__container > .hero__card .hero__price {
    color: var(--ik-ink);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Narrow desktops: the card column is only ~16-18rem wide. */
@media (min-width: 1025px) and (max-width: 1439px) {
    .page--home .hero__container > .hero__card .hero__footer {
        gap: 0.5rem;
    }

    .page--home .hero__container > .hero__card .hero__price {
        font-size: 1.0625rem;
        white-space: nowrap;
    }

    .page--home .hero__container > .hero__card .hero__btn {
        min-width: 0 !important;
        padding: 0.5rem 0.875rem !important;
    }
}

/* Phones & tablets: the card used to be a full-screen block; make it a
   compact horizontal card (image left, details right, button below). */
@media (max-width: 1024px) {
    .page--home .hero__container {
        gap: 0.75rem;
    }

    .page--home .hero__container > .hero__card .hero__body {
        display: grid !important;
        grid-template-columns: 6.75rem minmax(0, 1fr);
        grid-template-areas:
            "img header"
            "img tags"
            "footer footer";
        align-items: start;
        column-gap: 0.875rem;
        row-gap: 0.5rem;
        padding: 0.875rem 1rem 1rem !important;
    }

    .page--home .hero__container > .hero__card .hero__product,
    .page--home .hero__container > .hero__card .hero__media {
        display: contents !important;
    }

    .page--home .hero__container > .hero__card .hero__body_header {
        grid-area: header;
        gap: 0.25rem;
        padding: 0;
    }

    .page--home .hero__container > .hero__card .hero__img {
        grid-area: img;
        width: 6.75rem !important;
        height: 6.75rem !important;
        max-width: none !important;
        padding: 0.5rem;
        border-radius: var(--ik-radius-sm);
        background: var(--ik-surface);
        object-fit: contain;
    }

    .page--home .hero__container > .hero__card .hero__discount {
        grid-area: img;
        position: static !important;
        align-self: start;
        justify-self: start;
        width: 2.5rem !important;
        height: 2.5rem !important;
        margin: 0.375rem;
        font-size: 0.75rem !important;
    }

    .page--home .hero__container > .hero__card .hero__tags {
        grid-area: tags;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        justify-self: start !important;
        gap: 0.375rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page--home .hero__container > .hero__card .hero__stock,
    .page--home .hero__container > .hero__card .hero__sale {
        min-height: 0 !important;
        padding: 0.25rem 0.625rem !important;
        border: 0 !important;
        border-radius: 999px !important;
        font-size: 0.6875rem !important;
        font-weight: 600;
    }

    .page--home .hero__container > .hero__card .hero__footer {
        grid-area: footer;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        margin-top: 0.25rem;
    }

    .page--home .hero__container > .hero__card .hero__prices {
        order: -1;
    }

    .page--home .hero__container > .hero__card .hero__btn {
        min-height: 2.75rem;
        padding: 0 1.25rem;
    }
}

/* ─── 4. Home services strip ───────────────────────────────────────────── */

.page--home .features__container {
    border-color: var(--ik-line) !important;
    border-radius: var(--ik-radius) !important;
    box-shadow: var(--ik-shadow-sm);
}

@media (max-width: 768px) {
    .page--home .features__container {
        padding: 0 !important;
        background: transparent !important;
    }

    .page--home .features__item,
    .page--home .features__item:last-child {
        min-height: 5.75rem;
        border-color: var(--ik-line) !important;
        border-radius: var(--ik-radius-sm) !important;
    }

    .page--home .features__text {
        font-size: 0.8125rem;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }
}

/* ─── 5. New arrivals: promo banner + product carousel ─────────────────── */

/* min-width: 0 keeps the grid as wide as the page: as a flex item it would
   otherwise grow to its content, and Swiper sizes its slides from that width,
   so the two would keep enlarging each other. */
.page--home .arrivals__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 1rem !important;
    width: 100%;
    min-width: 0;
    height: auto !important;
}

.page--home .arrivals__grid > .arrivals__cards:only-child {
    grid-column: 1 / -1;
}

/* style.css still carries the old stacked layout below 1400px: two fixed
   443px rows and a fixed track height. */
.page--home .arrivals__grid {
    grid-template-rows: none !important;
}

.page--home .arrivals-section .arrivals__cards {
    height: auto !important;
}

/* The arrows were hidden on small screens when the two cards were stacked;
   the row is a carousel now, so bring them back. */
@media (max-width: 768px) {
    .page--home .arrivals__container .section-header {
        align-items: center !important;
    }

    .page--home .arrivals__container .section-header__nav {
        display: flex !important;
    }
}

.page--home .arrivals__banner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
    border-radius: var(--ik-radius) !important;
    background: #111214;
}

.page--home .arrivals__banner .swiper-wrapper,
.page--home .arrivals__banner .swiper-slide {
    height: 100% !important;
}

/* The promo artwork is never cropped: it is contained in the frame and the
   leftover space shows a blurred copy of the same artwork (--fill is set per
   slide in home.blade.php), so there are no empty bars either. */
.page--home .arrivals__banner .swiper-slide {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.page--home .arrivals__banner .swiper-slide::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    z-index: 0;
    background: var(--fill, none) center / cover no-repeat;
    filter: blur(1.5rem) brightness(0.9) saturate(1.1);
    pointer-events: none;
}

.page--home .arrivals__banner-img {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

.page--home .arrivals__banner:hover .arrivals__banner-img {
    transform: none !important;
}

/* Side by side, the product cards decide the row height and the banner just
   fills it. Without size containment the banner's 100% height feeds back into
   the row height and Swiper's resize observer grows the page endlessly. */
@media (min-width: 768px) {
    .page--home .arrivals__banner {
        contain: size;
    }

    .page--home .arrivals__grid > .arrivals__banner:only-child {
        contain: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .page--home .arrivals__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .page--home .arrivals__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Stacked on phones: a fixed 7:6 frame (the promo banner standard), so
       slides of slightly different sizes never resize the page. */
    .page--home .arrivals__banner {
        aspect-ratio: 7 / 6;
    }
}

/* ─── 6. Video reviews ─────────────────────────────────────────────────── */

.page--home .testimonials__card {
    isolation: isolate;
    border-radius: var(--ik-radius) !important;
    background: #0e0f11 !important;
}

/* Posters and videos are shown whole (contain). Whatever the upload's
   proportions, the free space is filled with a blurred copy of the poster
   (--fill is set per card in home.blade.php) instead of cropping it. */
.page--home .testimonials__fill {
    position: absolute;
    inset: -1.5rem;
    z-index: 0;
    background: var(--fill, none) center / cover no-repeat;
    filter: blur(1.5rem) brightness(0.7) saturate(1.15);
    pointer-events: none;
}

.page--home .testimonials__video {
    z-index: 1;
    object-fit: contain !important;
    background: transparent;
}

.page--home .testimonials__card:hover .testimonials__video {
    transform: none !important;
}

.page--home .testimonials__name {
    left: 0.875rem;
    bottom: 0.875rem;
    max-width: calc(100% - 1.75rem);
    overflow: hidden;
    padding: 0.4375rem 0.875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* Phones: one swipeable row instead of four screen-tall cards. */
@media (max-width: 767.98px) {
    .page--home .testimonials__grid {
        display: flex !important;
        gap: 0.75rem !important;
        margin-inline: calc(var(--page-gutter) * -1);
        padding: 0 var(--page-gutter) 0.25rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--page-gutter);
        scrollbar-width: none;
        width: auto !important;
    }

    .page--home .testimonials__grid::-webkit-scrollbar {
        display: none;
    }

    .page--home .testimonials__card {
        flex: 0 0 76%;
        width: 76% !important;
        height: auto !important;
        aspect-ratio: 3 / 4;
        scroll-snap-align: start;
    }
}

/* ─── 7. Shooting tips (blog) row ──────────────────────────────────────── */

.page--home .swiper-cards-section {
    gap: 1.5rem;
    padding: calc(var(--ik-section-space) / 2) var(--page-gutter) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.swiper-cards-section .swiper-cards-section-header {
    gap: 1rem;
}

.swiper-cards-section .swipe-buttons {
    flex-shrink: 0;
    gap: 0.5rem;
}

.blog-card {
    gap: 0.875rem !important;
    min-height: 0 !important;
}

/* Blog covers are 2:1 (e.g. 1774x887); the frame matches that and the image
   is contained, so an upload with other proportions is never cropped. */
.blog-card__media {
    height: auto !important;
    aspect-ratio: 2 / 1;
    border-radius: var(--ik-radius) !important;
    background: var(--ik-surface) !important;
}

.blog-card__img {
    object-fit: contain !important;
}

.blog-card:hover .blog-card__img {
    transform: none !important;
}

.blog-card__body {
    gap: 0.5rem !important;
}

.blog-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ik-ink);
    font-size: 1.0625rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

.blog-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ik-muted) !important;
    font-size: 0.875rem !important;
    line-height: 1.55 !important;
}

.blog-card__btn {
    margin-top: auto;
    padding: 0.5625rem 1rem !important;
    border-radius: 999px !important;
    background: var(--ik-surface) !important;
    color: var(--ik-ink) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.blog-card__btn:hover {
    background: var(--ik-ink) !important;
    color: #fff !important;
}

/* ─── 7b. Page heroes (about, blog article) ────────────────────────────── */

/* Blog article cover: shown whole at its own proportions. The frame shrinks
   to the picture (centred), so tall covers get no side bars either. */
.blog-detail__hero {
    width: fit-content !important;
    max-width: 100%;
    height: auto !important;
    margin-inline: auto;
    background: var(--ik-surface);
}

.blog-detail__hero-img {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 40rem;
    object-fit: contain !important;
}

.blog-detail__hero:hover .blog-detail__hero-img {
    transform: none !important;
}

/* About banner (16:9 artwork, lights on the right, flat purple on the left):
   keep the whole picture and let the frame continue the purple edge. */
.about-page__hero {
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-height: 32.5rem;
    background: linear-gradient(180deg, #2a0a34 0%, #2a0539 55%, #200b2f 100%);
}

.about-page__hero-img {
    object-fit: contain !important;
    object-position: right center !important;
}

.about-page__hero:hover .about-page__hero-img {
    transform: none !important;
}

.about-page__hero-content {
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ─── 8. Partners ──────────────────────────────────────────────────────── */

.page--home .partners__grid {
    border-color: var(--ik-line) !important;
    border-radius: var(--ik-radius) !important;
}

/* ─── 9. Floating call button ──────────────────────────────────────────── */

.phone-div {
    right: 1.25rem !important;
    bottom: calc(1.25rem + env(safe-area-inset-bottom)) !important;
    /* Above page content, below the header (1000) with its mega menu and
       off-canvas, and below Bootstrap backdrops/modals (1040+). */
    z-index: 990 !important;
    gap: 0.5rem !important;
    padding: 0.625rem 1rem 0.625rem 0.75rem !important;
    border-radius: 999px !important;
    background: var(--ik-ink) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s var(--ik-ease), opacity 0.2s ease, visibility 0.2s ease;
}

.phone-div:hover {
    transform: translateY(-2px);
}

.phone-div a {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
}

/* The whole pill is clickable, not just the number. */
.phone-div a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

@media (max-width: 767.98px) {
    .phone-div {
        right: 1rem !important;
        bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
        width: 3.25rem !important;
        min-width: 3.25rem !important;
        height: 3.25rem !important;
        padding: 0 !important;
        justify-content: center;
    }

    .phone-div a {
        position: absolute;
        inset: 0;
        overflow: hidden;
        color: transparent !important;
        font-size: 0 !important;
    }

    .phone-div img {
        width: 1.375rem !important;
        height: 1.375rem !important;
        pointer-events: none;
    }
}

/* Never float above the mobile menu or dialogs. */
html.is-menu-open .phone-div,
body:has(.offcanvas.show) .phone-div,
body:has(#main-dropdown.is-active) .phone-div,
body:has(.modal.show) .phone-div {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ─── 10. Mobile menu (off-canvas) ─────────────────────────────────────── */

#offcanvasRight.offcanvas {
    width: min(100vw, 26.25rem) !important;
    height: 100vh;
    height: 100dvh;
    min-height: 0 !important;
    max-height: 100dvh;
    border-left: 0;
}

#offcanvasRight .offcanvas-header {
    flex-shrink: 0;
    padding: 0.875rem 1rem !important;
}

#offcanvasRight .offcanvas-nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex-shrink: 0;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0.875rem 1rem !important;
}

#offcanvasRight .offcanvas-nav-links .nav-link {
    padding: 0.75rem 0.875rem !important;
    border-radius: var(--ik-radius-sm) !important;
    background: var(--ik-surface);
    color: var(--ik-text) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-align: left;
}

#offcanvasRight .offcanvas-nav-links .nav-link:active,
#offcanvasRight .offcanvas-nav-links .nav-link:hover {
    background: #eceef2;
}

#offcanvasRight .offcanvas-header-searchbar-div {
    flex-shrink: 0;
    margin: 0 1rem 0.5rem !important;
}

#offcanvasRight .offcanvas-body {
    flex: 1 1 auto;
    justify-content: flex-start !important;
    min-height: 0;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#offcanvasRight .offcanvas-body .accordion {
    padding-top: 0.25rem !important;
}

/* Categories without sub-categories are plain links now. */
#offcanvasRight .accordion-header--link {
    color: inherit;
    text-decoration: none;
    white-space: normal;
}

#offcanvasRight .accordion-header span {
    white-space: normal;
}

#offcanvasRight .accordion-body {
    padding: 0.125rem 0.25rem 0.75rem 2.875rem !important;
    gap: 0.125rem !important;
}

#offcanvasRight .accordion-body a.product {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    color: #2c2f36 !important;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

#offcanvasRight .accordion-body a.product:hover,
#offcanvasRight .accordion-body a.product:active {
    background: var(--ik-surface);
}

#offcanvasRight .accordion-body a.product--all {
    color: var(--ik-accent) !important;
    font-weight: 700;
}

/* ─── 11. Contact page ─────────────────────────────────────────────────── */

.contact-page__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid var(--ik-line);
    border-radius: var(--ik-radius);
    background: #fff;
    color: var(--ik-text);
    text-decoration: none;
    white-space: normal;
    text-wrap: wrap;
    transition: transform 0.25s var(--ik-ease), box-shadow 0.25s var(--ik-ease), border-color 0.2s ease;
}

a.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--ik-line-strong);
    box-shadow: var(--ik-shadow-md);
    color: var(--ik-text);
}

.contact-card__icon {
    display: inline-flex;
    flex: 0 0 2.75rem;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--ik-radius-sm);
    background: var(--ik-surface);
    color: var(--ik-ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}

a.contact-card:hover .contact-card__icon {
    background: var(--ik-ink);
    color: #fff;
}

.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.contact-card__label {
    color: var(--ik-muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-card__value {
    color: var(--ik-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-card__hint {
    margin-top: 0.125rem;
    color: var(--ik-accent);
    font-size: 0.8125rem;
    font-weight: 600;
}

/* FAQ on tablets/phones lost its side gutter (a later "padding: 1.5rem 0"
   rule in style.css overrides the shared container padding). */
.contact-faq.contact-page__container {
    padding-inline: var(--page-gutter) !important;
}

/* ─── 12. Footer ───────────────────────────────────────────────────────── */

.footer {
    background: #111214 !important;
}

.footer__nav {
    justify-content: flex-start !important;
    gap: 1.5rem !important;
}

.footer__contacts {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.875rem !important;
}

.footer__hours {
    margin-top: 0.5rem;
}

.footer__email {
    overflow-wrap: anywhere;
    white-space: normal;
    text-wrap: wrap;
}

@media (max-width: 767.98px) {
    .footer__brand,
    .footer__nav,
    .footer__info {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .footer__logo {
        justify-content: flex-start !important;
    }

    .footer__desc-follow {
        align-items: flex-start !important;
    }

    .footer__hours,
    .footer__hours-row {
        align-items: flex-start !important;
        align-self: flex-start !important;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .footer__hours-item {
        text-align: left !important;
    }

    .footer__follow {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
    }

    .footer__social {
        justify-content: flex-start !important;
    }

    .footer__list {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start !important;
        justify-items: start !important;
        gap: 0.625rem 1rem !important;
    }

    .footer__bottom {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .footer__legal {
        justify-content: flex-start !important;
    }
}

/* ─── 13. Motion preferences ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .products-section .products__card,
    .arrivals-section .products__card,
    .contact-card,
    .phone-div {
        transition: none !important;
    }

    .products-section .products__card:hover,
    .arrivals-section .products__card:hover,
    a.contact-card:hover,
    .phone-div:hover {
        transform: none;
        translate: none;
    }
}
