/* ============================================
   Design System — CSS Custom Properties & Common Styles
   Based on DESIGN.md
   ============================================ */
:root {
  /* Colors — Primary */
  --color-navy: #1E3A5F;
  --color-navy-dark: #152E4D;
  --color-blue: #2563EB;
  --color-blue-dark: #1D4ED8;
  /* Colors — Accent */
  --color-green: #059669;
  --color-amber: #F59E0B;
  --color-amber-dark: #D97706;
  /* Colors — Neutral */
  --color-white: #FFFFFF;
  --color-bg: #F0F2F5;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-light: #94A3B8;
  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;
  --color-error: #EF4444;
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 80px;
  --space-3xl: 120px;
  /* Typography */
  --font-h1: 48px;
  --font-h2: 36px;
  --font-h3: 24px;
  --font-h4: 20px;
  --font-body-l: 18px;
  --font-body: 16px;
  --font-body-s: 14px;
  --font-caption: 12px;
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --header-height: 80px;
  --header-height-compact: 64px;
  --topbar-height: 40px;
  /* Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 48px rgba(0,0,0,0.12);
  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 350ms;
  --duration-page: 600ms;
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(30,58,95,0.85) 0%, rgba(30,58,95,0.3) 100%);
}

/* ============================================
   Utility Classes
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}
.container--narrow {
  max-width: var(--max-width-narrow);
}
.section {
  padding: var(--space-3xl) 0;
}
.section--alt {
  background: var(--color-bg);
}
.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.section__title {
  font-size: var(--font-h2);
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}
.section__subtitle {
  font-size: var(--font-body-l);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.section__divider {
  width: 60px;
  height: 3px;
  background: var(--color-blue);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

/* ============================================
   Top Bar
   ============================================ */
.topbar {
  height: var(--topbar-height);
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  font-size: var(--font-body-s);
  line-height: var(--topbar-height);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar__contact {
  display: flex;
  gap: var(--space-md);
}
.topbar__contact a {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--duration-fast);
}
.topbar__contact a:hover {
  color: var(--color-white);
}
.topbar__contact svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.topbar__lang {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.topbar__lang button {
  color: rgba(255,255,255,0.7);
  font-size: var(--font-body-s);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}
.topbar__lang button:hover,
.topbar__lang button.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.15);
}
.topbar__lang span {
  color: rgba(255,255,255,0.3);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  height: var(--header-height);
  transition: all var(--duration-normal) ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  height: var(--header-height-compact);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--color-border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header__logo {
  flex-shrink: 0;
}
.header__logo img {
  height: 38px;
  width: auto;
  transition: height var(--duration-normal) ease;
}
.header.scrolled .header__logo img {
  height: 32px;
}
.header__nav {
  display: flex;
  align-items: center;
  height: 100%;
}
.header__nav > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.header__nav > li > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 var(--space-sm);
  font-size: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  transition: color var(--duration-fast);
  white-space: nowrap;
}
.header__nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - var(--space-sm) * 2);
  height: 3px;
  background: var(--color-blue);
  border-radius: 2px 2px 0 0;
  transition: transform var(--duration-normal) ease;
}
.header__nav > li > a:hover,
.header__nav > li > a.active {
  color: var(--color-blue);
}
.header__nav > li > a:hover::after,
.header__nav > li > a.active::after {
  transform: translateX(-50%) scaleX(1);
}
/* Dropdown */
.header__nav .dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-white);
  min-width: 220px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) ease;
  border: 1px solid var(--color-border);
}
.header__nav > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.header__nav .dropdown li a {
  display: block;
  padding: 10px var(--space-sm);
  font-size: var(--font-body-s);
  color: var(--color-text);
  transition: all var(--duration-fast);
  white-space: nowrap;
}
.header__nav .dropdown li a:hover {
  color: var(--color-blue);
  background: var(--color-bg);
}
/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.header__search {
  position: relative;
}
.header__search input {
  width: 200px;
  height: 40px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: var(--font-body-s);
  color: var(--color-text);
  background: var(--color-bg);
  transition: all var(--duration-normal) ease;
}
.header__search input:focus {
  width: 240px;
  border-color: var(--color-blue);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.header__search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}
