:root {
  --primary-color: #f91942;
  --text: #333;
  --muted: #777;
  --border: #e5e5e5;
  --soft: #f7f7f7;
  --footer: #333;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: #fff;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
select,
input {
  font: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

#header-container {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease;
}

#header-container.is-sticky {
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.11);
}

#header {
  height: 82px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  gap: 20px;
}

.left-side,
.right-side {
  display: flex;
  align-items: center;
}

#logo {
  flex: 0 0 auto;
  margin-right: 34px;
}

#logo img {
  width: 134px;
  height: auto;
}

#navigation ul {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#navigation li {
  position: relative;
}

#navigation > ul > li > a {
  display: block;
  padding: 7px 13px;
  border-radius: 4px;
  color: #444;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
}

#navigation > ul > li:hover > a,
#navigation > ul > li.current > a {
  color: var(--primary-color);
  background: rgba(249, 25, 66, 0.06);
}

.sub-menu,
.mega-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  min-width: 220px;
  padding: 12px 0;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 7px 21px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}

#navigation li:hover > .sub-menu,
#navigation li:hover > .mega-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#navigation .sub-menu {
  display: block;
}

#navigation .sub-menu li a,
.mega-menu a {
  display: block;
  padding: 8px 20px;
  color: #555;
  white-space: nowrap;
}

#navigation .sub-menu li a:hover,
.mega-menu a:hover {
  color: var(--primary-color);
}

.sub-menu.wide {
  min-width: 250px;
}

.mega-menu {
  left: auto;
  right: -230px;
  width: 650px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px;
}

.mega-menu span {
  display: block;
  margin: 0 0 8px;
  color: #333;
  font-family: Raleway, Arial, sans-serif;
  font-weight: 700;
}

.right-side {
  gap: 15px;
  flex-shrink: 0;
}

.listeo-cart-container {
  position: relative;
}

.mini-cart-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f6f6f6;
  cursor: pointer;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 15px;
  height: 11px;
  border: 2px solid #444;
  border-top: 0;
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 13px;
  height: 6px;
  border-top: 2px solid #444;
  transform: skewX(-18deg);
}

.badge {
  position: absolute;
  right: -3px;
  top: -4px;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.listeo-cart-wrapper {
  position: absolute;
  right: 0;
  top: 50px;
  width: 260px;
  padding: 20px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 7px 21px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.listeo-cart-container:hover .listeo-cart-wrapper,
.listeo-cart-container.open .listeo-cart-wrapper {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.sign-in {
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
}

.sign-in:hover {
  color: var(--primary-color);
}

.button,
.dokan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 0;
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.button.border {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.button.border:hover,
.dokan-btn:hover,
.button:hover {
  background: #e71138;
  color: #fff;
}

.with-icon span {
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}

.mmenu-trigger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.hamburger-box,
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

.hamburger-inner {
  position: relative;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger-inner::before {
  top: -8px;
}

.hamburger-inner::after {
  top: 8px;
}

#titlebar {
  padding: 56px 0 52px;
  background: #f7f7f7;
}

#titlebar h1 {
  margin: 0 0 8px;
  color: #333;
  font-family: Raleway, Arial, sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
}

#breadcrumbs ol {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #777;
  font-size: 14px;
}

#breadcrumbs li + li::before {
  content: "/";
  margin-right: 9px;
  color: #bbb;
}

#breadcrumbs a {
  color: #777;
}

#breadcrumbs a:hover {
  color: var(--primary-color);
}

.content-container {
  padding: 48px 0 60px;
}

.filter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fafafa;
}

.filter-form[hidden] {
  display: none;
}

.store-search-input,
.sign-in-form input,
.listeo-ai-chat-input input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  color: #555;
  background: #fff;
  outline: none;
}

.store-search-input:focus,
.sign-in-form input:focus,
.listeo-ai-chat-input input:focus {
  border-color: var(--primary-color);
}

.apply-filter {
  display: flex;
  gap: 10px;
}

#dokan-store-listing-filter-wrap {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 22px;
}

#dokan-store-listing-filter-wrap .right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dokan-icons {
  display: grid;
  gap: 4px;
}

.dokan-icon-div {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #333;
}

.sort-by label {
  color: #777;
}

.sort-by select {
  min-width: 140px;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  background: #fff;
}

.toggle-view {
  gap: 4px;
}

