/* === RESET & BASE === */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',sans-serif; background:#f8f9fa; color:#1a1a1a; line-height:1.5; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
.container { max-width:1200px; margin:0 auto; padding:0 16px; }

/* === TOP BAR === */
.top-bar { background:#fff; padding:8px 0; font-size:14px; border-bottom:1px solid #eee; }
.top-bar .container { display:flex; justify-content:space-between; align-items:center; }
.top-bar a { margin-right:20px; color:#555; }
.locale { color:#888; }
.locale select { border:none; background:transparent; font:inherit; color:inherit; }

/* === HEADER === */
.header { background:#fff; padding:16px 0; box-shadow:0 2px 4px rgba(0,0,0,.05); }
.header .container { display:flex; align-items:center; gap:16px; }
.logo { font-weight:700; font-size:24px; color:#000; }
.catalog-btn { background:#000; color:#fff; border:none; padding:10px 16px; border-radius:6px; font-weight:500; cursor:pointer; }
.search-bar { flex:1; display:flex; background:#f1f1f1; border-radius:8px; overflow:hidden; }
.search-bar input { flex:1; border:none; padding:12px; background:transparent; outline:none; font-size:15px; }
.search-bar button { background:#000; color:#fff; border:none; padding:0 16px; cursor:pointer; font-size:18px; }
.user-actions { display:flex; align-items:center; gap:12px; }
.icon-btn { position:relative; background:none; border:none; font-size:22px; cursor:pointer; }
.count { position:absolute; top:-8px; right:-8px; background:#e91e63; color:#fff; font-size:10px; width:16px; height:16px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.profile-btn { display:flex; align-items:center; gap:8px; background:none; border:none; cursor:pointer; }
.profile-btn img { width:32px; height:32px; border-radius:50%; object-fit:cover; }

/* === HERO SLIDER === */
.hero { position:relative; margin:20px 0; height:320px; overflow:hidden; border-radius:12px; }
.slider { height:100%; position:relative; }
.slide { display:none; height:100%; background:#000; color:#fff; position:absolute; width:100%; opacity:0; transition:opacity .6s ease; }
.slide.active { display:block; opacity:1; z-index:1; }
.slide .content { position:absolute; left:50px; top:50%; transform:translateY(-50%); z-index:2; max-width:500px; }
.slide h1 { font-size:48px; margin-bottom:8px; }
.slide p { font-size:20px; margin-bottom:16px; }
.slide img { position:absolute; right:10%; top:50%; transform:translateY(-50%); width:320px; opacity:.85; border-radius:12px; }
.prev, .next { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.5); color:#fff; border:none; width:44px; height:44px; border-radius:50%; cursor:pointer; z-index:3; font-size:20px; }
.prev { left:20px; } .next { right:20px; }
.dots { position:absolute; bottom:20px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:3; }
.dot { width:10px; height:10px; border-radius:50%; background:#fff; opacity:.5; cursor:pointer; transition:.3s; }
.dot.active { opacity:1; background:#fff; transform:scale(1.3); }

/* === CATEGORIES === */
.categories { background:#fff; padding:12px 0; border-bottom:1px solid #eee; }
.categories a { margin-right:24px; color:#555; font-weight:500; }
.categories a.active { color:#000; font-weight:600; }

/* === SECTION === */
.section { padding:40px 0; }
.section h2 { font-size:24px; margin-bottom:20px; display:flex; justify-content:space-between; align-items:center; }
.view-all { font-size:14px; color:#0066cc; }

/* === PRODUCT GRID === */
.product-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:16px; }
.product-card { background:#fff; border-radius:12px; overflow:hidden; box-shadow:0 1px 3px rgba(0,0,0,.1); transition:.2s; }
.product-card:hover { transform:translateY(-4px); box-shadow:0 8px 16px rgba(0,0,0,.1); }
.product-card img { width:100%; height:140px; object-fit:cover; }
.product-card h3 { font-size:14px; padding:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.product-card .weight { font-size:12px; color:#888; padding:0 8px; }
.product-card .delivery { font-size:12px; color:#0066cc; padding:0 8px 8px; }
.price { padding:0 8px 12px; display:flex; align-items:center; gap:8px; }
.current { font-weight:700; font-size:16px; }
.old { text-decoration:line-through; color:#888; font-size:14px; }

/* === BRANDS === */
.brands .brand-logos { display:flex; gap:32px; flex-wrap:wrap; align-items:center; }
.brands img { height:40px; filter:grayscale(100%); opacity:.7; transition:.2s; }
.brands img:hover { filter:grayscale(0); opacity:1; }

/* === FOOTER ICONS === */
.footer-icons { position:fixed; bottom:20px; right:20px; display:flex; gap:12px; background:#fff; padding:8px 12px; border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.1); }
.footer-icons button { background:none; border:none; font-size:20px; position:relative; cursor:pointer; }

/* === FOOTER === */
.footer {
  background: #111;
  color: #ccc;
  padding: 60px 0 20px;
  margin-top: 80px;
  font-size: 14px;
}
.footer .logo {
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-bottom: 12px;
}
.footer p {
  margin-bottom: 16px;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-links h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 16px;
}
.footer-links a {
  display: block;
  color: #aaa;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer-links a:hover {
  color: #fff;
}
.social-icons {
  display: flex;
  gap: 12px;
}
.social-icons a {
  width: 36px;
  height: 36px;
  background: #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  transition: .2s;
}
.social-icons a:hover {
  background: #e91e63;
  transform: translateY(-2px);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

@media (max-width: 768px) {
  .header .container { flex-wrap: wrap; gap: 12px; }
  .search-bar { order: 3; width: 100%; }
  .hero { height: 280px; }
  .slide img { width: 200px; right: 5%; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .social-icons { justify-content: center; }
}
