:root {
  --primary-color: #D71921;
  --primary-gradient: linear-gradient(135deg, #D71921, #F15922);
  --text-color: #333;
  --bg-color: #fff;
  --bg-hover: #fff5f5;
  --border-color: #f5c0c3;
}
.vr-button.button_stores {
  position: absolute;
  top: 15px;
  left: 70px;
  background: #ffffff;
  padding: 10px 10px 6px;
  border-radius: 50%;
  z-index: 6;
  cursor: pointer;
}

.vr-button.button_stores:hover {
  background: #ddd;
}

.vr-button.button_stores i {
  font-size: 18px;
  color: #D71921;
}

/* ===== VIP POPUP ===== */
#modal_store_vip .popup-content {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}
#modal_store_vip .content-store-vip {
  position: static !important;
  transform: none !important;
  top: unset !important;
  left: unset !important;
  width: 100% !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}
#modal_store_vip .popup-header .title {
  background: -webkit-linear-gradient(135deg, #D71921 0%, #F15922 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
#modal_store_vip .popup-header {
  flex-shrink: 0;
  width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 16px 24px !important;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  position: relative;
}
#modal_store_vip .popup-body {
  flex: 1;
  width: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  height: auto !important;
  overflow-y: auto;
  padding: 20px 24px !important;
  box-sizing: border-box;
}
#content_store_vip {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  float: none !important;
}
#modal_store_vip .box_item_store {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  min-width: 0;
}
#modal_store_vip .store-card__vip {
  display: block !important;
}

/* ===== CATEGORY FILTER TAGS ===== */
#modal_stores #modal_filter_two {
  position: static;
  width: auto;
  top: unset;
  right: unset;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid #ececec;
  padding: 8px 16px 12px;
}
#modal_stores .list_category {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
#modal_stores .filter_category {
  float: none !important;
  margin: 0 !important;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #f5c0c3;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
#modal_stores .filter_category:hover {
  border-color: #D71921;
  color: #D71921;
  background: #fff5f5;
}
#modal_stores .filter_category.active {
  background: #D71921 !important;
  border-color: #D71921 !important;
  color: #fff !important;
}
#modal_stores .filter_category_clear {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px dashed #ccc;
  background: transparent;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
#modal_stores .filter_category_clear:hover {
  border-color: #D71921;
  color: #D71921;
}

/* ===== CATEGORY MENU (nav > ul sidebar) ===== */
/* Title */
nav > ul .title_category {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #222 !important;
  padding: 14px 16px 10px !important;
  border-bottom: 1px solid #f5c0c3 !important;
  margin-bottom: 4px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.btn-close-category {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
/* content_category scroll */
nav > ul .content_category {
  padding: 4px 6px !important;
}
/* Parent item li */
nav > ul .content_category > li {
  border-top: none !important;
  margin: 2px 0 !important;
  border-radius: 10px !important;
  list-style: none;
}
/* Parent item anchor */
nav > ul .content_category > li > a.parent_cat {
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #333 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.15s !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
nav > ul .content_category > li > a.parent_cat > i {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 15px;
  color: #D71921;
}
nav > ul .content_category > li > a.parent_cat:hover {
  background: #fff5f5 !important;
  color: #D71921 !important;
}
/* Active parent */
nav > ul .content_category > li > a.parent_cat.active_cat {
  background: #fff0f0 !important;
  color: #D71921 !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}
/* Subcategory list */
nav > ul .content_category li ul {
  background: transparent !important;
  padding: 2px 0 6px 0 !important;
  border-left: 2px solid #f5c0c3 !important;
  margin: 0 0 4px 18px !important;
  border-radius: 0 !important;
}
nav > ul .content_category li li {
  list-style: none;
  margin: 1px 0;
}
nav > ul .content_category li li a {
  padding: 7px 12px 7px 16px !important;
  font-size: 13px !important;
  color: #555 !important;
  font-weight: 400 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
}
nav > ul .content_category li li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #bbb;
  flex-shrink: 0;
}
/* Ẩn dot bullet khi sub-cat có icon */
nav > ul .content_category li li a:has(> i)::before {
  display: none !important;
}
nav > ul .content_category li li a > i {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 13px;
  color: #D71921;
}
nav > ul .content_category li li a:hover {
  background: #fff5f5 !important;
  color: #D71921 !important;
}
nav > ul .content_category li li a:hover::before {
  background: #D71921;
}
nav > ul .content_category li li a:after {
  display: none !important;
}

/* ===== FILTER BAR ===== */
/* Filter bar base */
#modal_stores .popup-body .top {
  width: 100% !important;
  padding: 10px 0 !important;
  height: auto !important;
  min-height: unset !important;
  box-sizing: border-box;
  margin: 0 !important;
}

#modal_stores .filter_desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* Hàng 1: search chiếm full width */
#modal_stores .filter_desktop .search.sort_store {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
  box-sizing: border-box;
}
#modal_stores .filter_desktop .search.sort_store img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
}
#modal_stores .filter_desktop .search.sort_store .txt_search {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
}
/* Hàng 2: sort + filter chia đôi */
#modal_stores .filter_desktop .filter.sort_store,
#modal_stores .filter_desktop .filter_two.sort_store {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
}
#modal_stores .filter_desktop .select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  padding: 0;
  width: auto;
  flex: 1;
}


