/* ============================================================
   ItmenaanPK — brand theme overrides
   Palette:  white  +  #371a46 (primary)  +  #f0bc1b (accent)  +  black (text)
   Loaded AFTER style.css so these win. No other colors.
   ============================================================ */

:root {
  --brand: #371a46;
  --brand-dark: #2a1336;
  --accent: #f0bc1b;
  --ink: #1a1320;
}

/* ---------- Text colors ---------- */
.color-brand-1,
.color-brand-3,
.color-blue,
.color-info,
.color-success,
.color-danger { color: #371a46 !important; }

.color-brand-2,
.color-warning { color: #f0bc1b !important; }

.color-gray-1000 { color: #1a1320 !important; }

/* Headings + strong text -> ink/primary */
h1, h2, h3, h4, h5, h6 { color: #371a46; }
.price-main, .price-bold, strong.price-main { color: #371a46 !important; }

/* ---------- Backgrounds ---------- */
.bg-brand-1,
.bg-brand-3 { background-color: #371a46 !important; }

.bg-brand-2 { background-color: #f0bc1b !important; }

.bg-color-success,
.bg-success,
.bg-info { background-color: #371a46 !important; }

/* ---------- Buttons ---------- */
.btn.btn-brand-2,
.btn.btn-buy,
.btn.btn-arrow-right {
  background-color: #371a46 !important;
  border-color: #371a46 !important;
  color: #ffffff !important;
}
.btn.btn-brand-2:hover,
.btn.btn-buy:hover,
.btn.btn-arrow-right:hover {
  background-color: #f0bc1b !important;
  border-color: #f0bc1b !important;
  color: #371a46 !important;
}

.btn.btn-brand-3,
.btn.btn-cart {
  background-color: #f0bc1b !important;
  border-color: #f0bc1b !important;
  color: #371a46 !important;
}
.btn.btn-brand-3:hover,
.btn.btn-cart:hover {
  background-color: #371a46 !important;
  border-color: #371a46 !important;
  color: #ffffff !important;
}

.btn.btn-link,
.btn.btn-link:hover { color: #371a46 !important; }

/* ---------- Labels / product tags ---------- */
.label { background-color: #f0bc1b !important; color: #371a46 !important; }
.label.bg-danger,
.image-box .label.bg-danger { background-color: #371a46 !important; color: #ffffff !important; }
.label.bg-info { background-color: #371a46 !important; color: #ffffff !important; }
.label-green { background-color: #f0bc1b !important; color: #371a46 !important; }

/* ---------- Newsletter band (was navy) ---------- */
.box-newsletter { background-color: #371a46 !important; }
.box-newsletter .color-warning { color: #f0bc1b !important; }

/* ---------- Sliders / nav accents ---------- */
.swiper-pagination .swiper-pagination-bullet-active { background: #371a46 !important; }

/* Active / hover nav links */
.main-menu > li > a.active,
.main-menu > li > a:hover,
.nav-small li a:hover,
.list-nav-arrow li a:hover { color: #371a46 !important; }

/* Generic link hover */
a:hover { color: #371a46; }

/* ============================================================
   Categories — theme-style TEXT bar (carousel), e.g.
   Property | Mobiles | Electronics | …  (all reachable by scrolling)
   ============================================================ */
.itm-quickmenu { padding: 0; background: #ffffff; border-top: 1px solid #f0eef4; border-bottom: 1px solid #f0eef4; }
.itm-qm-wrap { position: relative; display: flex; align-items: center; }

.itm-qm-list {
  display: flex; align-items: stretch; gap: 0; list-style: none; margin: 0;
  padding: 13px 0; flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
}
.itm-qm-list::-webkit-scrollbar { display: none; }

.itm-qm-list li { position: relative; flex: 0 0 auto; padding: 0 22px; display: flex; align-items: center; }
.itm-qm-list li:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 15px; background: #ddd6e6;
}
.itm-qm-list li a {
  font-size: 14px; font-weight: 600; color: #371a46; white-space: nowrap; text-decoration: none;
  line-height: 1.2; transition: color .15s ease;
}
.itm-qm-list li a:hover { color: #f0bc1b; }

/* carousel arrows */
.itm-qm-arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: #ffffff; border: 1px solid #ece9f1; box-shadow: 0 4px 12px rgba(55, 26, 70, 0.10);
  display: grid; place-items: center; color: #371a46; cursor: pointer; font-size: 12px;
  margin: 0 6px; z-index: 3; transition: background .15s ease, color .15s ease;
}
.itm-qm-arrow:hover { background: #371a46; color: #ffffff; }

/* soft fade so text doesn't hard-cut under the arrows */
.itm-qm-wrap::before, .itm-qm-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; z-index: 2; }
.itm-qm-wrap::before { left: 38px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.itm-qm-wrap::after { right: 38px; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }

@media (max-width: 575px) {
  .itm-qm-list li { padding: 0 16px; }
  .itm-qm-arrow { width: 28px; height: 28px; }
}

/* ---------- Header logo (remove forced min-height, cap width) ---------- */
.header .main-header .header-left .header-logo a img {
  max-width: 130px;
  min-height: auto !important;
}

/* ---------- Header-left: logo · location · search(grow) · Post — full width ---------- */
.header .main-header .header-left { gap: 14px; }
.header .main-header .header-left .header-logo { flex: 0 0 auto; width: auto; max-width: 140px; }
.header .main-header .header-left .itm-location-mount { flex: 0 0 auto; }
.header .main-header .header-left .header-search { width: auto !important; flex: 1 1 auto; min-width: 0; }
.header .main-header .header-left .itm-add-btn { flex: 0 0 auto; margin-left: 0; }

/* ============================================================
   Account page
   ============================================================ */
.itm-acc-side {
  border: 1px solid #ece9f1;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.itm-acc-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #371a46;
}
.itm-acc-user h6 { color: #fff !important; font-weight: 800; }
.itm-acc-user .color-gray-500 { color: #d9c9e6 !important; }
.itm-acc-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(255,255,255,.5);
}
.itm-acc-nav { list-style: none; margin: 0; padding: 8px; }
.itm-acc-nav li a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4a4458;
  text-decoration: none;
}
.itm-acc-nav li a:hover { background: #f4f2f8; color: #371a46; }
.itm-acc-nav li.active a,
.itm-acc-nav li a.active { background: #ece5f3; color: #371a46; }
html[data-itm-theme="dark"] .itm-acc-nav li a.active,
html[data-itm-theme="dark"] .itm-acc-nav li.active a { background: var(--d-surface2); color: var(--d-strong); }
html[data-itm-theme="dark"] .itm-acc-nav li a { color: var(--d-text); }
html[data-itm-theme="dark"] .itm-acc-nav li a:hover { background: var(--d-surface2); }

.itm-acc-card {
  border: 1px solid #ece9f1;
  border-radius: 16px;
  padding: 28px;
  background: #fff;
}
.itm-avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid #f1eef6;
  border-bottom: 1px solid #f1eef6;
}
.itm-avatar-big {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; border: 1px solid #ece9f1; background: #f6f5f8;
}
/* Branded logo fallback avatar (premium, never breaks) */
.itm-logo-av {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f1ecf7; overflow: hidden;
}
.itm-logo-av img { width: 64%; height: 64%; object-fit: contain; }
.itm-alert {
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.itm-alert-ok { background: #eaf6ef; color: #1f7a4d; }
.itm-alert-err { background: #fdecec; color: #b3261e; }

/* ============================================================
   Auth: country select, phone, password, google, confirm modal
   ============================================================ */
/* Country searchable select */
.itm-cs { position: relative; }
.itm-cs-btn {
  display: flex; align-items: center; justify-content: space-between;
  text-align: left; cursor: pointer; width: 100%;
}
.itm-cs-caret { color: #8c8a99; font-size: 12px; }
.itm-cs-flag { font-size: 16px; margin-right: 6px; }
.itm-cs-pop {
  position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid #ece9f1; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(55,26,70,.16); overflow: hidden;
}
.itm-cs-search {
  width: 100%; border: none; border-bottom: 1px solid #f1eef6;
  padding: 12px 14px; font-size: 14px; outline: none;
}
.itm-cs-list { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; }
.itm-cs-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #2a1336;
}
.itm-cs-item:hover { background: #f4f2f8; }
.itm-cs-name { flex: 1; }
.itm-cs-dial { color: #8c8a99; font-size: 12.5px; }
.itm-cs-empty { padding: 14px; text-align: center; color: #8c8a99; font-size: 13px; }

/* Phone with dial-code prefix */
.itm-phone { display: flex; align-items: stretch; }
.itm-phone-code {
  display: flex; align-items: center; padding: 0 14px;
  border: 1px solid #e1dbec; border-right: none;
  border-radius: 8px 0 0 8px; background: #f6f5f8;
  font-weight: 700; color: #371a46; font-size: 14px; white-space: nowrap;
}
.itm-phone .form-control { border-radius: 0 8px 8px 0; }

/* Password eye + rules */
.itm-pass { position: relative; }
.itm-pass .form-control { padding-right: 44px; }
.itm-pass-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #8c8a99; cursor: pointer; padding: 4px;
}
.itm-pass-rules { list-style: none; margin: 8px 0 0; padding: 0; }
.itm-pass-rules li { font-size: 12px; color: #9a8aa5; margin: 3px 0; }
.itm-pass-rules li.ok { color: #1f7a4d; }

/* "or" divider */
.itm-or { display: flex; align-items: center; text-align: center; margin: 18px 0; color: #b9b3c4; }
.itm-or::before, .itm-or::after { content: ''; flex: 1; height: 1px; background: #ece9f1; }
.itm-or span { padding: 0 12px; font-size: 12px; font-weight: 600; }

/* Google button (placeholder when no client id) */
.itm-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 320px; height: 46px; border-radius: 10px;
  border: 1px solid #dadce0; background: #fff; color: #3c4043;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.itm-google-btn:disabled { opacity: .7; cursor: not-allowed; }
.itm-google-wrap { display: block; width: 100%; }
/* Stretch the Google Identity Services button to full width on the auth pages */
.itm-google-wrap > div,
.itm-google-wrap > div > div,
.itm-google-wrap > div > div > div { width: 100% !important; max-width: 100% !important; }

/* Global confirm modal */
.itm-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(26,19,32,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: itmFade .15s ease;
}
.itm-modal {
  background: #fff; border-radius: 18px; padding: 28px 26px;
  width: 100%; max-width: 380px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: itmPop .18s ease;
}
.itm-modal-icon {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; background: #ece5f3; color: #371a46;
}
.itm-modal-icon.danger { background: #fdecec; color: #d33; }
.itm-modal-title { font-size: 19px; font-weight: 800; color: #1a1320; margin: 0 0 6px; }
.itm-modal-msg { font-size: 14px; color: #6c6577; margin: 0 0 22px; line-height: 1.5; }
.itm-modal-actions { display: flex; gap: 12px; }
.itm-modal-btn {
  flex: 1; height: 46px; border-radius: 11px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent;
}
.itm-modal-btn.cancel { background: #f4f2f8; color: #371a46; }
.itm-modal-btn.confirm { background: #371a46; color: #fff; }
.itm-modal-btn.confirm.danger { background: #d33; }
@keyframes itmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes itmPop { from { transform: translateY(10px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============================================================
   Premium auth layout (login / register two-panel)
   ============================================================ */
.itm-auth { padding: 50px 0 80px; }
.itm-auth-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid #ece9f1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(55, 26, 70, 0.10);
  background: #fff;
}
.itm-auth-form { padding: 48px 52px; }
.itm-auth-form h3 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }

/* right branded panel */
.itm-auth-side {
  position: relative;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(240,188,27,0.18) 0%, rgba(240,188,27,0) 45%),
    linear-gradient(150deg, #401d52 0%, #2a1336 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 52px;
}
.itm-auth-side-inner { max-width: 360px; }
.itm-auth-logo { width: 168px; height: auto; margin-bottom: 28px; }
.itm-auth-headline { color: #fff; font-size: 30px; line-height: 1.25; font-weight: 800; margin: 0 0 14px; }
.itm-auth-text { color: #d9c9e6; font-size: 15px; line-height: 1.6; margin: 0 0 26px; }
.itm-auth-features { list-style: none; margin: 0; padding: 0; }
.itm-auth-features li {
  display: flex; align-items: center; gap: 12px;
  color: #efe7f5; font-size: 14.5px; font-weight: 600;
  padding: 9px 0;
}
.itm-auth-check {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: #f0bc1b; color: #371a46; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}

/* full-width buttons inside auth */
.itm-btn-block { width: 100%; display: block; }
.itm-auth-form .itm-google-btn,
.itm-auth-form .itm-google-wrap { width: 100%; max-width: 100%; }
.itm-google-btn { width: 100%; max-width: 100%; }

@media (max-width: 991px) {
  .itm-auth { padding: 24px 0 50px; }
  .itm-auth-grid { grid-template-columns: 1fr; }
  .itm-auth-side { display: none; }
  .itm-auth-form { padding: 30px 22px; }
}

/* ---------- Header account/cart dropdowns: right-align + responsive ---------- */
.header-shop .dropdown-account,
.header-shop .dropdown-cart {
  left: auto !important;
  right: 0 !important;
  max-width: calc(100vw - 32px);
}
@media (max-width: 575px) {
  .header-shop .dropdown-account { width: 200px; }
  .header-shop .dropdown-cart { width: 280px; }
}

/* ---------- Header "Post" button (Font Awesome) — now in header-left ---------- */
.header .itm-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; vertical-align: middle;
  background: linear-gradient(135deg, #ffd34d 0%, #f0bc1b 100%);
  color: #371a46; font-size: 15px; font-weight: 700; line-height: 1;
  margin-left: 14px; text-decoration: none; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
.header .itm-add-btn i { font-size: 13px; }
.header .itm-add-btn .itm-add-label { display: inline-block !important; line-height: 1; }
.header .itm-add-btn:hover { color: #371a46; filter: brightness(0.96); transform: translateY(-1px); }

/* Small screens: collapse to a clean round "+" */
@media (max-width: 1199px) {
  .header .itm-add-btn { width: 42px; height: 42px; padding: 0; border-radius: 50%; gap: 0; font-size: 16px; }
  .header .itm-add-btn i { font-size: 15px; }
  .header .itm-add-btn .itm-add-label { display: none !important; }
}

/* ============================================================
   Premium "Post your ad" page (full width, compact)
   ============================================================ */
.itm-add-page { padding: 36px 0 70px; background: #faf9fc; }
.itm-add-head { max-width: 980px; margin: 0 auto 22px; }
.itm-add-head h2 { font-size: 30px; font-weight: 800; color: #371a46; margin: 0 0 6px; }
.itm-add-head p { color: #6c6577; font-size: 15px; margin: 0; }

.itm-add-card {
  max-width: 980px; margin: 0 auto;
  background: #fff; border: 1px solid #ece9f1; border-radius: 22px;
  padding: 34px 38px; box-shadow: 0 24px 60px rgba(55,26,70,0.08);
}

.itm-step-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 800; color: #371a46; margin-bottom: 14px;
}
.itm-step-label span {
  width: 24px; height: 24px; border-radius: 50%;
  background: #371a46; color: #fff; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.mt-30 { margin-top: 30px; }

/* responsive grid */
.itm-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.itm-col-12 { grid-column: span 12; }
.itm-col-8 { grid-column: span 8; }
.itm-col-6 { grid-column: span 6; }
.itm-col-4 { grid-column: span 4; }
.itm-lbl { display: block; font-size: 13px; font-weight: 700; color: #4a4458; margin-bottom: 7px; }
.itm-add-card .form-control { border-radius: 10px; }

/* price prefix */
.itm-prefix { display: flex; }
.itm-prefix span {
  display: flex; align-items: center; padding: 0 14px;
  border: 1px solid #e1dbec; border-right: none; border-radius: 10px 0 0 10px;
  background: #f6f5f8; font-weight: 700; color: #371a46; font-size: 14px;
}
.itm-prefix .form-control { border-radius: 0 10px 10px 0; }

/* type tabs */
.itm-type-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.itm-type-tab {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border-radius: 16px; cursor: pointer;
  border: 2px solid #ece9f1; background: #fff; text-align: left;
  transition: all .15s ease;
}
.itm-type-tab:hover { border-color: #c9bcd6; }
.itm-type-tab.active { border-color: #371a46; background: #f7f4fa; }
.itm-type-ic {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px;
  background: #ece5f3; color: #371a46; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.itm-type-tab.active .itm-type-ic { background: #371a46; color: #fff; }
.itm-type-meta { display: flex; flex-direction: column; }
.itm-type-meta strong { font-size: 15.5px; color: #371a46; }
.itm-type-meta small { color: #8c8a99; font-size: 12.5px; }
.itm-type-check { margin-left: auto; color: #ece9f1; font-size: 20px; }
.itm-type-tab.active .itm-type-check { color: #f0bc1b; }

/* photos uploader */
.itm-upload {
  display: flex; align-items: center; gap: 16px;
  border: 2px dashed #d8d2e3; border-radius: 14px;
  padding: 22px; cursor: pointer; background: #faf9fc;
  transition: border-color .15s ease, background .15s ease;
}
.itm-upload:hover { border-color: #371a46; background: #f7f4fa; }
.itm-upload-ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: #ece5f3; color: #371a46; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.itm-upload strong { display: block; color: #371a46; font-size: 14.5px; }
.itm-upload small { color: #8c8a99; font-size: 12.5px; }

.itm-add-actions { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.itm-add-actions .btn-buy { padding: 0 32px; height: 50px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; }
.itm-add-note { color: #9a8aa5; font-size: 12.5px; }

@media (max-width: 767px) {
  .itm-add-card { padding: 24px 18px; border-radius: 16px; }
  .itm-type-tabs { grid-template-columns: 1fr; }
  .itm-col-8, .itm-col-6, .itm-col-4 { grid-column: span 12; }
  .itm-add-head h2 { font-size: 24px; }
}

/* ---------- Topbar account / wishlist / cart icons (moved from header) ---------- */
.itm-topbar-actions { display: inline-flex; align-items: center; gap: 22px; margin-left: 20px; vertical-align: middle; }
.itm-topbar-actions .box-dropdown-cart { position: relative; display: inline-block; }
.itm-topbar-actions .icon-list {
  display: inline-block; position: relative; width: 24px; height: 26px; cursor: pointer;
  background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
}
.itm-topbar-actions .icon-account { background-image: url(../imgs/template/account.svg); }
.itm-topbar-actions .icon-wishlist { background-image: url(../imgs/template/wishlist.svg); }
.itm-topbar-actions .icon-cart { background-image: url(../imgs/template/cart.svg); }
/* hide the inline text labels (Account / Wishlist / Cart); keep the number badge */
.itm-topbar-actions .icon-list > span:not(.number-item) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.itm-topbar-actions .number-item {
  display: block; background: #f0bc1b; color: #371a46; border-radius: 50%;
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; font-size: 10px; font-weight: 800; padding: 0 4px;
}
/* keep the existing dropdown panels usable below the topbar icons */
.itm-topbar-actions .dropdown-account,
.itm-topbar-actions .dropdown-cart { left: auto; right: 0; }

/* ---------- Dynamic left category sidebar — FA icon sizing ---------- */
.sidebar-left .menu-icons li a .itm-side-ic { font-size: 18px; color: #828282; width: 22px; text-align: center; }
.sidebar-left .menu-texts .img-link .itm-side-ic { font-size: 17px; color: #828282; width: 22px; text-align: center; }
.sidebar-left .menu-icons li a:hover .itm-side-ic,
.sidebar-left .menu-texts li a:hover .itm-side-ic { color: #f0bc1b; }

/* ---------- Sidebar submenu: compact "All {Category}" pill on top ---------- */
.sidebar-left .menu-texts .sub-menu .itm-sub-all { margin: 0 0 8px !important; padding: 0 !important; }
.sidebar-left .menu-texts .sub-menu .itm-sub-all a {
  display: inline-flex !important; align-items: center; gap: 6px;
  background: linear-gradient(135deg, #ffd34d 0%, #f0bc1b 100%);
  color: #371a46 !important; font-weight: 700; border-radius: 0;
  padding: 6px 16px !important; font-size: 12.5px; line-height: 1.2;
  width: max-content; margin-left: 16px;
}
.sidebar-left .menu-texts .sub-menu .itm-sub-all a::before { content: "\f00a"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; }
.sidebar-left .menu-texts .sub-menu .itm-sub-all a:hover { filter: brightness(0.96); color: #2a1336 !important; }

/* ---------- Global: spans inherit their anchor's hover colour ---------- */
a:hover span { color: inherit !important; }

/* (Left category sidebar uses the template's default hover behaviour.) */

/* ---------- Header search: dropdown + search field + search button ---------- */
.header .main-header .header-left .header-search .box-header-search .form-search { align-items: center; }
.header .main-header .header-left .header-search .box-header-search .box-category { min-width: 150px; }
/* let the keyword input grow and leave room for the search button */
.header .main-header .header-left .header-search .box-header-search .box-keysearch { flex: 1 1 auto; width: auto; min-width: 0; }
/* magnifier search button on the right */
.itm-search-btn {
  flex: 0 0 auto; width: 46px; height: 38px; border: 0; border-radius: 9px; margin-left: 6px;
  background: #371a46; color: #fff; cursor: pointer; font-size: 15px; display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.itm-search-btn:hover { background: #f0bc1b; color: #2a1336; }

/* ============================================================
   Responsive header (mobile / tablet) — keep the FULL marketplace
   header usable: logo · location · search(+categories) · Post, plus a
   compact topbar with language + account / wishlist / cart.
   ============================================================ */
@media (max-width: 991px) {
  /* Compact topbar: the left links + "free shipping" are already d-xl-only,
     so this just brings back English + account/wishlist/cart on the right. */
  .topbar { display: block !important; padding: 6px 0; background: #fff; border-bottom: 1px solid #f0eef4; }
  .topbar .container-topbar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
  .itm-topbar-actions { margin-left: 0 !important; gap: 20px; }

  /* Header reflows into two rows instead of crushing the search to 0 width. */
  .header .main-header { flex-wrap: wrap; }
  .header .main-header .header-left {
    flex-wrap: wrap;
    row-gap: 10px;
    width: 100%;
    padding: 9px 0;
    align-items: center;
  }
  .header .main-header .header-left .header-logo { order: 1; flex: 0 0 auto; width: auto; max-width: 116px; margin-right: auto; }
  .header .main-header .header-left .itm-location-mount { order: 2; flex: 0 1 auto; display: block !important; min-width: 0; }
  .header .main-header .header-left .itm-add-btn { order: 3; flex: 0 0 auto; }
  /* Search (with the All-categories dropdown) gets its own full-width row. */
  .header .main-header .header-left .header-search {
    order: 4;
    display: block !important;
    width: 100% !important;
    flex: 0 0 100%;
    min-width: 0;
  }
  /* The template's burger + off-canvas nav aren't needed — we expose
     categories via the strip + the search dropdown. */
  .header .burger-icon { display: none !important; }
}

@media (max-width: 575px) {
  .header .main-header .header-left .header-logo { max-width: 104px; }
  /* keep the location selector from eating the whole row */
  .header .main-header .header-left .itm-location-mount { max-width: 58%; }
  .itm-topbar-actions { gap: 16px; }
}

/* ---------- Wider page container on large screens (1320 → 1400) ---------- */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1400px;
  }
  /* Align the header (was 92% / wider) with the 1400 content width. */
  .header .container { max-width: 1400px; }
}

/* ============================================================
   DARK THEME (website) — toggled via the topbar switch
   (html[data-itm-theme="dark"]). Covers the main surfaces,
   text, cards, header, shop and footer.
   ============================================================ */
.itm-darktoggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e3dfe9;
  background: #fff; color: #371a46; cursor: pointer; display: inline-grid; place-items: center;
  font-size: 14px; vertical-align: middle; margin-right: 14px; transition: .15s;
}
.itm-darktoggle:hover { background: #371a46; color: #fff; }

html[data-itm-theme="dark"] {
  --d-bg: #0f0f13; --d-surface: #1b1b21; --d-surface2: #26262d;
  --d-text: #e7e5ec; --d-strong: #f6f5f8; --d-muted: #9d99a8; --d-border: #2e2e36;
}

/* ---- base ---- */
html[data-itm-theme="dark"] body { background: var(--d-bg) !important; color: var(--d-text); }
html[data-itm-theme="dark"] .main,
html[data-itm-theme="dark"] section,
html[data-itm-theme="dark"] .section-box,
html[data-itm-theme="dark"] .bg-home9,
html[data-itm-theme="dark"] .shop-template { background-color: transparent !important; }

/* ---- text ---- */
html[data-itm-theme="dark"] h1, html[data-itm-theme="dark"] h2, html[data-itm-theme="dark"] h3,
html[data-itm-theme="dark"] h4, html[data-itm-theme="dark"] h5, html[data-itm-theme="dark"] h6,
html[data-itm-theme="dark"] .color-gray-1000, html[data-itm-theme="dark"] .color-gray-900,
html[data-itm-theme="dark"] .color-brand-3, html[data-itm-theme="dark"] .price-main,
html[data-itm-theme="dark"] .itm-fc-price, html[data-itm-theme="dark"] .itm-thrift-price { color: var(--d-strong) !important; }
html[data-itm-theme="dark"] p, html[data-itm-theme="dark"] span, html[data-itm-theme="dark"] li,
html[data-itm-theme="dark"] td, html[data-itm-theme="dark"] label, html[data-itm-theme="dark"] .font-sm,
html[data-itm-theme="dark"] .itm-fc-title, html[data-itm-theme="dark"] .itm-thrift-title { color: var(--d-text); }
html[data-itm-theme="dark"] .color-gray-500, html[data-itm-theme="dark"] .color-gray-400,
html[data-itm-theme="dark"] .itm-fc-meta, html[data-itm-theme="dark"] .itm-thrift-meta,
html[data-itm-theme="dark"] .itm-shop-count { color: var(--d-muted) !important; }
html[data-itm-theme="dark"] a { color: var(--d-text); }
html[data-itm-theme="dark"] a:hover { color: #f0bc1b; }

/* ---- topbar + header ---- */
html[data-itm-theme="dark"] .topbar,
html[data-itm-theme="dark"] .header,
html[data-itm-theme="dark"] .sticky-bar.stick,
html[data-itm-theme="dark"] .mobile-header-active { background: var(--d-surface) !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .header { border-bottom-color: var(--d-border); }
html[data-itm-theme="dark"] .box-header-search { background: var(--d-surface2); border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .box-keysearch input,
html[data-itm-theme="dark"] .itm-hcat { background: transparent !important; color: var(--d-text) !important; }
html[data-itm-theme="dark"] .box-keysearch input::placeholder { color: var(--d-muted); }
html[data-itm-theme="dark"] .itm-location-box,
html[data-itm-theme="dark"] .itm-loc-btn { background: var(--d-surface2) !important; border-color: var(--d-border) !important; color: var(--d-text) !important; }

/* ---- categories text bar ---- */
html[data-itm-theme="dark"] .itm-quickmenu { background: var(--d-surface) !important; border-color: var(--d-border); }
html[data-itm-theme="dark"] .itm-qm-list li a { color: var(--d-text); }
html[data-itm-theme="dark"] .itm-qm-list li:not(:last-child)::after { background: var(--d-border); }
html[data-itm-theme="dark"] .itm-qm-arrow { background: var(--d-surface2); border-color: var(--d-border); color: var(--d-text); }
html[data-itm-theme="dark"] .itm-qm-wrap::before { background: linear-gradient(90deg, var(--d-bg), rgba(0,0,0,0)); }
html[data-itm-theme="dark"] .itm-qm-wrap::after { background: linear-gradient(270deg, var(--d-bg), rgba(0,0,0,0)); }

/* ---- cards / panels (white surfaces) ---- */
html[data-itm-theme="dark"] .bg-white,
html[data-itm-theme="dark"] .box-menu-category,
html[data-itm-theme="dark"] .itm-fc,
html[data-itm-theme="dark"] .itm-thrift-card,
html[data-itm-theme="dark"] .itm-gridbox,
html[data-itm-theme="dark"] .card-grid-inner,
html[data-itm-theme="dark"] .itm-ad,
html[data-itm-theme="dark"] .itm-shop-side,
html[data-itm-theme="dark"] .sidebar-border,
html[data-itm-theme="dark"] .itm-acc-side,
html[data-itm-theme="dark"] .itm-acc-card { background: var(--d-surface) !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .itm-fc-img, html[data-itm-theme="dark"] .itm-thrift-img,
html[data-itm-theme="dark"] .image-box, html[data-itm-theme="dark"] .card-image { background: var(--d-surface2) !important; }

/* ---- shop sticky bar + inputs ---- */
html[data-itm-theme="dark"] .itm-shop-bar { background: var(--d-surface) !important; border-color: var(--d-border); }
html[data-itm-theme="dark"] .itm-bar-search { background: var(--d-surface2); border-color: var(--d-border); }
html[data-itm-theme="dark"] .itm-bar-search input { color: var(--d-text); }
html[data-itm-theme="dark"] .itm-bar-search input::placeholder { color: var(--d-muted); }
html[data-itm-theme="dark"] .itm-bar-filter { background: var(--d-surface2); color: var(--d-text); }
html[data-itm-theme="dark"] .itm-sort-select,
html[data-itm-theme="dark"] .form-control,
html[data-itm-theme="dark"] select,
html[data-itm-theme="dark"] input[type="text"],
html[data-itm-theme="dark"] input[type="number"],
html[data-itm-theme="dark"] textarea { background: var(--d-surface2) !important; color: var(--d-text) !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .itm-view-toggle { background: var(--d-surface2); }
html[data-itm-theme="dark"] .itm-view-toggle button { color: var(--d-muted); }
html[data-itm-theme="dark"] .itm-view-toggle button.on { background: var(--d-surface); color: #f0bc1b; }

/* dropdown menus (account/cart/language) */
html[data-itm-theme="dark"] .dropdown-menu,
html[data-itm-theme="dark"] .dropdown-account,
html[data-itm-theme="dark"] .dropdown-cart { background: var(--d-surface) !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .dropdown-menu a, html[data-itm-theme="dark"] .dropdown-account a { color: var(--d-text) !important; }

/* ---- footer ---- */
html[data-itm-theme="dark"] .footer { background: #0b0b0e !important; border-top: 1px solid var(--d-border); }
html[data-itm-theme="dark"] .footer .color-gray-1000,
html[data-itm-theme="dark"] .footer h1, html[data-itm-theme="dark"] .footer h2,
html[data-itm-theme="dark"] .footer h3, html[data-itm-theme="dark"] .footer h4,
html[data-itm-theme="dark"] .footer h5, html[data-itm-theme="dark"] .footer h6 { color: var(--d-strong) !important; }

/* keep accent + primary buttons readable */
html[data-itm-theme="dark"] .btn.btn-brand-2, html[data-itm-theme="dark"] .btn.btn-arrow-right { background: #4a2560 !important; border-color: #4a2560 !important; color: #fff !important; }
html[data-itm-theme="dark"] .header .itm-add-btn,
html[data-itm-theme="dark"] .itm-add-btn { background: linear-gradient(135deg, #f7c93a 0%, #f0bc1b 100%) !important; color: #2a1336 !important; }
html[data-itm-theme="dark"] .header .itm-add-btn .itm-add-label { color: #2a1336 !important; }

/* left vertical category rail */
html[data-itm-theme="dark"] .sidebar-left { background: var(--d-surface) !important; border-color: var(--d-border) !important; }

/* ============================================================
   DARK THEME — bug fixes (popups, topbar text, logo, sidebar)
   ============================================================ */
/* toggle sits inside the topbar actions group */
.itm-topbar-actions .itm-darktoggle { margin-right: 0; width: 30px; height: 30px; font-size: 13px; }
html[data-itm-theme="dark"] .itm-darktoggle { background: var(--d-surface2); border-color: var(--d-border); color: #f0bc1b; }
html[data-itm-theme="dark"] .itm-darktoggle:hover { background: #f0bc1b; color: #2a1336; }

/* white logo on dark */
html[data-itm-theme="dark"] .header-logo img,
html[data-itm-theme="dark"] .mobile-logo img { content: url("/assets/imgs/template/logo-white.png"); }

/* topbar text + the $75.00 highlight stay readable */
html[data-itm-theme="dark"] .topbar a,
html[data-itm-theme="dark"] .topbar .color-brand-3,
html[data-itm-theme="dark"] .info-topbar .color-brand-3 { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .color-success,
html[data-itm-theme="dark"] .info-topbar .color-success { color: #f0bc1b !important; }

/* location + category dropdown buttons */
html[data-itm-theme="dark"] .itm-loc-btn { background: var(--d-surface2) !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .itm-loc-text strong,
html[data-itm-theme="dark"] .itm-csel-btn,
html[data-itm-theme="dark"] .itm-csel-label { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .itm-loc-text small { color: var(--d-muted) !important; }

/* location + category dropdown POPUPS → dark surfaces (were white with light text = invisible) */
html[data-itm-theme="dark"] .itm-loc-pop,
html[data-itm-theme="dark"] .itm-csel-pop { background: var(--d-surface) !important; border-color: var(--d-border) !important; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
html[data-itm-theme="dark"] .itm-loc-search,
html[data-itm-theme="dark"] .itm-csel-search { background: var(--d-surface2) !important; border-color: var(--d-border) !important; color: var(--d-text) !important; }
html[data-itm-theme="dark"] .itm-loc-search::placeholder,
html[data-itm-theme="dark"] .itm-csel-search::placeholder { color: var(--d-muted); }
html[data-itm-theme="dark"] .itm-loc-item,
html[data-itm-theme="dark"] .itm-csel-item { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .itm-loc-item:hover,
html[data-itm-theme="dark"] .itm-csel-item:hover { background: var(--d-surface2) !important; }
html[data-itm-theme="dark"] .itm-loc-item.all,
html[data-itm-theme="dark"] .itm-csel-item.all,
html[data-itm-theme="dark"] .itm-loc-item.sel,
html[data-itm-theme="dark"] .itm-csel-item.sel { color: #f0bc1b !important; }
html[data-itm-theme="dark"] .itm-csel-item.child::before { color: #5a5563; }

/* left vertical category rail */
html[data-itm-theme="dark"] .sidebar-left .menu-texts,
html[data-itm-theme="dark"] .sidebar-left { background: var(--d-surface) !important; }
html[data-itm-theme="dark"] .sidebar-left a,
html[data-itm-theme="dark"] .sidebar-left .itm-side-ic,
html[data-itm-theme="dark"] .sidebar-left i { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .sidebar-left .menu-texts li a:hover { background: var(--d-surface2) !important; }

/* search field + post button readability */
html[data-itm-theme="dark"] .box-keysearch input::placeholder { color: var(--d-muted); }
html[data-itm-theme="dark"] .itm-search-btn { background: #f0bc1b; color: #2a1336; }

/* ============================================================
   DARK THEME — full coverage across pages
   ============================================================ */
/* ---- footer ---- */
html[data-itm-theme="dark"] .footer,
html[data-itm-theme="dark"] .footer-1,
html[data-itm-theme="dark"] .footer-bottom { background: #0b0b0e !important; background-image: none !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .footer a,
html[data-itm-theme="dark"] .footer .color-gray-900,
html[data-itm-theme="dark"] .footer .color-gray-500,
html[data-itm-theme="dark"] .footer p, html[data-itm-theme="dark"] .footer li { color: var(--d-muted) !important; }
html[data-itm-theme="dark"] .footer a:hover { color: #f0bc1b !important; }

/* ---- breadcrumb / page header strips ---- */
html[data-itm-theme="dark"] .breadcrumbs-div,
html[data-itm-theme="dark"] .breadcrumb { background: var(--d-surface) !important; }
html[data-itm-theme="dark"] .breadcrumb a,
html[data-itm-theme="dark"] .breadcrumb span,
html[data-itm-theme="dark"] .breadcrumb li { color: var(--d-text) !important; }

/* ---- left rail hover flyout ---- */
html[data-itm-theme="dark"] .sidebar-left .menu-texts,
html[data-itm-theme="dark"] .sidebar-left .sub-menu,
html[data-itm-theme="dark"] .sidebar-left .menu-texts ul { background: var(--d-surface) !important; }
html[data-itm-theme="dark"] .sidebar-left .menu-texts a,
html[data-itm-theme="dark"] .sidebar-left .sub-menu a,
html[data-itm-theme="dark"] .sidebar-left .menu-texts li a { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .sidebar-left .menu-texts li a:hover,
html[data-itm-theme="dark"] .sidebar-left .sub-menu li a:hover { background: var(--d-surface2) !important; color: #f0bc1b !important; }

/* ---- shop sidebar (category list + filters) + card price ---- */
html[data-itm-theme="dark"] .shop-template .list-nav-arrow li a,
html[data-itm-theme="dark"] .sidebar-content a,
html[data-itm-theme="dark"] .sidebar-content label,
html[data-itm-theme="dark"] .cb-container,
html[data-itm-theme="dark"] .sidebar-content .cb-container { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .shop-template .list-nav-arrow li a.active { color: #f0bc1b !important; }
html[data-itm-theme="dark"] .sidebar-head h6,
html[data-itm-theme="dark"] .head-shop h3,
html[data-itm-theme="dark"] .itm-ad-price { color: var(--d-strong) !important; }

/* ---- Add / Post-ad wizard ---- */
html[data-itm-theme="dark"] .itm-wiz { --ink: #f6f5f8; --muted: #9d99a8; --line: #2e2e36; }
html[data-itm-theme="dark"] .wiz-card,
html[data-itm-theme="dark"] .wiz-cat,
html[data-itm-theme="dark"] .wiz-steps .dot,
html[data-itm-theme="dark"] .wiz-prefix,
html[data-itm-theme="dark"] .wiz-type { background: var(--d-surface) !important; border-color: var(--d-border) !important; }
html[data-itm-theme="dark"] .wiz-field label { color: var(--d-text) !important; }
html[data-itm-theme="dark"] .wiz-chosen,
html[data-itm-theme="dark"] .wiz-prefix span,
html[data-itm-theme="dark"] .wiz-cat .ic,
html[data-itm-theme="dark"] .wiz-chosen .ic { background: var(--d-surface2) !important; }
html[data-itm-theme="dark"] .wiz-cat .ic i,
html[data-itm-theme="dark"] .wiz-chosen .ic i,
html[data-itm-theme="dark"] .wiz-card h3 i { color: #c8a6e6 !important; }
html[data-itm-theme="dark"] .wiz-chosen .t strong { color: var(--d-strong) !important; }

/* ---- Auth (login / register) ---- */
html[data-itm-theme="dark"] .itm-auth-grid,
html[data-itm-theme="dark"] .itm-auth-form { background: var(--d-surface) !important; }
html[data-itm-theme="dark"] .itm-auth-form h3,
html[data-itm-theme="dark"] .itm-auth-form label,
html[data-itm-theme="dark"] .itm-field label,
html[data-itm-theme="dark"] .itm-auth-form .color-gray-900 { color: var(--d-strong) !important; }
html[data-itm-theme="dark"] .itm-auth-form .color-gray-500 { color: var(--d-muted) !important; }

/* ---- generic: any leftover white surfaces / cards ---- */
html[data-itm-theme="dark"] .card,
html[data-itm-theme="dark"] .box-content,
html[data-itm-theme="dark"] .content-area,
html[data-itm-theme="dark"] .product-info { background-color: var(--d-surface) !important; }

/* dark: wizard Back button (was white with light text = invisible) */
html[data-itm-theme="dark"] .wiz-actions .btn-back { background: var(--d-surface2) !important; border-color: var(--d-border) !important; color: var(--d-text) !important; }
html[data-itm-theme="dark"] .wiz-actions .btn-back:hover { background: var(--d-surface) !important; }

/* dark: thrift badge stays visible on dark cards */
html[data-itm-theme="dark"] .itm-ad-badge--thrift { background: #6a4a86 !important; color: #fff !important; }

/* ============================================================
   Language selector (EN / اردو) + Google Translate
   ============================================================ */
.itm-lang { position: relative; display: inline-flex; align-items: center; }
.itm-lang-btn { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; cursor: pointer; color: #371a46; font-weight: 600; font-size: 13px; }
.itm-lang-btn > .fa-globe { color: #f0bc1b; }
.itm-lang-caret { font-size: 10px; color: #9b96a8; }
.itm-lang-back { position: fixed; inset: 0; z-index: 1040; }
.itm-lang-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1050; background: #fff; border: 1px solid #ece7f1; border-radius: 12px; box-shadow: 0 16px 40px rgba(55,26,70,.18); padding: 6px; min-width: 150px; }
.itm-lang-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: transparent; border: 0; cursor: pointer; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: #2b2336; text-align: left; }
.itm-lang-item:hover { background: #f5f1f9; }
.itm-lang-item.on { color: #371a46; font-weight: 700; }
.itm-lang-item .fa-check { color: #f0bc1b; font-size: 12px; }

html[data-itm-theme="dark"] .itm-lang-btn { color: var(--d-text); }
html[data-itm-theme="dark"] .itm-lang-pop { background: var(--d-surface); border-color: var(--d-border); }
html[data-itm-theme="dark"] .itm-lang-item { color: var(--d-text); }
html[data-itm-theme="dark"] .itm-lang-item:hover { background: var(--d-surface2); }

/* RTL niceties when اردو is active */
html[dir="rtl"] .itm-lang-pop { right: auto; left: 0; }
html.itm-urdu { letter-spacing: 0; }

/* dark: drop the left-rail flyout submenu + img-link borders */
html[data-itm-theme="dark"] .menu-texts li:hover .sub-menu,
html[data-itm-theme="dark"] .menu-texts li.submenu-open .sub-menu,
html[data-itm-theme="dark"] .menu-texts li a .img-link { border: none !important; }

/* ============================================================
   RTL (اردو): flip the left vertical icon rail + flyout to the right
   ============================================================ */
html[dir="rtl"] .sidebar-left,
html.itm-urdu .sidebar-left {
  left: auto !important; right: 0 !important;
  border-right: 0 !important; border-left: 1px solid #D5DFE4;
}
html[dir="rtl"] .menu-texts,
html.itm-urdu .menu-texts {
  left: auto !important; right: 0 !important;
  border-right: 0 !important; border-left: 1px solid #D5DFE4;
}
/* keep the dark-theme borders consistent after the flip */
html[data-itm-theme="dark"][dir="rtl"] .sidebar-left,
html[data-itm-theme="dark"].itm-urdu .sidebar-left { border-left-color: var(--d-border); }

/* RTL: rail open-button + nested has-children flyout */
html[dir="rtl"] .btn.btn-open,
html.itm-urdu .btn.btn-open { left: auto !important; right: 0 !important; }
html[dir="rtl"] .menu-texts li:hover .sub-menu,
html[dir="rtl"] .menu-texts li.submenu-open .sub-menu,
html.itm-urdu .menu-texts li:hover .sub-menu,
html.itm-urdu .menu-texts li.submenu-open .sub-menu {
  left: auto !important; right: 100% !important;
}

/* RTL (اردو): keep the topbar-right group left-aligned */
html[dir="rtl"] .menu-topbar-right,
html.itm-urdu .menu-topbar-right { text-align: left !important; }

/* Footer dynamic legal links + app version */
#itm-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 16px; align-items: center; }
#itm-footer-legal a { color: inherit; }
.itm-footer-ver { margin-left: 8px; opacity: .75; font-size: 12px; }

/* ============================================================
   Account: contact toggles, share link, danger zone
   ============================================================ */
.itm-acc-toggles { margin-top: 26px; padding-top: 22px; border-top: 1px solid #f1eef6; }
.itm-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; margin-bottom: 12px; font-size: 14px; color: #3c3548; }
.itm-toggle input { display: none; }
.itm-toggle-track { flex: 0 0 auto; width: 44px; height: 25px; border-radius: 99px; background: #d8d2e2; position: relative; transition: background .18s; }
.itm-toggle-dot { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: left .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.itm-toggle input:checked + .itm-toggle-track { background: #371a46; }
.itm-toggle input:checked + .itm-toggle-track .itm-toggle-dot { left: 22px; }

.itm-share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.itm-share-row input { flex: 1 1 240px; min-width: 0; }
.itm-share-row .btn { white-space: nowrap; }

.itm-danger { border: 1px solid #f3d4d4 !important; }
.itm-danger h5 { color: #c0392b !important; }
.itm-btn-danger { background: #c0392b !important; border-color: #c0392b !important; color: #fff !important; }
.itm-btn-danger:hover:not(:disabled) { background: #a52f23 !important; }
.itm-btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.itm-danger code { background: #f6e9e7; color: #c0392b; padding: 1px 7px; border-radius: 5px; font-weight: 700; }

/* dark */
html[data-itm-theme="dark"] .itm-toggle { color: var(--d-text); }
html[data-itm-theme="dark"] .itm-toggle-track { background: var(--d-surface2); }
html[data-itm-theme="dark"] .itm-danger { border-color: #5a2a28 !important; }

/* ============================================================
   Account: highlighted "Public profile" promo section
   ============================================================ */
.itm-pp-promo {
  position: relative; display: flex; gap: 20px; align-items: flex-start; overflow: hidden;
  border-radius: 18px; padding: 26px 28px;
  background: linear-gradient(120deg, #2a1336 0%, #4a2560 100%);
}
.itm-pp-promo-glow { position: absolute; top: -50px; right: -30px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(240,188,27,.22), rgba(240,188,27,0) 70%); pointer-events: none; }
.itm-pp-promo-ic { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px; background: rgba(255,255,255,.14); color: #f0bc1b; display: grid; place-items: center; font-size: 22px; }
.itm-pp-promo-body { position: relative; flex: 1; min-width: 0; }
.itm-pp-promo-tag { display: inline-block; background: #f0bc1b; color: #2a1336; font-size: 10.5px; font-weight: 800; letter-spacing: .6px; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.itm-pp-promo-body h4 { color: #fff !important; font-weight: 800; margin: 0 0 6px; font-size: 19px; }
.itm-pp-promo-body p { color: rgba(255,255,255,.72); font-size: 13.5px; margin: 0 0 16px; }
.itm-pp-promo-input { flex: 1 1 240px; min-width: 0; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; padding: 0 14px; font-size: 13px; outline: none; }
.itm-pp-promo-copy, .itm-pp-promo-view { height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 0; text-decoration: none; }
.itm-pp-promo-copy { background: #f0bc1b; color: #2a1336; }
.itm-pp-promo-copy:hover { background: #ffd34d; }
.itm-pp-promo-view { background: rgba(255,255,255,.14); color: #fff; }
.itm-pp-promo-view:hover { background: rgba(255,255,255,.24); color: #fff; }
@media (max-width: 575px) { .itm-pp-promo { flex-direction: column; gap: 14px; } }

/* Shop/profile banner editor (account) */
.itm-banner-edit {
  height: 132px; border-radius: 14px; margin-bottom: 20px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #2a1336 0%, #4a2560 60%, #5e2f78 100%);
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px;
}
.itm-banner-actions { display: flex; gap: 8px; }
.itm-banner-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.94); border: 0; color: #371a46; border-radius: 9px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.itm-banner-btn:hover { background: #fff; }
.itm-banner-btn--ghost { background: rgba(0,0,0,.5); color: #fff; }
.itm-banner-btn:disabled { opacity: .6; cursor: default; }

/* ============================================================
   Modern listing-card badges — frosted pill, consistent everywhere
   (home, shop, profile, favourites, thrift) + thrift heart
   ============================================================ */
.itm-fc-badge.itm-fc-badge,
.itm-pp-badge.itm-pp-badge,
.itm-ad-badge.itm-ad-badge,
.itm-thrift-tag.itm-thrift-tag {
  display: inline-flex !important; align-items: center; gap: 5px;
  border: 0 !important; border-radius: 999px !important; padding: 4px 11px !important; height: auto !important;
  font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: 0.2px;
  text-transform: none !important; line-height: 1.1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.itm-fc-badge i, .itm-pp-badge i, .itm-ad-badge i, .itm-thrift-tag i { font-size: 9px; }
/* thrift = amber */
.itm-pp-badge.itm-pp-badge,
.itm-ad-badge--thrift.itm-ad-badge--thrift,
.itm-thrift-tag.itm-thrift-tag {
  background: linear-gradient(135deg, #ffd34d, #f0bc1b) !important; color: #3a2400 !important;
}
.itm-pp-badge::before,
.itm-ad-badge--thrift::before {
  content: "\f02b"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 9px;
}
/* service = sky blue (wins over the per-type rule via double-class specificity) */
.itm-pp-badge--svc.itm-pp-badge--svc {
  background: linear-gradient(135deg, #4ec6f2, #2eaadc) !important; color: #06283a !important;
}
.itm-pp-badge--svc::before { content: "\f0b1"; }
/* booking = brand purple */
.itm-fc-badge.itm-fc-badge {
  background: linear-gradient(135deg, #5e2f78, #371a46) !important; color: #fff !important;
}

/* thrift-section heart */
.itm-thrift-fav {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 0; color: #7a7484; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: color .15s; z-index: 2; font-size: 13px;
}
.itm-thrift-fav:hover, .itm-thrift-fav.on { color: #e0414a; }

/* Hide number input spin arrows everywhere */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
