@media (max-width: 375px) {
  body {
    font-size: 16px;
  }

  .topbar-icons {
    padding-right: 10px;
    gap: 10px;
  }

  .site-footer,
  .site-header {
    padding: 10px;
  }

  .product-card h3 {
    font-size: 16px;
  }

  .product-card .product-price {
    font-size: 15px;
  }

  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  ul.products.columns-4,
  ul.products.columns-3,
  ul.products.columns-2 {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 16px !important;
  }

  .woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
  }
}

@media (max-width: 768px) {
  .mobile-shop-controls {
    margin: 10px 0 20px; /* сверху 10px, снизу 20px */
    text-align: center;
  }
}

@media (max-width: 768px) {
  .shop-container {
    display: flex;
    flex-direction: column;
  }

  .shop-container aside,
  .shop-container .sidebar,
  #secondary {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .card-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .card-wrapper .image-block {
    width: 100%;
    text-align: center;
  }

  .card-wrapper .info-block {
    padding-top: 10px;
  }

  .card-wrapper .product-title-wrap {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
  }

  .card-wrapper .bottom-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .card-wrapper .price {
    font-size: 16px;
    font-weight: bold;
    color: #222;
  }

  .card-wrapper .button {
    padding: 8px 12px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    flex-grow: 1;
    text-align: center;
  }

  .card-wrapper .button:active {
    background-color: #005177;
    transform: scale(0.98);
  }
}

.card-wrapper:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: none) {
  .card-wrapper:active {
    transform: scale(0.98);
  }
}

@media (max-width: 768px) {
  .single-product-wrapper {
    padding: 15px;
  }

  .product_title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .woocommerce-product-gallery {
    margin-bottom: 20px;
  }

  .woocommerce-Price-amount {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    display: block;
  }

  .single-product .summary .button {
    padding: 14px;
    font-size: 16px;
    width: 100%;
    background-color: #0073aa;
    color: white;
    border-radius: 8px;
    border: none;
  }

  .single-product .summary .button:active {
    background-color: #005177;
    transform: scale(0.98);
  }

  .product_meta {
    display: none;
  }

  .woocommerce-tabs,
  .related.products {
    margin-top: 40px;
  }
}

.topbar-icons .theme-toggle {
  display: inline-flex !important;
}

@media (max-width: 768px) {
  .topbar-icons {
    display: none;
  }
}

.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-bar a {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

@media (max-width: 768px) {
  .mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    color: #333;
    padding: 10px 0;
  }

  .mobile-bottom-bar a i {
    font-size: 24px;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    z-index: 9998; /* на 1 меньше, чем у #theme-toggle */
  }

  .mobile-header button {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
  }

  body {
    padding-top: 58px; /* чтобы контент не прилипал под шапку */
  }
}

@media (max-width: 768px) {
  .site-footer {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-shop-controls {
    width: 100%;
  }
}