.store-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}
.store-filter__search {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
}
.store-filter__sort {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.store-filter__select {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid #f5c0c3;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  background: #fff;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.store-filter__select:focus {
  border-color: #D71921;
}
.store-filter__btn-icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid #f5c0c3;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.store-filter__btn-icon:hover {
  border-color: #D71921;
  background: #fff5f5;
}
.store-filter__btn-icon .icon-sort-arrow {
  transition: transform 0.2s;
  transform: rotate(180deg); /* mặc định: desc = xuống */
}
.store-filter__btn-icon:not(.desc) .icon-sort-arrow {
  transform: rotate(0deg); /* asc = lên */
}
.store-filter__btn-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1.5px solid #f5c0c3;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: auto;
}
.store-filter__btn-filter:hover {
  border-color: #D71921;
  color: #D71921;
  background: #fff5f5;
}
.store-filter__btn-filter .icon-chevron {
  transition: transform 0.2s;
}
#modal_filter_two.open ~ * .icon-chevron,
.store-filter__btn-filter.active .icon-chevron {
  transform: rotate(180deg);
}

/* modal_stores header — title left-aligned, no logo */
#modal_stores .popup-header {
  display: flex;
  align-items: center;
  padding: 0 20px;
}
#modal_stores .popup-header .title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  flex: 1;
}

/* Back button — same style as .vr-button.button_home */
.back-list-store {
  background: #ffffff;
  border-radius: 50%;
  width: 38px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  position: absolute;
  right: 65px;
  top: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
}
.back-list-store:hover { background: #ddd; }
.popup-preview .back-list-store {
  display: flex !important;
}

/* Home button base position fix */
.vr-button.button_home {
  top: 8px !important;
}

/* Home button in VIP mode */
.vr-button.button_home.vip-mode {
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 15px !important;
  right: 16px !important;
}
.vr-button.button_home.vip-mode img,
.vr-button.button_home.vip-mode svg {
  width: 28px !important;
  height: 28px !important;
}

/* Home button — same size as back button in preview */
.vr-button.button_home.preview {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 5px !important;
  right: 10px !important;
}

/* Close button — white circle on store list / category header */
.search_store .close-popup,
.popup-list-category .close-popup {
  background: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
  top:5px;
}
.search_store .close-popup:hover,
.popup-list-category .close-popup:hover {
  background: #fff5f5;
}

/* Sound button icon toggle */
.button_sound .icon-sound-off { display: none; }
.button_sound.sound_on .icon-sound-on { display: block; }
.button_sound.sound_on .icon-sound-off { display: none; }
.button_sound:not(.sound_on) .icon-sound-on { display: none; }
.button_sound:not(.sound_on) .icon-sound-off { display: block; }

/* Category button icon toggle */
.button_category .icon-close { display: none; }
.button_category.menu-btn-open .icon-category { display: none; }
.button_category.menu-btn-open .icon-close { display: block; }
.button_category.menu-btn-open .tooltip-bottom { display: none; }

/* ===== STORE LIST REDESIGN ===== */

/* Search bar */
.store-search-wrap {
  padding: 10px 0;
}
.store-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  gap: 10px;
  max-width: 480px;
  margin: 0;
  border: 1.5px solid #f5c0c3;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.store-search-bar:focus-within {
  border-color: #D71921;
  box-shadow: 0 0 0 3px rgba(215,25,33,0.12);
}
.store-search-bar input.txt_search {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: #333;
}
.store-search-bar input.txt_search::placeholder { color: #aaa; }

/* Grid */
.search_store .popup-body .body,
#modal_stores .popup-body .body {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 24px 20px;
  align-items: start;
  background: #f8f8f8;
}

