/* ═══════════════════════════════════════════════════════════
   HeavyGear Kenya – Industrial Construction Theme
   Fonts: Bebas Neue (headings) + Barlow (body)
   Colors: #1a1a1a (dark), #F5A623 (yellow), #2c2c2c (card bg)
═══════════════════════════════════════════════════════════ */

:root {
  --yellow:      #F5A623;
  --yellow-dark: #D4881A;
  --dark:        #1a1a1a;
  --dark2:       #242424;
  --dark3:       #2e2e2e;
  --gray:        #4a4a4a;
  --gray-light:  #888;
  --bg:          #f5f5f3;
  --bg2:         #ebebea;
  --white:       #ffffff;
  --red:         #d93025;
  --green:       #2e7d32;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 30px rgba(0,0,0,.15);
  --transition:  all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 15px;
  width: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* ─────── Typography ─────── */
h1,h2,h3,h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ─────── Buttons ─────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  font-family: 'Barlow', sans-serif; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--yellow); color: #000; }
.btn-primary:hover { background: var(--yellow-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--yellow); color: var(--yellow); background: transparent; }
.btn-outline:hover { background: var(--yellow); color: #000; }
.btn-secondary { background: var(--dark2); color: var(--white); }
.btn-secondary:hover { background: var(--dark3); }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─────── Top Bar ─────── */
.topbar {
  background: var(--dark);
  color: #aaa;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #333;
  width: 100%;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left, .topbar-right { display: flex; gap: 1.2rem; }
.topbar-right a { color: #aaa; transition: color 0.2s; }
.topbar-right a:hover { color: var(--yellow); }
.topbar i { margin-right: 0.3rem; }

/* ─────── Header ─────── */
.header {
  background: var(--dark2);
  padding: 0.9rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.4);
  width: 100%;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.6rem; color: var(--white); }
.logo-icon {
  width: 44px; height: 44px;
  background: var(--yellow);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #000;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-heavy { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.05em; }
.logo-gear { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; color: var(--yellow); letter-spacing: 0.05em; }
.logo-text small { font-size: 0.65rem; color: var(--gray-light); letter-spacing: 0.15em; }

/* Search */
.header-search { position: relative; min-width: 0; }
.search-form {
  display: flex;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  min-width: 0;
}
.search-form:focus-within { border-color: var(--yellow); }
.search-cat {
  padding: 0 0.8rem;
  border: none; border-right: 1px solid #ddd;
  background: #f0f0f0;
  font-size: 0.82rem; font-family: 'Barlow', sans-serif;
  cursor: pointer; min-width: 120px;
}
.search-form input {
  flex: 1; min-width: 0; padding: 0.65rem 0.9rem;
  border: none; font-size: 0.9rem; font-family: 'Barlow', sans-serif;
  outline: none;
}
.search-form button {
  padding: 0 1rem;
  background: var(--yellow); color: #000;
  border: none; cursor: pointer; font-size: 1rem;
  transition: background 0.2s;
}
.search-form button:hover { background: var(--yellow-dark); }
.search-suggestions {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 200; display: none;
}
.search-suggestions.active { display: block; }
.suggestion-item {
  padding: 0.6rem 1rem; cursor: pointer; display: flex; justify-content: space-between;
  font-size: 0.9rem; border-bottom: 1px solid #f0f0f0;
}
.suggestion-item:hover { background: #fff8ec; }
.suggestion-item .brand { color: var(--yellow); font-size: 0.78rem; font-weight: 600; }

/* Header Actions */
.header-actions { display: flex; gap: 0.5rem; }
.action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.1rem; color: var(--white);
  padding: 0.5rem 0.8rem; border-radius: var(--radius);
  font-size: 0.75rem; transition: background 0.2s;
  position: relative;
}
.action-btn i { font-size: 1.15rem; }
.action-btn:hover { background: rgba(255,255,255,.1); }
.cart-btn { background: var(--yellow); color: #000; }
.cart-btn:hover { background: var(--yellow-dark); color: #000; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--red); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
}

/* ─────── Nav ─────── */
.main-nav { background: var(--dark); border-bottom: 2px solid var(--yellow); width: 100%; }
.nav-inner {
  display: flex; align-items: center; overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-links { list-style: none; display: flex; }
.nav-links a {
  display: flex; align-items: center; gap: 0.4rem;
  color: #bbb; font-size: 0.85rem; font-weight: 500;
  padding: 0.8rem 1rem; white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--yellow); border-bottom-color: var(--yellow);
}
.nav-links a.nav-cta {
  background: var(--yellow); color: #000 !important;
  margin: 0.25rem 0.5rem; border-radius: var(--radius);
  border-bottom: none;
}
.nav-links a.nav-cta:hover { background: var(--yellow-dark); }
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--white); padding: 0.8rem 1rem; font-size: 0.9rem; cursor: pointer;
}

/* ─────── Flash ─────── */
.flash-container { position: fixed; top: 80px; right: 1rem; z-index: 999; display: flex; flex-direction: column; gap: 0.5rem; }
.flash {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.75rem 1.2rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); font-size: 0.9rem; font-weight: 500;
  animation: slideIn 0.3s ease;
  min-width: 280px; max-width: 420px;
}
@keyframes slideIn { from { transform: translateX(120%); opacity:0; } to { transform: translateX(0); opacity:1; } }
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }
.flash-error { background: #ffebee; color: #c62828; border-left: 4px solid #c62828; }
.flash-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1565c0; }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: inherit; opacity: 0.6; }

