/**
 * Mobile-first responsive polish
 */

@media (max-width: 991px) {
  .bb-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .bb-header__actions .bb-icon-btn {
    width: 38px;
    height: 38px;
  }

  .bb-logo__img,
  .bb-logo img {
    max-height: 42px;
  }

  .bb-shop-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .bb-shop-toolbar__right {
    justify-content: space-between;
    width: 100%;
  }

  .bb-shop-layout {
    grid-template-columns: 1fr;
  }

  .bb-shop-sidebar {
    order: 2;
  }

  .bb-shop-products {
    order: 1;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .woocommerce ul.products li.product .button {
    font-size: 0.78rem;
    padding: 0.65rem 0.75rem;
  }

  .bb-product-actions {
    opacity: 1;
    transform: none;
  }

  .bb-features-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
  }

  .bb-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bb-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .bb-footer__bar-inner {
    flex-direction: column;
    text-align: center;
  }

  .bb-float-btns {
    right: 0.75rem;
    bottom: 0.85rem;
  }

  .bb-float-btn {
    width: 48px;
    height: 48px;
  }

  .bb-mini-cart,
  .bb-mobile-menu {
    width: min(100vw, 380px);
  }

  .woocommerce-checkout .col2-set,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    width: 100% !important;
    position: static !important;
  }

  .woocommerce table.shop_table_responsive tr {
    display: block;
    margin-bottom: 1rem;
  }
}

@media (max-width: 575px) {
  .bb-header__top-inner {
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
  }

  .bb-header__phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
  }

  .bb-hero {
    min-height: 70vh;
  }

  .bb-hero__slide {
    min-height: 70vh;
  }

  .bb-hero__heading {
    font-size: 1.85rem;
  }

  .bb-section-title {
    font-size: 1.45rem;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.88rem !important;
    padding: 0.55rem 0.65rem 0.15rem !important;
  }

  .woocommerce ul.products li.product .price {
    font-size: 0.9rem;
    padding: 0 0.65rem;
  }

  .bb-btn--lg {
    width: 100%;
  }

  .bb-hero__actions {
    flex-direction: column;
  }

  .bb-hero__actions .bb-btn {
    width: 100%;
  }
}

/* Touch-friendly */
@media (hover: none) {
  .bb-product-actions {
    opacity: 1;
    transform: none;
  }
}
