/* ============================================================
   QUIN MEKASA — Premium Corporate B2B Theme (Final)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --yellow: #FBBF24; /* Modern Amber/Yellow */
  --yellow-hover: #F59E0B;
  --black: #0F172A;
  --dark: #1E293B;
  --gray-light: #F8FAFC;
  --border: #E2E8F0;
  --text: #334155;
  --text-dark: #0F172A;
  --muted: #64748B;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-dark); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--yellow-hover); }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Top Bar */
.topbar { background: var(--black); color: #fff; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid #1E293B; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 24px; color: #94A3B8; }
.topbar a { color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; font-size: 0.75rem; }
.topbar a:hover { color: #fff; }

/* Header */
.site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 16px 24px; }

/* Logo */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--black); color: var(--yellow); font-weight: 800; font-size: 1.3rem; letter-spacing: -1px; box-shadow: var(--shadow-md); }
.logo-text strong { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; color: var(--black); }
.logo-text small { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; }

/* Search */
.search-form { flex: 1; max-width: 600px; display: flex; position: relative; }
.search-form input { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px 12px 40px; font-size: 0.95rem; outline: none; transition: all 0.2s; background: var(--gray-light); }
.search-form input:focus { border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2); }
.search-form button { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }

/* Navigation */
.main-nav { background: #fff; border-bottom: 2px solid var(--border); }
.nav-inner { display: flex; justify-content: flex-start; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a { color: var(--text-dark); padding: 16px 20px; font-size: 0.85rem; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 3px solid transparent; }
.nav-inner a:hover { color: var(--yellow-hover); background: var(--gray-light); }
.nav-inner a.active { border-bottom-color: var(--yellow); color: var(--black); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; }
.btn-accent { background: var(--yellow); color: var(--black); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--yellow-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: var(--dark); color: var(--yellow); }
.btn-ghost { background: transparent; color: var(--black); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--black); background: var(--gray-light); }
.btn-ghost-dark { background: rgba(255,255,255,0.1); color: #fff; border: 2px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px); }
.btn-ghost-dark:hover { background: #fff; color: var(--black); border-color: #fff; }

/* Hero Section */
.hero { background: var(--black); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(circle at 100% 0%, rgba(251,191,36,0.15) 0%, transparent 50%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.eyebrow { display: inline-block; background: rgba(251,191,36,0.15); color: var(--yellow); border: 1px solid rgba(251,191,36,0.3); font-weight: 700; font-size: 0.75rem; padding: 6px 14px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; letter-spacing: -1px; margin: 0 0 20px; font-weight: 800; }
.hero p { font-size: 1.1rem; color: #94A3B8; max-width: 90%; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; border-top: 1px solid #334155; padding-top: 30px; }
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--yellow); font-weight: 800; }
.hero-stats span { color: #94A3B8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* Hero Visual Box */
.hero-visual { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(12px); border: 1px solid #334155; border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); }
.hero-card-header { border-bottom: 1px solid #334155; padding-bottom: 16px; margin-bottom: 16px; }
.hero-card-header h3 { font-size: 1.1rem; margin: 0; color: #fff; }
.hero-card-header p { color: #94A3B8; font-size: 0.85rem; margin: 4px 0 0; }
.hero-card-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: #1E293B; color: #E2E8F0; font-weight: 600; border-radius: 8px; border: 1px solid transparent; margin-bottom: 8px; }
.hero-card-row:hover { background: #334155; color: #fff; border-color: var(--yellow); text-decoration: none; transform: translateX(4px); }

/* Trust Strip */
.trust-strip { background: var(--gray-light); border-bottom: 1px solid var(--border); padding: 40px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.trust { display: flex; align-items: flex-start; gap: 16px; }
.trust span { font-size: 2rem; background: #fff; padding: 12px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.trust strong { display: block; color: var(--black); font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.trust p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--gray-light); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -1px; color: var(--black); }
.section-head a { font-weight: 700; color: var(--yellow-hover); text-transform: uppercase; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; }
.section-head a:hover { gap: 12px; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.cat-tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.cat-tile:hover { border-color: var(--yellow); box-shadow: var(--shadow-md); transform: translateY(-4px); text-decoration: none; }
.cat-icon { font-size: 2.5rem; }
.cat-name { font-weight: 800; font-size: 1rem; color: var(--black); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.2s; }
.product-card:hover { box-shadow: var(--shadow-lg); border-color: #CBD5E1; transform: translateY(-4px); }
.product-thumb { position: relative; display: block; border-bottom: 1px solid var(--border); background: #FAFAFA; }
.product-thumb img { width: 100%; height: 240px; object-fit: contain; padding: 20px; }
.product-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-brand { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-name { color: var(--black); font-weight: 700; font-size: 1.1rem; line-height: 1.4; margin-bottom: 16px; }
.product-name:hover { color: var(--yellow-hover); text-decoration: none; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; border-top: 1px solid var(--border); padding-top: 16px; }
.sku { color: var(--muted); font-size: 0.8rem; font-family: monospace; }
.price { color: var(--black); font-weight: 800; font-size: 1.2rem; }

/* Badges */
.badge { position: absolute; top: 16px; left: 16px; font-size: 0.7rem; font-weight: 800; padding: 6px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-new { background: var(--yellow); color: var(--black); }
.badge-out { background: #EF4444; color: #fff; left: auto; right: 16px; }

/* Page Hero (Inner Pages) */
.page-hero { background: var(--black); color: #fff; padding: 60px 0; border-bottom: 4px solid var(--yellow); }
.page-hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.page-hero p { color: #94A3B8; font-size: 1.1rem; max-width: 600px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 100%; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 0.9rem; color: var(--black); }
.form input, .form textarea, .form select { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; transition: border-color 0.2s; background: var(--gray-light); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--yellow); background: #fff; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2); }
.form-actions { display: flex; gap: 16px; margin-top: 10px; }

/* Alerts */
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-weight: 600; }
.alert.success { background: #ECFDF5; color: #047857; border: 1px solid #10B981; }
.alert.error { background: #FEF2F2; color: #B91C1C; border: 1px solid #EF4444; }

/* Footer */
.site-footer { background: var(--black); color: #94A3B8; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 60px; }
.footer-grid h4 { color: #fff; font-size: 1rem; text-transform: uppercase; margin: 0 0 24px; font-weight: 800; letter-spacing: 0.5px; }
.footer-grid a { display: block; color: #94A3B8; padding: 8px 0; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--yellow); }
.footer-grid p { margin: 0 0 12px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid #1E293B; padding: 24px 0; color: #64748B; font-size: 0.85rem; text-align: center; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .header-inner { flex-wrap: wrap; }
  .search-form { max-width: 100%; order: 3; flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}