/* Box wrapper */
.search_store .box_item_store { padding: 0 !important; }

/* Card */
.store-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  transition: transform 0.22s, box-shadow 0.22s;
}
.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(215,25,33,0.2);
}

/* Thumbnail */
.store-card__thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}
.store-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.store-card:hover .store-card__thumb img { transform: scale(1.05); }

/* Play overlay */
.store-card__play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.store-card:hover .store-card__play { opacity: 1; }

/* Views badge */
.store-card__views {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

/* VIP badge */
.store-card__vip {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #D71921, #F15922);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* Card body */
.store-card__body {
  padding: 10px 12px 12px;
  overflow: hidden;
  background: #fff;
}
.store-card__name {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2d2d2d;
  text-transform: uppercase;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  line-height: 1.4;
  letter-spacing: 0.4px;
}

/* Fix override conflict from assets/css/style.css */
.search_store .popup-body .body,
#modal_stores .popup-body .body {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  padding: 16px 24px 20px !important;
  text-align: left !important;
  background: #f8f8f8 !important;
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - 150px);
}
.search_store .box_item_store,
#modal_stores .box_item_store {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  min-width: 0;
}

/* Responsive store grid */

/* Fix pagination layout */
.search_store .popup-body,

#modal_stores .popup-body {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 54px);
  overflow: hidden;
}
.search_store .popup-body .store-search-wrap,
#modal_stores .popup-body .top {
  flex-shrink: 0;
}
.search_store .popup-body .body,
#modal_stores .popup-body .body {
  flex: 1;
  overflow-y: auto;
  height: auto !important;
}
.search_store #pagination-store,
#modal_stores #pagination-store {
  flex-shrink: 0;
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

/* Pagination style */
.search_store #pagination-store .simplePagination {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.search_store #pagination-store .simplePagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  transition: all 0.15s;
}
.search_store #pagination-store .simplePagination a:hover {
  background: #fff5f5;
  border-color: #D71921;
  color: #D71921;
}
.search_store #pagination-store .simplePagination .current a,
.search_store #pagination-store .simplePagination .active a {
  background: #D71921;
  border-color: #D71921;
  color: #fff;
}
.search_store #pagination-store .simplePagination .disabled a {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== PAGINATION REDESIGN ===== */
#pagination-store {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 16px;
  background: none;
}
#pagination-store ul {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
#pagination-store li {
  float: none;
  list-style: none;
}
#pagination-store a,
#pagination-store span {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1.5px solid #ddd;
  margin: 0;
  transition: all 0.18s;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#pagination-store a:hover {
  border-color: #D71921;
  color: #D71921;
  background: #fff5f5;
  box-shadow: none;
}
#pagination-store .active span.current {
  background: #D71921;
  border-color: #D71921;
  color: #fff;
  box-shadow: 0 2px 10px rgba(215,25,33,0.35);
  cursor: default;
}
#pagination-store .disabled span {
  background: #fff !important;
  border-color: #e0e0e0 !important;
  color: #ccc !important;
  box-shadow: none !important;
  cursor: default;
}
#pagination-store .disabled a {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}

