:root {
  --primary: #ed1c24;
  --primary-dark: #c4161d;
  --blue: #2e3192;
  --text: #2f3138;
  --muted: #545454;
  --border: #ebecef;
  --bg: #f5f6f8;
  --white: #fff;
  --radius: 5px;
}

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

body.demo {
  font-family: Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
}

body.demo, body.demo * {
  pointer-events: none;
  cursor: default;
  user-select: none;
}

.top-bar {
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 6px 16px;
  flex-wrap: wrap;
}

.header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo { height: 56px; width: auto; object-fit: contain; }

.search-wrap {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--muted);
  font-size: 14px;
}

.search-icon { font-size: 18px; color: var(--primary); }

.header-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.action small { display: block; color: var(--muted); font-size: 11px; }
.action-icon { font-size: 22px; }

.cart { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-cats {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 500;
}

.nav-cats span:first-child {
  background: var(--primary);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius);
}

.nav-cats span:not(:first-child) {
  padding: 8px 12px;
  color: var(--muted);
  white-space: nowrap;
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

.hero {
  background: linear-gradient(105deg, var(--blue) 0%, #1a1d6e 45%, var(--primary) 100%);
  color: var(--white);
  min-height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 40px 20px;
}

.hero-slide { max-width: 1300px; width: 100%; }

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: #ffcdd2;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 520px;
  margin-bottom: 12px;
  line-height: 1.15;
}

.hero-sub { max-width: 480px; opacity: .92; font-size: 15px; margin-bottom: 20px; }

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
}

.hero-dots span.on { background: var(--white); width: 24px; border-radius: 4px; }

.cat-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  padding: 24px 20px;
  background: var(--white);
  margin-top: -1px;
  border-bottom: 1px solid var(--border);
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  padding: 8px;
}

.cat-emoji {
  width: 52px;
  height: 52px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid var(--border);
}

.section { padding: 28px 20px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.25rem;
  color: var(--blue);
  font-weight: 700;
}

.section-link { color: var(--primary); font-size: 14px; font-weight: 500; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.product {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.tag-oferta {
  position: absolute;
  top: 8px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px 4px 8px;
  border-radius: 0 12px 12px 0;
  z-index: 1;
}

.product-img {
  height: 120px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: #fafafa;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.product h3 {
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  margin-bottom: 8px;
}

.price { color: var(--primary); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.price small { color: var(--muted); font-weight: 400; font-size: 12px; }

.btn-add {
  margin-top: auto;
  text-align: center;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px;
  border-radius: var(--radius);
}

.banner-strip {
  background: var(--blue);
  color: var(--white);
  padding: 32px 20px;
  margin: 8px 0 0;
}

.strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.strip-inner h2 { font-size: 1.35rem; margin-bottom: 6px; }
.strip-inner p { opacity: .9; font-size: 14px; }

.btn-outline {
  border: 2px solid var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
}

.footer {
  background: #292929;
  color: #ccc;
  font-size: 13px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  padding: 40px 20px;
}

.footer-logo { height: 48px; margin-bottom: 8px; background: #fff; padding: 6px 10px; border-radius: var(--radius); }
.footer-brand { color: var(--white); font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

.footer h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 14px;
}

.footer p { margin-bottom: 6px; }

.footer-legal {
  border-top: 1px solid #444;
  padding: 20px 20px 28px;
  font-size: 11px;
  line-height: 1.5;
  color: #999;
}

.copy { margin-top: 12px; text-align: center; }

@media (max-width: 768px) {
  .header-actions { width: 100%; justify-content: space-between; }
  .logo-wrap { width: 100%; text-align: center; }
  .search-wrap { order: 3; width: 100%; }
}