/* ─────── Hero ─────── */
.hero { position: relative; overflow: hidden; height: 520px; }
.hero-slides { position: absolute; inset: 0; height: 100%; }
.hero-slide { position: absolute; inset: 0; background-color: #1a1a2e; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 0.7s ease;
}
.hero-slide.active { opacity: 1; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.35) 60%, transparent 100%);
}
.hero-content {
  position: relative; height: 100%; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--white); padding: 2rem 1.25rem;
}
.hero-badge {
  display: inline-block;
  background: var(--yellow); color: #000;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 0.3rem 0.8rem; border-radius: 2px;
  margin-bottom: 1rem; align-self: flex-start;
}
.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1; letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.hero-content h1 .accent { color: var(--yellow); }
.hero-content p { font-size: 1.05rem; color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; }
.stat { text-align: center; }
.stat span { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--yellow); }
.stat small { font-size: 0.75rem; color: rgba(255,255,255,.7); letter-spacing: 0.08em; }
.hero-controls {
  position: absolute; bottom: 1.5rem; right: 2rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-prev, .hero-next {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  color: var(--white); border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.hero-prev:hover, .hero-next:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
.hero-dots { display: flex; gap: 0.4rem; }
.dot {
  width: 8px; height: 8px; background: rgba(255,255,255,.4);
  border-radius: 50%; cursor: pointer; transition: background 0.2s;
}
.dot.active { background: var(--yellow); }

.hero-compact { height: 280px; }
.hero-content-compact { padding: 1.5rem 1.25rem; }
.hero-content-compact h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.hero-content-compact p { margin-bottom: 1rem; font-size: 1rem; }
.hero-content-compact .hero-actions { margin-bottom: 0; }

/* Hero selling points (top of homepage) */
.hero-slogans {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.95);
  font-weight: 650;
  font-size: 0.95rem;
}
.hero-slogan i { color: var(--yellow); }
.section-machines-first { padding-top: 2rem; }

/* ─────── Materials section (clear distinction from machines) ─────── */
.section-materials {
  background: linear-gradient(180deg, #f8f6f2 0%, var(--white) 100%);
  border-top: 4px solid #c4a35a;
  border-bottom: 1px solid #e5e0d8;
}
.section-materials .section-header-materials .section-icon { color: #8b7355; }
.section-materials .section-header h2 { color: var(--dark); }
.section-materials .section-sub { color: var(--gray); }

/* Type badges: Equipment vs Material */
.card-type-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  pointer-events: none;
}
.card-type-badge-machine {
  background: var(--dark2);
  color: var(--yellow);
  border: 1px solid rgba(255,193,7,.4);
}
.card-type-badge-material {
  background: #8b7355;
  color: var(--white);
  border: 1px solid #6d5a42;
}

/* ─────── Construction materials grid ─────── */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
  padding: 1.25rem;
  border: 2px solid #d4c4a8;
  border-radius: var(--radius);
  background: rgba(255,255,255,.4);
}
.material-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid #e5e0d8;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.material-card:hover,
.material-card-link:hover {
  border-color: #8b7355;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.material-card-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg2);
}
.material-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.material-card-photo-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(139,115,85,.9);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.material-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark3) 0%, var(--gray) 100%);
  color: rgba(255,255,255,.5);
  font-size: 2.5rem;
}
.material-card-title {
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  color: var(--dark);
  margin: 0;
  text-align: center;
  font-weight: 600;
}

