/*
Theme Name: Bom Econom Market
Theme URI: https://bomeconom.pt/
Author: Bom Econom
Description: A lightweight grocery discount market theme inspired by the Local Market structure and adapted to Bom Econom colors.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: bomeconom-market
*/

:root {
  --bom-red: #e91f2b;
  --bom-black: #050505;
  --bom-yellow: #ffd12f;
  --bom-cream: #fff9e8;
  --bom-paper: #ffffff;
  --bom-ink: #151515;
  --bom-muted: #666666;
  --bom-border: #ece3c4;
  --bom-green: #168c49;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--bom-ink);
  background: var(--bom-paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.topbar {
  background: var(--bom-black);
  color: #fff;
  font-size: 14px;
}

.topbar__inner,
.nav__inner,
.section__inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  flex-wrap: wrap;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--bom-border);
  backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 15px 0;
}

.logo {
  width: 220px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 800;
  color: var(--bom-black);
  text-transform: uppercase;
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 6px;
  background: var(--bom-red);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(233, 31, 43, 0.2);
}

.button--dark {
  background: var(--bom-black);
  box-shadow: none;
}

.hero {
  background:
    linear-gradient(90deg, rgba(255, 209, 47, 0.95), rgba(255, 249, 232, 0.94)),
    repeating-linear-gradient(-45deg, rgba(233,31,43,.09) 0 10px, transparent 10px 22px);
  border-bottom: 8px solid var(--bom-red);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 36px;
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  min-height: 560px;
  padding: 54px 0;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 2px solid var(--bom-black);
  border-radius: 6px;
  background: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0 16px;
  color: var(--bom-black);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  text-transform: uppercase;
}

.hero__copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: #222;
  font-size: 21px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__card {
  position: relative;
  overflow: hidden;
  border: 4px solid var(--bom-black);
  border-radius: 8px;
  background: #fff;
  box-shadow: 14px 14px 0 var(--bom-red);
}

.deal-board {
  padding: 26px;
}

.deal-board__title {
  margin-bottom: 20px;
  color: var(--bom-red);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.deal-list {
  display: grid;
  gap: 13px;
}

.deal-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--bom-border);
  border-radius: 6px;
  background: var(--bom-cream);
  font-weight: 900;
}

.deal-item span {
  color: var(--bom-red);
  font-size: 22px;
}

.section {
  padding: 72px 0;
}

.section--cream {
  background: var(--bom-cream);
}

.section__heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__heading h2 {
  margin-bottom: 10px;
  color: var(--bom-black);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
}

.section__heading p {
  color: var(--bom-muted);
  font-size: 18px;
}

.features,
.stats,
.products,
.reviews {
  display: grid;
  gap: 22px;
}

.features {
  grid-template-columns: repeat(3, 1fr);
}

.feature,
.stat,
.product,
.review {
  border: 2px solid var(--bom-border);
  border-radius: 8px;
  background: #fff;
}

.feature {
  padding: 26px;
}

.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--bom-yellow);
  color: var(--bom-red);
  font-size: 26px;
  font-weight: 900;
}

.feature h3,
.review strong {
  color: var(--bom-black);
  text-transform: uppercase;
}

.products {
  grid-template-columns: repeat(4, 1fr);
}

.product {
  overflow: hidden;
}

.product__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bom-yellow), #fff 55%, rgba(233,31,43,.12));
  color: rgba(0,0,0,.18);
  font-size: 56px;
  font-weight: 900;
}

.product__body {
  padding: 18px;
}

.product__label {
  color: var(--bom-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product h3 {
  margin: 6px 0 10px;
  font-size: 17px;
}

.price {
  color: var(--bom-green);
  font-size: 26px;
  font-weight: 900;
}

.reviews {
  grid-template-columns: repeat(4, 1fr);
}

.review {
  padding: 22px;
}

.stars {
  color: var(--bom-yellow);
  text-shadow: 0 0 1px var(--bom-black);
  font-size: 20px;
}

.stats {
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 28px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--bom-red);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
}

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: stretch;
}

.visit__panel {
  padding: 34px;
  border: 3px solid var(--bom-black);
  border-radius: 8px;
  background: #fff;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 340px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(233,31,43,.82), rgba(5,5,5,.88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.15) 0 8px, transparent 8px 20px);
  color: #fff;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer {
  padding: 30px 0;
  background: var(--bom-black);
  color: #fff;
  text-align: center;
}

@media (max-width: 900px) {
  .nav__inner,
  .menu,
  .topbar__inner {
    justify-content: center;
  }

  .nav__inner,
  .menu {
    flex-wrap: wrap;
  }

  .hero__inner,
  .visit {
    grid-template-columns: 1fr;
  }

  .features,
  .products,
  .reviews,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .topbar__inner {
    font-size: 12px;
  }

  .menu {
    gap: 14px;
    font-size: 12px;
  }

  .hero__inner {
    min-height: auto;
  }

  .features,
  .products,
  .reviews,
  .stats {
    grid-template-columns: 1fr;
  }
}


/* Blog and category pages */
.menu {
    flex-wrap: wrap;
}
.blog-hero h1 {
    max-width: 760px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.blog-card,
.empty-blog {
    background: #fff;
    border: 1px solid rgba(17, 17, 17, .1);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(17, 17, 17, .08);
}
.blog-card__meta {
    color: #d71920;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.blog-card h2 {
    font-size: 24px;
    line-height: 1.18;
    margin: 0 0 12px;
}
.blog-card h2 a,
.read-more {
    color: #111;
    text-decoration: none;
}
.blog-card p {
    color: #555;
    margin-bottom: 18px;
}
.read-more {
    font-weight: 800;
    color: #d71920;
}
.pagination {
    margin-top: 28px;
}
@media (max-width: 860px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