.view-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.view-button::before {
  content: "";
  position: absolute;
  inset: 9px;
  background:
    linear-gradient(#777 0 0) left top / 8px 8px no-repeat,
    linear-gradient(#777 0 0) right top / 8px 8px no-repeat,
    linear-gradient(#777 0 0) left bottom / 8px 8px no-repeat,
    linear-gradient(#777 0 0) right bottom / 8px 8px no-repeat;
}

.view-button.list::before {
  inset: 10px 8px;
  background:
    linear-gradient(#777 0 0) left top / 100% 3px no-repeat,
    linear-gradient(#777 0 0) left center / 100% 3px no-repeat,
    linear-gradient(#777 0 0) left bottom / 100% 3px no-repeat;
}

.view-button.active {
  border-color: var(--primary-color);
}

.view-button.active::before {
  filter: invert(24%) sepia(90%) saturate(4154%) hue-rotate(337deg) brightness(98%) contrast(101%);
}

.dokan-seller-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dokan-single-seller {
  min-width: 0;
}

.store-wrapper {
  position: relative;
  min-height: 405px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.13);
}

.store-banner {
  height: 185px;
  background: #ececec;
}

.store-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-content {
  min-height: 150px;
  padding: 23px 26px 30px;
  background: #fff;
}

.store-data h2 {
  margin: 0 0 11px;
  color: #333;
  font-family: Raleway, Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.dokan-store-rating {
  margin: 0 0 13px;
  color: #777;
  font-size: 13px;
}

.dokan-store-rating::before {
  content: "*";
  display: inline-block;
  margin-right: 6px;
  color: #ffc600;
  font-size: 16px;
}

.store-address,
.store-phone {
  margin: 0;
  color: #777;
  font-size: 14px;
  line-height: 1.65;
}

.dokan-store-is-open-close-status {
  position: absolute;
  right: 20px;
  top: 205px;
  padding: 4px 10px;
  border-radius: 3px;
  background: #444;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.store-footer {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 15px 70px 15px 26px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.store-footer .dokan-store-rating {
  display: none;
}

.seller-avatar {
  position: absolute;
  right: 66px;
  top: -27px;
  width: 64px;
  height: 64px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dokan-btn-round {
  position: absolute;
  right: 21px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
}

.dokan-btn-round::before {
  content: ">";
  font-weight: 700;
}

.star-meter {
  display: inline-block;
  position: relative;
  width: 70px;
  height: 14px;
  margin-left: 7px;
  vertical-align: -2px;
  color: #ddd;
  letter-spacing: 1px;
}

.star-meter::before,
.star-meter span::before {
  content: "*****";
  position: absolute;
  left: 0;
  top: -1px;
  font-size: 13px;
  line-height: 1;
}

.star-meter span {
  position: absolute;
  left: 0;
  top: 0;
  height: 14px;
  overflow: hidden;
  color: #ffc600;
}

.list-view .dokan-seller-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.list-view .store-wrapper {
  display: grid;
  grid-template-columns: 35% 1fr;
  min-height: 245px;
}

.list-view .store-header,
.list-view .store-banner {
  height: 100%;
  min-height: 245px;
}

.list-view .store-content {
  min-height: 175px;
  padding: 30px 30px 20px;
}

.list-view .store-footer {
  grid-column: 2;
  padding-left: 30px;
}

.list-view .dokan-store-is-open-close-status {
  top: 24px;
  right: 24px;
}

.no-results {
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #777;
  text-align: center;
}

#footer {
  padding-top: 58px;
  background: #333;
  color: #c9c9c9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 20px;
}

.footer-widget h4 {
  margin: 0 0 19px;
  color: #fff;
  font-family: Raleway, Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.footer-widget p {
  margin: 0;
}

.footer-widget a {
  display: block;
  margin: 0 0 9px;
  color: #c9c9c9;
}

.footer-widget a:hover {
  color: var(--primary-color);
}

.footer-social,
.mobile-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.footer-social a,
.mobile-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
}

.payments {
  width: 218px;
  max-height: 32px;
  object-fit: contain;
  filter: brightness(1.4);
}

.copyrights {
  margin-top: 45px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 14px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.45);
}

.sign-in-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99;
  width: min(430px, calc(100% - 34px));
  padding: 34px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.mfp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  color: #777;
  cursor: pointer;
}

.mfp-close:hover {
  background: var(--primary-color);
  color: #fff;
}

.tabs-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 4px;
  background: #f1f1f1;
  color: #555;
  cursor: pointer;
}

.tab.active {
  background: rgba(249, 25, 66, 0.1);
  color: var(--primary-color);
  font-weight: 700;
}

.sign-in-form {
  display: grid;
  gap: 13px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
}

.sign-in-form h3 {
  margin: 0 0 8px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 24px;
}

.remember {
  color: #777;
  font-size: 14px;
}

.button.fullwidth {
  width: 100%;
}

.lost-password {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  text-align: left;
  cursor: pointer;
}

.form-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: rgba(249, 25, 66, 0.08);
  color: #555;
}

#backtotop {
  position: fixed;
  right: 22px;
  bottom: 96px;
  z-index: 45;
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
}

#backtotop.visible {
  display: block;
}

.listeo-floating-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
}

