/* =====================================================
   RWANDAFUL — Custom Enhancement Styles
   koraneza.rw | Trusted Suppliers
   Production overrides for Koraneza Trusted Suppliers
   ===================================================== */

/* ---- Slick carousel slide wrapper ---- */
/* Replaces col-sm-12 col-lg-4 which conflicted with Slick's own width management */
.slick-item {
  outline: none;
}
.slick-item .product-item {
  margin: 0 6px;
}

/* ---- Trusted Supplier Badge ---- */
.badge-trusted-supplier {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #00b894, #00a381);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,184,148,0.3);
  flex-shrink: 0;
}
.badge-trusted-supplier i {
  font-size: 10px;
}
/* In-card variant (inside card body) */
.lbadge-trusted {
  background: linear-gradient(135deg, #00b894, #00a381) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 1px 4px rgba(0,184,148,0.25);
}

/* ---- Premium consistent button hover effects ---- */
.btn-main,
.btn-primary {
  transition: all 0.2s ease;
}
.btn-main:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(86,114,249,0.35);
}
.btn-main:active,
.btn-primary:active {
  transform: translateY(0);
}
.btn-transparent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(86,114,249,0.2);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---- Mobile responsiveness extras ---- */
@media (max-width: 576px) {
  /* Category tiles don't break on xs screens */
  .cat-name { font-size: 11px; }
  .cat-kiny  { font-size: 9px; }
  .cat-count { font-size: 10px; }

  /* Prevent location fields wrapping oddly */
  .location-grid { grid-template-columns: 1fr; }

  /* Listing badges wrap cleanly */
  .listing-badges { flex-wrap: wrap; gap: 4px; }

  /* Trusted Supplier badge shrinks gracefully */
  .badge-trusted-supplier { font-size: 9px; padding: 2px 7px; }

  /* Post-ad form fields full width */
  .post-ad-section .radio-row { flex-direction: column; gap: 8px; }
}
@media (max-width: 768px) {
  /* Trust bar two-column on tablet */
  .trust-bar { gap: 8px; }
  .trust-item { width: calc(50% - 4px); }

  /* Section header stacks */
  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }

  /* Shop actions stack on mobile */
  .shop-actions .btn-whatsapp,
  .shop-actions .btn-call { width: 100%; text-align: center; }
}

/* ---- Brand Logo ---- */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
}
.brand-text strong {
  font-size: 20px;
  color: #5672f9;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.brand-text small {
  font-size: 9px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}
.brand-text:hover { text-decoration: none; }

/* ---- Stats Bar ---- */
.stats-section {
  background: #5672f9;
  padding: 78px 0 22px;
}
.stat-item {
  text-align: center;
  color: #fff;
  padding: 8px 0;
}
.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: block;
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 4px;
  display: block;
}
.stat-divider {
  border-right: 1px solid rgba(255,255,255,0.2);
}
@media (max-width: 767px) {
  .stats-section { padding-top: 120px; }
  .stat-divider { border-right: none; }
  .stat-item { padding: 6px 0; }
  .stat-number { font-size: 22px; }
}

/* ---- Category Image Tiles ---- */
.category-tile {
  text-align: center;
  padding: 0 0 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: all 0.25s ease;
  margin-bottom: 24px;
  display: block;
  color: #333;
  text-decoration: none;
  border: 1px solid transparent;
  overflow: hidden;
}
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(86,114,249,0.16);
  border-color: #e0e6ff;
  color: #5672f9;
  text-decoration: none;
}
.cat-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  margin-bottom: 16px;
  position: relative;
  transition: transform 0.35s ease;
}
.category-tile:hover .cat-image { transform: scale(1.04); }
.cat-name {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  display: block;
  margin: 0 14px;
}
.cat-kiny {
  font-size: 12px;
  color: #7d8490;
  display: block;
  margin: 0 14px;
}
.cat-count {
  font-size: 11px;
  color: #5672f9;
  font-weight: 700;
  margin-top: 6px;
  display: block;
}

