:root {
  --color-red: #e72025;
  --color-red-dark: #c41a1f;
  --color-green: #46ae6c;
  --color-green-dark: #389058;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;
  --color-border: #e5e5e5;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* Repeating Ali-logo watermark on the white page background.
   Opaque sections (header, --alt sections, footer, hero, cards)
   paint over it, so it only shows on the white areas. */
body {
  background-image: url('../images/watermark.png');
  background-repeat: repeat;
}

img { max-width: 100%; display: block; }
a { color: var(--color-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}
.site-header__logo img { height: 48px; width: auto; }
.site-header__logo { display: flex; align-items: center; gap: 12px; }

.site-nav { display: flex; gap: 28px; }
.site-nav__link {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav__link:hover { color: var(--color-red); text-decoration: none; }
.site-nav__link--active { border-bottom-color: var(--color-green); color: var(--color-green-dark); }

.lang-switcher { display: flex; gap: 6px; }
.lang-switcher__btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s;
  font-family: inherit;
}
.lang-switcher__btn:hover { border-color: var(--color-green); color: var(--color-green-dark); }
.lang-switcher__btn--active {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%),
    url('../images/hero-bg.webp') center/cover no-repeat,
    #2a2a2a;
  padding: 120px 0 140px;
}
.hero__content {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.95);
  margin: 0 0 36px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
  font-family: inherit;
}
.btn--primary {
  background: var(--color-red);
  color: #fff;
  border-color: var(--color-red);
}
.btn--primary:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); }
.btn--secondary {
  background: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
}
.btn--secondary:hover { background: var(--color-green-dark); border-color: var(--color-green-dark); }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-green); color: var(--color-green-dark); }

/* Sections */
.section { padding: 64px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px;
}
.section__subtitle {
  text-align: center;
  color: var(--color-text-muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}
.section__cta { text-align: center; margin-top: 32px; }

/* Featured promo (home) */
.featured-promo {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: var(--shadow-sm);
}
.featured-promo__image {
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.featured-promo__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-promo__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-promo__dates { color: var(--color-green-dark); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.featured-promo__headline { font-size: 1.75rem; font-weight: 700; margin: 0 0 16px; line-height: 1.25; }
.featured-promo__desc { color: var(--color-text-muted); margin: 0 0 24px; }
@media (max-width: 768px) {
  .featured-promo { grid-template-columns: 1fr; }
  .featured-promo__body { padding: 28px; }
}

/* Brand marquee (home page) — auto-scrolls horizontally, pauses on hover */
.brand-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brand-marquee__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  animation: brandsScroll 45s linear infinite;
}
.brand-marquee:hover .brand-marquee__track {
  animation-play-state: paused;
}
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Brand grid (brands page) */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

/* Shared card style — no boxes, logos float on the section background */
.brand-card {
  background: transparent;
  border: none;
  border-radius: 0;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  color: var(--color-text-muted);
  font-weight: 600;
  text-align: center;
  flex-shrink: 0;
  box-shadow: none;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand-marquee .brand-card { width: 180px; }
.brand-card img {
  max-height: 84px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.brand-card:hover img {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}
.brand-card--placeholder {
  background: repeating-linear-gradient(
    45deg,
    #fafafa, #fafafa 8px,
    #f0f0f0 8px, #f0f0f0 16px
  );
}

/* Find nearest market */
.find-nearest {
  text-align: center;
  margin: 0 0 32px;
}
.find-nearest__result { margin-top: 20px; }
.find-nearest__error {
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: inline-block;
  margin: 0 auto;
}
.nearest-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow-md);
}
.nearest-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-green-dark);
  font-weight: 700;
  margin: 0 0 8px;
}
.nearest-card__name {
  margin: 0 0 8px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nearest-card__addr { margin: 0 0 4px; color: var(--color-text); }
.nearest-card__dist { margin: 0 0 16px; color: var(--color-text-muted); font-size: 0.95rem; }

/* Locations grid */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.location-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.15s;
}
.location-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.location-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.location-card__badge {
  background: var(--color-green);
  color: #fff;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.location-card__row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.95rem;
}
.location-card__label {
  color: var(--color-text-muted);
  font-weight: 500;
  min-width: 90px;
}
.location-card__value { color: var(--color-text); }
.location-card__hours { font-size: 0.9rem; color: var(--color-text-muted); width: 100%; }
.location-card__hours-row { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed #f0f0f0; }
.location-card__hours-row:last-child { border-bottom: none; }
.location-card__map {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  line-height: 0;
}
.location-card__map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
  filter: grayscale(0.1);
}
.location-card__directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 14px;
}

/* Flyer pages (rendered as images so they work in every browser) */
.flyer-pages {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.flyer-page {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.promo-detail__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Promotions detail */
.promo-detail {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 32px;
}
.promo-detail__header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.promo-detail__title { font-size: 1.75rem; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.promo-detail__dates { color: var(--color-green-dark); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.promo-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.promo-images img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.promo-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.promo-product {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.15s;
}
.promo-product:hover { box-shadow: var(--shadow-md); }
.promo-product__image {
  background: var(--color-bg-alt);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.85rem;
}
.promo-product__image img { max-height: 100%; max-width: 100%; object-fit: contain; padding: 12px; }
.promo-product__body { padding: 16px; }
.promo-product__name { font-weight: 600; margin: 0 0 8px; font-size: 0.95rem; }
.promo-product__prices { display: flex; align-items: baseline; gap: 8px; }
.promo-product__price--new { color: var(--color-red); font-weight: 800; font-size: 1.2rem; }
.promo-product__price--old { color: var(--color-text-muted); text-decoration: line-through; font-size: 0.9rem; }
.promo-section-title { margin-top: 32px; font-size: 1.25rem; font-weight: 700; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--color-text-muted);
}
.empty-state h3 { color: var(--color-text); margin: 0 0 8px; font-size: 1.4rem; }

/* Page header */
.page-header {
  background:
    radial-gradient(ellipse farthest-side at center, rgba(255,255,255,0) 40%, rgba(255,255,255,0.25) 100%),
    linear-gradient(135deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  padding: 64px 0 48px;
  text-align: center;
  color: #fff;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin: 0 0 12px;
}
.page-header p { color: rgba(255,255,255,0.9); margin: 0; font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: #d4d4d4;
  padding: 48px 0 24px;
  margin-top: 80px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer__brand img { height: 60px; width: auto; margin-bottom: 16px; }
.site-footer__tagline { color: #999; margin: 0; font-size: 0.95rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d4d4d4; font-size: 0.95rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
}
@media (max-width: 768px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Mobile nav */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .menu-toggle { display: block; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 48px 0; }
}
