:root {
  --brand: #c2185b;
  --brand-dark: #880e4f;
  --ink: #1a2332;
  --muted: #5c6b7a;
  --surface: #f4f6f8;
  --line: #dbe1e8;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(26, 35, 50, 0.04), transparent 220px),
    radial-gradient(ellipse at top left, rgba(194, 24, 91, 0.06), transparent 45%),
    var(--surface);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand-logo {
  max-height: 70px;
  width: auto;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.2;
  max-width: 28rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink) !important;
  font-size: 1.45rem;
  min-width: 0;
}

.navbar-nav .nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.65rem 1rem !important;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.35rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.hero-carousel {
  margin-bottom: 1.5rem;
  overflow: hidden;
  background: #0f1620;
}

.hero-carousel .carousel-item img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.page-banner .carousel-item img {
  max-height: 220px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--brand);
}

.category-nav .accordion-button {
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  box-shadow: none !important;
  padding: 0.7rem 0.85rem;
}

.category-nav .accordion-button:not(.collapsed) {
  color: var(--brand);
  background: rgba(194, 24, 91, 0.06);
}

.category-nav .list-group-item {
  border-color: var(--line);
  padding: 0.45rem 0.85rem;
}

.category-nav .list-group-item a {
  color: var(--muted);
  display: block;
}

.category-nav .list-group-item a:hover {
  color: var(--brand);
}

.contact-mini {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-mini strong {
  color: var(--ink);
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 24, 91, 0.35);
  box-shadow: 0 14px 28px rgba(26, 35, 50, 0.12);
}

.product-card .thumb {
  aspect-ratio: 4 / 3;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .thumb img {
  transform: scale(1.04);
}

.product-card .caption {
  padding: 0.75rem 0.85rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 1.25rem 1.35rem;
  min-height: 280px;
  overflow: hidden;
}

.content-box img {
  max-width: 100%;
  height: auto;
}

.product-desc {
  overflow-x: auto;
  max-width: 100%;
}

.product-desc .table-responsive {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

.product-desc table.table {
  width: 100% !important;
  max-width: 100%;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--ink);
  border-color: var(--line);
  table-layout: auto;
}

.product-desc table.table > :not(caption) > * > * {
  padding: 0.65rem 0.85rem;
  vertical-align: middle;
  border-color: var(--line);
  word-break: break-word;
}

.product-desc table.table thead th,
.product-desc table.table > tbody > tr:first-child > th,
.product-desc table.table > tbody > tr:first-child > td {
  background: rgba(194, 24, 91, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.product-desc table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(26, 35, 50, 0.03);
}

.product-desc table.table-hover > tbody > tr:hover > * {
  background-color: rgba(194, 24, 91, 0.06);
}

.product-desc table.table img {
  max-width: 100%;
  height: auto;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--brand);
}

.page-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}

.pager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.92rem;
}

.detail-image {
  text-align: center;
  margin-bottom: 1rem;
}

.detail-image img {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: #fff;
}

.site-footer {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, #1a2332 0%, #243447 60%, #2a1a24 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.75rem 0;
}

.site-footer a {
  color: #fff;
}

.site-footer .copy {
  font-size: 0.9rem;
  opacity: 0.9;
}

.btn-brand {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(194, 24, 91, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(194, 24, 91, 0.15);
}

.reveal {
  animation: riseIn 0.55s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .brand-logo {
    max-height: 40px;
  }

  .brand-title {
    max-width: 12rem;
  }

  .hero-carousel .carousel-item img {
    max-height: 260px;
  }

  .sidebar-col {
    margin-bottom: 1.25rem;
  }
}