/* ─────── Trust Bar ─────── */
.trust-bar { background: var(--white); border-bottom: 1px solid #eee; padding: 1rem 0; }
.trust-grid {
  display: flex; flex-wrap: wrap; gap: 0; justify-content: space-between;
}
.trust-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1rem; flex: 1 1 180px;
  border-right: 1px solid #eee;
}
.trust-item:last-child { border-right: none; }
.trust-item i { font-size: 1.5rem; color: var(--yellow); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 0.9rem; }
.trust-item small { color: var(--gray-light); font-size: 0.78rem; }

/* ─────── Brand logos bar (between machines & materials) ─────── */
.brands-bar {
  background: var(--white);
  padding: 2rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}
.brands-bar .container {
  overflow: visible;
}
.brands-bar-title {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.brands-logos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  min-height: 80px;
}
.brand-logo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 140px;
  min-width: 140px;
  height: 70px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.brand-logo-btn:hover {
  border-color: var(--yellow);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.brand-logo-btn .brand-logo-img {
  display: block;
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
.brand-logo-btn:hover .brand-logo-img {
  opacity: 1;
}

/* ─────── Sections ─────── */
.section { padding: 3rem 0; }
.section-dark { background: var(--dark2); }
.section-dark .section-header h2 { color: var(--white); }
.section-dark .see-all { color: var(--yellow); }
.section-dark .product-card {
  background: #2e2e2e;
  box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 0 1px rgba(255,255,255,.06);
}
.section-dark .product-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 2px var(--yellow);
}
.section-dark .product-name a { color: #f0f0f0; }
.section-dark .product-brand { color: #aaa; }
.section-dark .card-cat-strip { color: #ccc; }
.section-dark .price-current { color: var(--yellow); }
.section-dark .spec-pill { background: #3a3a3a; border-color: #444; color: #bbb; }
.section-dark .spec-pill strong { color: #eee; }
.section-dark .product-short-desc { color: #888; }
.section-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem; padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--yellow);
}
.section-header .section-sub { width: 100%; margin-top: 0.35rem; }
.section-header h2 { font-size: 1.6rem; }
.section-icon { color: var(--yellow); margin-right: 0.4rem; }
.see-all { color: var(--gray); font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; transition: color 0.2s; }
.see-all:hover { color: var(--yellow); }

/* ─────── Categories Grid ─────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}
.cat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.2rem 0.8rem; text-align: center;
  border: 2px solid transparent;
  transition: var(--transition);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.cat-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--yellow) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.25s;
}
.cat-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card:hover::before { opacity: 0.08; }
.cat-icon { font-size: 2rem; color: var(--yellow); margin-bottom: 0.6rem; }
.cat-name { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.03em; }
.cat-desc { font-size: 0.75rem; color: var(--gray-light); margin-top: 0.3rem; }
.cat-arrow { position: absolute; bottom: 0.6rem; right: 0.6rem; color: var(--yellow); font-size: 0.7rem; opacity: 0; transition: opacity 0.2s; }
.cat-card:hover .cat-arrow { opacity: 1; }

.section-sub {
  font-size: 0.9rem;
  color: var(--gray-light);
  margin-top: 0.25rem;
  font-weight: 400;
}
.section-dark .section-sub { color: #aaa; }

/* ─────── Machines Gallery (image folders) ─────── */
.machines-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
  border: 2px solid rgba(255,193,7,.35);
  border-radius: var(--radius);
  background: rgba(0,0,0,.15);
}
.machine-card {
  position: relative;
  background: #2e2e2e;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.machine-card:hover,
.machine-card-link:hover {
  border-color: var(--yellow);
  box-shadow: 0 8px 28px rgba(0,0,0,.4);
  transform: translateY(-2px);
}
.machine-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.machine-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.3s ease;
}
.machine-card-badge {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,.7);
  color: var(--white);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.machine-card-next {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  color: #000;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0.9;
  transition: opacity 0.2s;
  z-index: 2;
}
.machine-card-next:hover {
  opacity: 1;
  background: var(--yellow-dark);
}
.machine-card-title {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  color: var(--white);
  margin: 0;
  text-align: center;
}
.machine-card-varieties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  padding: 0 0.75rem 0.85rem;
  line-height: 1.3;
}
.variety-brand {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.variety-specs {
  display: inline-block;
  font-size: 0.82rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
}

/* Explore page varieties */
.explore-varieties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
}
.explore-varieties .variety-brand {
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
}
.explore-varieties .variety-specs {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
}

/* ─────── Product Grid (2 per row: 1,2 then 3,4 then 5,6...) ─────── */
.products-grid,
.container .products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row;
  gap: 1.5rem;
}
.products-grid-shop,
.container .products-grid-shop {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: row;
  gap: 1.25rem;
}

/* ─────── Product Card (Tile) ─────── */
.product-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.14), 0 0 0 2px var(--yellow);
}

