/* "Prompt" (Google Fonts, free) site-wide - see the <link> tags in _Layout.cshtml for why. */
body {
  font-family: 'Prompt', Tahoma, sans-serif;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--kp-bg);
}

/* ---- Kuplus theme ---- */
:root {
  --kp-navy: #0b1220;
  --kp-navy-soft: #111a2e;
  --kp-blue: #2f6fed;
  --kp-blue-light: #38bdf8;
  --kp-bg: #f4f6fb;
}

.topbar-kuplus {
  background: var(--kp-navy);
  color: #cbd5e1;
  font-size: .8rem;
}
.topbar-kuplus a { color: #cbd5e1; text-decoration: none; }
.topbar-kuplus a:hover { color: #fff; }

.navbar-kuplus {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1040;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.nav-icon-link {
  color: var(--kp-navy);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.nav-icon-link:hover {
  background: rgba(15, 23, 42, .06);
  color: var(--kp-navy);
}
.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  font-size: .6rem;
  padding: .2rem .4rem;
  line-height: 1;
}

/* Mini-cart drawer width per screen size: desktop 30%, tablet 80%, phone the full screen.
   This Bootstrap build (5.1.0) hardcodes .offcanvas-end's width rather than reading a CSS variable,
   so the width itself has to be overridden directly (not --bs-offcanvas-width). */
.kp-cart-drawer {
  width: 30vw;
  min-width: 340px;
}
@media (max-width: 991.98px) {
  .kp-cart-drawer {
    width: 80vw;
    min-width: 0;
  }
}
@media (max-width: 575.98px) {
  .kp-cart-drawer {
    width: 100vw;
  }
}
.kp-cart-drawer .drawer-line-item + .drawer-line-item {
  border-top: 1px solid #f0f2f6;
}
.navbar-kuplus .navbar-brand {
  color: var(--kp-navy);
  font-weight: 700;
  font-size: 1.4rem;
}
.navbar-kuplus .brand-badge {
  background: linear-gradient(135deg, var(--kp-blue), var(--kp-blue-light));
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: .5rem;
}

.category-trigger-wrap {
  position: relative; /* anchors the absolutely-positioned mega-menu panel below it */
}

.category-trigger-bar {
  background: #fff;
  border-bottom: 1px solid #e5e9f2;
}
.category-trigger-btn {
  border: 0;
  background: none;
  padding: .7rem 0;
  color: #334155;
  font-weight: 600;
  font-size: .92rem;
}
.category-trigger-btn:hover {
  color: var(--kp-blue);
}
.category-bar-link {
  color: #334155;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.category-bar-link:hover {
  color: var(--kp-blue);
}

/* Header search: its own full-width row on mobile, inline on the right from lg up. */
.kp-search-form {
  position: relative;
  width: 100%;
  margin-top: .75rem;
}
.kp-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: .4rem;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: .6rem;
  box-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .15);
  max-height: 420px;
  overflow-y: auto;
  z-index: 1050;
}
.kp-search-results.show {
  display: block;
}
.kp-search-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .9rem;
  text-decoration: none;
  color: #1f2937;
  border-bottom: 1px solid #f0f2f6;
}
.kp-search-item:last-child {
  border-bottom: 0;
}
.kp-search-item:hover {
  background: #f8f9fc;
}
.kp-search-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: .35rem;
  flex-shrink: 0;
}
.kp-search-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.kp-search-item-name {
  font-size: .87rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kp-search-item-code {
  font-size: .75rem;
  color: #94a3b8;
}
.kp-search-item-price {
  font-size: .85rem;
  font-weight: 700;
  color: var(--kp-blue);
  white-space: nowrap;
  flex-shrink: 0;
}
.kp-search-empty {
  padding: .9rem;
  color: #94a3b8;
  font-size: .85rem;
  text-align: center;
}
@media (min-width: 992px) {
  .kp-search-form {
    width: auto;
    flex: 0 1 640px;
    max-width: 640px;
    margin: 0 auto;
  }
  /* On mobile the icons sit right after the logo (DOM order) so they share row 1 with it; on desktop
     they belong after the search bar instead - reordered here rather than duplicating the markup. */
  .navbar-kuplus .navbar-brand { order: 1; }
  .navbar-kuplus .kp-search-form { order: 2; }
  .navbar-kuplus .navbar-icons { order: 3; }
}

/* ---- Category mega menu (2-level: parent list + child grid) ---- */
/* Desktop: the white menu hangs under the header; a fixed ::before layer dims the whole window
   (header included) however far the page is scrolled. Clicks on it land on the panel -> closes. */
.mega-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1030;
}
.mega-menu-panel.show::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, .3);
}
.mega-menu-body {
  max-height: 70vh;
  background: #fff;
  border-radius: 0 0 .75rem .75rem;
  overflow: hidden;
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, .25);
}
.mega-menu-parents {
  background: #f8f9fc;
  border-right: 1px solid #e5e9f2;
  max-height: 70vh;
  overflow-y: auto;
  padding: .5rem 0;
}
.mega-menu-parent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1rem;
  color: #334155;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.mega-menu-parent-link:hover {
  background: #eef1f8;
  color: var(--kp-blue);
}
.mega-menu-parent-link.active {
  background: #eaf1ff;
  color: var(--kp-blue);
  border-left-color: var(--kp-blue);
}
.mega-menu-children {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.25rem;
}
.mega-menu-child-group {
  display: none;
}
.mega-menu-child-group.active {
  display: block;
}
/* Children flow top-to-bottom (CSS columns), at most 2 columns; short lists stay single-column. */
.mega-menu-child-grid {
  column-count: 1;
  column-gap: 1.5rem;
  max-width: 720px;
}
.mega-menu-child-grid--two {
  column-count: 2;
}
.mega-menu-child-grid a {
  display: block;
  break-inside: avoid;
  color: #1f2937;
  font-size: .95rem;
  text-decoration: none;
  padding: .6rem .9rem;
  border-radius: .4rem;
}
.mega-menu-child-grid a:hover {
  background: #f1f4f9;
  color: var(--kp-blue);
}

