/* Hide the old Elementor header. Country popup is moved to body in JS. */
body.cb-has-custom-header .elementor-location-header {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0);
  pointer-events: none;
}

.cb-header {
  position: sticky;
  top: 0;
  z-index: 10020;
  background: #000;
  color: #fff;
  font-family: "Bai Jamjuree", sans-serif;
}

.cb-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 28px;
  width: 100%;
  max-width: 1320px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

.cb-header-logo {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 196px;
}

.cb-header-logo img {
  display: block !important;
  width: auto !important;
  max-width: 196px !important;
  height: 30px !important;
}

.cb-header-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.cb-header-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-header-menu > li {
  position: relative;
}

.cb-header-menu a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .2px;
  white-space: nowrap;
}

.cb-header-menu a:hover,
.cb-header-menu .current-menu-item > a {
  color: #f15a24;
}

.cb-header-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #111;
  border: 1px solid #2a2a2a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  z-index: 20;
}

.cb-header-menu .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.cb-header-menu .sub-menu a {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
}

.cb-header-menu .sub-menu a:hover {
  background: #1c1c1c;
}

.cb-header-nav-close {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.cb-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 3;
}

.cb-search-open,
.cb-header-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.cb-search-open:hover,
.cb-header-burger:hover,
.cb-header-country:hover {
  color: #f15a24;
}

.cb-header-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.cb-header-flag {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

.cb-header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.cb-header-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 1100px) {
  .cb-header-inner {
    min-height: 52px;
    padding: 0 10px;
    gap: 6px;
  }

  .cb-header-logo {
    max-width: 158px;
  }

  .cb-header-logo img {
    max-width: 158px !important;
    height: 24px !important;
  }

  .cb-header-burger {
    display: inline-flex !important;
  }

  .cb-header-cur {
    display: none;
  }

  .cb-header-nav-close {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
    position: absolute;
    top: 12px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
  }

  .cb-header-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10040;
    flex-direction: column;
    justify-content: center;
    background: #000;
    padding: 72px 24px 40px;
    overflow-y: auto;
  }

  body.cb-nav-open .cb-header-nav {
    display: flex;
  }

  .cb-header-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .cb-header-menu a {
    padding: 14px 8px;
    font-size: 20px;
    text-align: center;
  }

  .cb-header-menu .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 0 8px;
  }

  .cb-header-menu .sub-menu a {
    font-size: 16px;
    color: #bbb;
  }

  .cb-header-cc {
    display: none;
  }
}

@media (max-width: 479px) {
  .cb-header-logo {
    max-width: 136px;
  }

  .cb-header-logo img {
    max-width: 136px !important;
    height: 21px !important;
  }

  .cb-header-country {
    padding: 0 4px;
  }
}

body.cb-nav-open,
body.cb-search-open {
  overflow: hidden;
}

.cb-search-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
}

.cb-search-modal[hidden] {
  display: none;
}

.cb-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.cb-search-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, calc(100vw - 24px));
  max-height: min(88dvh, 760px);
  margin: 8vh auto 0;
  background: #111;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.cb-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid #2a2a2a;
}

.cb-search-bar-icon {
  display: flex;
  color: #f15a24;
}

.cb-search-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-family: "Bai Jamjuree", sans-serif;
}

.cb-search-input:focus {
  outline: none;
}

.cb-search-input::placeholder {
  color: #888;
}

.cb-search-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cb-search-close:hover {
  color: #f15a24;
}

.cb-search-body {
  overflow-y: auto;
  padding: 8px 0 12px;
}

.cb-search-hint,
.cb-search-empty {
  margin: 0;
  padding: 28px 20px;
  color: #999;
  text-align: center;
  font-size: 15px;
}

.cb-search-results {
  display: flex;
  flex-direction: column;
}

.cb-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
}

.cb-search-item:hover {
  background: #1c1c1c;
}

.cb-search-item img {
  width: 48px;
  height: 64px;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
  flex-shrink: 0;
}

.cb-search-item-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cb-search-item-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.cb-search-item-price {
  color: #f15a24;
  font-size: 14px;
  font-weight: 700;
}

.cb-search-item-price del {
  color: #888;
  font-weight: 500;
  margin-right: 6px;
}

.cb-search-more {
  display: block;
  margin: 8px 16px 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f15a24;
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

.cb-search-more:hover {
  background: #d94c1b;
  color: #fff;
}

.elementor-shortcode .cb-home-search-open,
.cb-home-search-open {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 640px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Bai Jamjuree", sans-serif;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.cb-home-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-right: 0;
  border-radius: 2px 0 0 2px;
}

.cb-home-search-open-icon {
  display: flex;
  color: #888;
  flex-shrink: 0;
}

.cb-home-search-placeholder {
  color: #555;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-home-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: #ff5a00;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0 2px 2px 0;
}

.cb-home-search-open:hover .cb-home-search-field {
  border-color: #ff5a00;
}

.cb-home-search-open:hover .cb-home-search-btn {
  background: #e64d00;
}

@media (max-width: 768px) {
  .cb-search-dialog {
    width: 100vw;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .cb-search-input {
    font-size: 16px;
  }
}

/* Region / currency modal */
#custom-popup.popup-overlay {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  z-index: 10060 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 20px !important;
  background: rgba(0, 0, 0, 0.72) !important;
  overflow-y: auto;
  pointer-events: auto !important;
}

#custom-popup .popup-content {
  position: relative;
  width: min(420px, 100%) !important;
  max-width: 420px !important;
  margin: 10vh auto !important;
  padding: 28px 24px 24px !important;
  background: #111 !important;
  color: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
  font-family: "Bai Jamjuree", sans-serif !important;
  text-align: left !important;
  box-sizing: border-box;
}

#custom-popup #close-popup-btn {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer;
}

#custom-popup .popup-content h3 {
  margin: 0 0 20px !important;
  color: #fff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

#custom-popup .popup-content label {
  display: block !important;
  margin: 0 0 8px !important;
  color: #bbb !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: left !important;
}

#custom-popup #change-country-form {
  display: block !important;
  margin: 0 0 18px !important;
}

#custom-popup #country-select {
  width: 100% !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid #333 !important;
  border-radius: 10px !important;
  background: #1a1a1a !important;
  color: #fff !important;
  font-size: 15px !important;
  font-family: inherit !important;
}

#custom-popup #change-country-form button[type="submit"] {
  display: none !important;
}

#custom-popup [data-woocs-sd],
#custom-popup .selectron23 {
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: auto !important;
  height: auto !important;
  transform: none !important;
  margin: 0 0 18px !important;
}

#custom-popup .selectron23-container {
  width: 100% !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border: 1px solid #333 !important;
  border-radius: 10px !important;
  background: #1a1a1a !important;
  overflow: hidden !important;
}

#custom-popup .selectron23-container[data-opened="1"] {
  max-height: 240px !important;
  overflow-y: auto !important;
}

#custom-popup .selectron23-option {
  background: #1a1a1a !important;
  margin: 0 !important;
  padding: 10px 14px !important;
}

#custom-popup .selectron23-option-title {
  color: #fff !important;
  font-family: "Bai Jamjuree", sans-serif !important;
  font-size: 15px !important;
}

#custom-popup .selectron23-option-text,
#custom-popup .selectron23-img {
  display: none !important;
}

#custom-popup #update-button {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f15a24 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
}

#custom-popup #update-button:hover {
  background: #d94c1b !important;
}

@media (max-width: 768px) {
  #custom-popup.popup-overlay {
    padding: 0 !important;
  }

  #custom-popup .popup-content {
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 72px 20px 28px !important;
  }
}