/* ===== CUSTOM SCROLLBAR ===== */
.popup-content *::-webkit-scrollbar,
.popup *::-webkit-scrollbar,
.search_store *::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.popup-content *::-webkit-scrollbar-track,
.popup *::-webkit-scrollbar-track,
.search_store *::-webkit-scrollbar-track {
  background: transparent;
}
.popup-content *::-webkit-scrollbar-thumb,
.popup *::-webkit-scrollbar-thumb,
.search_store *::-webkit-scrollbar-thumb {
  background: rgba(215,25,33,0.3);
  border-radius: 10px;
}
.popup-content *::-webkit-scrollbar-thumb:hover,
.popup *::-webkit-scrollbar-thumb:hover,
.search_store *::-webkit-scrollbar-thumb:hover {
  background: rgba(215,25,33,0.6);
}

/* Firefox */
.popup-content, .popup, .search_store,
.popup-content *, .popup *, .search_store * {
  scrollbar-width: thin;
  scrollbar-color: rgba(215,25,33,0.3) transparent;
}

.hidden { display: none !important; }

.logo_vrmall img { width: 95px !important; }

/* ===== POWERED BY ===== */
.right-control-bottom {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 4;
}
.powered-by img {
  width: 90px;
  opacity: 0.7;
  display: block;
  transition: opacity 0.2s;
}
.powered-by:hover img {
  opacity: 1;
  cursor: pointer;
}
.desc_info { display: none; }

/* ===== POPUP INFO ===== */
.popup-info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.popup-info-box {
  background: #fff;
  border-radius: 16px;
  width: 480px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  position: relative;
  animation: infoPopupIn 0.2s ease;
}
@keyframes infoPopupIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.popup-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f8f8f8;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.popup-info-close:hover { background: #fff0f0; }
.popup-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 2px solid #D71921;
}
.popup-info-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.popup-info-body {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popup-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background: #f8f8f8;
  border-radius: 10px;
}
.popup-info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  white-space: nowrap;
  min-width: 80px;
}
.popup-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #222;
}
.popup-info-desc {
  padding: 14px;
  background: #fff5f5;
  border-radius: 10px;
  border-left: 3px solid #D71921;
}
.popup-info-desc-label {
  font-size: 13px;
  font-weight: 600;
  color: #D71921;
  margin: 0 0 8px;
}
.popup-info-desc-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}







.m-0{
  margin: 0 !important;
}

.p-0{
  padding: 0 !important;
}

.popup{
  position: fixed;
  background: rgba(0,0,0,0.80);
  left: 0px;
  right: 0px;
  bottom: 0px;
  top: 0px;
  z-index: 201;
}

.popup-content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 0.4rem;
  border-radius: 0.5rem;
  width: 100%;
  height: 100%;
}

#modal_stores .popup-header{
  background: #6e707e;
  text-align: center;
  display: flex;
  justify-content: start;
  height: 50px;
}

.popup-header .logo img{
  width: 80%;
  margin-top: 5px;
}

.popup-header .title{
  font-size: 36px;
  margin: 13px auto;
}

.popup-body{
  background: #eeeeee;
  display: flex;
  flex-direction: column;
}

.popup-body .top{
  padding: 30px 0;
  height: 40px;
  margin: 0 auto;
  width: max-content;
}


.popup-body .body{
  overflow-x: hidden;
  overflow-y: auto;
  height: calc(100vh - 209px);
  text-align: center;
  color: #000000;
}

.close-popup{
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
}

.box_item_store{
  float: left;
  position: relative;
  padding: 10px;
  box-sizing: border-box;
  color: #000000;
  width: 100%;
}

.txt_search{
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #6e707e;
  background-color: transparent;
  border: none;
  border-radius: 0.35rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  outline: 0;
}

.search {
  background: #ffffff;
  width: 250px;
  border-radius: 5px;
  display: flex;
}

.search img{
  padding: 10px;
}

.tooltip:hover .tooltip-left, .tooltip:hover .tooltip-right, .tooltip:hover .tooltip-top, .tooltip:hover .tooltip-bottom {
  visibility: visible;
}

.tooltip .tooltip-left {
  visibility: hidden;
  width: max-content;
  background-color: rgb(218, 220, 224);
  color: #000;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: -5px;
  right: 105%;
}

