 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
  }
  
  /* Header */
  .main-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  
  .header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #ff6a00;
    text-decoration: none;
  }
  
  .logo i {
    font-size: 20px;
  }
  
  .catalog-btn {
    background: #ff6a00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  
  .search-bar {
    flex: 1;
    position: relative;
  }
  
  .search-bar input {
    width: 100%;
    padding: 12px 50px 12px 40px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
  }
  
  .search-bar input:focus {
    outline: none;
    border-color: #ff6a00;
  }
  
  .search-bar i.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
  }
  
  .city-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    min-width: 140px;
  }
  
  .tap-btn {
    background: #ff6a00;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 18px;
  }
  
  .new-ad-btn {
    background: #10b981;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
  
  .login-btn {
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
  }
  
  /* Banners */
  .banner-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fbbf24 100%);
    position: relative;
    overflow: hidden;
  }
  
  .banner-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .banner-left,
  .banner-right {
    width: 300px;
    padding: 30px 0;
  }
  
  .banner-promo {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .promo-title {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 8px;
  }
  
  .promo-discount {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
  }
  
  .promo-text {
    font-size: 18px;
    font-weight: 700;
  }
  
  .promo-delivery {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #f3f4f6;
  }
  
  .delivery-time {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
  }
  
  .delivery-text {
    font-size: 16px;
    font-weight: 700;
  }
  
  .promo-slogan {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 900;
    color: #dc2626;
  }
  
  .promo-detail {
    display: inline-block;
    margin-top: 8px;
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
  }
  
  .promo-brand {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .brand-logo {
    background: #dc2626;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
  }
  
  /* Categories Grid */
  .categories-section {
    max-width: 1320px;
    margin: 30px auto;
    padding: 0 20px;
    flex: 1;
  }
  
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
  }
  
  .category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s;
    cursor: pointer;
  }
  
  .category-item:hover {
    background: #f9fafb;
    transform: translateY(-2px);
  }
  
  .category-icon {
    width: 56px;
    height: 56px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 28px;
  }
  
  .category-name {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
  }
  
  /* Premium Section */
  .premium-section {
    max-width: 1320px;
    margin: 0 auto 30px;
    padding: 0 20px;
  }
  
  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 18px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .view-all {
    color: #374151;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
  }
  
  .premium-grid {
    display: grid;
    grid-template-columns: 300px repeat(3, 1fr);
    gap: 16px;
  }
  
  .premium-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .crown-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .premium-promo h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  
  .premium-btn {
    background: #fff;
    color: #667eea;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
  }
  
  /* Ad Cards */
  .ad-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
  }
  
  .ad-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-4px);
  }
  
  .ad-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: #f3f4f6;
  }
  
  .ad-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .badge-group {
    display: flex;
    gap: 6px;
  }
  
  .badge {
    background: rgba(255,255,255,0.95);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .badge-vip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
  }
  
  .badge-premium {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #fff;
  }
  
  .favorite-btn {
    background: rgba(255,255,255,0.95);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #9ca3af;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .favorite-btn.active {
    color: #ef4444;
  }
  
  .ad-content {
    padding: 16px;
  }
  
  .ad-price {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
  }
  
  .ad-title {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  
  .ad-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
  }
  
  .ad-meta i {
    font-size: 10px;
  }
  
  /* Ads Grid */
  .ads-section {
    max-width: 1320px;
    margin: 0 auto 30px;
    padding: 0 20px;
  }
  
  .ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  
  /* Responsive */
  @media (max-width: 1200px) {
    .categories-grid {
      grid-template-columns: repeat(6, 1fr);
    }
    
    .premium-grid {
      grid-template-columns: 1fr 1fr;
    }
    
    .ads-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .banner-left,
    .banner-right {
      display: none;
    }
    
    .categories-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    
    .premium-grid {
      grid-template-columns: 1fr;
    }
    
    .ads-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }