/* Dalua Brazilian Jiu-Jitsu — matches the original site's palette and type
   (Roboto 700 headings, Nunito 300 body, blue rgb(58,94,171), red #e92228, dark #212121). */
:root {
  --primary: rgb(58, 94, 171);
  --primary-dark: rgb(45, 74, 138);
  --accent: #e92228;
  --dark: #212121;
  --text: #212121;
  --muted: #6b6b6b;
  --light: #f9f9f9;
  --line: rgba(0, 0, 0, 0.1);
  --white: #fff;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  --header-h: 84px;
  --font-heading: 'Roboto', Arial, sans-serif;
  --font-body: 'Nunito', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; color: inherit; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
.container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 1000; background: #fff; padding: 8px; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4em;
  padding: 0.6em 1.4em; border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; text-decoration: none;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; line-height: 1.3;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-lg { padding: 0.8em 2em; font-size: 1rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.link-btn:hover { color: var(--accent); }

.divider { width: 60px; height: 3px; border: 0; background: var(--accent); margin: 0 auto 1.4em; }
.divider--left { margin-left: 0; }

/* ---------- header ---------- */
.site-header {
  --icon-gap: 14px;
  position: sticky; top: 0; z-index: 100;
  background: var(--dark); color: #fff;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.site-header--overlay.scrolled, .site-header.scrolled { background: var(--dark); box-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { color: #fff; text-decoration: none; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.1; white-space: nowrap; }
.logo:hover { color: #fff; }
.header-menu { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.menu a {
  color: #fff; text-decoration: none; padding: 8px 9px; font-weight: 400; font-size: 0.9rem;
  border-bottom: 2px solid transparent; white-space: nowrap; display: block;
}
.menu a:hover, .menu a.active { border-bottom-color: var(--accent); color: #fff; }
.header-social { display: flex; gap: var(--icon-gap); }
.header-social a { color: #fff; font-size: 1.15rem; }
.header-social a:hover { color: var(--accent); }
/* Same space between every header icon (Facebook, Instagram, call, cart). The header row's own 24px gap
   would otherwise sit between Instagram and the phone, so pull the actions back by the difference. */
.header-actions { display: flex; gap: var(--icon-gap); align-items: center; margin-left: calc(var(--icon-gap) - 24px); }
/* Call + cart: same plain white icons as the Facebook/Instagram links. */
.header-icon { color: #fff; font-size: 1.15rem; text-decoration: none; line-height: 1; }
.header-icon:hover { color: var(--accent); }
.header-cart { position: relative; }
.cart-count {
  position: absolute; top: -9px; right: -11px; background: var(--accent); color: #fff;
  border-radius: 999px; font-size: 0.6rem; font-family: var(--font-body, inherit); min-width: 16px; height: 16px; line-height: 16px; text-align: center; padding: 0 4px;
}
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; margin-left: auto; }
.nav-toggle .fa-close { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .logo { font-size: 1.2rem; white-space: normal; }
  .header-actions { order: 2; }
  .nav-toggle { order: 3; margin-left: 0; }
  .header-menu {
    order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: flex-start;
    padding: 8px 0 16px; margin: 0;
  }
  .nav-open .header-menu { display: flex; }
  .nav-open .nav-toggle .fa-bars { display: none; }
  .nav-open .nav-toggle .fa-close { display: inline; }
  .nav-open .site-header--overlay { background: var(--dark); }
  .menu { flex-direction: column; width: 100%; }
  .menu a { display: block; padding: 10px 0; }
  .header-actions { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff; text-align: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; max-width: 900px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-sub { font-size: 1.15rem; margin-bottom: 0.4em; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section--tight { padding: 48px 0; }
.section--light { background: var(--light); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }

.media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-text__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) { .media-text { grid-template-columns: 1fr; gap: 28px; } }

.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.person { display: flex; gap: 20px; align-items: flex-start; }
.person img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.person h3 { margin-bottom: 0.3em; }
.person a { color: var(--text); text-decoration: none; }
.person a:hover { color: var(--primary); }
@media (max-width: 800px) {
  .people-grid { grid-template-columns: 1fr; }
  .person img { width: 96px; height: 96px; }
}

.calendar-embed { width: 100%; max-width: 800px; height: 600px; border: 0; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover .gallery-zoom { opacity: 1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center; padding: 40px 56px;
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; padding: 12px; }
.lightbox-close { top: 8px; right: 8px; }
.lightbox-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* map + contact */
.section--map { position: relative; padding: 0; }
.map-wrap iframe { display: block; width: 100%; height: 520px; border: 0; }
.map-card {
  position: absolute; top: 50%; left: max(16px, calc((100vw - 1170px) / 2 + 16px)); transform: translateY(-50%);
  background: #fff; padding: 32px 36px; box-shadow: 0 4px 24px rgba(0,0,0,0.17); border-radius: var(--radius); max-width: 340px;
}
.map-card h2 { font-size: 1.5rem; }
.map-card h3 { font-size: 1rem; margin: 1em 0 0.3em; }
.map-card p { margin: 0; }
@media (max-width: 700px) {
  .map-card { position: static; transform: none; max-width: none; box-shadow: none; }
  .map-wrap iframe { height: 320px; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.85); padding: 60px 0 0; font-size: 0.92rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.4em; }
.site-footer address { font-style: normal; margin-bottom: 1em; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-bottom {
  display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 18px; padding-bottom: 18px; font-size: 0.8rem;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- shop ---------- */
.shop-announcement {
  background: var(--primary); color: #fff; padding: 12px 18px; border-radius: var(--radius);
  margin-bottom: 24px; text-align: center; font-weight: 700;
}
.shop-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.shop-tabs a {
  padding: 6px 16px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none;
  color: var(--text); font-weight: 400; font-size: 0.9rem;
}
.shop-tabs a.active, .shop-tabs a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.product-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); color: var(--text); }
.product-card__img { position: relative; aspect-ratio: 1; background: var(--light); overflow: hidden; }
.product-card__img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--light); aspect-ratio: 1; }
.img-placeholder img { width: 45%; opacity: 0.35; filter: grayscale(1); }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-heading); color: #fff; background: var(--dark);
}
.badge--sale { background: var(--accent); }
.badge--preorder { background: var(--primary); }
.badge--soldout { background: #777; }
.product-card__body { padding: 16px 18px 20px; }
.product-card__cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.product-card h3 { font-size: 1.05rem; margin: 0.2em 0 0.4em; }
.price { font-family: var(--font-heading); font-weight: 700; }
.price s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.price--sale { color: var(--accent); }
.price--lg { font-size: 1.5rem; margin-bottom: 0.8em; }

.breadcrumbs { font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } }
.product-gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.product-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; background: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--primary); }
.product-info h1 { font-size: 2rem; margin-bottom: 0.3em; }
.option-group { margin-bottom: 18px; }
.option-group label, .qty-row label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn {
  min-width: 48px; padding: 8px 14px; border: 2px solid var(--line); background: #fff; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; cursor: pointer; font-size: 0.9rem;
}
.option-btn:hover { border-color: var(--primary); }
.option-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.option-btn.unavailable { color: #aaa; text-decoration: line-through; }
.option-btn.unavailable.selected { color: #fff; }
.qty-row { margin-bottom: 12px; }
.qty-row input, .qty-input { width: 80px; padding: 8px 10px; border: 2px solid var(--line); border-radius: var(--radius); font: inherit; }
.stock-msg { min-height: 1.4em; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.added-msg { margin-top: 12px; color: #2a7a2a; font-weight: 700; }
.product-description { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }

.notice { background: var(--light); border-left: 4px solid var(--primary); padding: 14px 18px; margin: 0 0 20px; border-radius: var(--radius); }
.notice--preorder { border-color: var(--primary); }
.notice--error { border-color: var(--accent); background: #fdecec; }

/* cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table th { text-align: left; font-family: var(--font-heading); font-size: 0.8rem; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px; }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tfoot td, .cart-table tfoot th { border: 0; padding: 8px; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.cart-item a { color: var(--text); text-decoration: none; }
@media (max-width: 600px) {
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .cart-table td { border: 0; padding: 4px; }
  .cart-table td.cart-item { grid-column: 1 / -1; }
}
.cart-summary { background: var(--light); padding: 24px; border-radius: var(--radius); position: sticky; top: calc(var(--header-h) + 16px); }
.fulfillment { border: 0; padding: 0; margin: 0 0 16px; }
.fulfillment legend { font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.fulfillment label { display: flex; gap: 10px; align-items: flex-start; padding: 10px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; font-size: 0.9rem; }
.fulfillment label:has(input:checked) { border-color: var(--primary); }
.fulfillment input { margin-top: 4px; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0 0 16px; }
.totals dd { margin: 0; text-align: right; }
.totals .t-total { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 8px; }
.t-discount { color: var(--accent); }
