:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --primary-dark: #0f1f3a;
  --accent: #D4A017;
  --accent-hover: #b8941a;
  --success: #25D366;
  --text: #1a202c;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-light); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 80px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-lg { padding: 14px 32px; font-size: 0.95rem; border-radius: 10px; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,54,93,0.3); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); background: rgba(26,54,93,0.04); }
.btn-light { background: rgba(255,255,255,0.15); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,0.25); }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  transition: var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
}
.header-logo img { height: 40px; width: auto; }
.header-logo span { letter-spacing: -0.5px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(26,54,93,0.06); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; background: none; border: none; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Hero */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  text-align: center;
  color: #fff;
}
.page-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; opacity: 0.8; max-width: 560px; margin: 0 auto; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in-up { animation: fadeInUp 0.6s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-alt);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
  background: #fff;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,54,93,0.08); }
textarea.form-control { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Breadcrumb */
.breadcrumb {
  padding: 100px 0 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .separator { margin: 0 8px; color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer a:hover { color: #fff; }
.footer li { margin-bottom: 10px; font-size: 0.85rem; }
.footer-logo { font-size: 1.1rem; font-weight: 700; color: #fff !important; margin-bottom: 12px; display: block; }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.8rem;
}
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.85rem; }
.footer-contact-item .icon { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Product Card */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--bg-alt);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(212,160,23,0.12);
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-hover);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.product-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.product-card-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; }
.product-card-meta { display: flex; align-items: center; gap: 6px; font-size: 0.77rem; color: var(--text-muted); margin-bottom: 8px; }
.product-card-meta svg { flex-shrink: 0; }
.product-card-actions {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--bg-alt);
  display: flex;
  gap: 8px;
}

/* Badge */
.badge {
  position: absolute;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; flex-wrap: wrap; }
.pagination button {
  width: 38px; height: 38px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  color: var(--text-muted);
}
.pagination button:hover { border-color: var(--primary); background: rgba(26,54,93,0.04); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Responsive */
@media (max-width: 1023px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; }
  .menu-toggle { display: flex; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 120px 0 60px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .header-logo span { display: none; }
  .page-hero h1 { font-size: 1.5rem; }
}
