/* ============================================
   GIVE AND TAKE MASE HARDWARE — Design System
   ============================================ */
:root {
  --navy-900: #0A1638;
  --navy-800: #0E1F4D;
  --navy-700: #1B2F6B;
  --navy-600: #2A4488;
  --navy-100: #E8ECF7;
  --navy-50:  #F4F6FB;

  --gray-900: #1A1F2E;
  --gray-700: #3D4658;
  --gray-500: #5B6478;
  --gray-400: #8A93A6;
  --gray-300: #C4CAD6;
  --gray-200: #E2E5EC;
  --gray-100: #F1F3F7;
  --gray-50:  #F8F9FB;

  --white: #FFFFFF;

  --amber: #F59E0B;
  --amber-dark: #D97706;
  --amber-light: #FEF3C7;

  --green: #16A34A;
  --green-light: #DCFCE7;
  --red: #DC2626;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 56, 0.06), 0 1px 3px rgba(10, 22, 56, 0.04);
  --shadow: 0 4px 12px rgba(10, 22, 56, 0.06), 0 2px 4px rgba(10, 22, 56, 0.04);
  --shadow-lg: 0 16px 40px rgba(10, 22, 56, 0.12), 0 4px 12px rgba(10, 22, 56, 0.06);

  --container: 1280px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Bebas Neue', 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ===== Layout ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
}

/* ===== Display type ===== */
.display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  line-height: 0.95;
  font-weight: 400;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.eyebrow.eyebrow-light { color: var(--amber); }

h1, h2, h3, h4 { font-weight: 700; color: var(--gray-900); line-height: 1.2; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--navy-800);
  text-transform: uppercase;
}
.section-sub {
  color: var(--gray-500);
  font-size: 16px;
  margin-top: 14px;
  max-width: 640px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow); }

.btn-amber {
  background: var(--amber);
  color: var(--navy-900);
}
.btn-amber:hover { background: var(--amber-dark); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-50); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1FB155; }

.btn-ghost {
  background: transparent;
  color: var(--navy-800);
  padding: 10px 14px;
}
.btn-ghost:hover { background: var(--navy-50); }

.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ===== Cards ===== */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--navy-100); box-shadow: var(--shadow); }

/* ===== Badges & Chips ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-navy { background: var(--navy-100); color: var(--navy-800); }
.badge-amber { background: var(--amber-light); color: var(--amber-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-700); }
.badge-green { background: var(--green-light); color: #15803D; }

/* ===== Imagery placeholder (striped SVG) ===== */
.placeholder-img {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--navy-50) 0 12px,
      var(--gray-100) 12px 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--gray-500);
  letter-spacing: 0.05em;
  overflow: hidden;
}
.placeholder-img.dark {
  background:
    repeating-linear-gradient(
      135deg,
      var(--navy-700) 0 12px,
      var(--navy-800) 12px 24px
    );
  color: rgba(255,255,255,0.55);
}
.placeholder-img .ph-label {
  background: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  text-transform: lowercase;
}
.placeholder-img.dark .ph-label {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
}

/* ===== Inputs ===== */
.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px var(--navy-100);
}
.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(10px);
}
.header-top {
  background: var(--navy-900);
  color: rgba(255,255,255,0.85);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  gap: 16px;
}
.header-top-inner .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 999px; font-size: 11px;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.header-top-inner .links { display: flex; gap: 18px; }
.header-top-inner a:hover { color: var(--amber); }

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img { height: 44px; width: auto; }
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: color 0.12s, background 0.12s;
}
.nav a:hover, .nav a.active { color: var(--navy-800); background: var(--navy-50); }
.nav a.active { font-weight: 600; }

.header-cta { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: var(--gray-100);
  color: var(--navy-800);
}
.cart-btn:hover { background: var(--navy-100); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--amber);
  color: var(--navy-900);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--gray-100);
  align-items: center; justify-content: center;
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(10, 22, 56, 0.5);
  z-index: 60;
  display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu-panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--white);
  padding: 22px;
  display: flex; flex-direction: column; gap: 6px;
  overflow-y: auto;
}
.mobile-menu-panel a {
  padding: 14px 12px; font-weight: 500; color: var(--gray-700);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--gray-100);
}
.mobile-menu-panel a.active, .mobile-menu-panel a:hover { color: var(--navy-800); background: var(--navy-50); }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer ul a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.footer-logo {
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius);
  display: inline-block;
}
.footer-logo img { height: 38px; }
.footer-desc { font-size: 14px; line-height: 1.6; margin: 16px 0 18px; max-width: 320px; }

/* ===== WhatsApp widget ===== */
.wa-widget {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 70;
}
.wa-fab {
  width: 60px; height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.4), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}
.wa-fab:hover { transform: scale(1.05); }
.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  opacity: 0.35;
  animation: waPulse 2s ease-out infinite;
  z-index: -1;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-popup {
  position: absolute;
  bottom: 76px; right: 0;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  animation: popIn 0.15s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-popup-header {
  padding: 16px 18px;
  background: #25D366;
  color: white;
}
.wa-popup-header .title { font-weight: 700; font-size: 14px; }
.wa-popup-header .sub { font-size: 12px; opacity: 0.9; margin-top: 2px; }
.wa-popup-body { padding: 12px; }
.wa-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-bottom: 8px;
  transition: all 0.12s;
}
.wa-option:hover { border-color: #25D366; background: #F0FBF5; }
.wa-option:last-child { margin-bottom: 0; }
.wa-option .branch-name { font-weight: 600; color: var(--navy-800); font-size: 14px; }
.wa-option .branch-num { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ===== Notice strip ===== */
.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  font-size: 13px;
  color: #78350F;
  line-height: 1.5;
}
.notice-info {
  background: var(--navy-50);
  border-left-color: var(--navy-700);
  color: var(--navy-800);
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  top: 82px; right: 22px;
  z-index: 80;
  background: var(--navy-900);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  animation: toastIn 0.2s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Page hero (small) ===== */
.page-hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 40px,
      rgba(255,255,255,0.025) 40px 41px
    );
  pointer-events: none;
}
.page-hero .crumb {
  display: flex; gap: 8px; font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
}
.page-hero .crumb a:hover { color: var(--amber); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
}
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; margin-top: 14px; max-width: 620px; }

/* ===== Quantity selector ===== */
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.qty button {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--navy-800);
  font-size: 16px;
  transition: background 0.12s;
}
.qty button:hover { background: var(--navy-50); }
.qty .qty-val {
  width: 38px;
  text-align: center;
  font-weight: 600;
  border-left: 1.5px solid var(--gray-200);
  border-right: 1.5px solid var(--gray-200);
  padding: 8px 0;
  font-size: 14px;
}

/* utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
