/* Blucrate store — white overall, electric-blue brand accents. Mobile-first. */

:root {
  --blue: #1f6bff;
  --blue-dark: #1557d6;
  --blue-soft: #eaf1ff;
  --ink: #101828;
  --muted: #5b6472;
  --line: #e6eaf0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --wa: #1faa53;
  --wa-dark: #178741;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 10px 12px;
}
.announce strong { color: #8fb4ff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.brand-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.brand-mark.sm { width: 32px; height: 32px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.3px; }
.brand-tag { font-size: 11px; color: var(--muted); }

.header-nav { display: none; gap: 4px; margin-left: 12px; }
@media (min-width: 760px) { .header-nav { display: flex; } }
.nav-link {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-link:hover { background: var(--bg-soft); color: var(--ink); }

.cart-btn {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-count {
  background: var(--blue);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 48px 20px 40px;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
}
.hero-mark { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.hero h1 {
  font-size: clamp(34px, 7vw, 56px);
  letter-spacing: -1px;
  margin: 16px 0 8px;
  line-height: 1.05;
}
.hero-sub { color: var(--muted); max-width: 520px; margin: 0 auto 20px; font-size: 16px; }

.search-wrap { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 16px; }
.search-wrap input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  outline: none;
  background: #fff;
}
.search-wrap input:focus { border-color: var(--blue); }
.search-wrap button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.search-wrap button:hover { background: var(--blue-dark); }

.cta-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.cta-primary:hover { background: var(--blue-dark); }
.cta-primary.full, .cta-whatsapp.full, .cta-secondary.full { width: 100%; }
.cta-secondary {
  background: var(--bg-soft);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cta-whatsapp {
  background: var(--wa);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}
.cta-whatsapp:hover { background: var(--wa-dark); }

/* ---------- Sections ---------- */
.section-title { font-size: 22px; letter-spacing: -0.4px; margin: 36px 0 14px; }

.cat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 760px) { .cat-cards { grid-template-columns: repeat(4, 1fr); } }

.cat-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card .cat-icon { width: 46px; height: 46px; margin: 0 auto 8px; display: block; color: var(--blue); }
.cat-card h3 { margin: 0 0 4px; font-size: 16px; }
.cat-card p { margin: 0; font-size: 12px; color: var(--muted); }
.cat-card .cat-count { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--blue); }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbe7ff 0%, #f2f6ff 60%, #e7efff 100%);
  position: relative;
}
.card-tile svg { width: 52px; height: 52px; color: var(--blue); opacity: 0.9; }
.card-tile .cond-chip {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(16, 24, 40, 0.85);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; font-size: 14.5px; line-height: 1.3; }
.card-body .card-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; }
.card-price { margin-top: auto; padding-top: 8px; font-weight: 800; font-size: 15.5px; color: var(--ink); }
.card-price .from { font-weight: 600; font-size: 12px; color: var(--muted); }

.result-meta { color: var(--muted); font-size: 14px; margin: 6px 0 14px; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state p { margin-bottom: 16px; font-size: 16px; }

/* ---------- Info / contact cards ---------- */
.info-cards, .contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px) { .info-cards { grid-template-columns: repeat(4, 1fr); } .contact-cards { grid-template-columns: repeat(2, 1fr); } }
.info-card, .contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
}
.contact-card:hover { box-shadow: var(--shadow); }
.info-icon { font-size: 30px; margin-bottom: 8px; }
.info-card h3, .contact-card h3 { margin: 0 0 6px; font-size: 16px; }
.info-card p, .contact-card p { margin: 0; font-size: 14px; color: var(--muted); }
.contact-card p { font-weight: 700; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 32px 0 48px; background: var(--bg-soft); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.footer-note { margin: 0; font-size: 13px; color: var(--muted); }
.footer-note.dim { color: #98a1ad; }
.footer-note a { color: var(--blue); text-decoration: none; }

/* ---------- Chips ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.static { cursor: default; background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); }

/* ---------- Shop toolbar ---------- */
.shop-toolbar { padding-top: 20px; }
.shop-search { margin: 0 0 4px; max-width: none; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, 0.5);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@media (min-width: 760px) { .modal-backdrop { align-items: center; padding: 24px; } }

.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 22px 20px 28px;
  position: relative;
}
@media (min-width: 760px) { .modal { border-radius: 20px; } }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-soft);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  color: var(--ink);
}

.modal-tile {
  height: 150px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbe7ff 0%, #f2f6ff 60%, #e7efff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.modal-tile svg { width: 64px; height: 64px; color: var(--blue); }

.modal h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -0.3px; }
.pm-note { color: var(--muted); font-size: 14px; margin: 8px 0 14px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }
.variant-select, .modal input[type="text"], .modal textarea, .drawer input[type="text"], .drawer textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  background: #fff;
}
.variant-select:focus, .modal input:focus, .modal textarea:focus, .drawer input:focus, .drawer textarea:focus { border-color: var(--blue); }
.pm-price { font-size: 24px; font-weight: 800; margin: 14px 0 4px; }
.pm-price .from { font-size: 13px; font-weight: 600; color: var(--muted); }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 18px; }
.qty-row .field-label { margin: 0; }
.qty-stepper { display: flex; align-items: center; gap: 16px; }
.qty-stepper button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.qty-stepper span { font-size: 17px; font-weight: 800; min-width: 24px; text-align: center; }

.modal .cta-primary, .modal .cta-whatsapp, .modal .cta-secondary { margin-top: 10px; }

/* ---------- Cart drawer ---------- */
.drawer {
  background: #fff;
  width: 100%;
  max-width: 460px;
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  border-radius: 20px 0 0 20px;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-head .modal-close { position: static; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-body h3 { margin: 18px 0 4px; font-size: 16px; }

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { margin: 0 0 2px; font-size: 14.5px; }
.cart-item-info .variant { margin: 0; font-size: 12.5px; color: var(--muted); }
.cart-item-info .line-total { margin: 6px 0 0; font-weight: 800; font-size: 14.5px; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.mini-stepper { display: flex; align-items: center; gap: 10px; }
.mini-stepper button {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.mini-stepper span { font-weight: 800; font-size: 14px; min-width: 18px; text-align: center; }
.remove-link { background: none; border: none; color: #c0362c; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 0; }

.drawer-foot { border-top: 1px solid var(--line); padding: 16px 18px 22px; background: #fff; }
.gift-note {
  background: #fff7e6;
  border: 1px solid #f5d98b;
  color: #8a5a00;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 2px; }
.cart-total strong { font-size: 22px; }
.shipping-note { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
