/* Good Deals SXM — redesign (v2). Same art direction as the Listivo theme, lighter and better organised.
   Tokens come from the live theme: blue #537CD9, green #53D95D, ink #374B5C, grey #73818C, lines #D5E3EE / #F2F4F8,
   Red Hat Display 800 tight headings, Lexend Deca text, 5px radius, beige chips, cream featured cards. */
:root, body {
  --e-global-color-lprimary1: #537CD9; --e-global-color-lprimary2: #53D95D; --e-global-color-lcolor1: #374B5C;
  --e-global-color-lcolor2: #73818C; --e-global-color-lcolor3: #D5E3EE; --e-global-color-lcolor4: #F2F4F8; --e-global-color-lcolor5: #FDFDFE;
  --e-global-typography-ltext1-font-family: "Lexend Deca"; --e-global-typography-lheading1-font-family: "Red Hat Display";
  --blue: #537CD9; --blue-d: #3F64BB; --green: #53D95D; --ink: #374B5C; --muted: #66737E; --line: #D5E3EE; --line2: #F2F4F8;
  --white: #FDFDFE; --bg: #F8FAFD; --chip: #ECE0C6; --chip-ink: #6E6553; --cream: #FFFCF4; --mint: #EDFBEE;
  --h: "Red Hat Display", sans-serif; --t: "Lexend Deca", sans-serif; --r: 5px; --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
body.v2 { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--t); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.v2 a { color: var(--blue); }
.v2 img { max-width: 100%; }
.v2 h1, .v2 h2, .v2 h3 { font-family: var(--h); font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.v2 button, .v2 input, .v2 select, .v2 textarea { font: inherit; color: inherit; }
.v2-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.v2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons — the theme's green button with the lighter slanted "+" segment */
.v2-btn { display: inline-flex; align-items: stretch; height: 50px; border: 0; border-radius: var(--r); overflow: hidden; background: var(--green); color: var(--ink) !important; text-decoration: none; cursor: pointer; font-size: 16px; white-space: nowrap; }
.v2-btn > span:first-child { display: flex; align-items: center; padding: 0 22px 0 26px; }
.v2-btn__plus { display: flex; align-items: center; padding: 0 16px 0 22px; background: rgba(253,253,254,.22); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.v2-btn:hover { filter: brightness(1.04); }
.v2-btn--blue { background: var(--blue); color: var(--white) !important; }
.v2-btn--blue:hover { background: var(--blue-d); filter: none; }
.v2-btn--simple > span:first-child { padding: 0 24px; }
.v2-btn--full { width: 100%; justify-content: center; }
.v2-btn--full > span:first-child { flex: 1; justify-content: center; }
.v2-ghost { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink) !important; text-decoration: none; cursor: pointer; font-size: 14px; }
.v2-ghost:hover { border-color: var(--blue); color: var(--blue) !important; }
.v2-ghost.is-on { background: var(--blue); border-color: var(--blue); color: var(--white) !important; }
.v2-label { display: inline-block; padding: 3px 6px; border-radius: var(--r); background: var(--green); color: var(--ink); font-size: 13px; line-height: 1.4; }
.v2-round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; color: inherit; background: transparent; flex-shrink: 0; }

/* Header — desktop */
.v2-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.v2-header__in { height: 82px; display: flex; align-items: center; gap: 26px; }
.v2-logo img { height: 46px; width: auto; display: block; }
.v2-nav { display: flex; gap: 26px; flex: 1; }
.v2-nav a { color: var(--ink); text-decoration: none; }
.v2-nav a:hover, .v2-nav a.is-on { color: var(--blue); }
.v2-account { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; position: relative; }
.v2-badge { position: absolute; top: -4px; left: 30px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E24B4B; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.v2-header--hero { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: rgba(253,253,254,.2); }
.v2-header--hero .v2-nav a, .v2-header--hero .v2-account { color: var(--white) !important; }
.v2-mobile-only { display: none !important; }

/* Mobile header + bottom bar */
@media (max-width: 900px) {
  .v2-desktop-only { display: none !important; }
  .v2-mobile-only { display: flex !important; }
  .v2-header__in { height: 64px; justify-content: space-between; gap: 10px; }
  .v2-logo img { height: 38px; }
  body.v2 { padding-bottom: 76px; }
}
.v2-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 70px; padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.v2-bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; position: relative; }
.v2-bottom a.is-on { color: var(--blue); }
.v2-bottom .v2-bottom__add { justify-self: center; width: 54px; height: 54px; margin-top: -22px; border-radius: var(--r); background: var(--green); color: var(--ink); justify-content: center; box-shadow: 0 6px 14px rgba(83,217,93,.4); }
.v2-bottom .v2-badge { left: auto; right: calc(50% - 22px); top: -2px; }

/* Side menu (mobile) */
.v2-drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.v2-drawer.is-open { display: block; }
.v2-drawer__bg { position: absolute; inset: 0; background: rgba(55,75,92,.6); }
.v2-drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--white); padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.v2-drawer__panel a { padding: 14px 4px; border-bottom: 1px solid var(--line2); color: var(--ink); text-decoration: none; }
.v2-drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* Hero (home) */
.v2-hero { position: relative; background-image: linear-gradient(180deg, rgba(55,75,92,.55), rgba(55,75,92,.45)), url('/wp-content/uploads/2024/09/w05095-small.jpg'); background-size: cover; background-position: center; color: var(--white); }
.v2-hero__in { padding: 150px 20px 60px; text-align: center; }
.v2-hero h1 { margin: 0; font-size: 68px; line-height: 1; letter-spacing: -2px; color: var(--white); }
.v2-hero h1 span { color: var(--green); }
.v2-search { margin: 32px auto 0; max-width: 820px; padding: 10px; background: var(--white); border-radius: var(--r); display: flex; gap: 10px; }
.v2-search select, .v2-search input { height: 50px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; background: var(--white); color: var(--ink); font-size: 16px; min-width: 0; }
.v2-search select { flex: 0 0 230px; }
.v2-search input { flex: 1; }
.v2-search button { flex: 0 0 75px; height: 52px; border: 0; border-radius: 5px 100px 100px 5px; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.v2-cats { margin: 28px auto 0; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.v2-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 88px; height: 88px; padding: 0 12px; border: 1px solid rgba(253,253,254,.8); border-radius: var(--r); color: var(--white) !important; text-decoration: none; font-size: 13px; line-height: 1.15; text-align: center; }
.v2-cat:hover { background: rgba(253,253,254,.12); }
.v2-cat img { width: 34px; height: 34px; object-fit: contain; }
@media (max-width: 900px) {
  .v2-hero__in { padding: 86px 15px 22px; }
  .v2-hero h1 { font-size: 44px; }
  .v2-search { margin-top: 22px; padding: 8px; }
  .v2-search select { display: none; }
  .v2-search button { flex-basis: 56px; height: 50px; border-radius: 5px 25px 25px 5px; }
  .v2-cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-top: 16px; padding-bottom: 2px; }
  .v2-cats::-webkit-scrollbar { display: none; }
  .v2-cat { flex: 0 0 88px; }
}

