/*
Theme Name: Rao Vặt Nhanh Theme
Theme URI: https://raovatnhanh.de
Author: raovatnhanh.de
Description: Custom Modern Marketplace Theme — Local Fonts (DSGVO/GDPR Compliant), Mobile-First.
Version: 1.3.0
Text Domain: raovatnhanh
*/

/* ──────────────────────────────────────────────────────────────
   LOCAL FONTS — 100% DSGVO/GDPR Compliant (zero external requests)
   Nunito: Full Vietnamese diacritics support (ă, â, ê, ô, ơ, ư, đ + tones)
   Plus Jakarta Sans: Brand headings
   ────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/Nunito-Regular.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129,
                 U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9,
                 U+0300-036F, U+1E00-1EFF, U+2000-206F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/Nunito-SemiBold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129,
                 U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9,
                 U+0300-036F, U+1E00-1EFF, U+2000-206F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/Nunito-Bold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129,
                 U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9,
                 U+0300-036F, U+1E00-1EFF, U+2000-206F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/Nunito-ExtraBold.ttf') format('truetype');
  unicode-range: U+0000-00FF, U+0102-0103, U+0110-0111, U+0128-0129,
                 U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9,
                 U+0300-036F, U+1E00-1EFF, U+2000-206F;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
}

/* ──────────────────────────────────────────────────────────────
   DESIGN SYSTEM TOKENS
   ────────────────────────────────────────────────────────────── */
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --dark: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --bg: #F8FAFC;
  --card-bg: #FFFFFF;
  --border: #E2E8F0;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --radius: 12px;
  /* Nunito: perfect Vietnamese + Umlaut support */
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Plus Jakarta Sans for brand/headings, fallback to Nunito */
  --font-heading: 'Plus Jakarta Sans', 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--dark);
  line-height: 1.65;
  font-size: 15px;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

/* ──────────────────────────────────────────────────────────────
   KLEINANZEIGEN-STYLE LIST ROW COMPONENT (GLOBAL)
   ────────────────────────────────────────────────────────────── */
.rv-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.rv-list-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 20px;
  align-items: stretch;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.rv-list-item:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08);
}

.rv-list-item.rv-item-pinned {
  border: 1.5px solid #EF4444;
  background: #FFFDFD;
}

.rv-list-item.rv-item-vip {
  border: 1.5px solid #F59E0B;
  background: #FFFDF7;
}

/* Thumbnail / Category Icon — Hidden per layout requirement */
.rv-list-thumb-wrap {
  display: none !important;
}

.rv-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rv-list-item:hover .rv-list-img {
  transform: scale(1.05);
}

.rv-list-img-count {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(2px);
  z-index: 2;
}

/* No-image Category Box */
.rv-list-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.2s ease;
}

.rv-list-item:hover .rv-list-no-img {
  transform: scale(1.08);
}

.rv-list-no-img-icon {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
}

/* Main Body Content */
.rv-list-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rv-list-title-row {
  margin-bottom: 4px;
}

.rv-list-badges {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-right: 6px;
  vertical-align: middle;
}

.rv-list-title-link {
  text-decoration: none;
  color: inherit;
}

.rv-list-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
  display: inline;
  transition: color 0.15s ease;
}

.rv-list-item:hover .rv-list-title {
  color: #2563EB;
}

.rv-list-snippet {
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
  margin: 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-list-meta-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748B;
  margin-top: auto;
}

.rv-list-meta-cat {
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rv-list-meta-dot {
  color: #CBD5E1;
}

/* Right Side: Price, Location, Date */
.rv-list-side {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  text-align: right;
  padding-left: 16px;
  border-left: 1px solid #F1F5F9;
}

.rv-list-side.rv-side-no-price {
  justify-content: flex-end;
}

.rv-list-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.rv-list-price {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.2;
  white-space: nowrap;
}

.rv-list-price.rv-price-free,
.rv-feat-price.rv-price-free,
.rv-list-mobile-price.rv-price-free {
  color: #16A34A;
}

.rv-list-price.rv-price-negotiate,
.rv-feat-price.rv-price-negotiate,
.rv-list-mobile-price.rv-price-negotiate {
  color: #0284C7;
  font-size: 16px;
  font-weight: 700;
}

.rv-list-price-type {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
  margin-top: 3px;
  white-space: nowrap;
}

.rv-list-loc-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #64748B;
  margin-top: 10px;
}

.rv-list-loc {
  font-weight: 700;
  color: #334155;
}

.rv-list-date {
  color: #94A3B8;
  font-size: 11.5px;
}

