/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #ffffff;
  color: #1e293b;
  overflow-x: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0a2463;
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav a:hover {
  color: #1a6dfc;
}

.nav a.active {
  color: #1a6dfc;
  font-weight: 600;
}

.nav a.cta {
  background: #1a6dfc;
  color: white;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.cartBtn {
  background: #e8f2ff;
  border: 2px solid #1a6dfc;
  color: #1a6dfc;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.cartBtn:hover {
  background: #1a6dfc;
  color: white;
}

.badge {
  background: #2ee6d6;
  color: #0a2463;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.navToggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0a2463;
  padding: 5px;
}

/* Mobile Navigation */
.navMobile {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  border-left: 1px solid #e2e8f0;
  padding: 80px 30px 30px;
  z-index: 999;
  transition: right 0.3s ease;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.navMobile.active {
  right: 0;
}

.navMobile a {
  padding: 15px 0;
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  border-bottom: 1px solid #e2e8f0;
  transition: color 0.3s ease;
}

.navMobile a:hover {
  color: #1a6dfc;
}

.navMobile a.active {
  color: #1a6dfc;
  font-weight: 600;
}

.navMobile .cartBtn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

/* Mobile menu backdrop */
.navMobileBackdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.navMobileBackdrop.active {
  display: block;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  background: #f8fafc;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  margin-top: 60px;
}

/* Common buttons */
.btn {
  background: #1a6dfc;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:hover {
  background: #0a2463;
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  border: 2px solid #1a6dfc;
  color: #1a6dfc;
}

.btn.outline:hover {
  background: #1a6dfc;
  color: white;
}

.iconBtn {
  background: transparent;
  border: 2px solid #e2e8f0;
  color: #64748b;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.iconBtn:hover {
  border-color: #1a6dfc;
  color: #1a6dfc;
}

/* Form elements */
.input, .select {
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.input:focus, .select:focus {
  outline: none;
  border-color: #1a6dfc;
  box-shadow: 0 0 0 3px rgba(26, 111, 252, 0.1);
}

/* Cards and panels */
.pill {
  background: #e8f2ff;
  color: #1a6dfc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Drawers (Cart) */
.drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right 0.3s ease;
}

.drawer.active {
  right: 0;
}

.drawerTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.drawerBody {
  padding: 24px;
  overflow-y: auto;
  height: calc(100% - 180px);
}

.drawerBottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.drawerBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.drawerBackdrop.active {
  display: block;
}

.totalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #0a2463;
}

.totalRow strong {
  font-size: 1.3rem;
}

.drawerActions {
  display: flex;
  gap: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .navToggle {
    display: block;
  }
  
  .topbar {
    padding: 15px 20px;
  }
  
  .brand {
    font-size: 1.3rem;
  }
  
  .drawer {
    width: 100%;
    right: -100%;
  }
  
  .navMobile {
    display: flex;
  }
}