.tooltip .tooltip-left::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent rgb(218, 220, 224);
}

.tooltip .tooltip-right {
  visibility: hidden;
  position: absolute;
  width: 120px;
  background-color: rgb(218, 220, 224);
  color: #000;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  z-index: 1;
  transition: opacity .6s;
  top: 5px;
  left: 125%;
}

.tooltip .tooltip-right::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent rgb(218, 220, 224) transparent transparent;
}

.tooltip .tooltip-top {
  visibility: hidden;
  position: absolute;
  width: 120px;
  background-color: rgb(218, 220, 224);
  color: #000;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  z-index: 1;
  transition: opacity .6s;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
}

.tooltip .tooltip-top::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgb(218, 220, 224) transparent transparent transparent;
}

.tooltip .tooltip-bottom {
  visibility: hidden;
  position: absolute;
  width: 120px;
  background-color: rgb(218, 220, 224);
  color: #000;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  z-index: 1;
  transition: opacity .6s;
  left: 50%;
  margin-left: -60px;
  top: 135%;
}

.tooltip .tooltip-bottom::after {
  content: "";
  position: absolute;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  bottom: 100%;
  left: 50%;
  border-color: transparent transparent rgb(218, 220, 224) transparent;
}

.back-list-store{
  position: absolute;
  right: 70px;
  top: 5px;
  cursor: pointer;
  display: none;
}

.back-list-store img{
  background: #ffffff;
  border-radius: 50%;
}

#popup .popup-header{
  height: 50px;
  background: #6e707e;
}

/*#popup .close-popup img{*/
/*  width: 36px;*/
/*}*/

#popup .popup-body{
  height: calc(100% - 50px);
}

#popup .store_name{
  font-size: 24px;
  text-align: left;
  padding: 10px;
  display: -webkit-box;
  line-height: 1.5;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 30px;
  width: 90%;
}


/* vr control */
.right-control-top{
  position: absolute;
  right: 0;
  top: 0;
}

.vr-button.button_category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ffffff;
  padding: 10px 10px 6px;
  border-radius: 50%;
  z-index: 6;
}

.vr-button.button_category:hover {
  background: #ddd;
  cursor: pointer;
}

.vr-button.button_home {
  background: #ffffff;
  position: absolute;
  z-index: 10;
  cursor: pointer;
  top: 12px;
  right: 15px;
  padding: 10px 10px 6px;
  border-radius: 50%;
}

.vr-button.button_home.preview{
  display: block;
  padding: 8px 8px 4px;
  top: 5px;
  right: 10px;
}

.popup-preview .back-list-store{
  display: block;
}

/* List categories */
.popup-list-category .popup-header{
  display: none;
}

.popup-list-category .popup-content{
  width: 60vw;
  height: 63vh;
}

.popup-list-category .popup-body{
  background: unset;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  height: 590px !important;
}

.box_category_item {
  float: left;
  position: relative;
  padding: 5px;
  box-sizing: border-box;
  color: #000000;
  width: 100%;
  cursor: pointer;
}

.box_category_item div{
  text-align: center;
  background: #dbdbdb;
}

.box_category_item div:hover {
  background: #bbbbbb;
}

.box_category_item .cate_name{
  margin: 0;
  padding: 10px;
  height: 30px;
}

.popup-list-category .close-popup{
  background: #ffffff;
  padding: 4px 4px 0px;
  border-radius: 50%;
  position: absolute;
  right: -20px;
  top: -20px;
}

.box_category_item img{
  width: 200px;
  height: 144px;
  object-fit: contain !important;
}

p.desc_store {
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 10px;
  text-align: justify;
}

.vip{
  position: absolute;
  top: 15px;
  left: 0;
  background: #c8cb38c7;
  padding: 6px 10px 4px;
  font-size: 18px;
  border-radius: 0 5px 5px 0;
  color: #ffffff;
  display: flex;
}

#pagination-store ul li a{
  text-decoration: none;
  cursor: pointer;
}

#pagination-store, #pagination-all-store{
  height: 40px;
  margin: 0 auto;
}

