/**
 * Brexil — global styles
 * Mobile-first, black & gold theme
 */

:root {
  --color-bg: #080808;
  --color-bg-elevated: #101010;
  --color-surface: #151515;
  --color-surface-strong: #1a1a1a;
  --color-border: rgba(201, 169, 98, 0.22);
  --color-gold: #c9a962;
  --color-gold-bright: #e4c77a;
  --color-gold-muted: rgba(201, 169, 98, 0.65);
  --color-text: #f2efe8;
  --color-text-soft: rgba(242, 239, 232, 0.78);
  --color-muted: rgba(242, 239, 232, 0.55);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-xs: 0.4rem;
  --space-sm: 0.8rem;
  --space-md: 1.3rem;
  --space-lg: 2.2rem;
  --space-xl: 3.4rem;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --header-h: 64px;
  --max-w: 1140px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-premium: 0 30px 80px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

.nav-toggle:focus-visible {
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

p {
  margin: 0 0 var(--space-sm);
}

p:last-child {
  margin-bottom: 0;
}

code,
.mono {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
  color: var(--color-gold-muted);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(8, 8, 8, 0.97), rgba(8, 8, 8, 0.9));
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: var(--header-h);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-gold-bright);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--color-gold);
  border-radius: 1px;
}

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.site-nav.is-open {
  max-height: 320px;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.nav-list a {
  display: block;
  padding: var(--space-sm) var(--space-sm);
  color: var(--color-text-soft);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  background: rgba(201, 169, 98, 0.12);
  color: var(--color-text);
}

@media (min-width: 880px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding: 0;
    gap: 0.15rem;
  }

  .nav-list a {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.92rem;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.2rem, 7vw, 5rem) var(--space-md) clamp(2.2rem, 5vw, 3.4rem);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.95), rgba(8, 8, 8, 0));
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0d0d0d;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 1.8rem) 0;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold-muted);
  margin: 0 0 var(--space-sm);
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 1rem;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-lead {
  font-size: clamp(1rem, 2.1vw, 1.14rem);
  max-width: min(40rem, 100%);
  margin-bottom: var(--space-lg);
  color: rgba(242, 239, 232, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-points li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 98, 0.4);
  background: rgba(8, 8, 8, 0.45);
  color: var(--color-text-soft);
  font-size: 0.82rem;
}

/* ----- Sections ----- */
.section {
  padding: clamp(2.6rem, 6vw, 4.2rem) var(--space-md);
}

.section-alt {
  background: var(--color-bg-elevated);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Category / about photo strip (URLs from data/media.js via script.js) */
.section-banner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto var(--space-md);
  min-height: min(33vw, 230px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: #111;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow-premium);
}

.section-banner--short {
  min-height: min(22vw, 160px);
}

.section-header {
  margin-bottom: clamp(1.3rem, 3.2vw, 2.2rem);
  text-align: center;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0 0 var(--space-sm);
}

.section-intro {
  margin: 0 auto;
  max-width: 45ch;
  color: rgba(242, 239, 232, 0.68);
  font-size: 1rem;
}

/* Combo strip */
.combo-list {
  list-style: none;
  margin: 0 auto var(--space-lg);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  max-width: var(--max-w);
}

.combo-list li {
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-gold);
  background: rgba(201, 169, 98, 0.06);
}

.combos-highlight {
  background: linear-gradient(180deg, rgba(201, 169, 98, 0.08), transparent 45%), var(--color-bg);
}

