body {
  background: var(--site-background-color);
}

body.has-offcanvas {
  overflow: hidden;
}


#page-container {
  min-height: 100vh;
  display: flex;
  flex-flow: column;
}

#content-wrapper {
  flex-grow: 1;
  margin: 0 0.5em;
}

@media (min-width: 1460px) {
  #content-wrapper {
    margin: 0;
  }
}

/* --------------------------------------------------- */
#important-notice {
  background: var(--important-notice-background-color);
  color: var(--important-notice-text-color);
  text-align: center;
}

#important-notice .fourteen-forty {
  padding: 0.5em var(--gutter-x);
}

/* --------------------------------------------------- */
@media (max-width: 5000px) {
  #site-menu {
    position: sticky;
    display: block;
    top: 0;
    z-index: 999;
    transition: top 200ms linear;
  }

  #site-menu .navbar-header a {
    color: var(--navigation-text-color);
  }
}

@media (max-width: 5000px) {
  #site-menu .container {
    padding: 0 !important;
  }
}

#site-menu .quick-access {
  display: flex;
  font-size: 0.8em;
  align-items: center;
  gap: 1em;
}

@media (min-width: 768px) {
  #site-menu .quick-access {
    font-size: 1em;
  }
}

@media (min-width: 5001px) {
  #site-menu .quick-access {
    font-size: 1em;
  }
}

#site-menu .navbar {
  padding: 0.5rem var(--gutter-x);
}

@media (min-width: 5001px) {
  #site-menu .navbar {
    margin-top: 6.5em;
    padding: 0;
  }

  #site-menu .navbar .dropdown-menu .nav-link {
    background: var(--dropdown-menu-item-background-color);
    color: var(--dropdown-menu-item-text-color);
  }

  #site-menu .navbar .dropdown-menu .nav-link:hover {
    filter: brightness(0.95);
  }
}

#site-menu .dropdown-menu {
  overflow: hidden;
  --gutter-y: 0.75em;
}

body.scrolling-down #site-menu {
  top: -6em;
}

/* --------------------------------------------------- */
.navbar-header {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  gap: 0.5em 1em;
  justify-content: space-between;
  background: var(--header-background-color);
  color: var(--header-text-color);
  width: 100%;
}

@media (min-width: 768px) {
  .navbar-header {
    gap: var(--gutter-x);
  }
}

@media (min-width: 5001px) {
  .navbar-header {
    position: absolute;
    top: -5rem;
    left: 0;
    right: 0;
    margin-bottom: var(--gutter-y);
    padding-left: 1em;
    padding-right: 1em;
  }
}

.navbar-header .fourteen-forty {
  display: inherit;
  flex-flow: inherit;
  gap: inherit;
  justify-content: inherit;
  align-items: inherit;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-header .logotype {
  flex-grow: 1;
}

.navbar-header .logotype img {
  max-width: 140px;
  max-height: 32px;
}

@media (min-width: 768px) {
  .navbar-header .logotype img {
    max-width: 250px;
    max-height: 60px;
  }

  .navbar-header .logotype {
    width: auto;
  }
}

@media (min-width: 5001px) {
  .navbar-header .logotype {
    flex-grow: 0;
  }
}

.navbar-header .navbar-brand {
  display: none;
  width: calc(var(--sidebar-width) + var(--gutter-x) / 2);
  font-size: 17px;
}

.navbar-header .navbar-brand:hover,
.navbar-header .navbar-brand:focus {
  text-decoration: none;
}

.navbar-header .navbar-brand > img {
  display: block;
}

@media (min-width: 768px) {
  .navbar-header .navbar-brand {
    display: block;
  }
}

.navbar-header form[name="search_form"] .input-group {
  background-color: #f1f3f5;
}

.navbar-header .navbar-search {
  flex: 1 1 auto;
  margin: 0 auto;
}

@media (max-width: 5000px) {
  .navbar-header .navbar-search {
    width: 100%;
    order: 999;
  }
}

@media (min-width: 5001px) {
  .navbar-header .navbar-search {
    max-width: 600px;
  }
}

.navbar-header .navbar-icon {
  font-size: 1.5em;
}






/* --------------------------------------------------- */
#cart {
  position: relative;
  display: inline-block;
}

#cart > a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px transparent solid;
  border-radius: var(--border-radius);
  color: inherit;
  white-space: nowrap;
}

