:root {
  --brand-primary: #2563eb;
  --brand-dark: #1e3a8a;
  --brand-light: #eff6ff;
  --text-main: #334155;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: var(--text-main);
  overflow-x: hidden;
}

/* Navbar Styling */

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: #1e293b;
}

.text-brand {
  color: var(--brand-primary);
}

.bg-brand {
  background-color: var(--brand-primary);
}

/* Hero Section */

.hero-section {
  padding-top: 120px;
  padding-bottom: 80px;
  background-image: radial-gradient(#3b82f6 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  background-color: #fff;
}

.hero-badge {
  background-color: var(--brand-light);
  color: var(--brand-primary);
  border: 1px solid #dbeafe;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

/* Product Cards */

.product-card {
  border: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
  height: 160px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* --- CALCULATOR STYLES INTEGRATED --- */

.calc-wrapper {
  background: linear-gradient(rgba(37,99,235,0.03) 0%, #2563eb08), linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-radius: 24px;
  border: 1px solid #dbeafe;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(37, 99, 235, 0.1);
}

.sub-tab-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 8px 16px;
  border-radius: 50rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.sub-tab-btn:hover {
  background: #f1f5f9;
  color: var(--brand-primary);
}

.sub-tab-btn.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.75rem;
  position: relative;
}

.service-card:hover {
  border-color: var(--brand-primary);
  transform: translateX(3px);
}

.service-card.selected {
  background: #eff6ff;
  border-color: var(--brand-primary);
}

.service-card-check {
  width: 24px;
  height: 24px;
  background-color: #cbd5e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  transition: all 0.3s ease;
}

.service-card.selected .service-card-check {
  background-color: var(--brand-primary);
  transform: scale(1.1);
}

.result-box {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
  animation: fadeIn 0.4s ease;
}

.count-input-container {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.count-input-container.show {
  max-height: 100px;
  opacity: 1;
  margin-bottom: 1rem;
}

/* Floating Cart & WA */

.floating-btn-group {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  cursor: pointer;
  position: relative;
  border: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

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

.btn-wa {
  background-color: #22c55e;
}

.cart-badge-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  font-size: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  border: 2px solid white;
}

/* Category Nav */

.nav-pills .nav-link {
  color: #64748b;
  border-radius: 50rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
}

.nav-pills .nav-link.active {
  background-color: var(--brand-primary);
  color: white;
}

/* Loader */

.loader-container {
  display: none;
  padding: 4rem 0;
  text-align: center;
}

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

.addtone {
  padding-left: 8px;
  padding-right: 8px;
  padding-top: 2px;
  padding-bottom: 2px;
}

.btn-sm, .btn-group-sm > .btn {
  --bs-btn-padding-y: 1px;
  --bs-btn-padding-x: 7px;
  --bs-btn-font-size: 0.875rem;
  --bs-btn-border-radius: 0;
}

