/* Warung Harian — Store Theme */

html, body { overflow-x: hidden; }
body { width: 100%; max-width: 100vw; }

.promo-bar--warung {
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  color: var(--color-primary);
  font-weight: 600;
}

.header--store .header__logo img { height: 38px; width: auto; max-width: 160px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  transition: background var(--transition);
  white-space: nowrap;
}

.btn--sm { padding: var(--space-sm) var(--space-md); font-size: 0.8125rem; }
.btn--accent { background: var(--color-highlight); color: var(--color-primary); }
.btn--accent:hover { background: #facc15; }

.nav-list a.active { background: var(--color-accent-light); color: var(--color-primary); }

/* Warung Hero */
.warung-hero {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2xl) 0;
}

.warung-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--space-xl);
  align-items: center;
}

.warung-hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-highlight);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.warung-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.warung-hero__desc {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.warung-hero__stats {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.warung-hero__stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-highlight);
}

.warung-hero__stat span {
  font-size: 0.8125rem;
  opacity: 0.85;
}

.warung-hero__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.hero-product {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.hero-product:hover { transform: translateY(-3px); }

.hero-product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.hero-product__body { padding: var(--space-md); }

.hero-product__name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-product__price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9375rem;
}

/* Category scroll */
.category-scroll {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: var(--space-xs);
  min-width: 0;
  max-width: 100%;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition);
}

.category-chip:hover,
.category-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Sections */
.section { padding: var(--space-xl) 0; }
.section--highlight { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.section__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.section__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
}

/* Product filter */
.product-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: var(--space-xs) var(--space-md);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Product grids */
.product-grid {
  display: grid;
  gap: var(--space-md);
  min-width: 0;
}

.product-grid--daily { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-grid--dense { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
  min-width: 0;
}

.product-card:hover { box-shadow: var(--shadow-md); }

.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-sm);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 2px 8px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-primary);
}

.product-badge--diskon { background: #dc2626; color: #fff; }
.product-badge--promo { background: var(--color-highlight); color: var(--color-primary); }
.product-badge--baru { background: #2563eb; color: #fff; }

.product-card__body { padding: var(--space-md); }

.product-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price { display: flex; align-items: baseline; gap: var(--space-xs); flex-wrap: wrap; }

.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-old {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-card--compact .product-card__body { padding: var(--space-sm) var(--space-md); }
.product-card--compact .product-card__name { font-size: 0.8125rem; }
.product-card--compact .price-current { font-size: 0.9375rem; }

/* About */
.about-section {
  padding: var(--space-2xl) 0;
  background: var(--color-accent-light);
}

.about-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}

.about-section__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.about-section__text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.about-stats {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.about-stat {
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  min-width: 100px;
}

.about-stat__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.about-stat__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.about-section__visual {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  color: #fff;
  text-align: center;
}

.about-section__visual-icon { font-size: 4rem; margin-bottom: var(--space-md); }

/* Footer */
.footer--store { background: var(--color-primary); }

.footer-store__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-store__brand img {
  margin-bottom: var(--space-md);
  height: 34px;
  width: auto;
}

.footer-store__info li {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.footer-store__wa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: #25d366;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
}

.footer-store__links h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.footer-store__links li { margin-bottom: var(--space-sm); }
.footer-store__links a { font-size: 0.875rem; opacity: 0.9; }
.footer-store__links a:hover { opacity: 1; color: #fff; }

.search-result__price { font-weight: 700; color: var(--color-primary); font-size: 0.875rem; margin-top: var(--space-xs); }

@media (max-width: 1024px) {
  .warung-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .warung-hero__products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid--daily,
  .product-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-section__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__actions .btn--sm { display: none; }
  .warung-hero__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid--daily,
  .product-grid--dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-store__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .warung-hero__products { grid-template-columns: minmax(0, 1fr); }
}