/* IMAGE AREA */
.product-img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f2f2f0;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

/* Placeholder shown when image fails or missing */
.product-img-placeholder {
  width: 100%; height: 100%;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.product-img-placeholder i { font-size: 3.5rem; }
.product-img-placeholder.large { min-height: 340px; }

/* Hover overlay */
.card-hover-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.product-card:hover .card-hover-overlay { opacity: 1; }
.quick-view-btn {
  background: var(--yellow); color: #000;
  padding: 0.55rem 1.2rem; border-radius: 30px;
  font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; gap: 0.4rem;
  transform: translateY(8px);
  transition: transform 0.3s ease;
}
.product-card:hover .quick-view-btn { transform: translateY(0); }

/* BADGES */
.product-badges {
  position: absolute; top: 0.65rem; right: 0.65rem;
  display: flex; flex-direction: column; gap: 0.3rem; z-index: 2;
  align-items: flex-end;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px; font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.06em; line-height: 1.2;
}
.badge-sale { background: var(--red); color: var(--white); }
.badge-new  { background: #27ae60; color: var(--white); }
.badge-hot  { background: var(--yellow); color: #000; }
.badge-used { background: #555; color: var(--white); }
.badge-refurb { background: #1565c0; color: var(--white); }

/* CATEGORY STRIP */
.card-cat-strip {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #444;
}
.card-cat-strip i { font-size: 0.8rem; }

/* PRODUCT INFO */
.product-info {
  padding: 0.85rem 0.9rem 1rem;
  flex: 1; display: flex; flex-direction: column; gap: 0.35rem;
}
.product-brand {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray);
}
.brand-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.product-name { font-size: 0.97rem; font-weight: 700; line-height: 1.28; }
.product-name a { color: var(--dark); transition: color 0.18s; }
.product-name a:hover { color: var(--yellow); }
.product-short-desc {
  font-size: 0.79rem; color: var(--gray-light); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* SPEC PILLS */
.spec-pills { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.1rem 0; }
.spec-pill {
  background: #f5f5f3; border: 1px solid #e8e8e6;
  border-radius: 4px; padding: 0.18rem 0.5rem;
  font-size: 0.7rem; color: #555; white-space: nowrap;
}
.spec-pill strong { color: var(--dark); }

/* PRICE */
.product-price-row { margin-top: auto; padding-top: 0.5rem; }
.price-original {
  display: inline-block; color: var(--gray-light);
  font-size: 0.8rem; text-decoration: line-through; margin-right: 0.4rem;
}
.price-current {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--dark);
}

/* ACTIONS */
.product-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.45rem; margin-top: 0.7rem;
}
.product-actions .btn {
  justify-content: center; font-size: 0.79rem;
  padding: 0.5rem 0.4rem;
}

/* ─────── Page Banner ─────── */
.page-banner {
  background: var(--dark); color: var(--white);
  padding: 1.75rem 0;
  border-bottom: 3px solid var(--yellow);
}
.page-banner h1 { font-size: 2rem; }

/* ─────── Breadcrumb ─────── */
.breadcrumb { font-size: 0.82rem; color: var(--gray-light); margin-top: 0.3rem; }
.breadcrumb a { color: var(--yellow); }
.breadcrumb a:hover { text-decoration: underline; }

/* ─────── Explore back button ─────── */
.explore-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--yellow);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-weight: 500;
  transition: color 0.2s, transform 0.2s;
}
.explore-back-btn:hover { color: var(--white); transform: translateX(-3px); }

/* Explore banner: material vs equipment distinction */
.page-banner-machine { border-bottom-color: var(--yellow); }
.page-banner-material {
  background: #3d3428;
  border-bottom-color: #8b7355;
}
.page-banner-material .explore-back-btn { color: #c4a35a; }
.page-banner-material .explore-back-btn:hover { color: var(--white); }
.explore-type-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}
.explore-type-label-machine { background: var(--yellow); color: #000; }
.explore-type-label-material { background: #8b7355; color: var(--white); }

/* ─────── Shop Layout ─────── */
.shop-layout { position: relative; }
.shop-filters-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  background: var(--yellow);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.shop-filters-toggle:hover { background: var(--yellow-dark); }
.shop-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.shop-sidebar-overlay.is-open {
  display: block;
  opacity: 1;
}
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem; padding-top: 2rem; padding-bottom: 3rem;
  align-items: start;
}
.shop-sidebar { position: sticky; top: 90px; }
.shop-sidebar-close { display: none; }
.sidebar-block {
  background: var(--white); border-radius: var(--radius);
  padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.sidebar-block h4 {
  font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dark); margin-bottom: 0.8rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--yellow);
}
.filter-list { list-style: none; }
.filter-list li { margin-bottom: 0.15rem; }
.filter-list a {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--gray); font-size: 0.88rem; padding: 0.35rem 0.5rem;
  border-radius: 4px; transition: var(--transition);
}
.filter-list a i { margin-right: 0.4rem; width: 16px; }
.filter-list a:hover, .filter-list a.active {
  background: #fff8ec; color: var(--yellow); font-weight: 600;
}
.filter-count { background: #f0f0ee; color: var(--gray); padding: 0.1rem 0.4rem; border-radius: 10px; font-size: 0.75rem; }
.sidebar-cta {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  background: var(--yellow); border-radius: var(--radius); padding: 1.2rem;
  text-align: center; color: #000; transition: background 0.2s;
}
.sidebar-cta i { font-size: 1.5rem; }
.sidebar-cta strong { font-size: 0.9rem; }
.sidebar-cta span { font-size: 0.8rem; opacity: 0.8; }
.sidebar-cta:hover { background: var(--yellow-dark); }

.shop-materials-section { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid #eee; }
.shop-section-title { font-size: 1.25rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.shop-section-title i { color: var(--yellow); }
.shop-section-sub { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.25rem; }
.materials-grid-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.material-card-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.material-card-wrap .material-card { flex: 1; }
.material-add-form { margin: 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.shop-products-section { margin-top: 1rem; }
.shop-subsection-title { font-size: 1rem; margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; }
.shop-machines-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.shop-machine-card { position: relative; background: #2e2e2e; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.3); border: 2px solid transparent; transition: var(--transition); display: flex; flex-direction: column; }
.shop-machine-card:hover { border-color: var(--yellow); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
.machine-card-link-block { flex: 1; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.machine-card-link-block:hover { color: inherit; }
.shop-machine-quote { margin-top: 0.5rem; margin-left: 0.5rem; margin-right: 0.5rem; margin-bottom: 0.5rem; }

.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem;
}
.shop-info { font-size: 0.88rem; color: var(--gray-light); }
.shop-sort { display: flex; align-items: center; gap: 0.5rem; }
.shop-sort label { font-size: 0.85rem; color: var(--gray-light); }
.shop-sort select {
  padding: 0.4rem 0.8rem; border: 1px solid #ddd; border-radius: var(--radius);
  font-size: 0.88rem; font-family: 'Barlow', sans-serif; cursor: pointer;
}

/* ─────── Pagination ─────── */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #ddd; border-radius: var(--radius); font-size: 0.88rem;
  color: var(--gray); background: var(--white); transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 700;
}

/* ─────── Explore gallery page ─────── */
.explore-gallery-wrap { padding: 2rem 0 4rem; }
.explore-count { color: var(--gray-light); font-size: 0.9rem; margin-bottom: 1.25rem; }
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.explore-grid-item {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  aspect-ratio: 4/3;
}
.explore-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.explore-grid-item:hover img { transform: scale(1.03); }
.explore-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.explore-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.explore-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.explore-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.explore-lightbox-close:hover { background: var(--yellow); color: #000; }
.explore-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-light);
}
.explore-empty i { font-size: 4rem; color: #ddd; margin-bottom: 1rem; display: block; }
.explore-empty p { margin-bottom: 1.5rem; }

/* ─────── Empty State ─────── */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--gray-light);
}
.empty-state.full-width { grid-column: 1/-1; }
.empty-state i { font-size: 3rem; color: #ddd; margin-bottom: 1rem; display: block; }
.empty-state h3 { margin-bottom: 0.5rem; color: var(--dark); }

/* ─────── Product Detail ─────── */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; padding-top: 2rem; padding-bottom: 2rem;
  align-items: start;
}
.main-image-wrap { position: relative; border-radius: var(--radius); overflow: hidden; }
.main-image { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.thumb.active, .thumb:hover { border-color: var(--yellow); }
.detail-discount-badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  background: var(--red); color: var(--white);
  padding: 0.3rem 0.8rem; border-radius: 3px; font-weight: 700; font-size: 0.9rem;
}
.detail-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.detail-brand {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: #fff8ec; color: var(--yellow); padding: 0.2rem 0.6rem; border-radius: 3px;
}
.detail-condition {
  font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 3px;
}
.condition-new { background: #e8f5e9; color: var(--green); }
.condition-used { background: #fff3e0; color: #e65100; }
.condition-refurbished { background: #e3f2fd; color: #1565c0; }
.detail-availability { font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 0.3rem; }
.in-stock { color: var(--green); }
.out-stock { color: var(--red); }
.detail-title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
.detail-price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.detail-original-price { font-size: 1rem; color: var(--gray-light); text-decoration: line-through; }
.detail-price { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--dark); letter-spacing: 0.03em; }
.detail-save { font-size: 0.82rem; background: #ffebee; color: var(--red); padding: 0.2rem 0.6rem; border-radius: 3px; font-weight: 600; }
.detail-short-desc { color: var(--gray); margin-bottom: 1.2rem; font-size: 0.95rem; }
.detail-variants { margin-bottom: 1.2rem; }
.detail-variants label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.5rem; }
.variant-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.variant-option input { display: none; }
.variant-option span {
  display: block; padding: 0.4rem 0.8rem; border: 2px solid #ddd;
  border-radius: var(--radius); cursor: pointer; font-size: 0.85rem;
  text-align: center; line-height: 1.3; transition: var(--transition);
}
.variant-option input:checked + span { border-color: var(--yellow); background: #fff8ec; }
.qty-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.qty-row label { font-weight: 600; font-size: 0.9rem; }
.qty-control { display: flex; align-items: center; border: 1px solid #ddd; border-radius: var(--radius); overflow: hidden; }
.qty-control button { width: 34px; height: 38px; border: none; background: #f5f5f3; cursor: pointer; font-size: 1.1rem; }
.qty-control input { width: 50px; text-align: center; border: none; height: 38px; font-size: 1rem; font-family: 'Barlow', sans-serif; }
.quote-btn { width: 100%; justify-content: center; margin-top: 0.75rem; font-size: 1rem; }
.share-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.2rem; font-size: 0.85rem; color: var(--gray-light); }
.share-btn { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 0.85rem; }
.share-btn.wa { background: #25d366; }
.share-btn.fb { background: #1877f2; }

/* Tabs */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--yellow); margin-bottom: 1.5rem; }
.tab-btn {
  padding: 0.7rem 1.4rem; border: none; background: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: 0.05em; cursor: pointer; color: var(--gray-light);
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { color: var(--dark); border-bottom-color: var(--yellow); }
.tab-content { display: none; padding: 1rem 0; color: var(--gray); line-height: 1.7; }
.tab-content.active { display: block; }
.specs-table { border-collapse: collapse; width: 100%; max-width: 600px; }
.specs-table th { text-align: left; padding: 0.6rem 1rem; background: var(--bg2); color: var(--dark); font-size: 0.88rem; width: 40%; border-bottom: 1px solid #e0e0e0; }
.specs-table td { padding: 0.6rem 1rem; font-size: 0.9rem; border-bottom: 1px solid #e0e0e0; }
.specs-table tr:hover td { background: var(--bg); }

/* ─────── Promo Banner ─────── */
.promo-banner { background: var(--dark2); padding: 2.5rem 0; border-top: 3px solid var(--yellow); }
.promo-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.promo-text h3 { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--white); letter-spacing: 0.04em; }
.promo-text p { color: rgba(255,255,255,.7); max-width: 480px; margin-top: 0.3rem; }

/* ─────── Cart ─────── */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; padding-bottom: 3rem; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-table th { background: var(--dark2); color: var(--white); padding: 0.8rem 1rem; text-align: left; font-size: 0.85rem; }
.cart-table td { padding: 1rem; border-bottom: 1px solid #eee; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 0.8rem; }
.cart-product img { width: 70px; height: 60px; object-fit: cover; border-radius: 4px; }
.cart-product a { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.cart-product small { display: block; color: var(--gray-light); font-size: 0.78rem; }
.cart-qty { width: 60px; padding: 0.4rem; border: 1px solid #ddd; border-radius: 4px; text-align: center; font-size: 0.9rem; }
.cart-subtotal { font-weight: 700; }
.remove-btn { color: var(--red); font-size: 1rem; }
.cart-actions { display: flex; justify-content: space-between; margin-top: 1rem; }
.cart-summary {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  position: sticky; top: 100px;
}
.cart-summary h3 { margin-bottom: 1.2rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--yellow); }
.summary-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.summary-row.muted { color: var(--gray-light); }
.summary-row.total { font-size: 1.1rem; font-weight: 700; border-bottom: none; margin-top: 0.4rem; }
.cart-note { font-size: 0.78rem; color: var(--gray-light); margin-top: 0.8rem; text-align: center; }
.section-heading { font-size: 1.1rem; margin-bottom: 1rem; }
.cart-back-link { margin-top: 0.75rem; }
.cart-back-link a { font-size: 0.9rem; color: var(--gray); }
.checkout-form-wrap h3 { margin-bottom: 0.5rem; }
.checkout-intro { color: var(--gray-light); font-size: 0.9rem; margin-bottom: 1rem; }

.add-to-quote-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #eee; }
.add-to-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.add-to-quote-block { background: var(--white); padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.add-to-quote-block h4 { margin-bottom: 0.5rem; font-size: 1rem; }
.add-to-quote-block h4 i { margin-right: 0.35rem; color: var(--yellow); }
.add-to-quote-block p { font-size: 0.88rem; color: var(--gray); margin-bottom: 0.75rem; }
.add-materials-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.add-materials-list li { margin: 0; }
.btn-add-material { padding: 0.4rem 0.75rem; font-size: 0.85rem; border: 1px solid #ddd; border-radius: 4px; background: var(--white); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.btn-add-material:hover { border-color: var(--yellow); background: #fffef5; }
.cart-item-type { display: block; font-size: 0.75rem; color: var(--gray); }
@media (max-width: 768px) { .add-to-quote-grid { grid-template-columns: 1fr; } }

/* ─────── Contact ─────── */
.contact-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; padding-bottom: 3rem; }
.contact-form-wrap h2 { margin-bottom: 0.5rem; }
.contact-form-wrap p { color: var(--gray-light); margin-bottom: 1.5rem; }
.contact-form { background: var(--white); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--gray); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.65rem 0.9rem;
  border: 1px solid #ddd; border-radius: var(--radius);
  font-size: 0.9rem; font-family: 'Barlow', sans-serif;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--yellow); outline: none; }
.contact-info-card {
  background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.contact-info-card h3 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--yellow); }
.contact-info-list { list-style: none; }
.contact-info-list li { display: flex; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid #f0f0f0; font-size: 0.9rem; }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-list i { color: var(--yellow); width: 18px; margin-top: 3px; flex-shrink: 0; }
.contact-info-list a { color: var(--dark); }
.contact-info-list a:hover { color: var(--yellow); }
.why-list { list-style: none; }
.why-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0; font-size: 0.9rem; }
.why-list i { color: var(--green); }
.whatsapp-cta {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #25d366; color: var(--white);
  padding: 1rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1.1rem; text-align: center;
  transition: background 0.2s;
}
.whatsapp-cta:hover { background: #1da851; }
.whatsapp-cta i { font-size: 1.4rem; }

/* ─────── Why Us ─────── */
.why-us { background: var(--dark); padding: 3.5rem 0; color: var(--white); }
.why-us h2 { color: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.why-item { border-left: 3px solid var(--yellow); padding-left: 1.2rem; }
.why-num { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--yellow); line-height: 1; }
.why-item h4 { color: var(--white); margin: 0.3rem 0; }
.why-item p { color: rgba(255,255,255,.65); font-size: 0.88rem; }

/* ─────── Footer ─────── */
.footer { background: var(--dark); color: rgba(255,255,255,.7); }
.footer-top { padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2rem; }
.footer-brand { }
.footer-logo { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.footer-logo i { color: var(--yellow); }
.footer-logo strong { color: var(--yellow); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-socials { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-socials a {
  width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--yellow); color: #000; border-color: var(--yellow); }
.footer-col h4 { color: var(--white); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: rgba(255,255,255,.6); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--yellow); }
.contact-list { list-style: none; }
.contact-list li { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; font-size: 0.85rem; }
.contact-list i { color: var(--yellow); width: 16px; margin-top: 3px; flex-shrink: 0; }
.contact-list a { color: rgba(255,255,255,.6); }
.contact-list a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 0;
  font-size: 0.82rem;
}
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; color: rgba(255,255,255,.4); }

/* ─────── Responsive ─────── */
@media (max-width: 1024px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 200px 1fr; gap: 1.25rem; }
}
@media (max-width: 768px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
  .topbar-left { display: none; }
  .topbar-right { flex-wrap: wrap; gap: 0.5rem; }
  .topbar-right a { min-height: 44px; display: inline-flex; align-items: center; padding: 0.35rem 0; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 0.75rem; }
  .search-cat { display: none; }
  .search-form input { font-size: 16px; min-height: 44px; }
  .search-form button { min-width: 48px; min-height: 44px; }
  .action-btn { min-width: 48px; min-height: 48px; padding: 0.6rem; justify-content: center; }
  .main-nav .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: var(--dark); z-index: 50; box-shadow: 0 8px 20px rgba(0,0,0,.3); max-height: 70vh; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 1.25rem;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid #333;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-links a.nav-cta { margin: 0.75rem 1rem; min-height: 48px; justify-content: center; }
  .hero { height: 420px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-stats { display: none; }
  .trust-grid { flex-wrap: wrap; }
  .trust-item { flex: 1 1 45%; border-right: none; border-bottom: 1px solid #eee; padding: 1rem; }
  .shop-layout { grid-template-columns: 1fr; padding-top: 1rem; }
  .shop-filters-toggle { display: flex; }
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 200;
    background: var(--white);
    box-shadow: 4px 0 20px rgba(0,0,0,.2);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    padding: 1rem;
    padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  }
  .shop-sidebar.is-open { transform: translateX(0); }
  .shop-sidebar-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--dark2);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1.25rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .shop-sidebar-close:hover { background: var(--dark3); }
  .product-detail-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .promo-inner { flex-direction: column; text-align: center; }
  .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; }
  .cat-card { padding: 1rem 0.6rem; min-height: 100px; }
  .form-row { grid-template-columns: 1fr; }
  .btn { min-height: 44px; padding: 0.75rem 1.25rem; }
  .btn-lg { min-height: 48px; }
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea { font-size: 16px; min-height: 44px; }
}
@media (max-width: 480px) {
  .container { padding-left: 0.75rem; padding-right: 0.75rem; }
  .hero { height: 340px; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; gap: 0.5rem; }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
  .hero-slogan { font-size: 0.85rem; padding: 0.5rem 0.7rem; }
  .section { padding: 2rem 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-card .product-name a, .product-card .price-current { font-size: 0.9rem; }
  .machines-gallery { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .machine-card-title { font-size: 0.9rem; padding: 0.65rem 0.5rem; }
  .machine-card-varieties { padding: 0 0.5rem 0.6rem; }
  .variety-specs { font-size: 0.72rem; }
  .machine-card-next { width: 36px; height: 36px; }
  .materials-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .material-card-title { font-size: 0.85rem; padding: 0.6rem 0.5rem; }
  .action-btn span { display: none; }
  .flash-container { left: 0.75rem; right: 0.75rem; top: 70px; max-width: none; }
  .page-banner h1 { font-size: 1.5rem; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .shop-sort select { min-height: 44px; font-size: 16px; width: 100%; }
  .filter-list a { padding: 0.6rem 0.75rem; min-height: 44px; }
  .explore-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .explore-grid-item { min-height: 120px; }
  .brands-logos { gap: 1rem; overflow-x: auto; justify-content: flex-start; padding-bottom: 0.5rem; -webkit-overflow-scrolling: touch; min-height: 70px; }
  .brand-logo-btn { width: 110px; min-width: 110px; height: 56px; padding: 0.5rem 0.75rem; }
  .brand-logo-btn .brand-logo-img { max-width: 90px; max-height: 40px; }
}