#cart > a:hover {
  border-color: var(--default-border-color);
  text-decoration: none;
}

#cart img {
  max-width: 2em;
  max-height: 2em;
}

@media (min-width: 768px) {
  #cart img {
    font-size: 1.5em;
  }
}

#cart .badge {
  background: #c90000;
  border-radius: 2rem;
  padding: 0.25em 0em;
  display: inline-block;
  text-align: center;
  color: #fff;
  position: absolute;
  top: 15px;
  right: -10px;
  width: 2em;
  animation: pulsating 1.5s linear infinite;
  font-size: 10px;
}

#cart .badge:empty {
  display: none;
}

@media (max-width: calc(5001px)) {
  #cart #cart .badge {
    top: 15px;
    right: 0;
  }
}

/* --------------------------------------------------- */
#sidebar {
  position: relative;
  display: flex;
  flex-flow: column;
}

/* --------------------------------------------------- */
#footer {
  background-color: var(--footer-background-color);
  color: var(--footer-text-color);
  padding: var(--gutter-y) var(--gutter-x);
}

#footer a {
  color: inherit;
}

#footer .columns {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  grid-gap: var(--gutter-x);
}

@media (min-width: 768px) {
  #footer .columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 992px) {
  #footer .columns {
    grid-template-columns: repeat(5, 1fr);
  }
}

#footer .title {
  font-size: 1.5em;
  margin: 0 0 0.75em 0;
  color: var(--footer-title-color);
}

#footer ul.list-vertical li {
  padding: 0;
}

#copyright {
  background: var(--copyright-background-color);
  color: var(--copyright-text-color);
}

#copyright .container {
  padding: 0.75em var(--gutter-x);
}

#copyright .notice {
  text-align: center;
}

#copyright .notice a {
  color: inherit;
  text-decoration: underline;
}

/* --------------------------------------------------- */
#scroll-up {
  bottom: 30px;
  display: none;
  height: 48px;
  opacity: 0.3;
  position: fixed;
  right: 30px;
  width: 48px;
}

/* ... */
/* --------------------------------------------------- */
/* Boxes */
.box {
  margin-bottom: var(--gutter-y);
}

/* Filter box */
#box-filter .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

#box-filter .filters > * {
  flex: 1 1 auto;
  min-width: fit-content;
}

#box-filter .filters [data-toggle="dropdown"] {
  cursor: pointer;
}

#box-filter .filters .dropdown-menu li {
  margin: 0.5em 1em;
}

#box-filter .filters .dropdown-menu .option {
  white-space: nowrap;
}

#box-filter .manufacturers ul {
  max-height: 200px;
  overflow-y: auto;
}

#box-filter .tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#box-filter .tokens:not(:empty) {
  padding-top: var(--gutter-y);
}

#box-filter .tokens .token {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: var(--border-radius);
  cursor: default;
}

#box-filter .tokens .token[data-group="name"] {
  background: #cbe2b6;
}

#box-filter .tokens .token[data-group="manufacturer"] {
  background: #b6c2e2;
}

#box-filter .tokens .token[data-group^="attribute"] {
  background: #e2c6b6;
}

#box-filter .tokens .token .remove {
  padding-inline-start: 0.5em;
  color: inherit;
  font-weight: 600;
}

/* --------------------------------------------------- */
/* Cookie Notice */
#box-cookie-notice {
  background: var(--cookie-notice-background-color);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1em;
  backdrop-filter: saturate(200%) blur(5px);
  color: var(--cookie-notice-text-color);
  z-index: 999;
}

#box-cookie-notice .notice {
  margin-bottom: 1em;
}

#box-cookie-notice .notice a {
  color: inherit;
  text-decoration: underline;
}

#box-cookie-notice button {
  margin: 0 0.5em;
}

@media (min-width: 768px) {
  #box-cookie-notice {
    max-width: 480px;
    margin: 0 auto;
    bottom: var(--gutter-y);
    border-radius: var(--border-radius);
  }
}

/* --------------------------------------------------- */
/* Recently viewed products */
#box-recently-viewed-products .link img {
  transition: all 100ms linear;
}

#box-recently-viewed-products .link img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 1em rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  #box-also-purchased-products {
    position: sticky;
    top: 0;
  }
}

#box-manufacturer-logotypes img {
  max-height: 60px;
}

