/**
 * Mobile Responsive Styles
 * Based on Base44 mobile design
 */

/* ==================== CONTENT HEADER ==================== */
.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 12px;
  gap: 16px;
  flex-wrap: wrap;
  min-height: 64px;
}

@media (min-width: 1024px) {
  .content-header {
    padding: 24px 32px;
    min-height: 72px;
  }
}

.content-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  flex-shrink: 0;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .content-title {
    font-size: 28px;
  }
}

.content-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  height: 44px;
}

/* Sort Dropdown */
.content-sort {
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: white;
  cursor: pointer;
  min-width: 160px;
  height: 44px;
  line-height: 1.5;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

@media (max-width: 480px) {
  .content-sort {
    min-width: 140px;
    font-size: 13px;
    padding: 9px 36px 9px 12px;
    height: 40px;
  }
}

.content-sort:hover {
  border-color: #9ca3af;
}

.content-sort:focus {
  outline: none;
  border-color: #E31E24;
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* ==================== HERO MOBILE ADJUSTMENTS ==================== */
@media (max-width: 768px) {
  .hero-wrapper {
    margin: 12px;
    border-radius: 12px;
    min-height: 240px;
  }

  .hero-content {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 12px;
    letter-spacing: 1.5px;
    margin: 0 0 24px 0;
  }

  .hero-search {
    margin: 0 0 16px 0;
  }

  .hero-search-input {
    height: 44px;
    font-size: 15px;
  }

  .hero-corner-tl,
  .hero-corner-br {
    width: 60px;
    height: 60px;
    border-width: 3px;
  }

  .hero-corner-tl {
    top: 16px;
    left: 16px;
  }

  .hero-corner-br {
    bottom: 16px;
    right: 16px;
  }
}

/* ==================== PRODUCTS GRID MOBILE ==================== */
.products-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 12px 100px 12px; /* Same padding as hero wrapper margin */
}

@media (min-width: 640px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 32px 32px 32px;
  }
}

@media (min-width: 1280px) {
  .products-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==================== NO RESULTS ==================== */
.no-results {
  display: none;
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.no-results p {
  margin: 0;
}

/* ==================== MOBILE NAV BUTTON IMPROVEMENT ==================== */
@media (max-width: 1023px) {
  .sidebar-mobile-toggle {
    background: #E31E24;
    color: white;
    border: none;
    padding: 14px 28px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(227, 30, 36, 0.4);
  }

  .sidebar-mobile-toggle:active {
    transform: translateX(-50%) scale(0.95);
    background: #c71a20;
  }

  .sidebar-mobile-toggle .sidebar-mobile-icon {
    width: 20px;
    height: 20px;
  }
}
