/* Storefront extras */
.brand-logo {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 10px;
  object-fit: contain !important;
  background: #fff;
  border: 1px solid var(--line);
}
.banner-slider {
  position: relative; 
  overflow: hidden;
  background: linear-gradient(135deg, #ccfbf1, #e2e8e6);
  border-bottom: 1px solid var(--line);
}
.banner-track {
  position: relative;
  min-height: 0;
  line-height: 0;
}
.banner-slide {
  display: none; 
  position: relative;
  color: inherit;
  text-decoration: none;
}
.banner-slide.is-active {
  display: block;
  animation: bannerIn .4s ease;
}
.banner-slide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: linear-gradient(135deg, #e8f7f3, #f3f6f5);
}
@media (min-width: 900px) {
  .banner-slide img {
    max-height: min(420px, 48vh);
    width: 100%;
    margin-inline: auto;
    object-fit: contain;
  }
}
.banner-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  background: rgba(15,28,26,.72); color: #fff; border-radius: 10px;
  font-size: .82rem; font-weight: 600; backdrop-filter: blur(6px);
  line-height: 1.35;
  pointer-events: none;
}
@media (min-width: 640px) {
  .banner-caption {
    right: auto; left: 16px; bottom: 16px;
    max-width: min(70%, 420px);
    font-size: .88rem;
  }
}
.banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.3rem;
  cursor: pointer; box-shadow: var(--shadow); z-index: 2;
}
@media (min-width: 640px) {
  .banner-nav { width: 40px; height: 40px; font-size: 1.4rem; }
}
.banner-prev { left: 8px; }
.banner-next { right: 8px; }
.banner-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.banner-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.55); cursor: pointer; padding: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.banner-dots button.is-active { background: #fff; width: 18px; }
@keyframes bannerIn {
  from { opacity: .4; }
  to { opacity: 1; }
}

/* Running text under banner */
.running-text {
  --marquee-duration: 22s;
  overflow: hidden;
  background: var(--brand-dark, #0d5c56);
  color: #ecfdf5;
  border-bottom: 1px solid rgba(15, 28, 26, 0.15);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.35; 
}
.running-text-track {
  display: flex;
  width: max-content;
  animation: marqueeRun var(--marquee-duration) linear infinite;
}
.running-text-item {
  display: inline-block;
  padding: 9px 2.5rem 9px 0;
  white-space: nowrap;
}
.running-text-item::after {
  content: '•';
  margin-left: 2.5rem;
  opacity: .55;
}
@media (prefers-reduced-motion: reduce) {
  .running-text-track { animation: none; }
  .running-text {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 9px 14px;
  }
  .running-text-track { width: auto; flex-wrap: wrap; justify-content: center; }
  .running-text-item { padding: 0; white-space: normal; }
  .running-text-item + .running-text-item { display: none; }
  .running-text-item::after { display: none; }
}
@keyframes marqueeRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Product list — minimal marketplace */
.store-section { padding: 12px 0 28px; }
.product-grid-store {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}
@media (min-width: 720px) {
  .product-grid-store {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 1024px) {
  .product-grid-store {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.product-card-min {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.product-card-min:hover {
  transform: none;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(15, 28, 26, .06);
  color: inherit;
}
.product-card-min .thumb {
  aspect-ratio: 1 / 1;
  background: #f1f5f4;
  overflow: hidden;
}
.product-card-min .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card-min .body {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.product-card-min h3 {
  margin: 0;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.2em;
}
.product-card-min .desc {
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-min .meta {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding-top: 4px;
}
.product-card-min .price {
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
}
.product-card-min .price-old {
  display: block;
  font-size: .68rem;
  margin-top: 1px;
}
.product-card-min .badge {
  font-size: .62rem;
  padding: 2px 6px;
  font-weight: 600;
  white-space: nowrap;
}

/* Admin settings tabs */
.settings-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.settings-tabs a {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem;
}
.settings-tabs a.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}

.banner-admin-preview {
  width: 100%; max-width: 280px; height: 100px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); margin-top: 6px;
}

.color-row { display: flex; gap: 10px; align-items: center; }
.color-row input[type="color"] {
  width: 48px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; cursor: pointer;
}
