/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1d1d1f;
  --primary-dark: #000000;
  --primary-light: #f5f5f7;
  --text-dark: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-light: #86868b;
  --border: #d2d2d7;
  --bg-white: #FFFFFF;
  --bg-light: #f5f5f7;
  --bg-card: #f5f5f7;
  --success: #10B981;
  --danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.navbar .container {
  display: flex;
  align-items: center;
  height: 56px;
  gap: 40px;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-right: 8px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

.navbar-nav a:hover {
  color: var(--text-dark);
}

.navbar-nav a.active {
  color: var(--text-dark);
  font-weight: 600;
}

.navbar-nav a.active::after {
  display: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 980px;
  border: 1.5px solid var(--text-dark);
  background: transparent;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-outline-dark:hover {
  background: var(--text-dark);
  color: white;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  width: 220px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-box svg {
  color: var(--text-light);
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.search-box input::placeholder {
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-dark);
  background: white;
}

.btn-outline:hover {
  background: var(--bg-light);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 980px;
}

.btn-block {
  width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-dark);
}

.footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-dark);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ==================== BADGES & TAGS ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 980px;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--primary);
  color: white;
}

.badge-outline {
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  background: white;
}

.badge-green {
  background: #D1FAE5;
  color: #065F46;
}

/* ==================== SECTION HEADERS ==================== */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ==================== CARDS ==================== */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-card);
}

.card-body {
  padding: 16px;
}

.card-title {
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-price {
  font-weight: 500;
  color: var(--danger);
  font-size: 0.9rem;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== SCROLL ANIMATIONS ==================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .navbar-nav {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    z-index: 100;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 10px 0; }
  .navbar-right .btn-outline-dark { display: none; }
  .navbar-right .search-box { display: none; }
  .container { padding: 0 16px; }
  .footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 1.5rem; }
}

/* ==================== CHATBOT WIDGET ==================== */
.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
}

.chat-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.chat-btn svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.chat-bubble {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 280px;
  background: white;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dark);
  animation: chatFadeIn 0.4s ease;
}

.chat-bubble-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.chat-bubble-close:hover {
  color: var(--text-dark);
}

.chat-bubble.hidden {
  display: none;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
