:root {
  --primary: #0b3d91;
  --primary-dark: #072a66;
  --accent: #ffc72c;
  --accent-dark: #e6b000;
  --ink: #14161a;
  --bg-soft: #f7f8fa;
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg-soft);
  color: var(--ink);
  letter-spacing: 0.1px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

/* ===== NAVBAR ATAS ===== */
.navbar-uc {
  background: #ffffff;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid #eef0f3;
}

.navbar-uc .brand {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.navbar-uc .brand span {
  color: var(--primary);
}

.navbar-uc .nav-link {
  color: #4a4d57 !important;
  font-weight: 500;
  font-size: 14.5px;
  padding: 8px 16px !important;
}
.navbar-uc .nav-link:hover,
.navbar-uc .nav-link.active {
  color: var(--primary) !important;
}

.navbar-uc .btn-cart {
  position: relative;
  color: var(--ink);
  font-size: 20px;
}
.navbar-uc .cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  padding: 2px 6px;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 90px 0;
  text-align: center;
}
.hero-section h1 {
  font-weight: 700;
  font-size: 48px;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}
.hero-section h1 span {
  color: var(--accent);
  font-style: italic;
  text-decoration: none !important;
}
.hero-section p {
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 300;
  opacity: 0.9;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero-section .btn-light {
  font-family: var(--font-body);
  background: var(--accent);
  color: var(--ink);
  border: none;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.hero-section .btn-light:hover {
  background: var(--accent-dark);
}

/* ===== KATEGORI CARD ===== */
.category-card {
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fff;
  transition: all 0.25s ease;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(11, 61, 145, 0.12);
  transform: translateY(-4px);
}
.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(11, 61, 145, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.category-icon i {
  font-size: 22px;
  color: var(--primary);
}
.category-card .cat-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.category-card .cat-meta {
  font-weight: 400;
  color: #8a8f98;
  margin-top: 2px;
}
.category-card .cat-count {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
  border: 1px solid #eef0f3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  height: 100%;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}
.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #f0f1f3;
}
.product-card .body {
  padding: 18px;
}
.product-card .cat-label {
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.8px;
}
.product-card .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0 8px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.2px;
}
.product-card .price::before {
  content: "Rp ";
  color: var(--primary);
  font-weight: 600;
}

.btn-uc-primary {
  font-family: var(--font-body);
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.btn-uc-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-uc-outline {
  font-family: var(--font-body);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.btn-uc-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== SIZE SELECTOR ===== */
.size-option {
  display: inline-block;
  border: 1.5px solid #d7dae0;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 4px 6px 4px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  user-select: none;
  transition: 0.15s;
}
.size-option:hover {
  border-color: var(--primary);
}
.size-option.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.size-option.disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ===== FOOTER ===== */
.footer-uc {
  background: var(--ink);
  color: #c7c9cf;
  padding: 50px 0 20px;
  margin-top: 70px;
}
.footer-uc h5 {
  font-family: var(--font-heading);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.footer-uc h5 span {
  color: var(--accent);
}
.footer-uc a {
  font-family: var(--font-body);
  color: #c7c9cf;
  text-decoration: none;
  font-size: 14px;
}
.footer-uc a:hover {
  color: var(--accent);
}
.footer-uc .copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
}

/* ===== AUTH FORM ===== */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 15px;
  background: var(--bg-soft);
}
.auth-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  padding: 45px 38px;
  width: 100%;
  max-width: 420px;
  border-top: 4px solid var(--primary);
}

/* ===== CART TABLE ===== */
.cart-thumb {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 26px;
  color: var(--ink);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 30px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 55px;
  height: 4px;
  background: var(--accent);
  border-radius: 5px;
}

.badge-status {
  font-family: var(--font-body);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== KATALOG GRID LAYOUT (RAPI & BERNAFAS) ===== */
.catalog-toolbar {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.catalog-toolbar .result-count {
  font-family: var(--font-body);
  font-size: 14px;
  color: #6a6f79;
}
.catalog-toolbar .result-count strong {
  color: var(--ink);
  font-weight: 700;
}
.catalog-sort select {
  border: 1.5px solid #e3e5e9;
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
}
.catalog-sort select:focus {
  outline: none;
  border-color: var(--primary);
}

.catalog-sidebar {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  padding: 22px;
}
.catalog-sidebar h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f3;
}
.catalog-sidebar .form-check {
  margin-bottom: 8px;
}
.catalog-sidebar .form-check-label {
  font-size: 14px;
  color: #4a4d57;
}
.catalog-sidebar .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

@media (max-width: 767px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .section-title {
    font-size: 22px;
  }
  .hero-section h1 {
    font-size: 32px;
  }
}
