﻿/* Site chrome: footer SHOP column, shop category tree, search icon guard */

/* ---------- Footer 2 SHOP column (Site Module Importer) ---------- */
.mm-footer-shop {
  font-size: 12px;
  text-align: left;
}

.mm-footer-shop-title {
  margin: 0 0 12px;
  color: #000;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

.mm-footer-shop-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-footer-shop-list li {
  margin: 0 0 8px;
}

.mm-footer-shop-list a {
  color: #000;
  text-decoration: none;
}

.mm-footer-shop-list a:hover,
.mm-footer-shop-list a:focus-visible {
  text-decoration: underline;
}

/* ---------- Shop category tree ---------- */
.mm-cat-tree {
  box-sizing: border-box;
  width: 100%;
  color: #3f2021;
  font-size: 14px;
  line-height: 1.35;
}

.mm-cat-heading {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.mm-cat-heading a {
  color: #3f2021;
  text-decoration: none;
}

.mm-cat-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mm-cat-depth-0 > .mm-cat-item {
  border-top: 1px solid #e7ddd7;
}

.mm-cat-depth-0 > .mm-cat-item:last-child {
  border-bottom: 1px solid #e7ddd7;
}

.mm-cat-item {
  margin: 0;
  padding: 0;
}

.mm-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
}

.mm-cat-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 0;
  color: #3f2021;
  font-size: 14px;
  text-decoration: none;
}

.mm-cat-depth-0 > .mm-cat-item > .mm-cat-row > .mm-cat-link {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.mm-cat-depth-1 > .mm-cat-item > .mm-cat-row > .mm-cat-link,
.mm-cat-depth-2 > .mm-cat-item > .mm-cat-row > .mm-cat-link {
  font-weight: 400;
}

.mm-cat-link:hover,
.mm-cat-link:focus-visible {
  text-decoration: underline;
}

.mm-cat-item.is-current > .mm-cat-row > .mm-cat-link {
  font-weight: 700;
}

.mm-cat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mm-cat-toggle:hover,
.mm-cat-toggle:focus-visible {
  background: rgba(63, 32, 33, .08);
}

.mm-cat-toggle-icon {
  display: block;
  width: 9px;
  height: 9px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.mm-cat-toggle[aria-expanded="true"] .mm-cat-toggle-icon {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.mm-cat-children {
  margin: 0 0 6px;
  padding: 0 0 0 14px;
  list-style: none;
  border-left: 1px solid #e7ddd7;
}

.mm-cat-children[hidden] {
  display: none !important;
}

.mm-cat-depth-1 .mm-cat-row {
  min-height: 36px;
}

.mm-cat-depth-1 .mm-cat-link {
  padding: 7px 0;
  font-size: 14px;
}

.mm-cat-depth-2 .mm-cat-link {
  padding: 5px 0;
  font-size: 13px;
}

/* Flatsome duplicates its own widget arrows; keep exactly one control. */
.mm-cat-tree .mm-cat-toggle + .mm-cat-toggle,
.mm-cat-tree .toggle,
.mm-cat-tree .cat-parent > a > .toggle {
  display: none !important;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Unified sale badge (white on red, rounded rectangle) ---------- */
.htw-sale-badge,
.badge-inner.htw-sale-badge.on-sale {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 6px 12px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background-color: #d0021b !important;
  background-image: none !important;
  color: #ffffff !important;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none !important;
}

.htw-sale-badge .htw-sale-badge-text,
.htw-sale-badge .onsale {
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.badge-container .htw-sale-badge,
.badge .htw-sale-badge {
  margin: 0;
}

@media (max-width: 549px) {
  .htw-sale-badge,
  .badge-inner.htw-sale-badge.on-sale {
    padding: 4px 9px !important;
    font-size: 11px !important;
  }
  .htw-sale-badge .htw-sale-badge-text,
  .htw-sale-badge .onsale {
    font-size: 11px !important;
  }
}

/* JS-driven collapse: hidden by default, only the open branch is visible.
   Without JavaScript every level stays visible and reachable. */
.mm-cat-tree.mm-js .mm-cat-children {
  display: none;
}

.mm-cat-tree.mm-js .mm-cat-item.mm-open > .mm-cat-children {
  display: block;
}

/* Keep the badge a rounded rectangle even where the theme forces a pill. */
.badge .badge-inner.htw-sale-badge,
.badge-container .badge-inner.htw-sale-badge,
.badge-inner.htw-sale-badge.on-sale,
.htw-sale-badge {
  border-radius: 4px !important;
  -webkit-border-radius: 4px !important;
  min-height: 0 !important;
  line-height: 1.1 !important;
}

/* Header search: clicking the icon opens the native Flatsome search panel
   without pushing a hash into the URL. */
#header .header-search.mm-search-open > .nav-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 120;
}

#header .header-search.mm-search-open > .nav-dropdown input[type="search"] {
  visibility: visible !important;
  opacity: 1 !important;
}
