/* 05-home.css — Home: brand banner carousel, local brands, brand shortcuts, category shortcuts.
   Part of the old css/styles.css (lines 1008–1254); unused rules since removed.
   The number is the load order: later files override earlier ones, exactly
   as later lines in the single file used to. Keep them linked in order. */

/* ── Brand Banner Carousel ── */
.banner-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 0 1rem;
  /* Banner fills from very top (behind transparent header) + its own visual height */
  height: 256px;
}

.brand-banner-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.brand-banner-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  user-select: none;
}

.brand-banner-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04); /* slight over-scale so edges don't show on pan */
  transition: transform 6s ease;
}
.brand-banner-slide.active .brand-banner-bg {
  transform: scale(1); /* subtle Ken Burns */
}

.brand-banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 20px 44px;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.28) 0%,
    transparent 35%,
    transparent 50%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events: none;
}

.brand-banner-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2.5px solid rgba(255,255,255,0.85);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  flex-shrink: 0;
}

.brand-banner-icon {
  font-size: 32px !important;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}

.brand-banner-text {
  flex: 1;
  min-width: 0;
}

.brand-banner-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-banner-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-banner-cta {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 20px;
  padding: 5px 12px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

/* Dots */
.brand-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.brand-banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-banner-dot.active {
  width: 20px;
  border-radius: 3px;
  background: #fff;
}

/* Skeleton while brands load */
.skeleton-banner {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #e8e8e8 25%, #d4d4d4 50%, #e8e8e8 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite;
}

.brands-container, .categories-container { margin: 1.5rem 0 1rem; padding: 0; }
.products-container { padding: 0 0 2rem; }
.section-title { font-weight: 600; font-size: 0.95rem; margin: 0 0 0.8rem; color: #222; padding: 0 1rem; display: flex; align-items: center; }
.section-title-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 0.8rem;
}
.section-title-row .section-title { margin: 0; padding: 0 0 0 1rem; }
.section-see-more {
  font-size: 0.75rem; font-weight: 600; color: #19378C;
  background: none; border: none; padding: 0 1rem 0 0.5rem; margin: 0;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.section-see-more:active { opacity: 0.6; }

/* ── Local Brands label ── */
.local-brands-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Nunito', 'Fredoka One', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #19378C;
  padding: 0 1rem;
  margin: 0 0 0.8rem;
  width: 100%;
  position: relative;
}

/* ── Brand Shortcuts ── */
.brand-shortcuts {
  display: flex; gap: 0.8rem; overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-padding: 0 1rem;
  scroll-behavior: smooth;
}
.brand-shortcuts::-webkit-scrollbar { height: 3px; }
.brand-shortcuts::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
.brand-shortcuts .brand {
  flex: 0 0 auto; text-align: center; min-width: 60px;
  opacity: 0; transform: translateX(20px); transition: 0.4s;
  cursor: pointer; display: flex; flex-direction: column; align-items: center;
}
.brand-shortcuts .brand.show { opacity: 1; transform: translateX(0); }
.brand-shortcuts .brand img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  margin-bottom: 0.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  outline: 2.5px solid #e8f0fe;
  transition: outline-color 0.25s ease, transform 0.2s ease;
}
.brand-shortcuts .brand:active img { transform: scale(0.93); outline-color: #19378C; }
.brand-shortcuts .brand span {
  font-size: 0.68rem; font-weight: 600; white-space: nowrap;
  text-align: center; color: #2c3e50; width: 100%;
}

/* ── Category Shortcuts — rounded-rect tiles, NOT circles ── */
.category-shortcuts {
  display: flex; gap: 0.8rem; overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-padding: 0 1rem;
  scroll-behavior: smooth;
}
.category-shortcuts::-webkit-scrollbar { height: 3px; }
.category-shortcuts::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
.category-shortcuts .cat {
  flex: 0 0 auto; text-align: center; min-width: 68px;
  opacity: 0; transform: translateX(20px); transition: 0.4s;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.category-shortcuts .cat.show { opacity: 1; transform: translateX(0); }
.category-shortcuts .cat img {
  width: 58px; height: 58px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  border: 2px solid #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-shortcuts .cat:active img { transform: scale(0.94); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.category-shortcuts .cat span {
  font-size: 0.68rem; font-weight: 600; white-space: nowrap;
  text-align: center; color: #2c3e50; width: 100%;
}