/* Compact icon-only category toggle, shown in the navbar on mobile instead of the full trigger bar */
.mobile-category-toggle {
  border: 0;
  background: none;
  color: var(--kp-navy);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 .75rem 0 0;
}

/* Bootstrap's collapse animates height up to scrollHeight, which for the absolutely-positioned mobile
   list is only the header strip — so skip the animation and show/hide the panel instantly. */
.mega-menu-panel.collapsing {
  transition: none;
}

/* Mobile: the mega menu becomes a full-screen single-column drill-down instead of the 2-column panel.
   z-index is bumped above the sticky navbar (1040) so the panel covers it instead of hiding behind it. */
@media (max-width: 991.98px) {
  .mega-menu-panel {
    position: fixed;
    inset: 0;
    top: 0;
    height: auto;
    background: #fff;
    z-index: 1045;
  }
}
/* Tablet (iPad-portrait-ish widths): a left-anchored drawer instead of a full-screen takeover, so the
   dimmed page (navbar included) stays visible on the right, same as the OfficeMate-style reference. */
@media (min-width: 576px) and (max-width: 991.98px) {
  .mega-menu-panel {
    right: auto;
    width: 50%;
    max-width: 420px;
    box-shadow: 6px 0 24px rgba(0, 0, 0, .2);
  }
}
.mega-menu-mobile {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mega-menu-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e9f2;
  flex-shrink: 0;
}
.mega-menu-mobile-body {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.mega-menu-mobile-level {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: #fff;
}
.mega-menu-mobile-level.active {
  display: flex;
  flex-direction: column;
}
.mega-menu-mobile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid #f0f2f6;
  color: #1f2937;
  font-size: .95rem;
  text-decoration: none;
}
.mega-menu-mobile-item i {
  color: #94a3b8;
}
.mega-menu-mobile-back {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  border: 0;
  background: #f8f9fc;
  text-align: left;
  padding: .9rem 1.25rem;
  border-bottom: 1px solid #e5e9f2;
  color: var(--kp-blue);
  font-weight: 600;
  font-size: .95rem;
}