#pagination-store ul{
  padding: 8px;
}

.top-control .desc_info{
  position: absolute;
  top: 10px;
  text-align: center;
  z-index: 5;
  font-size: 14px;
  font-weight: 600;
  color: rgb(53 53 71 / 60%);
  width: 600px;
  left: calc(50% - 300px);
}

.group_info_sound{
  position: absolute;
  bottom: 20px;
  display: flex;
  left: calc(50% - 48px);
  background: #ffffff;
  padding: 8px 10px;
  width: 76px;
  height: 25px;
  justify-content: space-between;
  z-index: 5;
  border-radius: 50px;
}

.button_info, .button_sound{
  cursor: pointer;
}

.button_info:hover, .button_sound:hover{
  transform: translate(0px, 0px) rotate(0deg) scale(1.1, 1.1);
}

.left-control-bottom{
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 4;
}

.logo_vrmall img{
  width: 90px;
  opacity: .7;
}

.logo_vrmall img:hover{
  opacity: 1;
  cursor: pointer;
}

.button_category .tooltip-left{
  top: 5px;
  right: 115%;
}

.modal_sound_intro .popup-content{
  width: max-content;
  height: max-content;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.modal_sound_intro .popup-body{
  height: 100% !important;
}

.modal_sound_intro .popup-header, .modal_sound_intro .close-popup{
  display: none;
}

.modal_sound_intro .sound-intro{
  text-align: center;
  padding: 30px;
  padding-bottom: 0;
}
.modal_sound_intro .sound-intro div{
  padding: 30px;
}

.modal_sound_intro .sound-intro span{
  font-size: 24px;
  color: #000000bd;
  font-weight: bold;
}

.modal_sound_intro button{
  width: 100px;
  padding: 15px;
  font-weight: bold;
  background: #545454;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  margin: 0 5px;
  cursor: pointer;
}

.modal_sound_intro button:hover {
  background: #333;
}

.hide_chat{
  display: none !important;
}

.name_store_vip{
  position: absolute;
  bottom: 0;
  display: -webkit-box;
  font-size: 12px;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #6a6b69;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 2;
  margin: 0;
  width: 100%;
}


/*menu*/


.menu-btn, nav > ul {
  transition: left .45s cubic-bezier(.42,.97,.52,0.99);
}

nav > ul {
  position: absolute;
  top: 10%;
  left: -320px;
  width: 320px;
  background-color: #ffffffeb;
  height: 80%;
  min-height: 80vh;
  padding: 0;
  margin: 0;
  z-index: 10;
  border-radius: 20px;
}

nav ul .content_category{
  overflow-x: hidden;
  overflow-y: scroll;
  height: calc(100% - 60px);
  cursor: pointer;
  margin: 0 10px;
  padding-right: 5px;
}

ul.menu.menu-open{
  left: 30px;
}

.menu-btn:before,
.menu-btn:after {
  font-size: 50px;
  color: #a2047b;
  line-height: 1;
  position: relative;
  top: -10px;
  left: -3px;
}
.menu-btn:before {
  content: '\02261';
}

.menu-btn-open{
  left: 300px !important;
  transition: left .45s cubic-bezier(.42,.97,.52,0.99);
  z-index: 9 !important;
  top: calc(10% + 4px) !important;
  background: unset !important;
}

/* MENU ITEMS */
.menu li a {
  display: block;
  font-size: 14px;
  text-transform: capitalize;
  padding: 15px 10px;
  color: #000;
  position: relative;
  text-decoration: none;
  font-weight: 400;
}

.menu > li {
  border-top: 1px solid #e2e8f0;
  list-style: none;
  cursor: pointer;
  margin: 0 10px;
  margin-right: 7px;
}

.menu > li > a:hover {
  background-color: #d9dbe4;
}

.menu li ul {
  background-color: #ececec;
  padding-left: 30px;
  display: none;
  list-style: none;
  border-radius: 0 0 10px 10px;
}
.menu li li a {
  font-size: 80%;
  padding: 15px 0;
  position: relative;
  z-index: 1;
  text-decoration: none;
  text-transform: capitalize;
}

.menu li li a:after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -30px;
  top: 0;
  right: 0;
  bottom: 0;
}
.menu li li a:hover:after {
  background-color: #ccc;
}

