:root {
  /* Marble page, deep teal panels, brushed brass accent */
  --bg: #082A2F;
  --bg-elevated: #0F3A40;
  --bg-card: #134349;
  --border: rgba(255, 255, 255, 0.1);
  --gold: #C9A45C;          /* gold accent (kept under the old variable name) */
  --gold-light: #E6CB8E;    /* lighter tint for hovers */
  --accent: var(--gold);
  --silver: #C0C0C0;
  --text: #F2EFEA;
  --text-muted: #A8BFBC;
  --danger: #c0392b;
  --success: #4d7a4d;
  --radius: 14px;
  --radius-panel: 28px;

  /* Headlines: wide uppercase grotesk (Archivo at width 125). Body: Inter. */
  --font-heading: 'Archivo', 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
  --heading-weight: 700;
  --heading-tracking: -0.02em;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0;
  background: transparent; /* lets the fixed fibers background show through (non-home pages) */
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-stretch: 125%;
  letter-spacing: var(--heading-tracking);
  line-height: 1.05;
  margin: 0 0 0.5em;
}

.muted { color: var(--text-muted); }
.small { font-size: 0.85em; }
.capitalize { text-transform: capitalize; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(8, 42, 47, 0.85);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.brand-accent { color: var(--gold); }

.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--gold); }

/* ---------- Labels & hero text (hero layout lives in site.css) ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0 32px;
}

.filter-pill {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: capitalize;
  color: var(--text-muted);
  transition: all 0.2s;
}

.filter-pill:hover { border-color: var(--gold); color: var(--gold-light); }

.filter-pill.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #082A2F;
  font-weight: 500;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  padding-bottom: 80px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F3A40, #164A50);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 20px;
}

.placeholder-image.large { min-height: 480px; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
}

.badge-out {
  background: rgba(192, 57, 43, 0.9);
  color: #fff;
}

.product-info { padding: 18px 20px 22px; }

.product-category {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 6px;
}

.product-name {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.product-price {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-price.large {
  color: var(--gold-light);
  font-size: 1.6rem;
  font-family: var(--font-heading);
  margin: 12px 0;
}

/* ---------- Product detail ---------- */
.product-detail { padding: 40px 24px 80px; }

.breadcrumb {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: capitalize;
  margin-bottom: 28px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
}

@media (max-width: 800px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.gallery-main img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 560px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.7;
}

.thumb.active, .thumb:hover { opacity: 1; border-color: var(--gold); }

.stock-status {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.stock-status.in-stock { background: rgba(77, 122, 77, 0.2); color: #8fd18f; }
.stock-status.out-stock { background: rgba(192, 57, 43, 0.2); color: #e58b80; }

.product-description {
  color: var(--text-muted);
  white-space: pre-line;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: #082A2F;
  font-weight: 500;
}

.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #0d0d0d;
  font-weight: 500;
  margin-bottom: 32px;
}

.btn-whatsapp:hover { background: #2ee374; }

.btn-block { display: block; width: 100%; }
.btn-large { padding: 16px 32px; font-size: 1rem; }

.inquiry-box {
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inquiry-form label, .login-form label, .product-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inquiry-form input, .inquiry-form textarea,
.login-form input,
.product-form input, .product-form textarea, .product-form select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.inquiry-form input:focus, .inquiry-form textarea:focus,
.login-form input:focus,
.product-form input:focus, .product-form textarea:focus, .product-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.success-message {
  background: rgba(77, 122, 77, 0.15);
  color: #8fd18f;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid rgba(77, 122, 77, 0.4);
}

.error-message {
  background: rgba(192, 57, 43, 0.15);
  color: #e58b80;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid rgba(192, 57, 43, 0.4);
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.brand-small {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 6px;
}

.footer-staff-link {
  margin: 18px 0 0;
}

.footer-staff-link a {
  font-size: 0.7rem;
  color: #6F9792;
  letter-spacing: 0.02em;
}

.footer-staff-link a:hover {
  color: var(--text-muted);
}