#box-recently-viewed-products .listing {
  grid-template-columns: repeat(auto-fill, minmax(48px, 0.5fr));
}

/* --------------------------------------------------- */
/* Listing Layout */
.listing {
  display: grid;
  grid-gap: var(--gutter-x);
}

@media (min-width: 768px) {
  .listing {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.listing.products.columns {
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
}

@media (min-width: 768px) {
  .listing.products.columns {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (min-width: 992px) {
  .listing.products.columns {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  }
}

.listing.products.rows {
  grid-auto-flow: row;
  grid-template-columns: initial;
}

.listing.categories {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* simon */
}

.listing.manufacturers {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

@media (min-width: 768px) {
  .listing.manufacturers {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.listing h1,
.listing h2,
.listing h3 {
  padding-bottom: 0;
  border: none;
}

.listing a {
  color: inherit;
  text-decoration: none;
}

.listing .category,
.listing .manufacturer,
.listing .product {
  position: relative;
  overflow: hidden;
  background: var(--image-whitespace-color);
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
  transform: scale(1);
  transition: all 100ms linear;
  color: inherit;
  text-decoration: none;
}

@media (min-width: 768px) {
  .listing .category:hover,
  .listing .manufacturer:hover,
  .listing .product:hover {
    box-shadow: 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.15);
    transform: scale(1.01);
  }
}

/* --------------------------------------------------- */
/* Category Boxes */
.listing .category {
  position: relative;
  background: #E1DED5;
}

.listing .category .caption {
  background: #E1DED5;
  padding: 5px 5px;
  color: var(--default-text-color);
  text-align: center;
}

.listing .category .caption * {
  font-weight: normal;
  color: inherit;
  margin: 0;
}

.listing .category .caption .name {
  font-size: 0.8em;
}

/* --------------------------------------------------- */
/* Manufacturer Boxes */
.listing .manufacturer {
  position: relative;
  background: var(--whitespace-color);
}

.listing .manufacturer img {
  width: 100%;
  height: auto;
  padding: 1rem;
}

.listing .manufacturer .caption {
  margin: 0;
  padding: calc(var(--gutter-y) / 2) var(--gutter-x);
  background: #f2f2f2;
  color: var(--default-text-color);
  text-align: center;
}

/* --------------------------------------------------- */
/* Product Boxes */
.listing .product {
  position: relative;
  background: var(--whitespace-color);
}

.listing .product .link {
  text-decoration: none;
}

.listing .product .image-wrapper {
  background: var(--image-whitespace-color);
}

.listing .product .image-wrapper .sticker {
  position: absolute;
  top: 20px;
  left: -32px;
  width: 125px;
  padding: 0.25rem 0;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
}

.listing .product .image-wrapper .sticker.new {
  background: rgba(251, 184, 41, 0.9);
}

.listing .product .image-wrapper .sticker.sale {
  background: rgba(237, 60, 50, 0.9);
}

.listing .product .name {
  font-weight: normal;
}

.listing .product .manufacturer-name {
  color: var(--default-text-color);
  font-size: 0.9em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 200%;
  opacity: 0.75;
}

.listing .product .description {
  max-width: 640px;
  text-align: left;
}

.listing .product .stock-available .value {
  color: #009900;
}

.listing .product .stock-partly-available .value {
  color: #ff9900;
}

.listing .product .stock-unavailable .value {
  color: #cc0000;
}

.listing .product .price-wrapper {
  font-weight: normal;
}

.listing .product .price-wrapper .price {
  font-weight: normal;
}

.listing .product .price-wrapper .regular-price,
.listing .product .price-wrapper .recommended-price {
  color: var(--default-text-color);
  font-weight: normal;
}

.listing .product .price-wrapper .campaign-price {
  color: #c00;
}

.listing .product .preview {
  margin: 0 -1px -1px -1px;
  display: none;
  position: absolute;
  top: 1em;
  right: 1em;
  padding: var(--input-padding-y);
  width: 3em;
  box-shadow: none;
}

@media (min-width: 768px) {
  .listing .product:hover .preview {
    display: inline-block;
  }
}

/* --------------------------------------------------- */
/* Product Columns */
.listing.columns .product .image {
  width: 100%;
  height: auto;
}

.listing.columns .product .info {
  padding: 0.5rem 0;
  text-align: center;
}

.listing.columns .product .description {
  display: none;
}

.listing.columns .product .price-wrapper {
  position: initial;
}

/* --------------------------------------------------- */
/* Product Rows */
.listing.rows .product .link {
  display: flex;
  gap: var(--gutter-x);
  padding: 5px 30px;
}

/* simon */
.listing.rows .product .info {
  flex: 1 1 auto;
}

/* simon revise */
.listing.rows .product .image-wrapper {
  width: 30px;
}

@media (min-width: 768px) {
  .listing.rows .product .image-wrapper {
    width: 30px;
  }
}

@media (min-width: 768px) {
  .listing.rows .product {
    height: auto;
  }

  .listing.rows .product .description {
    margin-bottom: 1em;
  }
}

/* --------------------------------------------------- */
/* Product Page Layout */
#box-product form[name="buy_now_form"] {
  padding: var(--gutter-y) var(--gutter-x);
  margin: 1em 0;
  border: 1px solid var(--default-border-color);
  border-radius: var(--border-radius);
}

#box-product .images {
  margin-bottom: var(--gutter-y);
}

#box-product .main-image {
  position: relative;
  background: var(--whitespace-color);
  overflow: hidden;
}

#box-product .main-image .sticker {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  top: 15px;
  left: -35px;
  padding: 0.25rem 0;
  position: absolute;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  width: 140px;
}

#box-product .main-image .sticker.new {
  background: rgba(251, 184, 41, 0.85);
}

#box-product .main-image .sticker.sale {
  background: rgba(237, 60, 50, 0.85);
}