/* Sections */
.v2-section { padding: 56px 0 0; }
.v2-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.v2-section__head h2 { margin: 10px 0 0; font-size: 36px; line-height: 1.05; }
.v2-section--mint { margin-top: 56px; padding: 50px 0; background: var(--mint); }
.v2-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.v2-tabs button, .v2-tabs .listivo-tab-v2 { height: 46px; padding: 0 18px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--white); color: var(--muted); cursor: pointer; }
.v2-tabs .listivo-tab-v2--active { background: var(--blue); color: var(--white); border-color: var(--blue); }
@media (max-width: 900px) {
  .v2-section { padding-top: 32px; }
  .v2-section__head h2 { font-size: 28px; }
  .v2-section--mint { padding: 30px 0; margin-top: 32px; }
  .v2-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .v2-tabs button, .v2-tabs .listivo-tab-v2 { flex: 0 0 auto; height: 40px; padding: 0 14px; }
}

/* Listing cards */
.v2-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.v2-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v2-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; color: var(--ink) !important; text-decoration: none; transition: box-shadow .2s; }
.v2-card:hover { box-shadow: 0 10px 30px rgba(55,75,92,.1); }
.v2-card--featured { background: var(--cream); border: 2px solid var(--green); }
.v2-card__img { position: relative; aspect-ratio: 3 / 2; background: var(--line2); }
.v2-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-card__flag { position: absolute; left: 12px; top: 12px; padding: 0 6px; line-height: 22px; border-radius: var(--r); background: var(--green); color: var(--ink); font-size: 12px; }
.v2-card__sold { position: absolute; right: 12px; top: 12px; padding: 0 10px; line-height: 24px; border-radius: 20px; background: #E24B4B; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.v2-card__count { position: absolute; right: 10px; bottom: 10px; padding: 0 8px; line-height: 22px; border-radius: var(--r); background: rgba(55,75,92,.75); color: #fff; font-size: 12px; }
.v2-card__body { padding: 16px 18px 12px; display: flex; flex-direction: column; flex: 1; }
.v2-card__title { margin: 0; font-family: var(--h); font-weight: 800; font-size: 19px; line-height: 1.08; letter-spacing: -.8px; }
.v2-card__price { font-family: var(--h); font-weight: 800; font-size: 18px; letter-spacing: -.5px; margin: 10px 0; }
.v2-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.v2-chip { padding: 0 9px; line-height: 24px; border-radius: 2px; background: var(--chip); color: var(--chip-ink); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.v2-card__foot { margin-top: auto; padding: 10px 18px; border-top: 1px solid var(--line2); display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--muted); }
.v2-card--featured .v2-card__foot { border-top-color: var(--chip); }
.v2-card__icons { display: flex; gap: 6px; }
.v2-iconbtn { width: 35px; height: 35px; border: 1px solid var(--chip); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--ink); cursor: pointer; }
.v2-iconbtn:hover { border-color: var(--blue); color: var(--blue); }
.v2-iconbtn.listivo-listing-card-v4__icon--active, .v2-iconbtn.listivo-social-icon--active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.v2-iconbtn.listivo-listing-card-v4__icon--active svg, .v2-iconbtn.listivo-social-icon--active svg { fill: currentColor; }
@media (max-width: 1100px) { .v2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .v2-grid, .v2-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .v2-card__body { padding: 10px 10px 8px; }
  .v2-card__title { font-size: 16px; line-height: 1.12; }
  .v2-card__price { font-size: 16px; margin: 6px 0 8px; }
  .v2-chip { font-size: 12px; line-height: 22px; }
  .v2-card__foot { padding: 8px 10px; }
  .v2-card__icons .v2-iconbtn:not(.v2-fav) { display: none; }
  /* Results page on phones: compact rows, more listings at a glance */
  .v2-list .v2-grid { grid-template-columns: 1fr; }
  .v2-list .v2-card { flex-direction: row; padding: 10px; gap: 12px; }
  .v2-list .v2-card__img { flex: 0 0 132px; aspect-ratio: auto; height: 112px; border-radius: var(--r); overflow: hidden; }
  .v2-list .v2-card__body { padding: 0; }
  .v2-list .v2-card__foot { display: none; }
  .v2-list .v2-chips .v2-chip:nth-child(n+2) { display: none; }
}
.v2-rail { display: flex; gap: 15px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.v2-rail::-webkit-scrollbar { display: none; }
.v2-rail > * { flex: 0 0 272px; scroll-snap-align: start; }
@media (max-width: 900px) { .v2-rail > * { flex-basis: 240px; } }

/* Steps / sell */
.v2-sell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: center; }
.v2-sell p { color: var(--muted); }
.v2-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.v2-steps > div { padding: 22px 12px; background: var(--white); border-radius: var(--r); }
.v2-steps img { width: 46px; height: 46px; opacity: .8; }
.v2-steps strong { display: block; font-family: var(--h); font-size: 18px; color: var(--ink); margin: 8px 0 2px; }
@media (max-width: 900px) { .v2-sell { grid-template-columns: 1fr; gap: 18px; } .v2-steps { gap: 8px; } .v2-steps > div { padding: 14px 6px; } }

