/* ── Design System ─────────────────────────────────────────── */
:root {
  --brand-color: #4a7c59;
  --brand-color-muted: rgba(74, 124, 89, 0.12);
  --card-radius: 12px;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --header-height: 64px;
  --slider-card-width: 240px;
  --slider-card-width-sm: 180px;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: "PT Sans", sans-serif;
  background-color: #f8f9fa;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Mirza", serif;
}

/* ── Sticky Header ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}
.site-header .header-logo {
  height: 36px;
  max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.site-header .header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.site-header .header-location {
  flex-shrink: 0;
}
.objIconLink {
  display: inline-flex;
  align-items: center;
}
.objIconLink svg {
  display: inline-block;
}

/* ── Brand Hero ─────────────────────────────────────────────── */
.brand-hero {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  margin-bottom: 24px;
}
.brand-hero h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}
.brand-hero .brand-description {
  color: #444;
  line-height: 1.7;
}
.brandLogo {
  float: left;
  margin-right: 20px;
  margin-bottom: 8px;
  border-radius: 8px;
  max-height: 80px;
  max-width: 80px;
}
.brandPhoto {
  width: 100%;
  border-radius: var(--card-radius);
  max-height: 300px;
  object-fit: cover;
}

/* ── Section Wrappers ───────────────────────────────────────── */
.page-section {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-color-muted, #e9ecef);
  color: #222;
}

/* ── Product Category Sliders ───────────────────────────────── */
.category-section {
  margin-bottom: 32px;
}
.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.category-section-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #333;
}
.slider-controls {
  display: flex;
  gap: 6px;
}
.slider-btn {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
  flex-shrink: 0;
}
.slider-btn:hover {
  background: var(--brand-color-muted, #f0f0f0);
  border-color: var(--brand-color, #aaa);
}
.product-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding-bottom: 8px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #dee2e6 transparent;
}
.product-slider::-webkit-scrollbar {
  height: 4px;
}
.product-slider::-webkit-scrollbar-track {
  background: transparent;
}
.product-slider::-webkit-scrollbar-thumb {
  background-color: #dee2e6;
  border-radius: 4px;
}
.product-slider-item {
  flex: 0 0 var(--slider-card-width);
  width: var(--slider-card-width);
}
@media (max-width: 576px) {
  .product-slider-item {
    flex: 0 0 var(--slider-card-width-sm);
    width: var(--slider-card-width-sm);
  }
}

/* ── Product Cards ──────────────────────────────────────────── */
.card {
  border-width: 0.5px;
  border-color: #d4dce0;
  border-radius: var(--card-radius);
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.cardTopImageDiv {
  min-height: 160px;
  max-height: 200px;
  overflow: hidden;
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cardTopImageDiv img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}
.card-body {
  padding: 12px;
}
.card-title {
  font-size: 0.95rem;
  min-height: auto;
  line-height: 1.3;
  margin-bottom: 6px;
}
.productPrice {
  font-family: "Mirza", serif;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--brand-color, #333);
}
.link-success {
  color: var(--brand-color, #4663ac);
  text-decoration: none;
}
.link-success:hover {
  text-decoration: underline;
}
.styled-link {
  color: var(--brand-color, #4663ac);
  text-decoration: none;
}
.no-decoration {
  text-decoration: none;
}

/* ── Store Hero (store pages) ───────────────────────────────── */
.store-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.store-hero-logo {
  flex-shrink: 0;
  max-height: 100px;
  max-width: 100px;
  border-radius: 8px;
}
.store-hero-details h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}
.storeLogo {
  float: left;
  margin-right: 20px;
  border-radius: 6px;
  max-height: 80px;
  max-width: 80px;
}
.cardStoreLogo {
  float: left;
  margin-right: 20px;
  border-radius: 5px;
  max-height: 80px;
  max-width: 80px;
}
.storeAddress {
  color: #555;
  margin-top: 4px;
}
.storePhoneNumber a {
  color: var(--brand-color, #4663ac);
  text-decoration: none;
}

/* ── SEO Stores List ────────────────────────────────────────── */
.seo-stores-section {
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  overflow: hidden;
}
.seo-stores-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: "Mirza", serif;
  font-size: 1.1rem;
  color: #333;
}
.seo-stores-toggle:hover {
  background: #f8f9fa;
}
.seo-stores-list {
  padding: 0 20px 16px;
}
.seo-store-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.seo-store-item:last-child {
  border-bottom: none;
}
.seo-store-logo {
  flex-shrink: 0;
  max-height: 48px;
  max-width: 48px;
  border-radius: 6px;
}
.seo-store-name a {
  font-weight: 600;
  color: var(--brand-color, #333);
  text-decoration: none;
  font-size: 1rem;
}
.seo-store-meta {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* ── Category Page Store Counts ─────────────────────────────── */
.store-count-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.store-count-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}
.store-count-item:last-child {
  border-bottom: none;
}
.store-count-badge {
  background: var(--brand-color-muted, #e9f5ee);
  color: var(--brand-color, #4a7c59);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Product Detail Page ────────────────────────────────────── */
.product-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.product-hero-image {
  flex: 0 0 280px;
  max-width: 280px;
}
.product-hero-image img {
  width: 100%;
  border-radius: var(--card-radius);
  max-height: 280px;
  object-fit: contain;
}
.product-hero-details {
  flex: 1;
  min-width: 200px;
}
.product-hero-details h1 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}
.productImage {
  border-radius: var(--card-radius);
  max-height: 800px;
}
.productThumbnail {
  border-radius: 5px;
  max-height: 160px;
  max-width: 160px;
}

/* ── Misc ────────────────────────────────────────────────────── */
#main-container {
  padding: 0 16px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.distance {
  font-family: "Mirza", serif;
  font-weight: bold;
  font-size: 1.3rem;
}
.tinyLogo {
  max-height: 60px;
  max-width: 60px;
}
.categoryLink {
  font-family: "Mirza", serif;
  margin-right: 16px;
  margin-bottom: 3px;
  font-size: 1.25rem;
}
.horizontalDivider {
  border-style: solid;
  border-width: 2px 0 0 0;
  border-color: var(--brand-color-muted, #F1CDB0);
}
.highlightBorder {
  border-width: 2px;
  border-color: #e03e2d;
  border-radius: 50px;
  border-style: dashed;
}
.distanceFilterLink {
  text-decoration: none;
  color: #89AEB2;
}
.tile-badge {
  padding: 7px;
  display: inline-block;
  position: relative;
  top: -25px;
  left: 25px;
  font-size: 14px;
  color: #000;
  box-shadow: grey 3px 3px 4px;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  background-color: #eee;
  border-width: 0.5px;
  border-color: #000;
}
#ageVerifyDiv {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 11;
  vertical-align: middle;
  padding-top: 200px;
}
#ageVerifyOverlay {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background-color: #fff;
  opacity: 90%;
}
#ageVerifyMessage {
  font-weight: bold;
  background-color: #fff;
}
.btn-success {
  background-color: var(--brand-color, #70AE98) !important;
  border-color: var(--brand-color, #70AE98) !important;
  border-width: 2px;
}
.card-footer {
  border-top-color: #F1CDB0 !important;
  border-top-width: 1px;
  background-color: #fff !important;
}
p {
  color: #111 !important;
}

h1 { yellow }
.link-success { text-decoration: none; }