/* Category rows in the m-categories drill-down level: icon/image + bold Thai name + gray English name,
   instead of the plain single-line text the other levels (root menu, child lists) use. */
.mega-menu-mobile-item--icon {
  gap: .75rem;
}
.mega-menu-mobile-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  background: var(--kp-bg);
  font-size: 1.1rem;
  overflow: hidden;
}
.mega-menu-mobile-icon i {
  color: var(--kp-blue); /* overrides the generic gray .mega-menu-mobile-item i rule above */
}
.mega-menu-mobile-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mega-menu-mobile-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mega-menu-mobile-primary {
  font-weight: 600;
  color: #1f2937;
}
.mega-menu-mobile-secondary {
  font-size: .8rem;
  color: #6c757d;
}

/* Contact details shown directly under the root menu (no click needed) - same info as the footer's
   "ติดต่อเรา" column, just restyled for a light background instead of the dark footer. margin-top:auto
   (together with .mega-menu-mobile-level.active being a flex column) anchors it to the bottom of the
   panel instead of sitting immediately under the menu items. */
.mega-menu-mobile-contact {
  margin-top: auto;
  padding: 1.25rem;
  border-top: 8px solid #f0f2f6;
}
.mega-menu-mobile-contact-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: .5rem;
}
.mega-menu-mobile-contact ul {
  margin: 0;
}
.mega-menu-mobile-contact a {
  color: #1f2937;
  text-decoration: none;
}

.hero-kuplus {
  background: radial-gradient(circle at top right, var(--kp-navy-soft), var(--kp-navy) 60%);
  border-radius: 1rem;
  color: #fff;
}
.hero-kuplus .eyebrow {
  color: var(--kp-blue-light);
  letter-spacing: .08em;
  font-weight: 600;
  font-size: .8rem;
}
.hero-kuplus .finder-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem;
}

/* Home page hero (see Pages/Shared/Components/HeroBanner/Default.cshtml): 3 quick-action tiles on the
   left, big auto-rotating carousel banner on the right. Both halves are managed in ThaifactorymartAdmin's
   "Hero หน้าแรก" page. */
.hero-banner-row {
  min-height: 320px;
}
.action-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, var(--kp-blue), var(--kp-navy) 120%);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  width: 100%;
  padding: 1rem;
}
.action-tile:hover {
  color: #fff;
  filter: brightness(1.08);
}
.action-tile-lg {
  min-height: 180px;
  font-size: 2rem;
}
.action-tile-sm {
  min-height: 110px;
  font-size: 1.4rem;
  flex: 1;
}
.action-tile img {
  max-width: 70%;
  max-height: 60%;
  object-fit: contain;
}
.action-tile-label {
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
}
.hero-banner-carousel {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--kp-navy);
  height: 100%;
}
.hero-banner-carousel .owl-stage,
.hero-banner-carousel .owl-item,
.hero-banner-carousel .owl-stage-outer {
  height: 100%;
}
.hero-banner-slide {
  height: 100%;
}
.hero-banner-slide a {
  display: block;
  height: 100%;
}
.hero-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
}
.hero-banner-carousel .owl-dots {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: .4rem;
}
.hero-banner-carousel .owl-dot span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.hero-banner-carousel .owl-dot.active span {
  background: #fff;
}

.section-eyebrow {
  color: var(--kp-blue);
  letter-spacing: .08em;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
}

.category-tile {
  border: 1px solid #e5e9f2;
  border-radius: .75rem;
  transition: box-shadow .15s ease, transform .15s ease;
}
.category-tile:hover {
  box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}