/* Alert band */
.v2-alertband { background-image: linear-gradient(rgba(55,75,92,.72), rgba(55,75,92,.72)), url('/wp-content/uploads/2024/09/w05095-small.jpg'); background-size: cover; background-position: center 70%; color: var(--white); margin-top: 56px; }
.v2-alertband__in { padding: 44px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.v2-alertband h2 { margin: 0; color: var(--white); font-size: 34px; line-height: 1.1; }
.v2-alertband h2 span { color: var(--green); }
.v2-alertband form { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-alertband select, .v2-alertband input { height: 50px; border: 0; border-radius: var(--r); padding: 0 14px; background: var(--white); color: var(--ink); min-width: 0; }
.v2-alertband input { width: 240px; }
.v2-alertband p { width: 100%; margin: 0; font-size: 13px; opacity: .85; }

/* Footer */
.v2-footer { background: var(--ink); color: var(--white); }
.v2-footer__in { padding: 48px 20px 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; font-size: 15px; line-height: 1.9; }
.v2-footer a { color: var(--white); text-decoration: none; display: block; }
.v2-footer a:hover { color: var(--green); }
.v2-footer h3 { margin: 0 0 8px; color: var(--white); font-size: 16px; letter-spacing: 0; }
.v2-footer__social { display: flex; gap: 10px; margin-top: 14px; }
.v2-footer__social a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #3B5998; }
.v2-footer__social a:first-child { background: #E1306C; }
.v2-footer__copy { border-top: 1px solid rgba(253,253,254,.12); padding: 16px 20px; text-align: center; font-size: 13px; opacity: .8; }
@media (max-width: 900px) { .v2-footer__in { grid-template-columns: 1fr; gap: 18px; } }

/* Results page */
.v2-results-head { background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 0 12px; }
.v2-results-head form { display: flex; gap: 8px; }
.v2-results-head input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 16px; }
.v2-results-head button[type=submit] { width: 56px; height: 48px; border: 0; border-radius: var(--r); background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.v2-pills { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.v2-pills::-webkit-scrollbar { display: none; }
.v2-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: var(--ink) !important; text-decoration: none; font-size: 14px; cursor: pointer; }
.v2-pill.is-on { background: var(--ink); border-color: var(--ink); color: var(--white) !important; }
.v2-results { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 30px; padding-top: 26px; padding-bottom: 50px; }
.v2-results__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.v2-results__count { font-family: var(--h); font-weight: 800; font-size: 26px; letter-spacing: -1px; }
.v2-results__count small { font-family: var(--t); font-weight: 400; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.v2-sort { height: 42px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 12px; background: var(--white); }
.v2-filters { background: var(--white); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px 20px 20px; align-self: start; position: sticky; top: 100px; }
.v2-filter { padding: 16px 0; border-bottom: 1px solid var(--line2); }
.v2-filter h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0; }
.v2-filter a.v2-opt { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: var(--ink); text-decoration: none; font-size: 15px; }
.v2-filter a.v2-opt:hover { color: var(--blue); }
.v2-filter a.v2-opt small { color: var(--muted); }
.v2-filter .v2-on { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; padding: 0 10px; line-height: 30px; border: 1px solid var(--blue); border-radius: var(--r); color: var(--blue); text-decoration: none; font-size: 14px; }
.v2-filter .v2-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v2-filter .v2-price input { height: 44px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; width: 100%; }
.v2-filter .v2-price button { grid-column: 1 / -1; }
.v2-filters__close { display: none; }
.v2-empty { padding: 40px 20px; text-align: center; background: var(--white); border: 1px dashed var(--line); border-radius: var(--r); grid-column: 1 / -1; }
.v2-alertcta { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--blue); border-radius: var(--r); background: var(--white); font-size: 14px; }
.v2-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.v2-pagination a, .v2-pagination span { min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r); display: flex; align-items: center; justify-content: center; background: var(--white); color: var(--ink); text-decoration: none; }
.v2-pagination span.is-on { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (max-width: 900px) {
  .v2-results { grid-template-columns: 1fr; padding-top: 14px; }
  .v2-filters { display: none; position: fixed; inset: 0; z-index: 120; border-radius: 0; overflow-y: auto; padding: 70px 20px 100px; align-self: stretch; justify-self: stretch; overscroll-behavior: contain; }
  .listivo-search-v2__sidebar--open .v2-filters, .v2-filters.listivo-search-v2__sidebar--open { display: block; }
  .v2-filters__close { display: flex; position: fixed; left: 0; right: 0; top: 0; height: 62px; align-items: center; justify-content: space-between; padding: 0 20px; background: var(--white); border-bottom: 1px solid var(--line); z-index: 121; }
  .v2-filters__done { position: fixed; left: 20px; right: 20px; bottom: 16px; z-index: 121; }
  .v2-results__count { font-size: 22px; }
}

/* Listing page */
.v2-crumbs { padding: 16px 0; font-size: 15px; }
.v2-crumbs a { color: var(--ink); text-decoration: none; }
.v2-crumbs span.sep { color: var(--green); margin: 0 6px; }
.v2-crumbs .here { color: var(--muted); }
.v2-gallery { position: relative; max-width: 1400px; margin: 0 auto; }
.v2-gallery .listivo-swiper-wrapper { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.v2-gallery .listivo-swiper-wrapper::-webkit-scrollbar { display: none; }
.v2-gallery .listivo-gallery-v3__slide { flex: 0 0 50%; height: 440px; scroll-snap-align: start; cursor: zoom-in; background: var(--line2); }
.v2-gallery .listivo-gallery-v3__slide:only-child { flex-basis: 100%; }
.v2-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-gallery__nav { position: absolute; top: 50%; left: 16px; right: 16px; display: flex; justify-content: space-between; pointer-events: none; transform: translateY(-50%); }
.v2-gallery__nav button { pointer-events: auto; width: 48px; height: 48px; border: 0; border-radius: var(--r); background: var(--white); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.v2-gallery__nav .listivo-box-arrow--disabled { opacity: 0; pointer-events: none; }
.v2-gallery__count { position: absolute; right: 16px; bottom: 16px; padding: 0 10px; line-height: 30px; border-radius: var(--r); background: var(--white); font-size: 13px; }
.v2-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; padding-top: 30px; padding-bottom: 40px; }
.v2-box { background: var(--white); border: 1px solid var(--line2); border-radius: 10px; }
.v2-main { padding: 30px; }
.v2-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 15px; }
.v2-main h1 { margin: 18px 0 0; font-size: 32px; line-height: 1.2; }
.v2-main .v2-price { margin-top: 10px; font-family: var(--h); font-weight: 800; font-size: 30px; letter-spacing: -1px; }
.v2-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.v2-tag { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; line-height: 32px; border: 1px solid var(--line); border-radius: var(--r); font-size: 15px; }
.v2-tag--blue { border-color: var(--blue); color: var(--blue); }
.v2-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.v2-features div { padding: 10px 14px; border-radius: var(--r); background: var(--bg); font-size: 14px; color: var(--muted); }
.v2-features strong { display: block; color: var(--ink); font-size: 16px; }
.v2-main h2 { margin: 28px 0 8px; font-size: 24px; }
.v2-desc { color: var(--muted); line-height: 1.8; }
.v2-desc p { margin: 0 0 12px; }
.v2-seller { padding: 22px; display: flex; gap: 14px; align-items: center; font-size: 14px; line-height: 1.6; }
.v2-seller strong { font-family: var(--h); font-size: 17px; display: block; }
.v2-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--line2); display: flex; align-items: center; justify-content: center; color: #9AA7B2; overflow: hidden; flex-shrink: 0; }
.v2-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v2-phone { width: 100%; min-height: 78px; border: 0; background: var(--line); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 22px; text-decoration: none; cursor: pointer; font-size: 17px; }
.v2-phone .listivo-contact-button__inner { display: flex; align-items: center; gap: 12px; }
.v2-phone__go { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--green); display: flex; align-items: center; font-size: 14px; }
.v2-contact { padding: 18px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v2-contact button, .v2-contact a { height: 50px; border: 0; border-radius: var(--r); background: var(--blue); color: var(--white) !important; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.v2-contact button:hover { background: var(--blue-d); }
.v2-actions { padding: 14px; display: flex; justify-content: center; gap: 12px; }
.v2-tip { padding: 14px 20px; border-radius: 10px; background: #FFF8E6; color: #6B4E00; font-size: 14px; line-height: 1.6; }
.v2-tip a { color: #C8463D; }
.v2-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.v2-mbar { display: none; }
.gdx-whatsapp { display: none !important; }
@media (max-width: 900px) {
  .v2-crumbs { display: none; }
  .v2-gallery .listivo-gallery-v3__slide { flex-basis: 100%; height: 320px; }
  .v2-detail { grid-template-columns: 1fr; padding-top: 0; gap: 12px; }
  .v2-main { margin: -16px 0 0; position: relative; padding: 22px 20px; }
  .v2-main h1 { font-size: 28px; }
  .v2-main .v2-price { font-size: 26px; }
  .v2-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-side { position: static; }
  .v2-side .v2-phone, .v2-side .v2-contact { display: none; }
  body.v2-has-mbar { padding-bottom: 150px; }
  body.v2-has-mbar .v2-bottom { display: none; }
  .v2-mbar { display: flex; flex-direction: column; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 15px calc(14px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(55,75,92,.08); }
  .v2-mbar .v2-phone { min-height: 52px; border-radius: var(--r); padding: 0 6px 0 16px; font-size: 16px; }
  .v2-mbar .v2-contact { padding: 0; }
}

/* Forms, member area, login: reuse gdx-* components with the theme look */
.v2 .gdx-field input:not([type=checkbox]):not([type=file]):not([type=radio]), .v2 .gdx-field select, .v2 .gdx-field textarea { border-radius: var(--r); border-color: var(--line); padding: 13px 14px; font-size: 16px; }
.v2 .gdx-card, .v2 .gdx-row, .v2 .gdx-conv, .v2 .gdx-thread, .v2 .gdx-empty, .v2 .gdx-package, .v2 .gdx-promote__listing, .v2 .gdx-share-box { border-radius: 10px; border-color: var(--line2); }
.v2 .gdx-btn { border-radius: var(--r); }
.v2 .gdx-h1 { font-size: 34px; letter-spacing: -1px; }
.v2 .gdx-h2 { letter-spacing: -.5px; }
.v2 .listivo-simple-button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r); padding: 0 24px; height: 50px; cursor: pointer; text-decoration: none; font-size: 16px; }
.v2 .listivo-simple-button--background-primary-1 { background: var(--blue); color: var(--white); }
.v2 .listivo-simple-button--background-primary-2 { background: var(--green); color: var(--ink); }
.v2 .listivo-simple-button--height-60 { height: 56px; }
.v2 .listivo-simple-button--full-width { width: 100%; }
.v2-auth { max-width: 520px; margin: 40px auto 60px; padding: 0 15px; }
.v2-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; }
.v2-auth__tabs a { display: flex; align-items: center; justify-content: center; height: 54px; background: #EEF2F7; color: var(--ink); text-decoration: none; border-radius: 10px 10px 0 0; }
.v2-auth__tabs a.listivo-login-form__tab--active { background: var(--white); font-weight: 600; }
.v2-auth__box { background: var(--white); border: 1px solid var(--line2); border-top: 0; border-radius: 0 0 10px 10px; padding: 28px; }
.v2-auth .gdx-field { margin-bottom: 14px; }
.v2-auth__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 14px; }
.v2-auth__row a { color: #2E9E3A; text-decoration: none; }
@media (max-width: 900px) { .v2-auth { margin-top: 20px; } }
.v2 .gdx-panel, .v2 .gdx-page { padding-top: 26px; }
.v2 .listivo-checkbox { display: none; }
.v2 .gdx-check input { position: static; opacity: 1; width: auto; height: auto; }

.v2-contact .v2-wa { background: #25D366; color: #fff !important; grid-column: 1 / -1; }
.v2 .gdx-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
@media (max-width: 900px) { .v2 .gdx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 900px) {
  .v2-bottom.v2-mobile-only { display: grid !important; }
  .v2-results__top > div:last-child { width: 100%; }
  .v2-results__top > div:last-child > * { flex: 1; }
  .v2-results__top .v2-sort { width: 100%; }
  .v2-results__top .gdx-alert-btn { justify-content: center; white-space: nowrap; }
}
.v2-cats { max-width: 1140px; }
/* Pages with their own action bar at the bottom (submission form): no navigation bar on phones. */
@media (max-width: 900px) { body.v2:has(#gdx-submit) .v2-bottom { display: none !important; } body.v2:has(#gdx-submit) { padding-bottom: 0; } }
/* Content pages (FAQ, contact, policy, blog, articles) */
.v2-pagehead { background: var(--white); border-bottom: 1px solid var(--line); padding: 4px 0 30px; }
.v2-pagehead .v2-crumbs { display: block; }
.v2-pagehead h1 { margin: 10px 0 0; font-size: 44px; line-height: 1.08; letter-spacing: -1.5px; }
.v2-lead { margin: 12px 0 0; color: var(--muted); font-size: 17px; }
.v2-pagebody { padding-top: 30px; padding-bottom: 60px; }
.v2-narrow { max-width: 860px; }
.v2-h2 { font-size: 24px; margin: 30px 0 14px; }
.v2-twocol { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.v2-pageside { padding: 26px; position: sticky; top: 100px; }
.v2-pageside p { color: var(--muted); }
.v2-faq details { background: var(--white); border: 1px solid var(--line2); border-radius: var(--r); margin-bottom: 8px; }
.v2-faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-family: var(--h); font-weight: 800; font-size: 17px; letter-spacing: -.3px; list-style: none; position: relative; }
.v2-faq summary::-webkit-details-marker { display: none; }
.v2-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: var(--r); background: var(--green); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--t); font-weight: 400; }
.v2-faq details[open] summary::after { content: "–"; }
.v2-faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.7; }
.v2-form { padding: 28px; }
.v2-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-prose { padding: 34px 40px; line-height: 1.8; color: #4A5D6D; }
.v2-prose h1, .v2-prose h2, .v2-prose h3, .v2-prose h4 { color: var(--ink); line-height: 1.2; margin: 1.6em 0 .6em; }
.v2-prose img { height: auto; border-radius: var(--r); margin: 10px 0; }
.v2-prose a { word-break: break-word; }
.v2-prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.v2-prose td, .v2-prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.v2-prose figure { margin: 0; }
.v2-prose .elementor-widget-container, .v2-prose .e-con-inner { max-width: 100%; }
.v2-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 20px; }
@media (max-width: 900px) {
  .v2-pagehead { padding: 18px 0 22px; }
  .v2-pagehead .v2-crumbs { display: none; }
  .v2-pagehead h1 { font-size: 32px; }
  .v2-twocol { grid-template-columns: 1fr; }
  .v2-pageside { position: static; }
  .v2-cols2 { grid-template-columns: 1fr; gap: 0; }
  .v2-prose { padding: 22px 18px; }
}
.v2-card__img { overflow: hidden; }
.gdx-danger summary { cursor: pointer; font-weight: 600; color: #B42A2A; }
.gdx-danger { margin-top: 18px; }