.listeo-floating-chat-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.listeo-ai-chat-window {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 9px 35px rgba(0, 0, 0, 0.22);
}

.listeo-ai-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: #111;
  color: #fff;
}

.listeo-ai-chat-header img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.listeo-ai-chat-header h3 {
  margin: 0;
  font-family: Raleway, Arial, sans-serif;
  font-size: 18px;
}

.listeo-ai-chat-header span {
  color: #bcbcbc;
  font-size: 13px;
}

.listeo-ai-chat-messages {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 17px;
}

.bot-message,
.user-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.bot-message {
  background: #f3f3f3;
  color: #333;
}

.user-message {
  justify-self: end;
  background: var(--primary-color);
  color: #fff;
}

.quick-buttons {
  display: flex;
  gap: 8px;
  padding: 0 17px 14px;
}

.quick-buttons button {
  flex: 1;
  min-height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #555;
  cursor: pointer;
}

.listeo-ai-chat-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 17px;
  border-top: 1px solid #eee;
}

.listeo-ai-chat-input input {
  height: 42px;
}

.listeo-ai-chat-input button {
  min-width: 68px;
  border: 0;
  border-radius: 4px;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
}

.powered-by {
  padding: 0 17px 14px;
  color: #999;
  font-size: 12px;
  text-align: center;
}

.mobile-navigation-wrapper,
.mobile-shade {
  display: none;
}

@media (max-width: 1024px) {
  #navigation,
  .right-side .button.border {
    display: none;
  }

  .mmenu-trigger {
    display: grid;
    place-items: center;
  }

  .left-side {
    justify-content: space-between;
    width: 100%;
  }

  .right-side {
    gap: 8px;
  }

  .dokan-seller-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mobile-navigation-wrapper {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 100;
    display: block;
    width: min(360px, 88vw);
    overflow-y: auto;
    padding: 22px 18px;
    background: #18191d;
    color: #fff;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.24);
  }

  .mobile-shade {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(0, 0, 0, 0.45);
  }

  body.mobile-open .mobile-navigation-wrapper {
    transform: translateX(0);
  }

  body.mobile-open .mobile-shade {
    display: block;
  }

  body.mobile-open {
    overflow: hidden;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .menu-logo img {
    width: 120px;
  }

  .menu-icon-toggle {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
  }

  .menu-icon-toggle::before,
  .menu-icon-toggle::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 17px;
    width: 20px;
    height: 2px;
    background: #fff;
  }

  .menu-icon-toggle::before {
    transform: rotate(45deg);
  }

  .menu-icon-toggle::after {
    transform: rotate(-45deg);
  }

  .mobile-navigation-list {
    display: grid;
    gap: 10px;
  }

  .mobile-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
    text-align: left;
    font-weight: 700;
    line-height: 1.25;
  }

  .mobile-parent::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-top: 2px solid rgba(255, 255, 255, 0.78);
    border-right: 2px solid rgba(255, 255, 255, 0.78);
    transform: rotate(45deg);
  }

  .mobile-parent:hover,
  .mobile-parent:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
  }

  .mobile-submenu {
    display: none;
    padding: 4px 0 10px 14px;
  }

  .mobile-submenu.open {
    display: grid;
  }

  .mobile-submenu a {
    padding: 8px 0;
    color: #ddd;
  }

  .mobile-submenu a.current {
    color: var(--primary-color);
  }

  .mobile-nav-widgets {
    margin-top: 28px;
    color: #ddd;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  #header,
  .header-row {
    height: 72px;
  }

  #logo {
    margin-right: 12px;
  }

  #logo img {
    width: 118px;
  }

  .sign-in {
    display: none;
  }

  #titlebar {
    padding: 38px 0;
  }

  #titlebar h1 {
    font-size: 26px;
  }

  .content-container {
    padding-top: 35px;
  }

  .filter-form {
    grid-template-columns: 1fr;
  }

  #dokan-store-listing-filter-wrap {
    justify-content: flex-start;
  }

  #dokan-store-listing-filter-wrap .right {
    width: 100%;
    gap: 12px;
  }

  .sort-by {
    width: 100%;
  }

  .sort-by select {
    flex: 1;
  }

  .dokan-seller-wrap,
  .list-view .dokan-seller-wrap {
    grid-template-columns: 1fr;
  }

  .list-view .store-wrapper {
    display: block;
  }

  .list-view .store-header,
  .list-view .store-banner {
    min-height: 0;
    height: 185px;
  }

  .list-view .store-footer {
    padding-left: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .listeo-floating-chat {
    right: 16px;
    bottom: 16px;
  }
}
