/* Find a Store — TSC reference layout, app-like mobile */

.page-stores {
  background: #faf7ef;
  font-family: 'Poppins', sans-serif;
  color: #5a4d22;
}

.page-stores .category-circles-bar {
  display: none !important;
}

.page-stores #main-content {
  padding: 0;
}

.page-stores .site-footer {
  margin-top: 0;
}

/* Mobile app bar */
.stores-app-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #e8edf2;
  position: sticky;
  top: 0;
  z-index: 40;
}

.stores-app-back,
.stores-app-call {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.stores-app-back {
  background: #f1f5f9;
  color: #5a4d22;
  font-weight: 700;
}

.stores-app-call {
  background: #5a4d22;
  color: #fff;
}

.stores-app-bar h1 {
  margin: 0;
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

/* Hero */
.stores-hero-block {
  background: #5a4d22;
}

.stores-hero__media {
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: #3d3510;
}

.stores-hero__media picture {
  display: block;
  width: 100%;
}

.stores-hero__img,
.stores-hero__video {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
  vertical-align: top;
}

.stores-hero__video {
  max-height: min(52vh, 480px);
  object-fit: cover;
}

.stores-hero__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.stores-hero__placeholder small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.7;
}

/* Category tabs below hero (TSC navy bar) */
.stores-hero-tabs {
  background: #5a4d22;
  padding: 0;
}

.stores-hero-tabs__scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px 14px;
}

.stores-hero-tabs__scroll::-webkit-scrollbar {
  display: none;
}

.stores-hero-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 6px 14px;
  min-width: 72px;
  font-family: inherit;
}

.stores-hero-tab__thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.stores-hero-tab__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stores-hero-tab__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  max-width: 88px;
  line-height: 1.2;
  white-space: nowrap;
}

.stores-hero-tab.is-active .stores-hero-tab__thumb {
  border-color: #e8cc70;
  transform: scale(1.04);
}

.stores-hero-tab.is-active .stores-hero-tab__label {
  color: #fff;
  background: #f5e6b8;
  color: #5a4d22;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 700;
}

/* Text-only tab when no thumb */
.stores-hero-tab:not(:has(.stores-hero-tab__thumb)) .stores-hero-tab__label {
  padding: 8px 16px;
  border-radius: 999px;
}

.stores-hero-tab:not(:has(.stores-hero-tab__thumb)).is-active .stores-hero-tab__label {
  background: #f5e6b8;
  color: #5a4d22;
}

/* Sections */
.stores-section {
  padding: 16px 0 20px;
  background: #fff;
}

.stores-section--near {
  padding-top: 18px;
}

.stores-section--cities,
.stores-section--topcat {
  background: #faf7ef;
  padding-top: 14px;
  padding-bottom: 18px;
}

.stores-section--faq {
  background: #fff;
  padding-top: 14px;
  padding-bottom: 28px;
}

.stores-section__title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: #5a4d22;
  margin: 0 40px 12px;
  letter-spacing: -0.01em;
  font-family: 'Poppins', sans-serif;
}

.stores-section__title--center {
  text-align: center;
}

.stores-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
}

.stores-empty--compact {
  padding: 14px;
}

.stores-section__cta-wrap {
  text-align: center;
  margin-top: 16px;
}

.stores-btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid #e53935;
  color: #e53935;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
}

/* Stores near you — TSC card */
.stores-near-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stores-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-card-tsc {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 16px rgba(74, 63, 26, 0.08);
  border: 1px solid #faf6ed;
}

.store-card-tsc__img {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 160px;
  background: #fef8ea;
}

.store-card-tsc__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.store-card-tsc__ph {
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(180deg, #faecc8, #f0d890);
}

.store-card-tsc__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(74, 63, 26, 0.82);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.store-card-tsc__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}

.store-card-tsc__badge--open i {
  background: #22c55e;
}

.store-card-tsc__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.store-card-tsc__row h3 {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #5a4d22;
  flex: 1;
}

.store-card-tsc__google {
  text-align: right;
  flex-shrink: 0;
}

.store-card-tsc__g {
  display: inline-flex;
  width: 16px;
  height: 16px;
  background: #c9a227;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.store-card-tsc__score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5a4d22;
}

.store-card-tsc__reviews {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
}

