/* responsive.css - Responsive layout adjustments */

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .main-content {
    padding: 80px 1.5rem 1.5rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
  }
  
  .products-grid.list-view {
    width: 100%;
  }
  
  .list-view .product-card {
    width: 100%;
  }
  
  .categories-section {
    gap: 6px;
  }
  
  .category-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.5rem;
  }
  
  .header nav {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .main-content {
    padding: 80px 1rem 1rem;
  }
  
  .categories-section {
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .search-section {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-box {
    width: 100%;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .product-card {
    max-width: 100%;
  }
  
  .product-price {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  
  .buy-now-btn {
    width: 100%;
    text-align: center;
  }
  
  .filter-tags {
    gap: 5px;
  }
  
  .filter-tag {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .header nav ul {
    gap: 1rem;
  }
  
  .header nav ul a {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .filter-section {
    flex-direction: column;
    gap: 15px;
  }
  
  .filter-tags {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  
  .filter-tag {
    white-space: nowrap;
  }
  
  .country-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  
  .categories-section {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.8rem;
    gap: 4px;
  }
  
  .category-item {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  
  .category-item i {
    margin-right: 0.5rem;
  }
  
  .category-item .count {
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .product-card {
    padding: 10px;
  }
  
  .product-image-container {
    height: 150px;
  }
  
  .logo {
    font-size: 0.9rem;
  }
  
  .header nav ul a {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }
  
  .header nav ul {
    gap: 0.3rem;
  }
  
  .hot-deals-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hot-deals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-card {
    width: 100%;
  }
}

/* ============== TOUCH OPTIMIZATIONS ============== */
@media (hover: none) {
  .filter-tag:active,
  .country-filter:active,
  .product-card:active,
  .buy-now-btn:active {
    transform: scale(0.98);
  }
  
  .filter-tags,
  .country-filters {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .filter-tags::-webkit-scrollbar,
  .country-filters::-webkit-scrollbar {
    display: none;
  }
}