:root {
  --brand-bg: #192551;
  --brand-ink: #0b1f24;
  --brand-fg: #f4f7ff;
  --brand-muted-fg: rgba(244, 247, 255, 0.82);
  --brand-border: rgba(25, 37, 81, 0.18);
  --brand-shadow: rgba(25, 37, 81, 0.28);
}

@font-face {
  font-family: "Campus A";
  src: url("/assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  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;
}

@media only screen and (max-width: 992px) {
  nav .nav-wrapper.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  nav .brand-logo {
    left: auto;
    transform: none;
    right: 0;
    top: 50%;
    margin-top: 0;
    display: flex;
    align-items: center;
    height: auto;
    transform: translate(8px, -50%);
  }

  .sidenav-trigger {
    order: 1;
    margin: 0;
  }

  nav .brand-logo {
    order: 2;
  }

  .site-logo {
    margin-top: 0;
  }
}

@media only screen and (min-width: 993px) {
  nav.brand-bg {
    height: 72px;
    min-height: 72px;
    overflow: visible;
  }

  nav .nav-wrapper.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 72px;
    min-height: 72px;
    overflow: visible;
  }

  nav .brand-logo {
    position: relative;
    left: auto;
    transform: none;
    top: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    height: 72px;
    line-height: 1;
    max-width: min(516px, 43.2vw);
    overflow: visible;
  }

  .site-logo {
    height: clamp(91px, 8.4vw, 130px);
    max-width: 100%;
    margin-top: 0;
    transform: scale(1.25);
    transform-origin: left center;
  }

  ul.desktop-nav-links {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 8px;
    margin-top: 0;
    margin-bottom: 0;
    float: none !important;
    position: relative;
    right: auto;
    gap: 2px;
    flex-wrap: nowrap;
  }

  ul.desktop-nav-links > li {
    float: none;
  }

  ul.desktop-nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    line-height: 1.1;
    padding: 0 10px;
    white-space: nowrap;
  }

  ul.desktop-nav-links > li > a i.left,
  ul.desktop-nav-links > li > a i.right,
  ul.desktop-nav-links > li > a .material-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
  }

  ul.desktop-nav-links > li > a i.left {
    margin-right: 8px;
  }

  ul.desktop-nav-links > li > a i.right {
    margin-left: 4px;
  }

  ul.desktop-nav-links > li > a .material-icons {
    line-height: 1;
    margin: 0;
  }

  ul.desktop-nav-links .dropdown-trigger {
    gap: 4px;
  }
}

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

.footer-payments {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-payment-logos {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-payment-logos img {
  height: 28px;
  width: auto;
  display: block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
}

.footer-payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

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

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

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

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

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

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

.page-footer.brand-bg .brand-muted,
.page-footer.brand-bg .grey-text,
.page-footer.brand-bg .grey-text.text-darken-1,
.page-footer.brand-bg .grey-text.text-darken-2 {
  color: var(--brand-muted-fg) !important;
}

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

.brand-link {
  color: var(--brand-bg) !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-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 var(--brand-border);
  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 var(--brand-border);
  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 var(--brand-border);
  box-shadow:
    0 14px 34px var(--brand-shadow),
    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 var(--brand-border);
  box-shadow:
    0 14px 34px var(--brand-shadow),
    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 var(--brand-border);
  border-radius: 12px;
  background: rgba(25, 37, 81, 0.06);
  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(25, 37, 81, 0.25);
  color: var(--brand-ink);
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.sold-out-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(200, 30, 30, 0.94);
  color: white;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.coming-soon-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.95);
  color: #3b2a00;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.sold-out-text {
  color: #b71c1c;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.coming-soon-text {
  color: #8a5b00;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn[disabled].brand-btn,
.btn[disabled].white,
.btn.disabled.brand-btn,
.btn.disabled.white {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none !important;
}

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

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

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

#dropdown-categories,
#dropdown-main-menu {
  background: #ffffff;
}

#dropdown-categories li > a,
#dropdown-categories li > span,
#dropdown-main-menu li > a,
#dropdown-main-menu li > span {
  color: var(--brand-ink) !important;
}

#dropdown-categories li.disabled > a,
#dropdown-categories li.disabled > span,
#dropdown-main-menu li.disabled > a,
#dropdown-main-menu li.disabled > span {
  color: rgba(11, 31, 36, 0.55) !important;
  font-weight: 700;
}

#dropdown-categories .divider,
#dropdown-main-menu .divider {
  background-color: rgba(25, 37, 81, 0.12);
}

.mobile-nav-section {
  padding: 0 8px;
}

.mobile-nav-collapsible {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.mobile-nav-collapsible .collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 8px;
  border-bottom: 0;
  background: transparent;
  color: var(--brand-ink);
  font-weight: 600;
}

.mobile-nav-collapsible .collapsible-header i {
  margin: 0;
}

.mobile-nav-collapsible .collapsible-body {
  border-bottom: 0;
  padding: 0 0 8px 0;
}

.mobile-nav-submenu {
  margin: 0;
}

.mobile-nav-submenu li a {
  display: block;
  padding: 10px 16px;
  color: var(--brand-ink);
}

.admin-submit-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-saving-indicator {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--brand-ink);
  font-weight: 700;
}

.admin-saving-indicator.is-visible {
  display: inline-flex;
}

.admin-saving-indicator .preloader-wrapper {
  width: 24px;
  height: 24px;
}

.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.status-pending {
  background: #fff8e1;
  color: #8d6e00;
}

.status-processing {
  background: #e3f2fd;
  color: #0d47a1;
}

.status-packed {
  background: #ede7f6;
  color: #4527a0;
}

.status-shipped {
  background: #e0f7fa;
  color: #006064;
}

.status-completed {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-cancelled {
  background: #ffebee;
  color: #b71c1c;
}

.status-refunded {
  background: #f3e5f5;
  color: #4a148c;
}

.status-unknown {
  background: #eceff1;
  color: #263238;
}

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: 18px;
  overflow: hidden;
}

.carousel.carousel-slider {
  /* Keep the full hero artwork visible across viewport sizes. */
  height: auto !important;
  width: 100%;
  margin: 0;
  background: var(--brand-bg);
}

.carousel.carousel-slider .carousel-item {
  position: relative;
  cursor: pointer;
  height: auto !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-bg);
}

.carousel.carousel-slider .carousel-item img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 64px);
  object-fit: contain;
  display: block;
}

.carousel.carousel-slider .carousel-item picture {
  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() */

.page-shell {
  padding-bottom: 24px;
}

.page-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 24px;
  box-shadow:
    0 14px 34px var(--brand-shadow),
    0 8px 18px rgba(11, 31, 36, 0.10);
}

.page-hero {
  margin-bottom: 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  background: #eef2fb;
}

.page-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.page-title {
  margin-top: 0;
  margin-bottom: 10px;
}

.page-kicker,
.page-meta {
  color: #5d6d86;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.page-excerpt {
  font-size: 1.08rem;
  color: #31435b;
}

.page-body {
  line-height: 1.7;
  color: #162637;
}

.page-body p:first-child {
  margin-top: 0;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-list-item {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid rgba(25, 37, 81, 0.10);
}

.blog-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.blog-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.blog-title {
  margin: 6px 0 8px 0;
}

@media (max-width: 700px) {
  .blog-list-item {
    grid-template-columns: 1fr;
  }
}
