*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #d71920;
  --red-dark: #b0141a;
  --white: #ffffff;
  --nav-height: 80px;
  --logo-size: 280px;
  --line-thickness: 3px;
  --header-offset: 0px;
  --nav-gap: 60px;
  --hero-height: 380px;
  --store-list-item-height: 72px;
}

body {
  font-family: 'Rubik', sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* ── Header wrapper ── */
.header {
  position: relative;
  background: var(--white);
  overflow: visible;
}

/* ── Top red menu bar ── */
.top-nav {
  background: var(--red);
  width: 100%;
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.top-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 32px;
  list-style: none;
}

.top-nav__list a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.top-nav__list a:hover {
  opacity: 0.8;
}

.top-nav__search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: min(100%, 360px);
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  margin-left: auto;
}

.top-nav__search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-nav__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #222;
  outline: none;
}

.top-nav__search-input::placeholder {
  color: #888;
  font-weight: 700;
}

.top-nav__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.top-nav__search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--red);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.top-nav__search-btn:hover {
  opacity: 0.75;
}

/* ── Navigation bar ── */
.nav-bar {
  margin-top: calc(var(--header-offset) + var(--nav-gap));
  position: relative;
  z-index: 10;
  background: var(--white);
  min-height: var(--nav-height);
  overflow: visible;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border-top: var(--line-thickness) solid var(--red);
  border-bottom: var(--line-thickness) solid var(--red);
}

.nav-bar__ticker-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 5;
}

.nav-bar__ticker {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-left: 64px;
  white-space: nowrap;
  animation: nav-bar-ticker 70s linear infinite;
  will-change: transform;
}

.nav-bar__ticker span:not(.nav-bar__ticker-sep) {
  font-weight: 900;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  flex-shrink: 0;
}

.nav-bar__ticker-sep {
  font-weight: 900;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  color: var(--red);
  opacity: 0.45;
  flex-shrink: 0;
  padding: 0 8px;
}

@keyframes nav-bar-ticker {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Logo overlapping the nav bar */
.nav-bar__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: block;
  line-height: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
}

.nav-bar__logo:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.nav-bar__logo img {
  width: var(--logo-size);
  height: auto;
  display: block;
}

/* ── Hero slider ── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #eee;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: var(--hero-height);
}

.hero-slider__slides {
  position: absolute;
  inset: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.hero-slider__slide--active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slider__slide:first-child img {
  object-position: center 25%;
}

/* Dot indicators */
.hero-slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-slider__dot--active,
.hero-slider__dot:hover {
  background: var(--red);
  transform: scale(1.15);
}

/* ── Category navigation ── */
.category-nav {
  background: var(--white);
  padding: 72px 24px 48px;
  margin-top: 24px;
}

.category-nav__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.category-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  box-shadow: none;
  filter: none;
  transition: opacity 0.2s ease;
}

.category-nav__item:hover {
  opacity: 0.85;
}

.category-nav__title {
  font-weight: 900;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 16px;
  text-align: center;
}

.category-nav__visual {
  position: relative;
  display: block;
  width: 100%;
}

.category-nav__visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  box-shadow: none;
  filter: none;
  border: none;
  outline: none;
}

.category-nav__badge {
  position: absolute;
  top: 0;
  right: 8%;
  z-index: 1;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  line-height: 1;
  padding: 6px 10px;
  border-radius: 4px;
}

/* ── Phone orders ── */
.phone-orders {
  background: var(--white);
  padding: 48px 24px 56px;
}

.phone-orders__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.phone-orders__title {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  text-align: center;
  padding: 16px 28px;
  border-radius: 999px;
  margin-bottom: 36px;
  line-height: 1.35;
}

.phone-orders__title span {
  font-weight: 700;
  opacity: 0.92;
}

.phone-orders__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phone-orders__card {
  background: #fafafa;
  padding: 28px 24px 32px;
  border-top: var(--line-thickness) solid var(--red);
}

.phone-orders__card-title {
  color: var(--red);
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e8e8;
}

.phone-orders__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-orders__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.phone-orders__list a:hover {
  color: var(--red);
}

.phone-orders__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--red);
}

/* ── Flyers ── */
.flyers {
  background: #f0f0f0;
  padding: 48px 24px 56px;
}

.flyers__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.flyers__title {
  color: var(--red);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
}

.flyers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.flyers__card {
  display: flex;
  flex-direction: column;
  border-top: var(--line-thickness) solid var(--red);
  background: var(--white);
  padding: 24px;
}

.flyers__card-title {
  color: var(--red);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 16px;
  text-align: center;
}

.flyers__preview {
  width: 100%;
  aspect-ratio: 210 / 265;
  background: var(--white);
  border: 1px solid #e5e5e5;
  margin-bottom: 16px;
  overflow: hidden;
}

.flyers__preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.flyers__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.flyers__download:hover {
  background: var(--red-dark);
}

.flyers__download svg {
  width: 18px;
  height: 18px;
}

.flyers__note {
  margin-top: 28px;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5;
}

/* ── Stores map ── */
.stores-map-section {
  background: var(--white);
  padding: 48px 24px 56px;
}