/* Product grid — minmax(0,1fr) lets two columns stay side-by-side (avoids content min-width blowout) */
.product-grid {
  display: grid;
  gap: clamp(1rem, 2.1vw, 1.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  min-width: 0;
  background: linear-gradient(180deg, var(--color-surface-strong) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(228, 199, 122, 0.45);
  box-shadow: var(--shadow-premium);
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
  background: #0d0d0d;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.product-card-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.03);
}

.product-card-body {
  padding: 1.05rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-card-title {
  font-size: 1.3rem;
  margin: 0;
}

.product-card-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 0.65rem;
}

.product-card-price {
  font-weight: 600;
  color: var(--color-gold-bright);
  margin: 0 0 var(--space-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.12rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #dabc70, #b08942);
  color: #111;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(176, 137, 66, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.08);
  color: #111;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.28);
  border-color: var(--color-border);
  color: var(--color-text-soft);
}

.btn-ghost:hover {
  border-color: rgba(228, 199, 122, 0.6);
  color: var(--color-text);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1d2c23, #21352a);
  border-color: rgba(201, 169, 98, 0.45);
  color: #e8f5e9;
  box-shadow: 0 8px 20px rgba(8, 22, 13, 0.4);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #223429, #284033);
  color: #fff;
  transform: translateY(-1px);
}

.product-card-order {
  width: 100%;
  margin-top: auto;
}

/* Mobile: always 2 columns (50% − half gap each), compact cards; desktop unchanged at 900px+ (3 cols) */
@media (max-width: 768px) {
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.5rem;
    row-gap: 0.65rem;
  }

  .product-card-image-wrap {
    aspect-ratio: auto;
    height: 120px;
    min-height: 120px;
    max-height: 120px;
  }

  .product-card-image {
    height: 100%;
    min-height: 0;
    width: 100%;
    object-fit: cover;
  }

  .product-card-body {
    padding: 0.55rem 0.45rem 0.6rem;
    gap: 0.3rem;
  }

  .product-card-title {
    font-size: 0.98rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-card-desc {
    font-size: 0.74rem;
    line-height: 1.32;
    margin-bottom: 0.35rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .product-card-price {
    font-size: 0.78rem;
  }

  .product-card .product-card-order {
    font-size: 0.72rem;
    padding: 0.5rem 0.3rem;
    min-height: 2.75rem;
    line-height: 1.2;
    box-sizing: border-box;
  }
}

/* About */
.about-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface-strong), var(--color-surface));
  box-shadow: var(--shadow-card);
}

.about-card-title {
  font-size: 1.2rem;
  margin: 0 0 var(--space-xs);
  color: var(--color-gold);
}

/* Contact */
.contact-inner {
  text-align: center;
}

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-surface-strong), var(--color-surface));
  box-shadow: var(--shadow-premium);
}

.contact-card p {
  margin-bottom: var(--space-md);
}

.contact-wa {
  width: 100%;
  margin-bottom: var(--space-md);
  max-width: 280px;
}

.contact-note {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: clamp(2rem, 5vw, 3rem) var(--space-md);
  background: linear-gradient(180deg, #070707 0%, #030303 100%);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin: 0 0 var(--space-xs);
}

.footer-tagline {
  color: rgba(242, 239, 232, 0.68);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.footer-whatsapp {
  margin: 0 auto 1rem;
  min-width: 220px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: var(--space-sm);
}

.footer-link {
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    gap: 0.45rem;
  }

  .hero-points li {
    font-size: 0.78rem;
  }

  .section-banner {
    min-height: 170px;
  }
}
/* FORCE MOBILE PRODUCT GRID - 2 CARDS PER ROW */
@media (max-width: 768px) {
  .products-grid,
  .product-grid,
  .category-products,
  .product-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .product-card {
    width: 100% !important;
    max-width: none !important;
    padding: 10px !important;
  }

  .product-card img,
  .product-image,
  .product-card .product-img {
    width: 100% !important;
    height: 130px !important;
    object-fit: cover !important;
  }

  .product-card h3,
  .product-card .product-title {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .product-card p,
  .product-card .product-description {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .product-card a,
  .product-card button {
    font-size: 12px !important;
    padding: 8px 6px !important;
  }
}/* FORCE 2 PRODUCT CARDS PER ROW ON MOBILE */
@media (max-width: 768px) {
  section.category-section .product-grid[data-category] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  section.category-section .product-card {
    padding: 8px !important;
    border-radius: 14px !important;
  }

  section.category-section .product-card-image {
    height: 120px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  section.category-section .product-card h3 {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  section.category-section .product-card p {
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  section.category-section .product-card .btn,
  section.category-section .product-card a {
    font-size: 11px !important;
    padding: 7px 5px !important;
  }
}@media (max-width: 768px) {
  .product-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .product-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  .product-card img {
    height: 120px;
    object-fit: cover;
  }
}