/* ── PAZARKO WEB — style.css ── */
:root {
  --primary: #0f3460;
  --primary-light: #e8edf5;
  --accent: #e94560;
  --text: #1a1a2e;
  --text-secondary: #666;
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --border: #e8e8e8;
  --discount: #e94560;
  --success: #28a745;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
header {
  background: var(--card-bg); color: var(--text);
  padding: 10px 0; position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  color: var(--primary); text-decoration: none;
  font-size: 20px; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.logo-img { width: 32px; height: 32px; border-radius: 7px; }
nav a {
  color: var(--text-secondary); text-decoration: none;
  margin-left: 20px; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }

/* ── CTA (at top) ── */
.cta-section {
  text-align: center; background: var(--primary-light); border-radius: var(--radius);
  padding: 20px 16px; margin: 12px 0;
}
.cta-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 8px; }
.cta-section h2 { margin-bottom: 4px; color: var(--primary); font-size: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 10px; font-size: 13px; }
.google-play-btn { font-size: 14px; padding: 10px 24px; }

/* ── SEARCH SECTION ── */
.search-section { text-align: center; padding: 12px 0 8px; }
.search-section h1 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.highlight { color: var(--accent); }
.search-box { display: flex; max-width: 560px; margin: 0 auto 8px; gap: 6px; }
.search-box input {
  flex: 1; padding: 9px 12px; border: 2px solid var(--border); border-radius: 8px;
  font-size: 14px; outline: none; transition: border-color 0.2s;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  background: var(--primary); color: #fff; border: none; padding: 9px 20px;
  border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.search-box button:hover { background: #1a1a2e; }

.btn-primary {
  display: inline-block; background: var(--primary); color: #fff; border: none;
  padding: 10px 24px; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.2s;
}
.btn-primary:hover { background: #1a1a2e; }
.btn-secondary {
  background: var(--card-bg); color: var(--primary); border: 2px solid var(--primary);
  padding: 8px 22px; border-radius: 8px; font-size: 14px;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--primary-light); }

.filters { display: flex; justify-content: center; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; outline: none; background: var(--card-bg);
}
.filters select:focus { border-color: var(--primary); }
.checkbox-label { font-size: 13px; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; }

/* ── PRODUCT GRID ── */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px;
}

.product-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.15s;
  position: relative;
}
.product-card:hover { box-shadow: 0 3px 12px rgba(15,52,96,0.1); transform: translateY(-1px); }
.product-card img {
  width: 100%; height: 140px; object-fit: contain; padding: 8px; background: #fafbfd;
}
.product-card .info { padding: 8px 10px 10px; }
.product-card .store-badge {
  font-size: 10px; font-weight: 700; color: var(--primary); text-transform: uppercase;
  letter-spacing: 0.4px; margin-bottom: 2px;
}
.product-card .name {
  font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 5px; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card .price-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product-card .price { font-size: 16px; font-weight: 800; color: var(--primary); }
.product-card .old-price { font-size: 12px; color: #999; text-decoration: line-through; }
.discount-badge {
  position: absolute; top: 6px; right: 6px; background: var(--discount); color: #fff;
  padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 700;
}
.product-card .category { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }

/* ── SECTIONS ── */
.section { padding: 14px 0; }
.section h2 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
#results-count { color: var(--text-secondary); font-size: 13px; }

/* ── BOTTOM NUDGE ── */
.bottom-nudge {
  text-align: center; padding: 16px; margin-top: 10px;
  color: var(--text-secondary); font-size: 14px;
}
.bottom-nudge a { color: var(--primary); font-weight: 600; text-decoration: none; }
.bottom-nudge a:hover { text-decoration: underline; }

/* ── FOOTER ── */
footer {
  background: var(--text); color: rgba(255,255,255,0.7);
  padding: 14px 0; margin-top: 14px; text-align: center; font-size: 12px;
}
.footer-update { margin-top: 2px; font-size: 11px; }

/* ── LOADING ── */
.loading { text-align: center; padding: 24px; color: var(--text-secondary); font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .search-section h1 { font-size: 17px; }
  .search-box { flex-direction: column; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .product-card img { height: 110px; }
  nav a { margin-left: 14px; font-size: 13px; }
  .cta-logo { width: 40px; height: 40px; }
  .cta-section { padding: 14px 12px; }
  .cta-section h2 { font-size: 15px; }
}