.stores-map-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.stores-map-section__title {
  color: var(--red);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stores-map-section__subtitle {
  text-align: center;
  color: #555;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.stores-map-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: stretch;
}

.stores-map-section__map {
  width: 100%;
  height: 520px;
  background: #e8e8e8;
  border-top: var(--line-thickness) solid var(--red);
  z-index: 1;
}

.stores-map-section__sidebar {
  display: flex;
  flex-direction: column;
  height: 520px;
  border-top: var(--line-thickness) solid var(--red);
  background: var(--white);
  overflow: hidden;
}

.stores-map-section__detail {
  padding: 20px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  overflow-y: auto;
}

.stores-map-section__detail--empty {
  display: none;
}

.stores-map-section__detail-city {
  color: var(--red);
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.stores-map-section__detail-address {
  color: #333;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.stores-map-section__detail-desc {
  color: #666;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

.stores-map-section__hours-title {
  caption-side: top;
  text-align: left;
  color: var(--red);
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.stores-map-section__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.stores-map-section__hours th {
  text-align: left;
  font-weight: 700;
  color: #555;
  padding: 4px 12px 4px 0;
  white-space: nowrap;
}

.stores-map-section__hours td {
  font-weight: 700;
  color: #333;
  padding: 4px 0;
}

.stores-map-section__hours-closed {
  color: #999;
}

.stores-map-section__list {
  list-style: none;
  background: var(--white);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.stores-map-section__sidebar--selected .stores-map-section__list {
  flex: 0 0 calc(var(--store-list-item-height) * 3);
  max-height: calc(var(--store-list-item-height) * 3);
  margin-top: auto;
}

.stores-map-section__list-item {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  padding: 12px 20px;
  min-height: var(--store-list-item-height);
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease;
}

.stores-map-section__list-item:hover,
.stores-map-section__list-item--active {
  background: #fdf0f0;
}

.stores-map-section__list-city {
  display: block;
  color: var(--red);
  font-weight: 900;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.stores-map-section__list-address {
  display: block;
  color: #444;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
}

.stores-map__marker {
  background: transparent;
  border: none;
}

.stores-map__marker span {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--red);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.stores-map-section__map .leaflet-popup-content {
  font-family: 'Rubik', sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 10px 14px;
}

.stores-map-section__map .leaflet-popup-content a {
  color: var(--red);
  font-weight: 700;
}

/* ── Footer ── */
.footer {
  background: var(--white);
  border-top: var(--line-thickness) solid var(--red);
  padding: 48px 24px 0;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1.2fr;
  gap: 32px 24px;
  padding-bottom: 36px;
}

.footer__heading {
  color: var(--red);
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.footer__logo {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.footer__logo:hover {
  opacity: 0.85;
}

.footer__logo img {
  width: 160px;
  height: auto;
  display: block;
}

.footer__nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  color: #333;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--red);
}

.footer__blog {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__blog-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  transition: opacity 0.2s ease;
}

.footer__blog-item:hover {
  opacity: 0.8;
}

.footer__blog-item img {
  width: 72px;
  height: 48px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  display: block;
}

.footer__blog-item span {
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.35;
}

.footer__contact {
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #444;
}

.footer__contact strong {
  color: var(--red);
  font-weight: 900;
}

.footer__contact a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: var(--red);
}

.footer__bottom {
  border-top: 1px solid #e8e8e8;
  padding: 20px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copy {
  color: #666;
  font-weight: 700;
  font-size: 0.85rem;
}

.footer__credit {
  color: #888;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__credit:hover {
  color: var(--red);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  :root {
    --logo-size: 200px;
    --nav-height: 64px;
    --header-offset: 0px;
    --nav-gap: 36px;
    --hero-height: 220px;
  }

  .nav-bar {
    margin-top: calc(var(--header-offset) + var(--nav-gap));
  }

  .top-nav__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px 16px;
  }

  .top-nav__list {
    gap: 6px 16px;
    justify-content: flex-start;
  }

  .top-nav__list a {
    font-size: 0.8rem;
  }

  .top-nav__search {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .nav-bar__ticker {
    gap: 40px;
    padding-left: 40px;
    animation-duration: 55s;
  }

  .nav-bar__ticker span:not(.nav-bar__ticker-sep) {
    font-size: 1rem;
  }

  .nav-bar__ticker-sep {
    font-size: 1rem;
  }

  .category-nav {
    padding: 48px 16px 36px;
    margin-top: 16px;
  }

  .category-nav__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 360px;
  }

  .category-nav__visual img {
    max-height: 180px;
  }

  .phone-orders {
    padding: 36px 16px 44px;
  }

  .phone-orders__title {
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
  }

  .phone-orders__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .phone-orders__card {
    padding: 22px 20px 26px;
  }

  .flyers {
    padding: 36px 16px 44px;
  }

  .flyers__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flyers__card {
    padding: 20px 16px;
  }

  .stores-map-section {
    padding: 36px 16px 44px;
  }

  .stores-map-section__layout {
    grid-template-columns: 1fr;
  }

  .stores-map-section__sidebar {
    height: auto;
  }

  .stores-map-section__map {
    height: 320px;
  }

  .stores-map-section__sidebar--selected .stores-map-section__list {
    flex: 0 0 calc(var(--store-list-item-height) * 3);
    max-height: calc(var(--store-list-item-height) * 3);
  }
}

@media (max-width: 400px) {
  :root {
    --logo-size: 170px;
  }

  .nav-bar__ticker span:not(.nav-bar__ticker-sep) {
    font-size: 0.85rem;
  }

  .nav-bar__ticker-sep {
    font-size: 0.85rem;
  }

  .footer {
    padding: 36px 16px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer__col--logo {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer__logo img {
    width: 140px;
    margin: 0 auto;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}
