
@media (max-width: 767px) {
  .hero-video__media {
    display: none;
  }

  .hero-video {
    background-image: url("../assets/hero-poster.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero-carousel__track,
  .categories__list {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-carousel__slide,
  .category,
  .products__item {
    scroll-snap-stop: normal;
  }

  .footer .logo__wedge {
    animation: none;
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
  .footer .logo__topping {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .footer .logo__shard {
    animation: none;
  }
}

@media (min-width: 640px) {
  .topbar__inner {
    justify-content: space-between;
    gap: var(--sp-md);
    min-height: 38px;
  }

  .topbar__note {
    text-align: start;
  }

  .topbar__note svg {
    width: 15px;
    height: 15px;
  }

  .topbar__links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
  }

  .topbar__links a {
    transition: color 0.2s var(--ease);
  }

  .topbar__links a:hover {
    color: var(--lime);
  }

  .hero-video {
    height: 340px;
  }

  .hero-video__overlay {
    padding: 0 40px;
  }

  .hero-video__title {
    font-size: 1.8rem;
    max-width: 460px;
  }

  .hero-video__desc {
    font-size: 0.9rem;
    max-width: 420px;
  }

  .hero-video__cta {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-video__cta svg {
    width: 18px;
    height: 18px;
  }

  .hero-carousel__title {
    font-size: 1.15rem;
  }

  .hero-carousel__title::before {
    height: 20px;
  }

  .hero-carousel__slide {
    flex: 0 0 calc((100% - 24px) / 2.6);
    opacity: 0.75;
    transform: scale(0.96);
  }

  .hero-carousel__slide:hover,
  .hero-carousel__slide:focus-within {
    opacity: 1;
    transform: scale(1);
  }

  .categories__title {
    font-size: 1.15rem;
  }

  .category {
    flex: 0 0 100px;
  }

  .category__img {
    width: 100px;
    height: 100px;
  }

  .category__name {
    font-size: 0.78rem;
  }

  .products {
    padding: var(--sp-lg) 0;
  }

  .products__main {
    padding: var(--sp-md);
  }

  .products__grid {
    padding-inline: 0;
    margin-inline: 0;
    padding: 10px;
  }

  .products__item {
    flex: 0 0 calc((100% - var(--sp-sm) * 5) / 6);
  }

  .products__title {
    font-size: 1.05rem;
  }

  .product__name {
    font-size: 0.78rem;
  }

  .product__current {
    font-size: 0.95rem;
    font-weight: 800;
  }

  .product__old {
    font-size: 0.74rem;
  }

  .product__discount {
    font-size: 0.7rem;
    padding: 2px 7px;
  }

  .product__add {
    width: 34px;
    height: 34px;
  }

  .footer {
    padding: var(--sp-lg) 0;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: start;
  }
}

@media (min-width: 768px) {
  .header__inner {
    flex-wrap: nowrap;
    gap: var(--sp-lg);
    padding: 0;
    min-height: 78px;
  }

  .menu-btn,
  .menu-toggle,
  .mobile-menu,
  .mobile-menu__overlay {
    display: none;
  }

  .brand {
    order: 0;
    flex: 0 0 auto;
  }

  .brand__mark {
    width: 52px;
    height: 52px;
  }

  .brand__name {
    font-size: 1.18rem;
    letter-spacing: -0.4px;
  }

  .brand__tagline {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.4;
  }

  .search {
    order: 0;
    flex: 1 1 auto;
    max-width: 520px;
    height: 46px;
  }

  .actions {
    order: 0;
    margin-inline-start: auto;
  }

  .action--location,
  .action--favorites {
    display: flex;
  }

  .action__label {
    display: inline;
  }

  .header-nav {
    display: block;
  }

  .hero {
    padding: var(--sp-lg) 0;
  }

  .hero-video {
    height: 420px;
  }

  .hero-video__overlay {
    padding: 0 56px;
  }

  .hero-video__title {
    font-size: 2.2rem;
    max-width: 520px;
  }

  .hero-video__desc {
    font-size: 1rem;
    max-width: 460px;
  }

  .hero-video__cta {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .hero-video__cta svg {
    width: 20px;
    height: 20px;
  }

  .hero-carousel__title {
    font-size: 1.35rem;
  }

  .hero-carousel__title::before {
    height: 24px;
  }

  .hero-carousel__track {
    gap: 16px;
    padding: 6px 6px 16px;
    margin-inline: -6px;

    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;

    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-carousel__slide {
    flex: 0 0 calc((100% - 48px) / 3.4);
    opacity: 0.7;
    transform: scale(0.95);
    scroll-snap-align: start;
  }

  .hero-carousel__slide:hover,
  .hero-carousel__slide:focus-within {
    opacity: 1;
    transform: scale(1);
  }

  .categories__title {
    font-size: 1.35rem;
  }

  .categories__head {
    margin-bottom: var(--sp-md);
  }

  .category {
    flex: 0 0 120px;
  }

  .category__img {
    width: 120px;
    height: 120px;
  }

  .category__name {
    font-size: 0.85rem;
  }

  .products__inner {
    display: block;
    padding: 0;
    background: var(--white);
    border: 1px solid var(--border);
    overflow: hidden;
  }

  .products__main {
    padding: var(--sp-md);
  }

  .products__item {
    flex: 0 0 calc((100% - var(--sp-sm) * 5) / 6);
  }

  .footer__main {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--sp-lg);
  }

  .footer__brand {
    flex: 1 1 auto;
    max-width: 420px;
  }

  .footer__links {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: var(--sp-lg);
  }
}