:root {
  --brand-red: #b91c1c;
  --brand-red-dark: #881313;
  --brand-red-soft: #fef2f2;
  --brand-gold: #d97706;
  --brand-gold-light: #fef3c7;
  --whatsapp: #16a34a;
  --whatsapp-dark: #15803d;
  --bg: #fffbf5;
  --surface: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e5e4;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 12px 32px rgba(185, 28, 28, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
  padding-bottom: 76px;
  line-height: 1.55;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--brand-red-dark);
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.nav-link:hover {
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.nav-link.active {
  color: #ffffff;
  background: var(--brand-red);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  transition: all 0.15s ease;
}

.lang-toggle:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Mobile Bottom Nav */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-nav-btn .icon {
  font-size: 18px;
  line-height: 1.2;
}

.mobile-nav-btn.active {
  color: var(--brand-red);
}

/* Sections */
.view-section {
  display: none;
  padding: 20px 0 40px;
}

.view-section.active {
  display: block;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 55%, #c2410c 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 28px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding: 44px 40px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.24), transparent 70%);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}

.status-dot.closed {
  background: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3);
}

.hero h1 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 10px;
  max-width: 680px;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 38px;
  }
}

.hero p {
  font-size: 15px;
  opacity: 0.94;
  max-width: 620px;
  margin-bottom: 20px;
}

.hero-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 640px;
}

@media (min-width: 640px) {
  .hero-search {
    flex-direction: row;
  }
}

.hero-search input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  font-size: 15px;
  color: var(--text);
  outline: none;
}

.hero-search button {
  height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: #fbbf24;
  color: #451a03;
  font-weight: 800;
  font-size: 15px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hero-search button:hover {
  background: #f59e0b;
  transform: translateY(-1px);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, #fef3c7, #fffbeb);
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .promo-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.promo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.promo-title {
  font-size: 16px;
  font-weight: 800;
  color: #78350f;
}

.promo-desc {
  font-size: 13px;
  color: #92400e;
}

/* Section Headings */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.section-head p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Store Cards Grid */
.stores-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .stores-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.store-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.store-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.store-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.store-meta-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pending-chip {
  display: inline-block;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f5f5f4;
  color: #78716c;
  border: 1px dashed #d6d3d1;
  font-weight: 600;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-wa {
  background: var(--whatsapp);
  color: #ffffff;
}

.btn-wa:hover {
  background: var(--whatsapp-dark);
}

.btn-outline {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

.btn-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-red-dark);
}

/* Categories Pills on Home */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.cat-chip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all 0.15s ease;
}

.cat-chip:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-red-soft);
}

/* Catalog Search Page */
.catalog-controls {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.store-tab {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.store-tab .tab-count {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.85;
}

.store-tab.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #ffffff;
}

.search-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .search-row {
    flex-direction: row;
  }
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  font-size: 15px;
  outline: none;
  background: #fff;
}

.search-input-wrap input:focus {
  border-color: var(--brand-red);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7e5e4;
  color: #44403c;
  font-size: 14px;
  display: none;
  align-items: center;
  justify-content: center;
}

.clear-search-btn.visible {
  display: inline-flex;
}

.filter-select {
  height: 46px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14px;
  color: var(--text);
}

.catalog-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-red);
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stock-badge.a {
  background: #dcfce7;
  color: #166534;
}

.stock-badge.l {
  background: #fef3c7;
  color: #92400e;
}

.stock-badge.o {
  background: #f5f5f4;
  color: #57534e;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.page-btn {
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Store Detail & Maps */
.store-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .store-detail-card {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}

.map-box {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f5f5f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-muted);
  border-top: 1px solid #f5f5f4;
  padding-top: 12px;
}

.faq-item.open .faq-a {
  display: block;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 0;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Product Photos, Category Placeholder & Lightbox */
.photo-only-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.photo-only-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-red);
}
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.product-media img:hover {
  transform: scale(1.04);
}
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #fffbeb 0%, #f8fafc 100%);
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}
.product-placeholder .ph-icon {
  font-size: 34px;
  line-height: 1;
}
.product-placeholder .ph-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}
.photo-lightbox.open {
  display: flex;
}
.photo-lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.photo-lightbox-inner img {
  max-width: 84vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}
.photo-lightbox-cap {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
}
.photo-lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
