:root {
  --brand-bg: #a0c0ca;
  --brand-ink: #0b1f24;
}

@font-face {
  font-family: "Campus A";
  src: url("/assets/fonts/Campus-A.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

.brand-logo img:not(.site-logo) {
  height: 38px;
  margin-top: 12px;
}

.site-logo {
  height: 145px;
  width: auto;
  max-width: 67vw;
  margin-top: -46px;
  display: block;
}

.footer-logo {
  height: 220px;
  width: auto;
  max-width: 100%;
  display: block;
}

.container-narrow {
  max-width: 980px;
}

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

.brand-ink {
  color: var(--brand-ink) !important;
}

nav.brand-bg,
nav.brand-bg a,
nav.brand-bg i {
  color: var(--brand-ink) !important;
}

.page-footer.brand-bg,
.page-footer.brand-bg a,
.page-footer.brand-bg .footer-copyright {
  color: var(--brand-ink) !important;
}

.brand-btn {
  background-color: var(--brand-bg) !important;
  color: var(--brand-ink) !important;
}

.brand-link {
  color: var(--brand-ink) !important;
}

.price {
  font-weight: 700;
}

.card-image img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .card-content {
  flex: 1 1 auto;
}

.product-card .card-action {
  margin-top: auto;
}

.product-card .card-action .btn {
  white-space: normal;
  height: auto;
  line-height: 1.2;
  padding: 8px 12px;
  text-align: center;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  row-gap: 24px;
}

.product-grid > .col {
  display: flex;
}

.product-grid > .col > .product-card {
  width: 100%;
}

.product-card .card-content .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .card-content p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.2em;
}

.product-gallery-main {
  height: clamp(280px, 40vw, 520px);
  border-radius: 14px;
  background: rgba(11, 31, 36, 0.04);
  border: 2px solid rgba(11, 31, 36, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.product-card-gallery .product-gallery-main {
  height: 240px;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}

.product-card-gallery .product-thumbs {
  margin-top: 10px;
  padding: 0 10px 10px 10px;
}

.product-card-gallery .product-thumb img {
  width: 76px;
  height: 52px;
}

.product-thumb {
  flex: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(11, 31, 36, 0.12);
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.product-thumb:hover {
  border-color: rgba(11, 31, 36, 0.35);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.product-thumb.is-selected {
  border-color: rgba(11, 31, 36, 0.7);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.product-thumb img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  display: block;
}

.product-info-box {
  background: white;
  border-radius: 16px;
  padding: 18px 18px;
  border: 1px solid rgba(11, 31, 36, 0.10);
  box-shadow:
    0 14px 34px rgba(160, 192, 202, 0.55),
    0 8px 18px rgba(11, 31, 36, 0.10);
}

.product-info-box .price {
  font-size: 22px;
}

.product-title {
  font-family: "Campus A", serif;
  letter-spacing: 0.5px;
}

/* default title sizing where not overridden inline */
.product-title {
  font-size: 1.25rem;
  line-height: 1.2;
}

.product-title-lg {
  font-size: 2.2rem;
  line-height: 1.05;
}

@media (max-width: 600px) {
  .product-title-lg {
    font-size: 1.8rem;
    line-height: 1.1;
  }
}

.product-action-box {
  background: white;
  border-radius: 16px;
  padding: 16px 16px;
  border: 1px solid rgba(11, 31, 36, 0.10);
  box-shadow:
    0 14px 34px rgba(160, 192, 202, 0.55),
    0 8px 18px rgba(11, 31, 36, 0.10);
}

.product-qty-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-qty-label {
  font-weight: 800;
  color: var(--brand-ink);
}

.product-qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-qty-btn {
  color: var(--brand-ink) !important;
}

.product-qty-control input[type="number"] {
  width: 86px;
  height: 42px;
  margin: 0;
  padding: 0 10px;
  border: 2px solid rgba(11, 31, 36, 0.18);
  border-radius: 12px;
  background: rgba(160, 192, 202, 0.14);
  color: var(--brand-ink);
  font-weight: 800;
  text-align: center;
  box-sizing: border-box;
}

.product-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.product-action-buttons .btn {
  border-radius: 12px;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(11, 31, 36, 0.25);
  color: var(--brand-ink);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.nav-search {
  width: 360px;
  display: none !important;
}

nav.search-open .nav-search {
  display: block !important;
}

nav.search-open .nav-search-toggle {
  opacity: 0.85;
}

nav .nav-search form {
  margin: 0;
}

nav .nav-search .input-field {
  margin: 0;
  height: 44px;
}

nav .nav-search .input-field input[type="search"] {
  height: 44px !important;
  line-height: 44px !important;
  margin: 0 !important;
  padding-left: 1rem !important;
  padding-right: 2.8rem !important;
  box-sizing: border-box;
}

nav .nav-search .input-field > i.material-icons {
  top: 0 !important;
  height: 44px;
  line-height: 44px;
}

nav .nav-search-toggle i.material-icons {
  height: 64px;
  line-height: 64px;
}

@media (max-width: 992px) {
  .nav-search {
    width: 100%;
  }
}

.home-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 14px;
  margin-bottom: 22px;
  overflow: hidden;
}

.carousel.carousel-slider {
  /* 12:7 aspect (1200×700) with sensible bounds */
  height: clamp(320px, calc(100vw * 7 / 12), 820px);
  width: 100%;
  margin: 0;
}

.carousel.carousel-slider .carousel-item {
  position: relative;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.carousel.carousel-slider .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
}

.carousel.carousel-slider .carousel-item picture {
  height: 100%;
  width: 100%;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 18px;
  color: white;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.carousel-caption h5 {
  margin: 0 0 6px 0;
}

/* mobile already covered by clamp() */