/* Category tile images */
.cat-img-cars { background-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=900&q=80"); }
.cat-img-houses { background-image: url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=900&q=80"); }
.cat-img-wholesale { background-image: url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=900&q=80"); }
.cat-img-retail { background-image: url("https://images.unsplash.com/photo-1604719312566-8912e9227c6a?auto=format&fit=crop&w=900&q=80"); }
.cat-img-supermarket { background-image: url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=900&q=80"); }
.cat-img-services {
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 55%, #0f766e 100%);
}
.cat-img-services:after {
  content: "\f0ad";
  font-family: FontAwesome;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 42px;
}
.cat-img-clothes { background-image: url("https://images.unsplash.com/photo-1445205170230-053b83016050?auto=format&fit=crop&w=900&q=80"); }
.cat-img-all { background-image: linear-gradient(135deg, rgba(86,114,249,0.88), rgba(2,211,164,0.78)), url("https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=900&q=80"); }
.category-tile-all {
  border: 2px dashed #dbe3f3;
  box-shadow: none;
}

.call-to-action.bg-3 {
  background: #4b5563 !important;
  background-image: none !important;
}
.call-to-action.bg-3:before {
  background: rgba(17, 24, 39, 0.2);
}

/* Category icon backgrounds */
.cat-bg-cars    { background: linear-gradient(135deg,#fe7e17,#f5a623); }
.cat-bg-houses  { background: linear-gradient(135deg,#02d3a4,#00b894); }
.cat-bg-wholesale { background: linear-gradient(135deg,#5672f9,#3d56e0); }
.cat-bg-retail  { background: linear-gradient(135deg,#EC3A56,#e0255a); }
.cat-bg-supermarket { background: linear-gradient(135deg,#1DBFFF,#0099cc); }
.cat-bg-services { background: linear-gradient(135deg,#a676b8,#8e44ad); }
.cat-bg-clothes { background: linear-gradient(135deg,#ccdb38,#a6c20d); }

/* ---- Enhanced Product Cards ---- */
.product-item .card {
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.product-item:hover .card {
  box-shadow: 0 10px 28px rgba(0,0,0,0.11);
  transform: translateY(-3px);
}
.product-item .thumb-content { position: relative; overflow: hidden; }
.product-item .thumb-content img {
  transition: transform 0.45s ease;
  height: 195px;
  width: 100%;
  object-fit: cover;
}
.product-item:hover .thumb-content img { transform: scale(1.05); }

/* Card image badges */
.badge-featured, .badge-new, .badge-premium-img {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  color: #fff;
}
.badge-featured  { background: #e6b322; }
.badge-new       { background: #28a745; }
.badge-premium-img { background: #5672f9; }

/* Listing trust badges (inside card body) */
.listing-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.listing-badges .lbadge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.lbadge-open    { background: #e9f9ef; color: #1fcc2e; border: 1px solid #c3eecb; }
.lbadge-closed  { background: #fff0f0; color: #e04444; border: 1px solid #fcc; }
.lbadge-verified { background: #eef1ff; color: #5672f9; border: 1px solid #c5cdfa; }
.lbadge-premium { background: #fff8e1; color: #e6b322; border: 1px solid #f5dcad; }
.lbadge-wholesale { background: #e8fff4; color: #00b894; border: 1px solid #b2ecda; }

/* Price in card */
.listing-price {
  font-size: 15px;
  font-weight: 700;
  color: #5672f9;
  margin: 4px 0 7px;
  display: block;
}

/* Location meta */
.location-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 7px;
}
.location-meta i { color: #5672f9; margin-right: 3px; }

/* WhatsApp + Call buttons */
.listing-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.listing-contact .btn {
  min-height: 36px;
  padding: 7px 10px;
  line-height: 1.25;
  white-space: normal;
}
.listing-contact .btn-outline-secondary {
  flex-basis: 100%;
  margin-left: 0 !important;
  margin-top: 0 !important;
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 4px;
  transition: background 0.2s;
  flex: 1;
  text-align: center;
  display: block;
}
.btn-whatsapp:hover { background: #1da851; color: #fff; text-decoration: none; }
.btn-call {
  background: #fff;
  color: #5672f9;
  border: 1.5px solid #5672f9;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 0;
  border-radius: 4px;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
  display: block;
}
.btn-call:hover { background: #5672f9; color: #fff; text-decoration: none; }

/* ---- Hero enhancements ---- */
.hero-area {
  min-height: 500px;
  background-image: linear-gradient(90deg, rgba(12,22,28,0.58), rgba(12,22,28,0.26)), url("../images/home/koraneza-hills.png") !important;
  background-position: center;
  background-size: cover;
}
.hero-area .content-block h1 {
  font-size: 42px !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  letter-spacing: 0;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .hero-area .content-block h1 { font-size: 30px !important; }
  .hero-area .content-block p  { font-size: 14px !important; }
}
.hero-area .content-block .sub-tagline {
  color: rgba(255,255,255,0.88);
  font-size: 15px;
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 10px;
  font-weight: 400;
}
.popular-search-tags { margin-top: 10px; }
.popular-search-tags a {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(255,255,255,0.13);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  font-size: 12px;
  margin: 4px 2px;
  transition: all 0.2s;
  text-decoration: none;
}
.popular-search-tags a:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
}

/* ---- Section title (left-aligned variant) ---- */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 0;
}
.section-header h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38px;
  height: 3px;
  background: #5672f9;
  border-radius: 2px;
}
.section-header .sub {
  font-size: 13px;
  color: #888;
  display: block;
  margin-top: 3px;
}
.view-all-link {
  font-size: 13px;
  color: #5672f9;
  font-weight: 600;
  white-space: nowrap;
  margin-bottom: 3px;
}
.view-all-link:hover { color: #3d56e0; text-decoration: underline; }

/* ---- Trust bar ---- */
.trust-bar {
  background: #f8f9ff;
  border: 1px solid #e4e9ff;
  border-radius: 6px;
  padding: 12px 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #555;
  font-weight: 600;
}
.trust-item i { color: #5672f9; font-size: 15px; }

/* ---- Promo / Ad Banner ---- */
.promo-banner {
  background: linear-gradient(135deg, #5672f9 0%, #3a4fd1 100%);
  border-radius: 8px;
  padding: 28px 30px;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.promo-banner:before {
  content: '';
  position: absolute;
  right: -35px;
  top: -35px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.promo-banner:after {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.promo-banner h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.promo-banner p  { color: rgba(255,255,255,0.85); font-size: 13px; margin-bottom: 14px; }

/* ---- Testimonials ---- */
.testimonial-item {
  background: #fff;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
  margin-bottom: 25px;
  border-left: 3px solid #5672f9;
  height: 100%;
}
.testimonial-item .quote {
  font-size: 14px;
  color: #555;
  line-height: 1.65;
  margin-bottom: 15px;
  font-style: italic;
}
.testimonial-item .reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-item .reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e0e6ff;
}
.testimonial-item .reviewer-name  { font-weight: 700; font-size: 13px; color: #333; }
.testimonial-item .reviewer-role  { font-size: 11px; color: #888; }
.testimonial-item .stars { margin-bottom: 12px; }
.testimonial-item .stars i { color: #e6b322; font-size: 13px; }

/* ---- Shop Profile Page ---- */
.shop-cover {
  height: 270px;
  background-size: cover;
  background-position: center;
  border-radius: 6px 6px 0 0;
  position: relative;
  overflow: hidden;
}
.shop-cover:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.45) 100%);
}
.shop-header-card {
  background: #fff;
  padding: 0 25px 20px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}
.shop-logo-wrap {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -38px;
  padding-top: 0;
}
.shop-logo {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}
.shop-name h2 {
  font-size: 21px;
  font-weight: 800;
  margin-bottom: 3px;
  margin-top: 40px;
}
.shop-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #777;
  margin: 8px 0 14px;
}
.shop-meta-row span i { color: #5672f9; margin-right: 4px; }
.shop-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.shop-actions .btn-whatsapp,
.shop-actions .btn-call {
  padding: 9px 20px;
  font-size: 13px;
  flex: none;
  border-radius: 4px;
}

/* Shop gallery thumbnails */
.gallery-grid img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 5px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
}
.gallery-grid img:hover { opacity: 0.88; transform: scale(1.02); }
.gallery-grid .col-4 { padding: 4px; }

/* Opening hours */
.hours-table { width: 100%; }
.hours-table tr td { padding: 6px 8px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.hours-table .day { color: #444; font-weight: 600; }
.hours-table .time { color: #5672f9; font-weight: 500; }
.hours-table .closed-day { color: #e04444; }
.hours-today { background: #f0f4ff; border-radius: 3px; }

/* ---- Filter Sidebar Enhancements ---- */
.filter-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: #f0f3ff;
  color: #5672f9;
  border: 1px solid #c5cdfa;
  margin: 3px 2px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.filter-chip:hover,
.filter-chip.active {
  background: #5672f9;
  color: #fff;
  text-decoration: none;
  border-color: #5672f9;
}

/* ---- Location display ---- */
.location-breadcrumb {
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}
.location-breadcrumb span { color: #5672f9; font-weight: 600; }
.location-breadcrumb i { font-size: 9px; margin: 0 4px; color: #bbb; }

.district-badge {
  display: inline-block;
  padding: 3px 9px;
  background: #f0f3ff;
  color: #5672f9;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* ---- Sort bar ---- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.result-count { font-size: 13px; color: #666; }
.result-count strong { color: #333; }

/* ---- Footer ---- */
.footer {
  position: relative;
  background-image: linear-gradient(90deg, rgba(18,24,27,0.94), rgba(18,24,27,0.84)), url("https://images.unsplash.com/photo-1528127269322-539801943592?auto=format&fit=crop&w=1800&q=80") !important;
  background-position: center;
  background-size: cover;
}
.footer-brand h3 { font-weight: 800; color: #fff; margin: 0; font-size: 20px; }
.footer-brand small { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-contact-info p { font-size: 13px; color: #999; margin-bottom: 5px; }
.footer-contact-info i { color: #5672f9; margin-right: 7px; }
.footer-hotline {
  background: #46484a;
  border-radius: 5px;
  padding: 12px 18px;
  margin-top: 14px;
}
.footer-hotline p { color: #aaa; font-size: 12px; margin-bottom: 3px; }
.footer-hotline .phone-number { color: #5672f9; font-size: 17px; font-weight: 700; margin: 0; }

/* ---- Registration seller onboarding ---- */
.registration-option,
.registration-plan {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dde3f0;
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: #fff;
}
.registration-option input,
.registration-plan input {
  margin-top: 4px;
}
.registration-option span,
.registration-plan span {
  flex: 1;
}
.registration-option strong,
.registration-plan strong {
  display: block;
  color: #222;
  font-size: 14px;
}
.registration-option small,
.registration-plan small {
  display: block;
  color: #7d8490;
  font-size: 12px;
  line-height: 1.5;
}
.registration-plan b {
  color: #5672f9;
  font-size: 12px;
  white-space: nowrap;
}
.registration-option:has(input:checked),
.registration-plan:has(input:checked) {
  border-color: #5672f9;
  background: #f4f6ff;
}
.seller-plan-panel {
  background: #f7f8fc;
  border: 1px solid #e8ecf4;
  border-radius: 8px;
  padding: 14px;
}

/* ---- About page refresh ---- */
.about-hero {
  position: relative;
  padding: 110px 0 80px;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(10,18,22,0.76), rgba(10,18,22,0.38)), url("../images/home/koraneza-hills.png");
  background-position: center;
  background-size: cover;
}
.about-hero h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: 0;
}
.about-hero p {
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
}
.about-kicker {
  display: inline-block;
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.about-kicker.dark {
  color: #5672f9;
}
.about-hero-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.about-hero-panel strong {
  display: block;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 8px;
}
.about-hero-panel span {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}
.about-story-section {
  background: #fff;
}
.about-image-stack {
  position: relative;
}
.about-image-stack img {
  min-height: 430px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(18,24,27,0.12);
}
.about-image-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  max-width: 260px;
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 12px 32px rgba(18,24,27,0.16);
}
.about-image-note strong,
.about-image-note span {
  display: block;
}
.about-image-note strong {
  color: #222;
  font-size: 15px;
  margin-bottom: 5px;
}
.about-image-note span {
  color: #707783;
  font-size: 12px;
  line-height: 1.6;
}
.about-stat-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  box-shadow: 0 8px 24px rgba(18,24,27,0.06);
}

/* ---- Mobile refinements ---- */
@media (max-width: 767px) {
  .listing-contact { gap: 5px; }
  .shop-actions { flex-direction: column; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 5px; }
  .trust-bar { gap: 10px; padding: 10px 14px; }
  .trust-item { font-size: 11px; }
  .category-tile { padding-bottom: 16px; }
  .cat-name { font-size: 13px; }
  .cat-image { margin-bottom: 14px; }
  .registration-plan { flex-wrap: wrap; }
  .registration-plan b { width: 100%; padding-left: 24px; }
  .about-hero { padding: 72px 0 56px; }
  .about-hero h1 { font-size: 30px; }
  .about-image-stack img { min-height: 300px; }
  .about-image-note {
    position: static;
    max-width: none;
    margin-top: 14px;
  }
}

/* ---- Listing detail page ---- */
.listing-detail-price {
  font-size: 24px;
  font-weight: 800;
  color: #5672f9;
  display: block;
  margin: 8px 0;
}
.seller-widget {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 22px;
  margin-bottom: 24px;
}
.seller-widget .seller-avatar {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #e0e6ff;
}
.seller-widget h5 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.seller-widget .member-since { font-size: 12px; color: #888; }
.contact-widget .btn-whatsapp,
.contact-widget .btn-call {
  display: block;
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  border-radius: 5px;
  text-align: center;
}
.contact-widget .btn-call { margin-bottom: 0; }
.single-contact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.single-contact-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  white-space: normal;
  line-height: 1.25;
}
.single-contact-actions .btn i {
  margin-right: 7px;
}
.single-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  font-size: 13px;
}
.single-contact-links a {
  color: #5672f9;
  font-weight: 600;
}

/* Spec table */
.spec-table tr td { padding: 9px 12px; font-size: 13px; }
.spec-table tr td:first-child { background: #f9f9fb; font-weight: 600; color: #555; width: 38%; }

/* Image gallery main */
.main-listing-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.thumb-strip img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.thumb-strip img:hover,
.thumb-strip img.active { border-color: #5672f9; }

/* Review cards */
.review-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.review-card .reviewer-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-card .reviewer-name { font-weight: 700; font-size: 14px; }
.review-card .review-date { font-size: 11px; color: #aaa; }
.review-card .stars i { color: #e6b322; font-size: 12px; }
.review-card p { font-size: 13px; color: #666; margin: 8px 0 0; line-height: 1.55; }

/* Safety tips box */
.safety-box {
  background: #fff8e8;
  border: 1px solid #f5dcad;
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 12px;
  color: #7a5c00;
}
.safety-box h6 { font-size: 12px; font-weight: 700; color: #7a5c00; margin-bottom: 8px; }
.safety-box li { margin-bottom: 4px; }

/* About page / contact enhancements */
.contact-info-card {
  background: #fff;
  border-radius: 6px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  margin-bottom: 20px;
}
.contact-info-card .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef1ff;
  color: #5672f9;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

/* Role-based nav visibility */
body:not([data-role="admin"]) .nav-admin-only { display: none !important; }
body:not([data-role="admin"]):not([data-role="moderator"]) .nav-mod-only { display: none !important; }
body[data-role="buyer"] .nav-seller-only { display: none !important; }
body:not([data-role="buyer"]) .nav-buyer-only { display: none !important; }
body:not([data-role="buyer"]):not([data-role="seller"]):not([data-role="moderator"]):not([data-role="admin"]) .nav-auth-only { display: none !important; }
body[data-role="guest"] .nav-auth-only { display: none !important; }

/* Console pages keep public navigation in the top bar and workflow navigation in the sidebar/body. */
.page-console header {
  border-bottom: 1px solid #eef0f4;
  background: #fff;
}
.page-console .navigation .navbar-collapse {
  justify-content: flex-end;
}
.page-console .navigation .main-nav {
  margin-left: auto !important;
}
.page-console .navigation .main-nav .nav-link {
  color: #555;
  font-size: 14px;
  padding: 10px 16px;
}
.page-console .navigation .main-nav .nav-link:hover {
  color: #5672f9;
}
.page-console .navigation .navbar-nav.mt-10 {
  margin-left: 18px !important;
  flex-shrink: 0;
}
.page-console .navigation .navbar-nav.mt-10 .nav-link {
  padding: 10px 14px;
  white-space: nowrap;
}
.page-console .navigation .navbar-nav.mt-10 .add-button {
  display: none !important;
}
.page-dashboard .sidebar {
  position: sticky;
  top: 20px;
}
.page-dashboard .user-dashboard-menu {
  border-left: 4px solid #5672f9;
}
.page-dashboard .user-dashboard-menu ul {
  margin-bottom: 0;
}
.page-dashboard .user-dashboard-menu li.dashboard-menu-label {
  padding: 0 0 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eef0f4;
}
.page-dashboard .user-dashboard-menu li.dashboard-menu-label span {
  display: block;
  color: #222;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}
.page-dashboard .user-dashboard-menu li a {
  border-radius: 4px;
  padding: 12px 14px;
}
.page-dashboard .user-dashboard-menu li.active a {
  background: #5672f9;
  color: #fff;
}
.page-dashboard .user-dashboard-menu li.active a i {
  color: #fff;
}
.page-dashboard .dashboard.section {
  padding-top: 45px;
}
.rwandaful-dashboard-table {
  min-width: 900px;
  table-layout: fixed;
  width: 100%;
}
.rwandaful-dashboard-table th,
.rwandaful-dashboard-table td {
  vertical-align: middle !important;
}
.rwandaful-dashboard-table th {
  white-space: nowrap;
}
.dashboard-container .rwandaful-dashboard-table td {
  padding: 22px 12px;
}
.rwandaful-dashboard-table .col-image { width: 86px; }
.rwandaful-dashboard-table .col-listing { width: 28%; }
.rwandaful-dashboard-table .col-category { width: 17%; }
.rwandaful-dashboard-table .col-status { width: 110px; }
.rwandaful-dashboard-table .col-date { width: 120px; }
.rwandaful-dashboard-table .col-actions { width: 170px; }
.rwandaful-dashboard-table .dashboard-listing-image {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 6px;
  background: #f4f7f9;
}
.rwandaful-dashboard-table .product-details .title {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: anywhere;
}
.rwandaful-dashboard-table .product-details .add-id {
  color: #6f7782;
  font-size: 13px;
}
.rwandaful-dashboard-table .product-category,
.rwandaful-dashboard-table .listing-status,
.rwandaful-dashboard-table .listing-date,
.rwandaful-dashboard-table .action {
  text-align: left;
}
.rwandaful-dashboard-table .dashboard-action-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}
.rwandaful-dashboard-table .dashboard-action-stack .btn {
  margin: 0 !important;
  width: 100%;
  min-height: 34px;
  white-space: normal;
  line-height: 1.25;
}
.rwandaful-admin-table {
  min-width: 1040px;
  table-layout: fixed;
  width: 100%;
}
.rwandaful-admin-table th,
.rwandaful-admin-table td {
  vertical-align: middle !important;
  padding: 18px 14px !important;
}
.rwandaful-admin-table th {
  white-space: nowrap;
}
.rwandaful-admin-table .col-name { width: 230px; }
.rwandaful-admin-table .col-email { width: 330px; }
.rwandaful-admin-table .col-role { width: 150px; }
.rwandaful-admin-table .col-small { width: 92px; }
.rwandaful-admin-table .col-date { width: 120px; }
.rwandaful-admin-table .col-actions { width: 210px; }
.rwandaful-admin-table td:nth-child(1),
.rwandaful-admin-table td:nth-child(2) {
  overflow-wrap: anywhere;
  word-break: normal;
}
.rwandaful-admin-table .js-user-role {
  min-width: 118px;
}
.rwandaful-admin-table td:last-child {
  white-space: nowrap;
}
.rwandaful-admin-table td:last-child .btn {
  margin-bottom: 6px;
}
.user-dashboard-profile p {
  color: #888;
  margin-bottom: 16px;
}
.user-dashboard-profile .profile-thumb {
  width: 150px;
  height: 150px;
  margin: 0 auto 18px;
}
.user-dashboard-profile .profile-thumb img,
.user-dashboard-profile img.rounded-circle {
  display: block;
  width: 150px !important;
  height: 150px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 5px solid #f4f7f9;
}
@media (max-width: 991px) {
  .page-dashboard .sidebar { position: static; }
}