/* Badges */
.rv-badge-top {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  vertical-align: 1px;
}
.rv-badge-ghim { background: #DC2626; color: #FFFFFF; }
.rv-badge-vip  { background: #D97706; color: #FFFFFF; }
.rv-badge-biz  { background: #2563EB; color: #FFFFFF; font-size: 9.5px; padding: 1.5px 5px; letter-spacing: 0.5px; }
.rv-badge-new  { background: #EA580C; color: #FFFFFF; }

/* Mobile Elements (Hidden on Desktop) */
.rv-list-price-mobile-inline,
.rv-list-mobile-loc-bar {
  display: none;
}

/* Responsive List Items */
@media (max-width: 768px) {
  .rv-list-item {
    gap: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: 12px;
  }
  .rv-list-thumb-wrap {
    display: none !important;
  }
  .rv-list-no-img-icon {
    display: none !important;
  }
  .rv-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 0;
    margin-top: 0;
  }
  .rv-list-main-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .rv-list-title-row {
    margin: 0 0 3px;
    padding: 0;
    width: 100%;
    line-height: 1.25;
  }
  .rv-list-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rv-badge-top {
    padding: 1.5px 5px;
    font-size: 9px;
    border-radius: 3.5px;
    vertical-align: 1px;
  }
  
  /* Mobile Inline Price */
  .rv-list-price-mobile-inline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    color: #2563EB;
    margin: 2px 0 4px;
    line-height: 1.2;
  }
  .rv-list-price-mobile-inline.rv-price-free {
    color: #16A34A;
  }
  
  .rv-list-snippet {
    display: none; /* Hide snippet on mobile for clean, scannable feed */
  }
  .rv-list-meta-bottom {
    font-size: 11px;
    color: #64748B;
    gap: 4px;
    margin-top: 2px;
    margin-bottom: 0;
  }
  .rv-list-meta-views {
    display: none;
  }

  /* Mobile Bottom Bar: Address Left, Time Right */
  .rv-list-mobile-loc-bar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #F1F5F9;
    padding-top: 6px;
    margin-top: auto;
    font-size: 11.5px;
    color: #64748B;
  }
  .rv-list-mobile-loc-bar .rv-list-loc {
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 3px;
  }
  .rv-list-mobile-loc-bar .rv-list-date {
    color: #94A3B8;
    font-size: 11px;
    white-space: nowrap;
  }

  .rv-list-side {
    display: none !important; /* Managed seamlessly inside rv-list-body on mobile */
  }
}

/* ── Horizontal Featured Grid (Khu vực VIP hàng ngang 4 cột) ── */
.rv-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.rv-feat-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rv-feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.rv-feat-card.rv-feat-vip {
  border: 1.5px solid #F59E0B;
  background: linear-gradient(180deg, #FFFDF5 0%, #FFFFFF 100%);
}

.rv-feat-card.rv-feat-pinned {
  border: 1.5px solid #DC2626;
  background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
}

.rv-feat-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #F1F5F9;
  overflow: hidden;
}

.rv-feat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rv-feat-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rv-feat-no-img-icon {
  font-size: 46px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.rv-feat-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
}

.rv-feat-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.rv-feat-price {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.2;
  margin-bottom: 6px;
}

.rv-feat-price-sub {
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  margin-left: 4px;
}

.rv-feat-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-feat-card:hover .rv-feat-title {
  color: #2563EB;
}

.rv-feat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #64748B;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.rv-feat-loc {
  font-weight: 600;
  color: #334155;
}

@media (max-width: 1024px) {
  .rv-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rv-feat-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 4px 4px 12px;
    margin: 8px -20px 0;
    padding-left: 20px;
    padding-right: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rv-feat-grid::-webkit-scrollbar {
    display: none;
  }
  .rv-feat-card {
    flex: 0 0 165px;
    max-width: 165px;
    scroll-snap-align: start;
    border-radius: 12px;
  }
  .rv-feat-thumb-wrap {
    aspect-ratio: 1/1;
  }
  .rv-feat-no-img-icon {
    font-size: 32px;
  }
  .rv-feat-body {
    padding: 10px;
  }
  .rv-feat-price {
    font-size: 14.5px;
    margin-bottom: 4px;
  }
  .rv-feat-title {
    font-size: 12.5px;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }
  .rv-feat-footer {
    font-size: 10px;
    padding-top: 6px;
  }
}

/* ── Seller Call Button (Single Listing Page) ── */
.rv-seller-call-btn {
  background: #FFFFFF;
  border: 1.5px solid #16A34A;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #15803D;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.08);
}

.rv-seller-call-btn:hover {
  background: #16A34A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.25);
}