.category-tile .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: .6rem;
  background: #eaf1ff;
  color: var(--kp-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* "เลือกตามประเภทสินค้า" (Shop by Category) home page: one bordered card, image/icon + bilingual
   (Thai/English) name per cell, divided by thin lines. Two different layouts by breakpoint, since Owl
   is a one-row slider and can't itself produce a wrapping multi-row grid:
   - Below lg: a swipeable single-row Owl Carousel, 4 items per view (init is skipped above lg - see
     carousel.js), so .owl-stage/.owl-item rules below only ever apply on mobile.
   - lg and up: Owl is never initialized, so these <a> items stay plain children of .category-list-scroll
     and the media query further down turns it into a static 6-column, 2-row grid (12 items max - the
     13th+ are hidden rather than wrapping to a 3rd row). */
.category-list-scroll {
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 1rem;
  overflow: hidden;
}
.category-list-scroll .owl-stage {
  display: flex;
}
.category-list-scroll .owl-item {
  height: auto;
  display: flex;
}
.category-list-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.1rem 1rem;
  text-decoration: none;
  color: inherit;
  border-right: 1px solid #e5e9f2;
  transition: background-color .15s ease;
  width: 100%;
}
.category-list-item:hover {
  background: var(--kp-bg);
  color: inherit;
}
.category-list-scroll .owl-item:last-child .category-list-item {
  border-right: 0;
}
.category-list-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .6rem;
  background: var(--kp-bg);
  color: var(--kp-blue);
  font-size: 1.35rem;
  overflow: hidden;
}
.category-list-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.category-list-primary {
  font-weight: 600;
  color: #1f2937;
  font-size: .92rem;
}
.category-list-secondary {
  font-size: .78rem;
  color: var(--kp-blue);
}
@media (min-width: 992px) {
  .category-list-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
  .category-list-primary {
    font-size: 1rem;
  }
  .category-list-secondary {
    font-size: .85rem;
  }

  /* Static 6-column, 2-row grid - Owl is not initialized at this breakpoint (see carousel.js), so these
     are plain <a> children, not .owl-item wrapped, and the mobile-only :last-child rule above never
     matches anything here. */
  .category-list-scroll {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }
  .category-list-item {
    border-right: 1px solid #e5e9f2;
    border-top: 1px solid #e5e9f2;
  }
  .category-list-item:nth-child(-n+6) {
    border-top: 0;
  }
  .category-list-item:nth-child(6n) {
    border-right: 0;
  }
  .category-list-item:nth-child(n+13) {
    display: none; /* caps the grid at 2 full rows (12 items); anything past that is mobile-carousel only */
  }
}

/* Staff-authored HTML from ProductDetail1 (see Products/Details.cshtml) - some products embed a wide
   spec table copied from the manufacturer's site, so let it scroll horizontally instead of overflowing. */
.product-detail-html {
  overflow-x: auto;
  background: #fff;
  padding: 1rem;
  border-radius: .5rem;
}
.product-detail-html table {
  max-width: 100%;
  background: #fff;
}

.product-card {
  border: 1px solid #e5e9f2;
  border-radius: .75rem;
  overflow: hidden;
}
.product-card .card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em; /* reserve 2 lines even for short titles, so cards in a row line up evenly */
}

/* "สินค้าแนะนำ" (Featured Products) home page cards only - brand logo + discount badge overlaid on the
   product image (see _FeaturedProductCard.cshtml). */
.featured-brand-logo {
  position: absolute;
  top: .5rem;
  left: .5rem;
  max-width: 48px;
  max-height: 28px;
  object-fit: contain;
  z-index: 1;
}
.featured-discount-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 1;
  background: #e11d48;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  padding: .3rem .55rem;
  border-radius: 999px;
}

.qty-stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid #dbe1ea;
  border-radius: .5rem;
  overflow: hidden;
}
.qty-stepper-btn {
  border: 0;
  background: #fff;
  color: var(--kp-blue);
  font-size: 1.2rem;
  width: 44px;
  line-height: 1;
}
.qty-stepper-btn:hover {
  background: #f1f4f9;
}
.qty-stepper-input {
  width: 56px;
  border: 0;
  border-left: 1px solid #dbe1ea;
  border-right: 1px solid #dbe1ea;
  text-align: center;
  font-weight: 600;
}
.qty-stepper-input:focus {
  outline: none;
}