.menu li li:last-child a:hover:after{
  border-radius: 0 0 10px 10px;
}

.caret {
  position: absolute;
  right: 0;
  color: #000;
  top: 50%;
  bottom: 0;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
  transform: translate(-50%, -50%);
}
.caret-up{
  padding-top: 4px;
}
.caret-down{
  padding-top: 0;
}
li .caret-up:after {
  content: url("/external/images/icons/right.svg");
}
li .caret-down:after {
  content: url("/external/images/icons/down.svg");
}
.menu li li .caret {
  padding-top: 3px;
}

.menu-btn:before,
.menu-btn:after,
.caret:after {
  font-family: 'san-serif';
  font-weight: 600;
}

/*search*/
.search-box
{
  position: absolute;
  top: 15px;
  left: 70px;
  z-index: 6;
  background : #ffffff;
  height : 40px;
  border-radius : 40px;
}

.search_all_store {
  position: absolute;
  width: 400px;
}
.search__toggle:checked ~ .search__field {
  width: calc(100% - 80px);
  border-width: 2px;
  border-radius: 20px;
}
.search__toggle:checked ~ .search__field .search__input{
  border-right: 1px solid #ddd;
}
.search__toggle:checked ~ .search__field .search__input::placeholder {
  opacity: 1;
}

.search__toggle:checked ~ .search__field .search__button {
  width: 40px;
  height: 40px;
  border-radius: 50px;
}
.search__toggle:checked ~ .search__field .search__button--toggle {
  display: none;
}
.search__toggle:checked ~ .search__field .search__button--submit {
  display: flex;
  outline: 0;
}
.search_suggest{
  display: none;
}
.search__toggle:checked ~ .search__field .search_suggest {
  background: #ffffff;
  position: absolute;
  top: 42px;
  left: 0;
  width: calc(100% - 40px);
  border-radius: 15px;
  display: block;
}
.search_suggest div{
  padding: 10px 15px;
  color: #92929e;
  border-top: 1px solid #efefef;
  cursor: pointer;
}

.search_suggest div:first-child{
  border-top: unset;
}

.search_suggest div:hover{
  background: #efefef;
}
.search_suggest div:first-child:hover{
  border-radius: 15px 15px 0 0;
}
.search_suggest div:last-child:hover{
  border-radius: 0 0 15px 15px;
}
.search_suggest div:only-child:hover{
  border-radius: 15px;
}
.search__field {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transform-origin: right;
  transition: 0.3s;
  background: #ffffff;
}
.search__input {
  position: absolute;
  left: 0;
  box-sizing: border-box;
  width: calc(100% - 40px);
  height: 100%;
  padding: 5px 15px;
  color: #aaa;
  background-color: transparent;
  border: 0;
  outline: none;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
}
.search__input::placeholder {
  color: white;
  opacity: 0;
  transition: 0.3s;
  transition-delay: 0.3s;
}
.search__label {
  cursor: pointer;
}
.search__button {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: 0.3s;
}
.search__button--submit {
  display: none;
  border: 0;
}
.search__icon {
  position: relative;
  width: 19px;
  height: 19px;
}
.search__icon::before {
  display: block;
  content: '';
  width: 12px;
  height: 12px;
  background-color: transparent;
  border: 2px solid #09f;
  border-radius: 50px;
}
.search__icon::after {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  content: '';
  width: 8px;
  height: 2px;
  background-color: #09f;
  transform: rotate(45deg);
  transform-origin: right;
}

.title_search{
  position: absolute;
  top: 15px;
  margin: 0;
  left: 15px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-align: left;

}

.search_store .popup-body .body{
  height: calc(100vh - 150px);
}

nav > ul .content_category::-webkit-scrollbar{
  width: 5px !important;
}

nav > ul .content_category::-webkit-scrollbar-thumb{
  background-color: #DBDBDB !important;
  border-radius: 5px !important;
}

.title_category{
  color: #000;
  font-weight: bold;
  padding: 15px;
}