#box-product .price-wrapper {
  font-size: 1.75em;
}

#box-product .price-wrapper .regular-price,
#box-product .price-wrapper .recommended-price {
  font-size: 0.75em;
}

#box-product .price-wrapper .campaign-price {
  color: #cc0000;
}

#box-product .tax {
  color: #999;
}

#box-product .stock-available .value {
  color: #009900;
}

#box-product .stock-partly-available .value {
  color: #ff9900;
}

#box-product .stock-unavailable .value {
  color: #cc0000;
}

#box-product .out-of-stock-notice {
  background: var(--default-background-color);
  border: 1px solid var(--default-border-color);
  padding: var(--gutter-y) var(--gutter-x);
  border-radius: var(--border-radius);
}

#box-product .stock-notice {
  margin-top: 1em;
  padding: 0.5em;
  border-radius: var(--border-radius);
  border: 1px #86cb00 solid;
  color: #86cb00;
}

#box-product .stock-notice:empty {
  display: none;
}

#box-product .stock-notice.notice {
  color: #e58310;
  border-color: #e58310;
}

#box-product .stock-notice.warning {
  color: #c00;
  border-color: #c00;
}

#box-product .stock-notice .description {
  margin-top: 1em;
  font-size: 0.8em;
}

#box-product .social-bookmarks {
  font-size: 1.75em;
  margin-top: 1em;
}

#box-product .social-bookmarks a {
  margin: 0 0.25em;
}

#box-product .description p:first-child {
  margin-top: 0;
}

#box-product .description p:last-child {
  margin-bottom: 0;
}

#box-product .description a {
  text-decoration: underline;
}

/* --------------------------------------------------- */
/* Static Catalog Tree (Flat Layout) */
#box-category-tree {
  padding: 1em;
  margin-bottom: 1.5em;
  background-color: #e1ded5; /* warm light beige background */
  line-height: 1.8;
}

/* #box-category-tree .tree-header {
/*   font-weight: bold;
/* text-transform: uppercase;
/*   color: #5c4033;
  /* font-size: 1.05rem;
  /* margin-bottom: 0.75em;
  /* border-bottom: 2px solid #b48c68;
  /* padding-bottom: 0.3em;
/* }

/* Level 1 (bold uppercase) */
#box-category-tree .cat-level-1 {
  display: inline-block;
  font-weight: bold;
  text-transform: uppercase;
  color: #333;
  margin-right: 1em;
}

/* Level 2 (normal) */
#box-category-tree .cat-level-2 {
  color: #333;
  text-decoration: none;
  margin-right: 0.5em;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  background-color: #d7d3c8;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;       /* prevent text from splitting within the item */
  
}

#box-category-tree .cat-level-2:hover {
  background-color: #f5eee5;
  color: #5c4033;
}

