/* Mobile navigation and layout, designed at 390px and enabled below 450px. */
.mobile-menu-toggle, .mobile-bottom-nav { display: none; }
.mobile-drawer { display: none; }
@media (width < 450px) {
  html { scroll-padding-top: 130px; }
  body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  body.mobile-menu-open { overflow: hidden; }
  .container, .container-wide { width: calc(100% - 32px); }
  .site-header { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 3px 18px rgb(27 39 48 / 5%); }
  .site-header__main { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 10px; padding-block: 12px; min-height: 0; }
  .site-logo { width: 144px; }
  .site-logo img { width: 144px; height: auto; object-fit: contain; }
  .header-contact, .category-toggle, .site-header__navigation { display: none; }
  .mobile-menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #eee; border-radius: 10px; color: var(--color-primary); background: #fff; }
  .mobile-menu-toggle svg { width: 23px; height: 23px; }
  .site-header__tools { display: block; grid-column: 1 / -1; order: initial; min-width: 0; }
  .header-search { height: 42px; width: 100%; }
  .header-search__input { font-size: 12px; }
  .mobile-bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: calc(74px + env(safe-area-inset-bottom, 0px)); padding: 0 0 env(safe-area-inset-bottom, 0px); isolation: isolate; background: transparent; border: 0; box-shadow: none; }
  /* The 60px call button and the 74px transparent cutout share one center.
     A CSS image mask works on local files without an SVG fragment reference. */
  .mobile-bottom-nav__surface {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: 15px 15px 0 0;
    background: var(--color-text);
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle at calc(12.5% + 8px) 2px, transparent 36.5px, #000 37.5px);
    mask-image: radial-gradient(circle at calc(12.5% + 7px) 0px, transparent 36.5px, #000 37.5px);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }
  .mobile-bottom-nav__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; min-height: 74px; padding: 10px 0 12px; border: 0; background: transparent; color: #fff; font-size: 10px; font-weight: 500; line-height: 18px; white-space: nowrap; transition: color 320ms ease; }
  .mobile-bottom-nav__item > svg { width: 23px; height: 23px; flex-shrink: 0; overflow: visible; }
  .mobile-bottom-nav__item[aria-current="page"], .mobile-bottom-nav__item[aria-expanded="true"] { color: #ff9a65; }
  .mobile-bottom-nav__item--contact { grid-column: 4; transform: translateX(8px); }
  .mobile-bottom-nav__call-circle {position: absolute;top: -30px;left: 50%;display: grid;place-items: center;width: 60px;height: 60px;border-radius: 50%;background: var(--color-primary);color: #fff;transform: translateX(-50%);box-shadow: none;transition: background-color 320ms ease;}
  .mobile-bottom-nav__call-circle svg { width: 27px; height: 27px; overflow: visible; }
  .mobile-bottom-nav__item--contact:active .mobile-bottom-nav__call-circle { background: #d95123; }
  .mobile-drawer { position: fixed; inset: 0 auto 0 0; width: min(330px, calc(100% - 40px)); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 20px; border: 0; border-radius: 0 20px 20px 0; background: #fff; color: var(--color-text); opacity: 0; transform: translateX(-100%); transition: transform 320ms ease, opacity 320ms ease; }
  .mobile-drawer[open] { display: flex; flex-direction: column; }
  .mobile-drawer.is-visible { opacity: 1; transform: translateX(0); }
  .mobile-drawer::backdrop { background: rgb(27 39 48 / 45%); }
  .mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid #eee; }
  .mobile-drawer__head img { width: 135px; height: auto; }
  .mobile-drawer__close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #f6f6f6; color: inherit; }
  .mobile-drawer__tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: 20px 12px; }
  .mobile-drawer__tab { min-height: 44px; border: 0; border-radius: 8px; background: #f6f6f6; color: inherit; font-size: 12px; transition: color 320ms ease, background-color 320ms ease; }
  .mobile-drawer__tab[aria-pressed="true"] { color: var(--color-primary); background: #fff0e8; }
  .mobile-drawer__content { overflow-y: auto; overscroll-behavior: contain; }
  .mobile-drawer__links { display: grid; margin: 0; padding: 0; list-style: none; }
  .mobile-drawer__links a { display: flex; align-items: center; min-height: 48px; padding: 10px 4px; border-bottom: 1px solid #f2f2f2; font-size: 12px; transition: color 320ms ease; }
  .mobile-drawer__links a[aria-current="page"] { color: var(--color-primary); font-weight: 700; }
  .mobile-drawer__contact { display: block; margin-top: auto; padding-top: 22px; color: var(--color-primary); font-size: 12px; text-align: center; }
  .hero { margin-top: 16px; border-radius: 18px; }
  .hero__inner { padding-block: 26px; }
  .hero__title { font-size: 26px; line-height: 1.65; }
  .hero__description { line-height: 24px; }
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .hero__actions .button { padding-inline: 7px; font-size: 11px; }
  .hero__features { margin-top: 26px; gap: 22px 0; }
  .hero-feature { padding-inline: 7px; font-size: 11px; }
  .categories { margin-block: 32px; }
  .section-heading { gap: 12px; margin-bottom: 18px; }
  .section-heading__title, .faq__title { font-size: 22px; line-height: 1.7; }
  .section-heading__description { font-size: 12px; line-height: 23px; }
  .section-heading .button { min-height: 36px; padding-inline: 12px; font-size: 11px; }
  .categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-card { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; min-height: 218px; }
  .category-card__content { position: relative; z-index: 1; }
  .category-card__title { font-size: 14px; line-height: 22px; }
  .category-card__image { width: 100%; height: 88px; grid-row: 1; }
  .category-card::before { width: 100%; background-position: left top; opacity: .65; }
  .category-card__more { font-size: 10px; }
  .brands, .support-banner { margin-bottom: 32px; border-radius: 18px; }
  .brands__background, .support-banner__background { height: 164px; }
  .brands__inner, .support-banner__inner { padding-block: 20px 24px; }
  .brands__title, .support-banner__title { font-size: 24px; line-height: 1.65; }
  .brands__description, .support-banner__description { line-height: 24px; }
  .support-banner__actions { flex-wrap: wrap; gap: 10px; }
  .support-banner__actions .button { flex-basis: 100%; }
  .popular-products, .featured-products { margin-bottom: 80px; }
  .product-card { padding: 10px; }
  .product-card__media { padding: 24px; aspect-ratio: 1.15; }
  .product-card__title { font-size: 16px; line-height: 26px; }
  .product-card__details { min-height: 42px; }
  .product-slider__control { width: 36px; min-height: 40px; bottom: -44px; }
  .product-collection + .product-collection { margin-top: 78px; }
  .logo-divider { margin-bottom: 32px; }
  .purchase-process { margin-bottom: 32px; }
  .purchase-process__description { margin-top: 8px; line-height: 24px; }
  .purchase-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; margin-top: 28px; }
  .purchase-step__number { inset-inline-start: 2px; right: auto; font-size: 18px; }
  .purchase-step__icon { width: 58px; height: 58px; margin-bottom: 12px; }
  .purchase-step__title { font-size: 14px; line-height: 24px; }
  .purchase-step__description { font-size: 11px; line-height: 22px; }
  .magazine { padding-block: 26px 68px; margin-bottom: 32px; border-radius: 18px; }
  .magazine > .container { width: calc(100% - 24px); }
  .blog-card__title { font-size: 15px; line-height: 26px; }
  .faq { gap: 20px; min-height: 0; margin-bottom: 24px; }
  .faq__image { width: 210px; max-width: 100%; }
  .faq__description { margin-block: 8px 18px; }
  .faq-item__question { min-height: 52px; line-height: 23px; }
  .faq-item__answer-content { line-height: 25px; }
  .brand-slider__slide { height: 105px; }
  .brand-slider__image { width: 118px; }
  .site-footer { border-radius: 22px; }
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; padding-block: 24px; }
  .footer-column--about, .footer-column--categories, .footer-column--contact, .footer-column--trust { grid-column: 1 / -1; }
  .footer-benefits { gap: 22px 14px; }
  .footer-benefit { align-items: center; text-align: center; }
  .footer-benefit__description { line-height: 20px; }
  .footer-links { gap: 5px; }
  .footer-trust-marks { justify-content: flex-start; }
  .footer-socials { gap: 9px; }
  .site-footer__bottom { padding-block: 18px; }
}
@media (width < 360px) {
  .hero__title { font-size: 24px; }
  .hero__actions { grid-template-columns: 1fr; }
  .category-card { padding: 10px; }
  .category-card__title { font-size: 12px; }
  .mobile-bottom-nav__item { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer, .mobile-bottom-nav__item, .mobile-drawer__tab, .mobile-drawer__links a { transition: none; }
}

@media (width < 450px) {
  .mobile-drawer__brands a { justify-content: space-between; gap: 16px; }
  .mobile-drawer__brands img { width: 85px; height: 26px; object-fit: contain; }
}

/* Portrait artwork is selected only below 450px; reserve its product area. */
.responsive-banner { display: contents; }
@media (width < 450px) {
  .hero, .brands, .support-banner { position: relative; isolation: isolate; }
  .responsive-banner {
    position: absolute;
    z-index: -1;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
  }
  .responsive-banner > img {
    position: absolute;
    inset: auto 0 0;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    opacity: 1;
    z-index: auto;
  }
  .hero { background: #f3eade; }
  .brands { background: #f5eee6; }
  .support-banner { background: #ee5d12; }
  .hero { min-height: calc((100vw - 32px) * 1915 / 821); }
  .hero__inner { padding-bottom: calc((100vw - 32px) * .96); }
  .brands { min-height: calc((100vw - 32px) * 1526 / 1030); }
  .brands__inner { padding-bottom: calc((100vw - 32px) * .66); }
  .support-banner { min-height: calc((100vw - 32px) * 1526 / 1030); }
  .support-banner__inner { padding-bottom: calc((100vw - 32px) * .75); }
}

@media (width < 450px) {
  .hero__content,
  .brands__content,
  .support-banner__content { text-align: center; }
  .hero__actions,
  .support-banner__actions { justify-content: center; }
}

@media (width < 450px) {
  .responsive-banner > img {
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
  }
}

/* Centered section headings and actions beneath the card collections. */
@media (width < 450px) {
  .mobile-menu-toggle { border: 0; }
  .category-card::before {
    inset: auto;
    top: 0;
    left: 0;
    width: 136px;
    height: 132px;
    background-position: center;
    background-size: 136px 132px;
    transform: rotate(180deg);
  }
  .section-heading { flex-direction: column; align-items: center; justify-content: center; text-align: center; }
  .section-heading > div { width: 100%; }
  .section-heading__title, .faq__title, .purchase-process__heading { text-align: center; }
  .product-collection__title { justify-content: center; }
  .faq__description { text-align: center; }
  .section-more { display: flex; width: fit-content; max-width: calc(100% - 92px); min-height: 40px; margin: 18px auto 0; padding-inline: 16px; font-size: 11px; }
  .categories > .section-more { max-width: 100%; margin-top: 20px; }
  [data-product-slider] .product-slider__control { top: auto; bottom: -58px; width: 36px; height: 40px; min-height: 40px; border: 1px solid #f0ddd5; border-radius: 10px; }
  [data-product-slider] .product-slider__control--previous { inset-inline-start: 0; inset-inline-end: auto; }
  [data-product-slider] .product-slider__control--next { inset-inline-end: 0; inset-inline-start: auto; }
  .popular-products, .featured-products { margin-bottom: 38px; }
  .product-collection + .product-collection { margin-top: 38px; }
  .magazine { padding-bottom: 28px; }
}

@media (width < 450px) {
  .header-search__input { font-size: 16px; }
  .header-search__input::placeholder { font-size: 12px; }
}