.store-card-tsc__loc {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 0 10px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.store-card-tsc__loc svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.store-card-tsc__timings {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef8ea;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5a4d22;
  margin-bottom: 10px;
  gap: 8px;
}

.store-card-tsc__km {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #5a4d22;
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.store-card-tsc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 12px;
}

.store-card-tsc__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #b8860b;
  text-decoration: none;
  font-weight: 500;
}

.store-card-tsc__cta {
  display: block;
  text-align: center;
  background: #e53935;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 10px;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.stores-map-wrap {
  display: none;
  border-radius: 12px;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid #e2e8f0;
}

.stores-map {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
}

/* Cities — round TSC */
.stores-cities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
}

.stores-city-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #5a4d22;
}

.stores-city-item__circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(165deg, #e8cc70 0%, #f5e6b8 50%, #fef8ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(232, 204, 120, 0.35);
}

.stores-city-item__circle img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.stores-city-item__letter {
  font-size: 1.75rem;
  font-weight: 800;
  color: #5a4d22;
  opacity: 0.4;
}

.stores-city-item__name {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.stores-city-item__count {
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  margin-top: 4px;
}

/* Top categories — header circle images from Categories admin */
.stores-section--topcat {
  padding-top: 14px;
  padding-bottom: 18px;
}

.stores-topcat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.stores-topcat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #5a4d22;
}

.stores-topcat-item__circle {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(165deg, #5a4d22 0%, #7a6528 40%, #e8cc70 100%);
  box-shadow: 0 6px 20px rgba(74, 63, 26, 0.2);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  position: relative;
  margin-bottom: 10px;
}

.stores-topcat-item__circle::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: rgba(198, 233, 247, 0.55);
  z-index: 0;
}

.stores-topcat-item__circle img {
  width: 115%;
  height: 115%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(8px);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.stores-topcat-item__name {
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  max-width: 100px;
  color: #334155;
}

/* FAQ cards */
.stores-faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stores-faq-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(74, 63, 26, 0.04);
}

.stores-faq-card__q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: none;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.stores-faq-card__num {
  font-size: 1.35rem;
  font-weight: 300;
  color: #e8cc70;
  min-width: 32px;
}

.stores-faq-card__text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5a4d22;
  line-height: 1.35;
}

.stores-faq-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  position: relative;
  flex-shrink: 0;
}

.stores-faq-card__icon::before,
.stores-faq-card__icon::after {
  content: '';
  position: absolute;
  background: #64748b;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.stores-faq-card__icon::before {
  width: 12px;
  height: 2px;
}

.stores-faq-card__icon::after {
  width: 2px;
  height: 12px;
  transition: transform 0.2s ease;
}

.stores-faq-card.is-open .stores-faq-card__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.stores-faq-card.is-open {
  border-color: #f5e6b8;
  box-shadow: 0 4px 16px rgba(232, 204, 120, 0.2);
}

.stores-faq-card__a {
  padding: 0 18px 18px 64px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

/* Mobile app layout */
@media (max-width: 991.98px) {
  .stores-hero__media {
    max-height: none;
  }

  .stores-hero__img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .stores-list {
    flex-direction: column;
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .store-card-tsc {
    grid-template-columns: 110px 1fr;
  }

  .stores-map-wrap--mobile {
    display: block !important;
    margin-top: 16px;
    min-height: 240px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
  }

  .stores-map-wrap--mobile .stores-map {
    min-height: 240px;
  }

  .stores-cities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 10px;
  }

  .stores-city-item__circle {
    width: 76px;
    height: 76px;
  }

  .stores-city-item__name {
    font-size: 0.85rem;
  }

  .stores-topcat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
  }

  .stores-topcat-item__circle {
    max-width: 100px;
  }

  .stores-topcat-item__name {
    font-size: 0.8rem;
  }
}

@media (min-width: 992px) {
  .stores-app-bar {
    display: none;
  }

  .stores-hero__media {
    max-height: none;
  }

  .stores-hero__img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .stores-hero-tab__thumb {
    width: 56px;
    height: 56px;
  }

  .stores-near-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .stores-map-wrap {
    display: block;
    position: sticky;
    top: 90px;
  }

  .store-card-tsc {
    grid-template-columns: 130px 1fr;
  }
}

@media (max-width: 575.98px) {
  .stores-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stores-topcat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .store-card-tsc {
    grid-template-columns: 1fr;
  }

  .store-card-tsc__img {
    min-height: 140px;
  }

  .store-card-tsc__img img,
  .store-card-tsc__ph {
    min-height: 140px;
  }
}