/* Selected / active category */
#box-category-tree .cat-level-2.active {
  background-color: #5c4033;
  color: #fff;
  font-weight: bold;
}

#box-category-tree .cat-level-3 {
  white-space: nowrap;       /* prevent text from splitting within the item */
}

/* --------------------------------------------------- */
/* Similar Products Section */
#box-similar-products .listing {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5em;
  margin-top: 1em;
}

/* each product item */
#box-similar-products .product {
  flex: 0 1 150px; /* fixed width for small thumbnails */
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5em;
  transition: all 0.2s ease-in-out;
}

#box-similar-products .product:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* product image */
#box-similar-products .product .image {
  width: 100%;
  height: auto;
  margin-bottom: 0.5em;
}

/* name and price alignment */
#box-similar-products .product .name,
#box-similar-products .product .manufacturer-name,
#box-similar-products .product .price-wrapper {
  display: block;
  text-align: center;
  white-space: normal;
}

/* hide overflowing text neatly */
#box-similar-products .product .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* prevent Add to Cart overlay from overlapping */
#box-similar-products .product .preview {
  position: static;
  display: inline-block;
  margin-top: 0.5em;
}

/* --------------------------------------------------- */
/* PRODUCT LIST — Alternate Backgrounds */
.product-list .product-item:nth-child(odd) {
  background-color: #f9f7f3; /* light beige */
}

.product-list .product-item:nth-child(even) {
  background-color: #ffffff; /* white */
}

/* Subtle border, rounded corners, and spacing */
.product-list .product-item {
  border-radius: 6px;
  padding: 10px;
  transition: background-color 0.2s ease;
}

/* Hover feedback */
.product-list .product-item:hover {
  background-color: #f0ece8;
}

/* --------------------------------------------------- */
/* RESPONSIVE — Small Screens (≤ 600px) */
@media (max-width: 600px) {
  /* Stack vertically */
  .product-list .product-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Buttons (product-actions) on top */
  .product-list .product-actions {
    order: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
  }

  .product-list .product-actions .btn {
    min-width: 90px;
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  /* Product info (image + details) below buttons */
  .product-list .product-info {
    order: 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    width: 100%;
  }

  /* Center and size image */
  .product-list .product-image img {
    display: block;
    margin: 0 auto;
    max-width: 80px;
    height: auto;
    border-radius: 4px;
  }

  /* Details (name + price) */
  .product-list .product-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .product-list .product-name {
    font-size: 0.9rem;
    line-height: 1.3em;
    white-space: normal;
    word-break: break-word;
    margin: 0;
    text-align: center;
  }

  .product-list .product-price {
    font-size: 0.85rem;
    text-align: center;
    color: #333;
  }
}

/* Collapsible Category Tree */
#box-category-tree .tree-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: center;      /* center the title and triangle */
  align-items: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #5c4033;
  font-size: 1.05rem;
  padding: 0.3em 0;
  border-bottom: none;          /* remove the line below */
}

#box-category-tree #catalog-toggle-icon {
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

#box-category-tree.collapsed #catalog-toggle-icon {
  transform: rotate(-90deg);
}

#category-tree-body {
  transition: max-height 0.4s ease, opacity 0.3s ease;
  overflow: hidden;
}

#box-category-tree.collapsed #category-tree-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

#box-category-tree:not(.collapsed) #category-tree-body {
  max-height: 1000px; /* large enough to fit your list */
  opacity: 1;
}


/* Subcategory Tree */
/* Clean, inline subcategory list (no box, no background) */
#box-subcategory-tree {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0 0 1em 0;
}

#box-subcategory-tree .card-body {
  background: transparent;
  padding: 0;
  border: none;
}

/* Remove the "Sub-category" heading entirely */
#box-subcategory-tree .tree-header {
  display: none;
}

/* Inline subcategory links */
#box-subcategory-tree ul.category-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* left align */
  gap: 1.5em;
}

/* Each subcategory item */
#box-subcategory-tree li.tree-item {
  display: inline-block;
  margin: 0;
}

/* Subcategory link style – match heading style */
#box-subcategory-tree li.tree-item a {
  font-weight: bold;
  color: #5c4033; /* same brown as title */
  text-decoration: none;
  position: relative;
  padding-bottom: 0.25em;
  transition: color 0.2s ease;
}