.header__search button:hover {
  color: var(--color-blue);
}
/* Mobile Menu Toggle */
.header__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.header__menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--duration-normal) ease;
}
.header__menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header__menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.header__menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  border: 2px solid var(--color-blue);
  color: var(--color-blue);
}
.btn--secondary:hover {
  background: var(--color-blue);
  color: var(--color-white);
}
.btn--accent {
  background: var(--color-amber);
  color: var(--color-white);
}
.btn--accent:hover {
  background: var(--color-amber-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: 600;
}
.btn--white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn--outline-white {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn--outline-white:hover {
  background: var(--color-white);
  color: var(--color-navy);
}
.btn--lg {
  padding: 16px 40px;
  font-size: var(--font-body-l);
}
.btn--sm {
  padding: 8px 20px;
  font-size: var(--font-body-s);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.8);
  font-size: var(--font-body-s);
}
.footer__main {
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer__main .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.footer__col h4 {
  color: var(--color-white);
  font-size: var(--font-body);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  position: relative;
}
.footer__col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-blue);
  border-radius: 1px;
}
.footer__info p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.footer__info svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  fill: var(--color-blue);
}
.footer__info span {
  flex: 1;
  min-width: 0;
}
.footer__links a {
  display: block;
  padding: 5px 0;
  color: rgba(255,255,255,0.7);
  transition: all var(--duration-fast);
}
.footer__links a:hover {
  color: var(--color-white);
  padding-left: 6px;
}
.footer__qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer__qr h4 {
  align-self: stretch;
}
.footer__qr .footer__qr-group {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.footer__qr .footer__qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__qr .footer__qr-item img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: 6px;
  box-sizing: content-box;
}
.footer__qr .footer__qr-item p {
  margin-top: 6px;
  color: rgba(255,255,255,0.6);
  font-size: var(--font-caption);
}
.footer__bottom {
  background: var(--color-navy-dark);
  padding: 16px 0;
  text-align: center;
  font-size: var(--font-caption);
  color: rgba(255,255,255,0.5);
}

/* ============================================
   WhatsApp Chat
   ============================================ */
.whatsapp-chat {
  position: fixed;
  right: 24px;
  bottom: 140px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 0;
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 0;
  width: 56px;
  height: 56px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
}
.whatsapp-chat:hover {
  width: 180px;
  padding: 0 18px;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  transform: translateY(-2px);
}
.whatsapp-chat svg {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  fill: currentColor;
  margin-left: 14px;
}
.whatsapp-chat:hover svg {
  margin-left: 0;
}
.whatsapp-chat__label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.whatsapp-chat:hover .whatsapp-chat__label {
  opacity: 1;
}
.whatsapp-chat__pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background: #25D366;
  animation: wa-pulse 2s ease-in-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--color-blue);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration-normal) ease;
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-page) ease-out, transform var(--duration-page) ease-out;
}
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  background: var(--color-bg);
  padding: var(--space-sm) 0;
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
}
.breadcrumb a {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
}
.breadcrumb a:hover {
  color: var(--color-blue);
}
.breadcrumb span {
  margin: 0 8px;
  color: var(--color-text-light);
}

/* ============================================
   Page Header (Inner Pages)
   ============================================ */
.page-header {
  background: var(--gradient-primary);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--color-white);
}
.page-header h1 {
  font-size: var(--font-h2);
  margin-bottom: var(--space-xs);
}
.page-header p {
  font-size: var(--font-body-l);
  opacity: 0.85;
}

/* ============================================
   Loading Skeleton
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-border-light) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   Product Card (Shared across all pages)
   ============================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--duration-slow) var(--ease-out);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}
.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}
.card:hover .card__image img {
  transform: scale(1.06);
}
.card__image .card__tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: var(--font-caption);
  font-weight: 500;
}
.card__body {
  padding: var(--space-md);
}
.card__body h3 {
  font-size: var(--font-h4);
  color: var(--color-text);
  margin-bottom: 6px;
}
.card__body p {
  font-size: var(--font-body-s);
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.card__body .card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: var(--space-sm);
  font-size: var(--font-body-s);
  font-weight: 600;
  color: var(--color-blue);
  transition: gap var(--duration-fast);
}
.card__body .card__link:hover {
  gap: 8px;
}
.card__body .card__link svg {
  width: 16px;
  height: 16px;
}