.rv-seller-call-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rv-seller-call-btn:hover .rv-seller-call-icon {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.rv-seller-call-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.rv-seller-call-num {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.rv-seller-call-sub {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
  transition: color 0.2s ease;
}

.rv-seller-call-btn:hover .rv-seller-call-sub {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Sticky Sidebar Filter & Widgets ── */
.rv-sidebar-filter {
  position: sticky;
  top: 85px;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-sidebar-promo-box {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #BFDBFE;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
}

.rv-promo-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.rv-promo-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1E40AF;
  margin: 0 0 4px;
  line-height: 1.35;
}

.rv-promo-desc {
  font-size: 12px;
  color: #3B82F6;
  margin: 0 0 12px;
  line-height: 1.4;
}

.rv-promo-btn {
  display: inline-block;
  width: 100%;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.rv-promo-btn:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.rv-sidebar-safety-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
}

.rv-safety-head {
  font-size: 13.5px;
  color: #0F172A;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv-safety-list {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.6;
}

.rv-safety-list li {
  margin-bottom: 4px;
}

/* ── Modern Pagination ── */
.rv-pagination-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #F1F5F9;
}

.rv-pagination-info {
  font-size: 12.5px;
  color: #64748B;
}

.rv-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.rv-page-numbers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv-page-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rv-page-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.rv-page-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.rv-page-num:hover {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #2563EB;
}

.rv-page-num.is-active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.rv-page-dots {
  padding: 0 4px;
  color: #94A3B8;
  font-weight: 700;
}

/* ── Global Horizontal Overflow Prevention & Mobile Bottom Bar ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 2000;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.06);
  justify-content: space-around;
  align-items: center;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 65px;
  }
  .mobile-bottom-bar {
    display: flex !important;
  }
}

/* ── Single Listing Detail Responsive Layout ── */
.rv-single-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.rv-single-main {
  min-width: 0;
  width: 100%;
}

.rv-single-sidebar {
  position: sticky;
  top: 85px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rv-seller-call-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F0FDF4;
  border: 1.5px solid #86EFAC;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #15803D;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.rv-seller-call-btn:hover {
  background: #DCFCE7;
  border-color: #4ADE80;
  transform: translateY(-1px);
}

.rv-seller-call-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #16A34A;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rv-seller-call-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rv-seller-call-num {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  color: #15803D;
  letter-spacing: 0.5px;
}

.rv-seller-call-sub {
  font-size: 11.5px;
  color: #16A34A;
  font-weight: 500;
}

@media (max-width: 900px) {
  .rv-page-container {
    padding: 0 12px !important;
    margin: 16px auto !important;
  }
  
  .rv-single-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  .rv-single-sidebar {
    position: static !important;
    top: auto !important;
  }

  .rv-section-card {
    padding: 16px !important;
    border-radius: 12px !important;
    margin-bottom: 14px !important;
  }

  #rv-gallery-main {
    aspect-ratio: 4/3 !important;
  }
  
  .rv-single-title {
    font-size: 18.5px !important;
    line-height: 1.35 !important;
  }
  
  .rv-single-price {
    font-size: 22px !important;
  }
  
  /* Market / Archive Layout */
  .rv-market-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Post Wizard Layout */
  #rv-wizard-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Settings Layout */
  .rv-settings-layout {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .rv-form-grid-2,
  .rv-form-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Base Settings Layout */
.rv-settings-layout {
  display: grid;
  grid-template-columns: 2fr 1.1fr;
  gap: 24px;
}
.rv-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.rv-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 768px) {
  /* Wizard Categories & Form Grids */
  .rv-wizard-panel div[style*="grid-template-columns:repeat(4,1fr)"],
  .rv-wizard-panel div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .rv-wizard-panel div[style*="grid-template-columns:1fr 1fr"],
  .rv-wizard-panel div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* User Dashboard Quick Stats */
  .rv-page-container div[style*="grid-template-columns:repeat(4,1fr)"],
  .rv-page-container div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  /* User Dashboard Listing Item Card */
  .rv-dashboard-listing div[style*="display:flex; gap:14px; align-items:flex-start"] {
    flex-direction: column !important;
    gap: 12px !important;
  }
  
  .rv-dashboard-listing div[style*="display:flex; flex-direction:column; gap:6px; flex-shrink:0"] {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    border-top: 1px dashed var(--border);
    padding-top: 10px;
    margin-top: 4px;
  }
  .rv-dashboard-listing div[style*="display:flex; flex-direction:column; gap:6px; flex-shrink:0"] > * {
    flex: 1 1 auto !important;
    text-align: center !important;
  }

  /* User Messages */
  .rv-page-container div[style*="grid-template-columns:320px 1fr"],
  .rv-page-container div[style*="grid-template-columns: 320px 1fr"] {
    grid-template-columns: 1fr !important;
    height: auto !important;
  }
}

/* ── Global Alerts ── */
.rv-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 16px;
  display: block;
}
.rv-alert-success { background: #F0FDF4; border: 1px solid #BBF7D0; color: #15803D; }
.rv-alert-error   { background: #FEF2F2; border: 1px solid #FECACA; color: #DC2626; }
.rv-alert-info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1D4ED8; }
.rv-alert-warn    { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