/* Brown underline under each subcategory */
#box-subcategory-tree li.tree-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #b48c68; /* warm brown line */
  transition: transform 0.2s ease;
  transform: scaleX(0);
  transform-origin: left;
}

/* Animate underline on hover */
#box-subcategory-tree li.tree-item a:hover::after {
  transform: scaleX(1);
}

/* Optional hover color */
#box-subcategory-tree li.tree-item a:hover {
  color: #7a5c4a;
}







.catalog-btn {
  background: #5c4033;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4em 0.9em;
  font-size: 0.95rem;
  cursor: pointer;
}

.catalog-btn:hover {
  background: #7a5c4a;
}

.catalog-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.catalog-overlay.active {
  display: flex;
}

.catalog-panel {
  background: #fff;
  border-radius: 0.75em;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5em;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.close-btn {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #5c4033;
}

.catalog-title {
  font-size: 1.2rem;
  color: #5c4033;
  text-align: center;
  margin-bottom: 0.75em;
}

#box-customer-service-links .nav-pills > li > a {
  background: transparent !important;
  color: inherit !important;
  border-radius: 0 !important;
}

#box-customer-service-links .nav-pills > li.active > a {
  background: transparent !important;
  color: inherit !important;
}

#box-customer-service-links .nav-pills > li > a:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

/* =========================================
   CUSTOMER SERVICE CHAT – LIGHT GREY ELEGANT
   ========================================= */

/* Main Chat Card */
#box-customer-chat.card {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  background: #ffffff;
  transition: all 0.3s ease;
}
#box-customer-chat.card:hover {
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* Header */
#box-customer-chat .card-header {
  background: linear-gradient(135deg, #f2f2f2, #e4e4e4);
  color: #333;
  padding: 1em 1.4em;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
#box-customer-chat .card-title {
  font-size: 1.3em;
  font-weight: 600;
}

/* Chat Area */
#chat-messages {
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1em;
  overflow-y: auto;
}

/* Customer Messages (right side) */
#chat-messages div[style*="background:#dcf8c6"] {
  background: #e2e8f0 !important; /* soft cool grey-blue tone */
  color: #333;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.8em 1em;
  line-height: 1.4;
}

/* Admin Messages (left side) */
#chat-messages div[style*="background:#f1f1f1"] {
  background: #f5f5f5 !important; /* light grey bubble */
  color: #333;
  border-radius: 12px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.05);
  padding: 0.8em 1em;
  line-height: 1.4;
}

/* Order Tag Badge */
#chat-messages span[style*="background:#b48c68"] {
  background: #bbb !important;
  color: #fff;
  font-size: 0.8em;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Input Area */
#box-customer-chat form {
  background: #fdfdfd !important;
  border-top: 1px solid #e1e1e1 !important;
  padding: 1em;
  display: flex;
  gap: 0.6em;
  align-items: center;
}
#box-customer-chat select,
#box-customer-chat textarea {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  padding: 0.6em;
  color: #333;
  transition: all 0.2s ease;
}
#box-customer-chat select:focus,
#box-customer-chat textarea:focus {
  border-color: #999;
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 180, 180, 0.2);
}

/* Send Button */
#box-customer-chat button.btn.btn-primary {
  background: linear-gradient(135deg, #bfbfbf, #a3a3a3);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.6em 1.4em;
  transition: all 0.2s ease;
}
#box-customer-chat button.btn.btn-primary:hover {
  background: linear-gradient(135deg, #a3a3a3, #8c8c8c);
}

/* Login Section */
#box-customer-chat.card .card-body.text-center {
  background: #fafafa;
  padding: 2em;
}
#box-customer-chat.card .card-body.text-center h1 {
  color: #555;
  margin-bottom: 0.4em;
}
#box-customer-chat.card .card-body.text-center p.text-muted {
  color: #777;
}
#box-customer-chat.card .btn.btn-primary {
  background: linear-gradient(135deg, #bfbfbf, #a3a3a3);
  border: none;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 8px;
}
#box-customer-chat.card .btn.btn-primary:hover {
  background: linear-gradient(135deg, #a3a3a3, #8c8c8c);
}

/* Scrollbar */
#chat-messages::-webkit-scrollbar {
  width: 8px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 4px;
}
#chat-messages::-webkit-scrollbar-track {
  background: #f2f2f2;
}
