:root {
  --primary: #635bff;
  --primary-dark: #4b44d5;
  --ink: #172033;
  --muted: #6f7890;
  --background: #f6f7fb;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Kantumruy Pro', sans-serif;
  color: var(--ink);
  background: var(--background);
  min-height: 100vh;
}

.app-navbar {
  background: #fff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e9eaf1;
}

.navbar-brand {
  color: var(--ink);
  font-weight: 700;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}
.modal-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #8d6bff);
  box-shadow: 0 8px 20px rgba(99, 91, 255, 0.25);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.hero-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(99, 91, 255, 0.15), transparent 30%),
    linear-gradient(180deg, #fff, #f6f7fb);
}

.hero-section h1 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-section h1 span {
  color: var(--primary);
}

.hero-badge {
  display: inline-block;
  color: var(--primary);
  background: #eeecff;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 280px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ececf3;
  padding: 1.2rem;
  border-radius: 20px;
  box-shadow: 0 16px 45px rgba(36, 38, 70, 0.09);
}

.stat-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #eeecff;
  color: var(--primary);
  font-size: 1.5rem;
}

.filter-panel {
  padding: 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e9eaf1;
  box-shadow: 0 8px 30px rgba(28, 32, 65, 0.05);
}

.form-control,
.form-select,
.input-group-text {
  min-height: 46px;
  border-color: #e1e3eb;
}

.input-group-text {
  background: #fff;
  color: var(--muted);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(99, 91, 255, 0.12);
}

.search-box .input-group-text {
  border-right: 0;
}

.search-box .form-control {
  border-left: 0;
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card {
  height: 100%;
  border: 1px solid #e8e9f0;
  border-radius: 19px;
  overflow: hidden;
  background: #fff;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(28, 32, 65, 0.12);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eceef4;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-id {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-body {
  padding: 1.1rem;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.product-description {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  min-height: 2.9em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
}

.state-box {
  text-align: center;
  padding: 5rem 1rem;
}

.state-icon {
  font-size: 3rem;
  color: #a5a9b8;
}

.modal-content {
  border-radius: 20px;
}

.modal-header,
.modal-body,
.modal-footer {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.delete-icon {
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: #dc3545;
  font-size: 1.5rem;
}

@media (max-width: 991px) {
  .stat-card {
    margin-left: 0;
  }

  .hero-section {
    text-align: center;
  }

  .hero-section .stat-card {
    margin-inline: auto;
  }
}

@media (max-width: 575px) {
  .navbar-brand span:last-child {
    display: none;
  }

  .hero-section .display-5 {
    font-size: 2rem;
  }

  .filter-panel {
    padding: 0.8rem;
  }
}