/* "Related Products" horizontal carousel (Owl Carousel - see wwwroot/js/carousel.js): fixed-width
   cards, with our own prev/next buttons driving Owl's API instead of its default nav/dots. */
.related-products {
  position: relative;
}
/* autoWidth: true (see carousel.js) sizes each Owl item from this card width, rather than dividing
   the container evenly - keeps card size consistent whether the carousel sits in a narrow column
   (home page sections) or the full page width (product detail's related products). */
.related-products-scroll .col {
  width: 200px;
  /* .owl-stage's flex "stretch" below only reaches its direct children (.owl-item) - without this,
     .col shrinks to its own card's content height, so a card with a shorter (1-line) part number
     ends up shorter than its neighbors, leaving a gap under it instead of reaching the row's full
     height (and, on the home page, the bottom of the banner beside it). */
  height: 100%;
}
.related-products-scroll .owl-stage {
  display: flex; /* stretches every .owl-item to the tallest item in the row */
}
/* Belt-and-suspenders alongside the <img draggable="false"> attribute in _ProductCard.cshtml - some
   browsers still need this to fully suppress the native "drag this image out" gesture. */
.related-products-scroll img {
  -webkit-user-drag: none;
  user-select: none;
}
.related-products-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e9f2;
  background: #fff;
  color: var(--kp-blue);
  box-shadow: 0 .25rem .75rem rgba(15, 23, 42, .12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-products-nav--prev {
  left: -14px;
}
.related-products-nav--next {
  right: -14px;
}

/* Flat/underline tabs for the home page's curated brand sections (Bootstrap's default .nav-tabs box
   look doesn't match the reference design) - Bootstrap 5.1 here predates the built-in .nav-underline. */
.home-section-tabs {
  border-bottom: none;
  gap: 1.5rem;
}
.home-section-tabs .nav-link {
  border: none;
  padding: .25rem 0;
  color: #6c757d;
  font-weight: 500;
}
.home-section-tabs .nav-link.active {
  color: var(--kp-blue);
  font-weight: 600;
  border-bottom: 2px solid var(--kp-blue);
  background: none;
}

.product-img-wrap {
  position: relative;
}

.rfq-banner {
  background: linear-gradient(90deg, #eaf3ff, #f4f6fb);
  border: 1px solid #dbe7fb;
  border-radius: .9rem;
}

.brand-pill {
  border: 1px solid #e5e9f2;
  border-radius: .6rem;
  background: #fff;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  display: block;
  text-align: center;
  padding: .9rem .5rem;
  transition: box-shadow .15s ease;
}
.brand-pill:hover {
  box-shadow: 0 .4rem 1rem rgba(15, 23, 42, .08);
  color: var(--kp-blue);
}

.footer-kuplus {
  background: var(--kp-navy);
  color: #cbd5e1;
}
.footer-kuplus a { color: #cbd5e1; text-decoration: none; }
.footer-kuplus a:hover { color: #fff; }

/* Homepage quick-links row (replaces the old bottom CTA card) */
.quick-links-bar {
  border: 1px solid #e5e9f2;
  border-radius: .75rem;
  background: #fff;
  padding: .9rem 1.25rem;
  margin-bottom: 3rem;
  overflow-x: auto;
  flex-wrap: nowrap;
}
.quick-links-icon {
  color: var(--kp-blue);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.quick-link {
  color: #334155;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.quick-link:hover {
  color: var(--kp-blue);
}

/* Contact/Index.cshtml "แผนที่และการเดินทาง" cards (ที่อยู่/เวลาทำการ). */
.contact-info-card {
  border: 1px solid #e5e9f2;
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
}
.contact-info-card-title {
  font-weight: 600;
  color: var(--kp-blue);
  margin-bottom: .75rem;
}

/* SalesStaff/Default.cshtml department group heading, shown on the dark footer-kuplus panel. */
.sales-staff-dept-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: .75rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

/* Brands/Index.cshtml A-Z directory - a plain text-link index grouped by first letter, not the logo
   card grid Brand pages elsewhere use. */
.brand-index-letter {
  font-weight: 700;
  margin-bottom: 1rem;
}
