/* ============================================================
   style.css  —  B2B Marketplace eworldgoods.com
   Matches the client mockup exactly (Results_Page_Mockup.jpg)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background: #f5f5f5;
  color: #333;
}

a { color: #333; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TOP BAR ===== */
.top-bar {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  padding: 5px 0;
  font-size: 12px;
  color: #555;
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-links a { color: #555; margin: 0 2px; }
.top-bar-links a:hover { color: #e87722; text-decoration: none; }
.tb-sep { margin: 0 4px; color: #999; }

/* ===== MAIN HEADER ===== */
.main-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-wrap { flex-shrink: 0; display: flex; align-items: center; }
.logo-img { height: 50px; width: auto; display: block; }

.header-search { flex: 1; max-width: 620px; }
.search-group {
  display: flex;
  border: 2px solid #2563eb;
  border-radius: 3px;
  overflow: hidden;
}
.search-group input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 13px;
  color: #333;
}
.search-group select {
  border: none;
  border-left: 1px solid #ddd;
  outline: none;
  padding: 8px 10px;
  font-size: 12px;
  background: #fff;
  color: #333;
  cursor: pointer;
}
.search-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.search-btn:hover { background: #1e40af; }

.header-basket { flex-shrink: 0; text-align: center; }
.basket-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #555;
  font-size: 11px;
  text-decoration: none;
}
.basket-link:hover { color: #e87722; }
.basket-link svg { color: #555; }

/* ===== NAVIGATION ===== */
.main-nav {
  background: #fff;
  border-bottom: 2px solid #e0e0e0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}
.nav-a {
  display: block;
  padding: 12px 16px;
  color: #444;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-a:hover { color: #2563eb; text-decoration: none; }
.nav-a.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
  font-weight: 700;
}
.nav-sell-btn {
  background: #059669;
  color: #fff !important;
  padding: 20px 35px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s;
}
.nav-sell-btn:hover { background: #047857; text-decoration: none; }

/* ===== HERO BANNER AD ===== */
.hero-banner-wrap {
  background: linear-gradient(135deg, #0b4fa8 0%, #1a6dd4 40%, #0a8a6e 100%);
  padding: 28px 16px;
  width : 70%;
  margin: 0 auto;  
  text-align: center;
}
.hero-banner-ad { max-width: 900px; margin: 0 auto; }

.hb-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.hb-logo { height: 36px; width: auto; filter: brightness(0) invert(1); }
.hb-rebbe {
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-family: Georgia, serif;
}
.hb-adclick {
  background: #fff;
  color: #333;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
}
.hb-adclick b { color: #2563eb; }
.hb-plus { color: #fff; font-size: 22px; font-weight: 700; }

.hb-headline {
  font-size: 54px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hb-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}
.hb-price-line {
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 14px;
}
.hb-price {
  color: #ffe066;
  font-size: 22px;
  font-weight: 900;
}
.hb-order-btn {
  display: inline-block;
  background: #e87722;
  color: #fff;
  padding: 11px 32px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
}
.hb-order-btn:hover { background: #c9621a; text-decoration: none; }

/* ===== PAGE LAYOUT: 3 COLUMNS ===== */
.page-layout {
  max-width: 1200px;
  margin: 18px auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 190px 1fr 155px;
  gap: 16px;
  align-items: start;
}

/* ===== LEFT SIDEBAR ===== */
.left-sidebar { display: flex; flex-direction: column; gap: 10px; }

/* Sidebar box */
.sb-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.sb-box-head {
  /* background: #f47321; */
  /* color: #fff; */
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  text-transform: none;
}
.sb-box-body { padding: 8px; }

/* RFQ Form */
.rfq-input-row {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 6px;
  gap: 4px;
  margin-bottom: 6px;
}
.rfq-ico { font-size: 12px; color: #888; flex-shrink: 0; }
.rfq-text-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 11px;
  min-width: 0;
}
.rfq-qty-row {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 6px;
  gap: 4px;
  margin-bottom: 8px;
}
.rfq-qty-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 11px;
  min-width: 0;
  width: 60px;
}
.rfq-piece-label { font-size: 11px; color: #777; white-space: nowrap; }
.rfq-sub-btn {
  width: 100%;
  background: #f47321;
  color: #fff;
  border: none;
  padding: 7px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.rfq-sub-btn:hover { background: #c9621a; }

/* Country filter */
.country-search {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 4px 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: #999;
}
.country-inp {
  flex: 1;
  border: none;
  outline: none;
  font-size: 11px;
  min-width: 0;
}
.country-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
}
.country-list li {
  padding: 3px 2px;
  font-size: 11px;
  border-bottom: 1px solid #f5f5f5;
}
.country-list li label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-weight: normal;
}
.country-list li input[type="checkbox"] { margin: 0; flex-shrink: 0; }
.flag-img { width: 16px; height: 11px; object-fit: cover; flex-shrink: 0; }

/* Quick sidebar links */
.sb-quick-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sq-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  transition: background 0.12s;
  color: #333;
}
.sq-link:hover { background: #fff7f0; text-decoration: none; }
.sq-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.sq-dot-orange { background: #f47321; }
.sq-dot-red    { background: #e53e3e; }
.sq-dot-blue   { background: #2563eb; }
.sq-dot-green  { background: #059669; }
.sq-dot-purple { background: #7c3aed; }
.sq-icon { font-size: 13px; }

/* Gold upgrade box */
.sb-gold-box {
  background: linear-gradient(160deg, #fff3cd 0%, #ffe066 60%, #ffd700 100%);
  border: 2px solid #e6ac00;
  border-radius: 6px;
  padding: 16px 10px 10px;
  text-align: center;
}
.gold-upgrade-to {
  font-size: 11px;
  font-weight: 700;
  color: #7a5800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gold-title-text {
  font-size: 30px;
  font-weight: 900;
  color: #7a5800;
  letter-spacing: 0.04em;
  line-height: 1;
  margin: 4px 0 2px;
  font-family: Georgia, serif;
}
.gold-member-text {
  font-size: 14px;
  font-weight: 700;
  color: #7a5800;
  margin-bottom: 10px;
}
.gold-wave-bar {
  height: 14px;
  background: linear-gradient(90deg, #f47321 0%, #e6ac00 50%, #f47321 100%);
  border-radius: 3px;
}

/* Sidebar banner placeholder */
.sb-banner-placeholder {
  background: #f0f0f0;
  border: 1px dashed #bbb;
  border-radius: 4px;
  text-align: center;
  padding: 24px 8px;
  font-size: 11px;
  color: #999;
  font-style: italic;
}

/* ===== CENTER CONTENT ===== */
.center-content { background: transparent; }

/* Results heading */
.results-heading-row { margin-bottom: 10px; }
.results-heading {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  font-family: Arial, Helvetica, sans-serif;
}
.gold-keyword { color: #d4a017; font-weight: 700; }

/* Tabs row */
.results-tabs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 12px;
  padding-bottom: 0;
}
.results-tabs { display: flex; gap: 0; }
.res-tab {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
}
.res-tab:hover { color: #f47321; text-decoration: none; }
.res-tab-active {
  color: #f47321;
  border-bottom-color: #f47321;
}
.results-found {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}
.results-count-num { color: #f47321; font-weight: 700; }

/* RFQ Cards */
.rfq-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 14px 16px 12px;
  margin-bottom: 10px;
  transition: box-shadow 0.15s;
}
.rfq-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.1); }

/* Sell / product / company rows (image + body) */
.rfq-card-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rfq-thumb-wrap {
  flex-shrink: 0;
  width: 64px;
}
.rfq-thumb {
  display: block;
  max-width: 64px;
  height: auto;
  border-radius: 3px;
}
.rfq-card-body {
  flex: 1;
  min-width: 0;
}
.rfq-price {
  color: #c00;
  font-size: 13px;
  font-weight: 600;
}
.rfq-level {
  color: #c00;
  font-weight: 600;
}

.rfq-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 1.3;
}
.rfq-title a { color: #1a5fa8; text-decoration: none; }
.rfq-title a:hover { text-decoration: underline; color: #f47321; }

.rfq-meta {
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}
.rfq-meta strong { color: #333; }

.rfq-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfq-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
  flex-wrap: wrap;
}
.rfq-footer-left { flex: 1; min-width: 200px; }
.rfq-import {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.rfq-import a { color: #1a5fa8; }
.rfq-import a:hover { text-decoration: underline; }
.inline-flag {
  width: 16px;
  height: 11px;
  object-fit: cover;
  vertical-align: middle;
  display: inline;
  border: 1px solid #ddd;
}
.rfq-dates { font-size: 11px; color: #777; }
.rfq-dates strong { color: #444; }

.quote-btn {
  background: #f47321;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}
.quote-btn:hover { background: #c9621a; }

/* Pagination */
.pagination-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 18px 0;
}
.pg-btn {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #333;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.pg-btn:hover { background: #f47321; color: #fff; text-decoration: none; border-color: #f47321; }
.pg-active { background: #f47321; color: #fff; border-color: #f47321; }

/* Ad Products Section */
.ad-products-section {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 10px;
  margin-top: 16px;
}
.ad-products-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a5fa8;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
}
.ad-carousel-outer {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}
.ad-arrow {
  background: #f5f5f5;
  border: 1px solid #ddd;
  width: 30px;
  height: 80px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: background 0.12s;
}
.ad-arrow:hover { background: #f47321; color: #fff; border-color: #f47321; }
.ad-carousel-track {
  display: flex;
  gap: 12px;
  flex: 1;
  overflow: hidden;
}
.ad-product-card {
  flex: 0 0 calc(33.33% - 8px);
  min-width: 0;
  text-align: center;
}
.ad-product-img-wrap {
  width: 100%;
  height: 100px;
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.ad-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-product-name {
  font-size: 11px;
  color: #444;
  line-height: 1.4;
  margin-bottom: 3px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ad-product-price {
  font-size: 12px;
  font-weight: 700;
  color: #e53e3e;
}

/* ===== RIGHT SIDEBAR ===== */
.right-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.rs-title {
  background: #f47321;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 3px 3px 0 0;
  margin-bottom: 0;
}

.popular-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  text-align: center;
  padding: 6px 6px 8px;
}
.popular-item:last-of-type { border-radius: 0 0 3px 3px; }
.popular-img-wrap {
  width: 100%;
  height: 85px;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}
.popular-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.popular-item p {
  font-size: 11px;
  color: #444;
  text-align: center;
  margin: 0;
}

/* Right sidebar ad blocks */
.rs-ad-dark {
  background: #1a1a2e;
  color: #fff;
  padding: 14px 8px;
  text-align: center;
  margin-top: 8px;
  border-radius: 3px;
}
.rs-ad-dark-inner p { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; }
.rs-ad-with { color: #f47321; font-size: 15px !important; }

.rs-ad-chicken {
  background: linear-gradient(160deg, #1a3a1a 0%, #2d5a2d 100%);
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  margin-top: 8px;
  border-radius: 3px;
}
.rs-ad-chicken-top { font-size: 10px; color: #ccc; margin-bottom: 6px; line-height: 1.4; }
.rs-ad-chicken-product { font-size: 13px; font-weight: 900; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.rs-send-quote {
  background: #f47321;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s;
}
.rs-send-quote:hover { background: #c9621a; }

/* ===== FOOTER ===== */
.site-footer-new {
  background: #1f2937;
  color: #ccc;
  margin-top: 32px;
}
.footer-columns {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  gap: 24px;
}
.fc-about {}
.fc-logo { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.fc-about-text { font-size: 12px; color: #9ca3af; line-height: 1.6; }
.fc-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #374151;
}
.fc-links { list-style: none; }
.fc-links li { margin-bottom: 6px; }
.fc-links a { font-size: 12px; color: #9ca3af; text-decoration: none; transition: color 0.12s; }
.fc-links a:hover { color: #f47321; text-decoration: none; }

/* Hosting strip */
.footer-hosting-strip {
  background: #fff;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  font-weight: 700;
  color: #e6ac00;
  border-top: 2px solid #e6ac00;
  letter-spacing: 0.04em;
}

.footer-copy {
  background: #111827;
  text-align: center;
  padding: 12px 16px;
  font-size: 11px;
  color: #6b7280;
}
.footer-copy a { color: #60a5fa; text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 180px 1fr 140px; }
  .footer-columns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .left-sidebar, .right-sidebar { display: none; }
  .nav-sell-btn { display: none; }
  .nav-list { overflow-x: auto; flex-wrap: nowrap; }
  .nav-a { white-space: nowrap; padding: 10px 12px; font-size: 12px; }
  .hb-headline { font-size: 22px; }
  .footer-columns { grid-template-columns: 1fr 1fr; padding: 24px 16px 16px; }
  .ad-product-card { flex: 0 0 48%; }
}
@media (max-width: 480px) {
  .footer-columns { grid-template-columns: 1fr; }
  .rfq-footer { flex-direction: column; align-items: flex-start; }
  .quote-btn { width: 100%; text-align: center; }
  .hb-headline { font-size: 18px; }
  .ad-product-card { flex: 0 0 100%; }
}