.active_cat{
  background: linear-gradient(90deg, rgba(236, 236, 236, 0.8) -3.23%, rgba(214, 214, 214, 0.8) 103.9%);
  box-shadow: 0px 3px 7px 1px #0000004D;
  border-radius: 20px;
}

.menu li li:first-child a:after{
  border-top: unset;
}

/* ===== STORE PREVIEW MODE ===== */
/* Hide search content when showing iframe preview */
#popup.popup-preview .store-search-wrap,
#popup.popup-preview .popup-body .body,
#popup.popup-preview #pagination-all-store {
  display: none !important;
}

/* Iframe wrapper fills remaining height */
.store-preview-iframe-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.store-preview-iframe-wrap iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Pagination for all-stores search popup */
#pagination-all-store {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 16px;
  flex-shrink: 0;
}
#pagination-all-store ul {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
#pagination-all-store li { float: none; list-style: none; }
#pagination-all-store a,
#pagination-all-store span {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1.5px solid #ddd;
  margin: 0;
  transition: all 0.18s;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#pagination-all-store a:hover {
  border-color: #D71921;
  color: #D71921;
  background: #fff5f5;
}
#pagination-all-store .active span.current {
  background: #D71921;
  border-color: #D71921;
  color: #fff;
  box-shadow: 0 2px 10px rgba(215,25,33,0.35);
}
#pagination-all-store .disabled span,
#pagination-all-store .disabled a {
  opacity: 0.4;
  pointer-events: none;
  box-shadow: none;
}
/* ===== LOBBY CONTROLS: hidden until tour ready ===== */
.vr-button.button_category,
.vr-button.button_stores,
.group_info_sound,
.left-control-bottom,
#lobby-lang-wrap {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
body.lobby-controls-ready .vr-button.button_category,
body.lobby-controls-ready .vr-button.button_stores,
body.lobby-controls-ready .group_info_sound,
body.lobby-controls-ready .left-control-bottom,
body.lobby-controls-ready #lobby-lang-wrap {
  opacity: 1;
  pointer-events: auto;
}

/* ===== POPUP CONTENT: remove overflow ===== */
.search_store .popup-content,
#modal_stores .popup-content {
  padding: 0;
  box-sizing: border-box;
  border-radius: 0;
}

/* ===== CATEGORY FILTER BAR in all-store search ===== */
#popup_cat_filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px 12px;
  flex-shrink: 0;
  background: transparent;
  border-bottom: 1px solid #ececec;
}
#popup_cat_filter:empty {
  display: none;
}
#popup_cat_filter .filter_category_all {
  float: none !important;
  margin: 0 !important;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid #f5c0c3;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
#popup_cat_filter .filter_category_all:hover {
  border-color: #D71921;
  color: #D71921;
  background: #fff5f5;
}
#popup_cat_filter .filter_category_all.active {
  background: #D71921 !important;
  border-color: #D71921 !important;
  color: #fff !important;
}
#popup_cat_filter .filter_category_clear_all {
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px dashed #ccc;
  background: transparent;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
#popup_cat_filter .filter_category_clear_all:hover {
  border-color: #D71921;
  color: #D71921;
}
.popup-cat-tag {
  padding: 5px 16px;
  border-radius: 20px;
  border: 1.5px solid #f5c0c3;
  background: #fff;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.popup-cat-tag:hover {
  border-color: #D71921;
  color: #D71921;
  background: #fff5f5;
}
.popup-cat-tag.active {
  background: #D71921 !important;
  border-color: #D71921 !important;
  color: #fff !important;
}

/* Fix store grid to not overflow popup edges */
.search_store .popup-body .body,
#modal_stores .popup-body .body {
  box-sizing: border-box;
  overflow-x: hidden;
}

.popup-preview .popup-body {
  padding: 0 !important;
  min-width: 0;
}

.close-popup{
  background: #fff; 
  border-radius: 50%; 
  width: 38px; 
  height: 38px; 
  display: flex !important; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 
  transition: background 0.2s; 
  padding: 0; 
  line-height: 1; 
  top: 5px; 
}