/* ==========================================================================
   Homepage sections
   (recently viewed items, hero, categories, featured services)
   ========================================================================== */

/* ---- Recently Viewed Items (eBay Style) ---- */
.recent-viewed-section {
  padding: 28px 0 42px;
  width: 100%;
  position: relative;
  background: var(--color-bg, #ffffff);
}

.recent-viewed-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  box-sizing: border-box;
  position: relative;
}

.recent-viewed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.recent-viewed-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
  font-family: var(--font-sans);
}

.recent-viewed-see-all {
  font-size: 14px;
  font-weight: 600;
  color: #707070;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
  font-family: var(--font-sans);
}

.recent-viewed-see-all:hover {
  color: #262626;
}

.recent-viewed-slider-wrap {
  position: relative;
  width: 100%;
}

.recent-viewed-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 4px 2px 20px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

/* Webkit custom scrollbar - sleek, hidden by default, shown on card/section hover */
.recent-viewed-track::-webkit-scrollbar {
  height: 4.5px;
  width: 4.5px;
}

/* Remove stepper arrows from both sides completely */
.recent-viewed-track::-webkit-scrollbar-button,
.recent-viewed-track::-webkit-scrollbar-button:single-button,
.recent-viewed-track::-webkit-scrollbar-button:horizontal:decrement,
.recent-viewed-track::-webkit-scrollbar-button:horizontal:increment,
.recent-viewed-track::-webkit-scrollbar-button:start,
.recent-viewed-track::-webkit-scrollbar-button:end {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.recent-viewed-track::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
  margin: 0;
  transition: background-color 0.25s ease;
}

.recent-viewed-track::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

/* Show scrollbar on hover over section, track, or card (light & subtle like before) */
.recent-viewed-section:hover .recent-viewed-track::-webkit-scrollbar-track,
.recent-viewed-track:hover::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}

.recent-viewed-section:hover .recent-viewed-track::-webkit-scrollbar-thumb,
.recent-viewed-track:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.16);
}

.recent-viewed-track::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.28) !important;
}

/* Firefox fallback - thin bar hidden by default, visible on hover without arrows */
@supports not selector(::-webkit-scrollbar) {
  .recent-viewed-track {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.25s ease;
  }

  .recent-viewed-section:hover .recent-viewed-track,
  .recent-viewed-track:hover {
    scrollbar-color: rgba(0, 0, 0, 0.16) rgba(0, 0, 0, 0.03);
  }
}

/* Recent Card: Exactly 6 items in 1 row on desktop (100% - 5*16px / 6) */
.recent-card {
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 140px;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
}

.recent-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f5f7;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-card:hover .recent-card-thumb-wrap {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

.recent-card-link {
  display: block;
  width: 100%;
  height: 100%;
}

.recent-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: 0.35s cubic-bezier(0.2, 0, 0.2, 1)
}

.recent-card:hover .recent-card-img {
  transform: scale(1.02);
}

/* Heart / Watchlist button */
.recent-card-heart {
  display: none !important;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.recent-card-heart:hover {
  transform: scale(1.1);
  background: #ffffff;
  color: #e11d48;
}

.recent-card-heart svg {
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.recent-card-heart.is-favorited {
  color: #e11d48;
  background: #ffffff;
}

.recent-card-heart.is-favorited svg {
  fill: #e11d48;
  stroke: #e11d48;
}

/* Card Body */
.recent-card-body {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-card-title {
  font-size: 14px;
  line-height: 1.38;
  font-weight: 400;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 38px;
  font-family: var(--font-sans);
}

.recent-card-title a {
  color: #191919;
  text-decoration: none;
  transition: color 0.15s ease;
}

.recent-card-title a:hover {
  color: #191919;
  text-decoration: underline;
}

.recent-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  margin-top: 2px;
  min-height: 20px;
}

.recent-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 2px;
  font-family: var(--font-sans);
  line-height: 1;
}

.recent-card-sold {
  font-size: 14px;
  font-weight: 400;
  color: #d70f38;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 5px;
  line-height: 1;
  font-family: var(--font-sans);
}

.recent-price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.recent-card-price .product-currency {
  display: inline-flex;
  align-self: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}

.recent-card-price .takasymbol {
  display: inline-block;
  height: 0.84em;
  width: auto;
  max-height: 24px;
  vertical-align: middle;
  object-fit: contain;
}

.recent-card-price .recent-price-val {
  font-size: 16px;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}

.recent-card-price-label {
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
}

/* Prev / Next controls disabled per user request */
.recent-ctrl-btn {
  display: none !important;
}

/* Responsive adjustments for Recent Viewed */
@media (max-width: 1260px) {
  .recent-viewed-container {
    max-width: 1260px;
    padding: 0 40px;
  }

  .recent-viewed-track {
    gap: 16px;
  }

  .recent-card {
    flex: 0 0 calc((100% - 64px) / 5);
    min-width: 150px;
    max-width: 220px;
  }
}

@media (max-width: 1040px) {
  .recent-viewed-container {
    padding: 0 32px;
  }

  .recent-viewed-track {
    gap: 14px;
  }

  .recent-card {
    flex: 0 0 calc((100% - 42px) / 4);
    min-width: 140px;
    max-width: 210px;
  }
}

@media (max-width: 820px) {
  .recent-viewed-section {
    padding: 16px 0 28px;
  }

  .recent-viewed-head {
    margin-bottom: 12px;
  }

  .recent-viewed-title {
    font-size: 20px;
  }

  .recent-viewed-track {
    gap: 12px;
    padding-bottom: 14px;
  }

  .recent-card {
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: 130px;
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  .recent-viewed-container {
    padding: 0 16px;
  }
}

@media (max-width: 640px) {
  .recent-viewed-container {
    padding: 0 16px;
  }

  .recent-viewed-track {
    gap: 12px;
    padding-bottom: 12px;
  }

  /* 2 cards full, 3rd card 50% visible (2.5 cards peek) */
  .recent-card {
    flex: 0 0 calc((100% - 24px) / 2.5) !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .recent-card-thumb-wrap {
    border-radius: 14px;
  }

  .recent-card-body {
    padding-top: 8px;
    gap: 3px;
  }

  .recent-card-title {
    font-size: 13.5px;
    line-height: 1.35;
    min-height: 36px;
  }

  .recent-card-price {
    font-size: 15px;
  }

  .recent-card-price .recent-price-val {
    font-size: 15px;
  }

  .recent-card-price .takasymbol {
    height: 0.84em;
  }

  .recent-card-sold {
    font-size: 12px;
    margin-left: 6px;
  }
}

@media (max-width: 480px) {
  .recent-viewed-container {
    padding: 0 12px;
  }

  .recent-viewed-track {
    gap: 10px;
  }

  /* 2 cards full, 3rd card 50% visible (2.5 cards peek) */
  .recent-card {
    flex: 0 0 calc((100% - 20px) / 2.5) !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .recent-card-thumb-wrap {
    border-radius: 12px;
  }

  .recent-card-title {
    font-size: 14px;
    line-height: 1.5;
    min-height: 34px;
  }

  .recent-card-price {
    font-size: 14.5px;
  }

  .recent-card-price .recent-price-val {
    font-size: 14.5px;
  }

  .recent-card-price .takasymbol {
    height: 0.8em;
  }

  .recent-card-sold {
    font-size: 11px;
    margin-left: 5px;
  }
}

/* ==========================================================================
   Homepage sections
   (hero, categories, featured services)
   ========================================================================== */

/* ---- Hero ---- */
.hero {
  padding: 0 0 10px;
  width: 100%;
}

.hero-container {
  width: 100%;
  margin: 0 auto;
}

.hero-slider-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 360px;
  background: #18181b;
  overflow: hidden;
  color: #ffffff;
  margin: 0 auto;
}

.hero-slides {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  background: #18181b;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Left Content */
.hero-left {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  pointer-events: auto;
}

.hero-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-sans);
}

.hero-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: white;
  margin: 0;
  max-width: 440px;
  font-family: var(--font-sans);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px 0;
  line-height: 1;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #18181b;
  background: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 6px;
  transition: background-color 0.18s ease;
  box-shadow: none;
}

.hero-cta:hover {
  background: #f4f4f5;
  color: #000000;
  transform: none;
  box-shadow: none;
}

/* Right Content: Right-Anchored Full-Height Image Showcase */
.hero-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 60%;
  max-width: 60%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.65) 12%, black 28%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.65) 12%, black 28%);
}

.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-showcase-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  margin-left: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.hero-showcase-img[src=""],
.hero-showcase-img:not([src]) {
  display: none !important;
}

/* Bottom Pagination Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, width 0.25s ease, border-radius 0.25s ease;
}

.hero-dot.is-active {
  background: #ffffff;
  width: 22px;
  border-radius: 999px;
}

/* Bottom Right Navigation & Pause Controls */
.hero-controls {
  position: absolute;
  bottom: 20px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-ctrl-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #18181b;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  box-shadow: none;
  padding: 0;
}

.hero-ctrl-btn:hover {
  background: #f4f4f5;
  transform: scale(1.08);
  box-shadow: none;
}

.hero-ctrl-btn:active {
  transform: scale(0.94);
  box-shadow: none;
}

.hero-ctrl-btn svg {
  width: 17px;
  height: 17px;
}

/* ==========================================================================
   Responsive: eBay-style edge-to-edge on <=1400px and rounded container on >1400px
   ========================================================================== */

/* Up to 1300px: Edge-to-edge / flush with display, no rounded corners */
@media (max-width: 1300px) {
  .hero {
    padding: 0 0 24px;
  }

  .hero-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .hero-slider-wrap {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .hero-slide-inner {
    padding: 0 50px;
  }
}

/* Above 1300px: Centered with max-width 1400px and rounded corners */
@media (min-width: 1301px) {
  .hero-container {
    max-width: 1400px;
    padding: 0 50px;
  }

  .hero-slider-wrap {
    max-width: 1400px;
    border-radius: 20px;
  }

  .hero-slide-inner {
    padding: 0 50px;
  }
}

@media (max-width: 1080px) {
  .hero-slide-inner {
    padding: 0 32px;
    gap: 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-left {
    flex: 0 0 50%;
    max-width: 480px;
  }
}

/* Disable hero slider only on mobile */
@media (max-width: 768px) {
  .hero {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .hero-slider-wrap {
    height: auto;
    min-height: 460px;
    border-radius: 0;
  }

  .hero-slides {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    min-height: 460px;
  }

  .hero-slide {
    position: relative;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 460px;
    opacity: 1;
    visibility: visible;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-slide-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 32px 20px 0;
    gap: 16px;
    min-height: 460px;
    justify-content: space-between;
  }

  .hero-left {
    flex: none;
    max-width: 100%;
    align-items: flex-start;
    text-align: left;
    z-index: 5;
  }

  .hero-right {
    position: relative;
    top: auto;
    right: auto;
    bottom: 0;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: auto;
    overflow: hidden;
    pointer-events: auto;
    z-index: 2;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-image-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: auto;
  }

  .hero-showcase-img {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    vertical-align: bottom;
  }

  .hero-controls {
    right: 50%;
    transform: translateX(50%);
    bottom: 12px;
    z-index: 10;
  }

  .hero-dots {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-slider-wrap {
    min-height: 420px;
  }

  .hero-slide {
    min-height: 420px;
  }

  .hero-slide-inner {
    padding: 24px 16px 0;
    gap: 12px;
    min-height: 420px;
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.2;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-cta {
    height: 40px;
    padding: 0 24px 2px;
    line-height: 1;
    font-size: 14px;
    margin-top: 4px;
  }

  .hero-right {
    max-height: 200px;
  }

  .hero-image-wrap {
    height: auto;
  }

  .hero-showcase-img {
    max-height: 190px;
  }

  .hero-controls {
    bottom: 10px;
  }

  .hero-ctrl-btn {
    width: 34px;
    height: 34px;
  }

  .hero-ctrl-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* ---- Categories ---- */
/* Vertical cards: image, floating icon, 2-col service list, explore footer */

.categories-section {
  padding-bottom: 38px;
  /* base 18px + 20px gap before Features Services */
}

/* ==========================================================================
   SERVICES & CATEGORIES SECTION
   ========================================================================== */

.categories-section {
  padding: 36px 0 40px;
  background: transparent;
}

.categories-section .container,
.home-promo-section .container,
.home-trending-section .container {
  width: 100%;
  max-width: 1400px;
  padding: 0 50px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 1300px) {

  .categories-section .container,
  .home-promo-section .container,
  .home-trending-section .container {
    max-width: 1300px;
    padding: 0 50px;
  }
}

@media (max-width: 1080px) {

  .categories-section .container,
  .home-promo-section .container,
  .home-trending-section .container {
    padding: 0 32px;
  }
}

@media (max-width: 768px) {

  .categories-section .container,
  .home-promo-section .container,
  .home-trending-section .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {

  .categories-section .container,
  .home-promo-section .container,
  .home-trending-section .container {
    padding: 0 12px;
  }
}

.categories-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.categories-section-title {
  font-size: 26px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.25;
}

.categories-see-all {
  font-size: 14px;
  font-weight: 600;
  color: #707070;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
  font-family: var(--font-sans);
  flex-shrink: 0;
}

.categories-see-all:hover {
  color: #262626;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  width: 100%;
}

.category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.category-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f5;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: background-color 0.2s ease;
}

.category-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

.category-card:hover .category-media {
  background: #eaebee;
}

.category-card:hover .category-media-img {
  transform: scale(1.02);
}

.category-body {
  padding: 12px 0 0 0;
  display: flex;
  flex-direction: column;
}

.category-title,
.category-body h3 {
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
  line-height: 1.35;
  margin: 0;
  text-align: left;
  transition: color 0.15s ease;
  white-space: normal;
  word-break: break-word;
}

.category-card:hover .category-title,
.category-card:hover .category-body h3 {
  text-decoration: underline;
}

/* Category text fallback (used in search or explore pages) */
.category-card--text {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.category-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.category-services li a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  line-height: 1.4;
  text-decoration: none;
}

.category-services li a:hover {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
  }
}

@media (max-width: 992px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .categories-section-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .categories-section {
    padding: 24px 0 32px;
  }

  .categories-section-head {
    margin-bottom: 16px;
  }

  .categories-section-title {
    font-size: 20px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 16px !important;
  }

  /* Exactly 6 cards on mobile (hide 7th and any beyond) */
  .categories-grid>.category-card:nth-child(n+7) {
    display: none !important;
  }

  .category-media {
    border-radius: 16px !important;
    aspect-ratio: 1 / 1 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #f2f2f5 !important;
  }

  .category-media-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .category-body {
    padding: 8px 0 0 0 !important;
  }

  .category-title,
  .category-body h3 {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #18181b !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 8px !important;
    row-gap: 16px !important;
  }

  /* Exactly 6 cards on small mobile (hide 7th and any beyond) */
  .categories-grid>.category-card:nth-child(n+7) {
    display: none !important;
  }

  .category-media {
    border-radius: 12px !important;
  }

  .category-title,
  .category-body h3 {
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
  }
}

/* ==========================================================================
   SHOPPING MADE EASY PROMO BANNER
   ========================================================================== */

.home-promo-section {
  padding: 10px 0 60px;
  background: transparent;
}

.home-promo-banner {
  background: #f2f2f5;
  border-radius: 15px;
  padding: 34px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-promo-content {
  flex: 1;
  min-width: 0;
}

.home-promo-title {
  font-size: 28px;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  line-height: 1.25;
}

.home-promo-text {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.45;
}

.home-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px 0;
  line-height: 1;
  text-align: center;
  background: #18181b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}

.home-promo-btn:hover {
  background: #27272a;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.home-promo-btn:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .home-promo-section {
    padding: 10px 0 36px;
  }

  .home-promo-section .container {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .home-promo-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 16px !important;
    gap: 16px;
    border-radius: 0 !important;
    /* Dui side lagiye deya, no border radius */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-promo-title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .home-promo-text {
    font-size: 13.5px;
    line-height: 1.4;
  }

  /* Compact button aligned to left */
  .home-promo-btn {
    width: auto !important;
    align-self: flex-start !important;
    height: 38px !important;
    padding: 0 24px !important;
    font-size: 14px !important;
    line-height: 38px !important;
  }
}

/* ==========================================================================
   FEATURE SHOWCASE BANNERS (Static Showcase Cards matching Hero Slider behavior)
   ========================================================================== */

.home-feature-banner-section {
  padding: 0 0 32px;
  width: 100%;
}

.home-feature-banner-wrap {
  position: relative;
  width: 100%;
  min-height: 360px;
  height: 360px;
  background: #18181b;
  overflow: hidden;
  color: #ffffff;
  margin: 0 auto;
}

.home-feature-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.home-feature-banner-left {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  max-width: 530px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  pointer-events: auto;
}

.home-feature-banner-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  font-family: var(--font-sans);
}

.home-feature-banner-text {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: white;
  margin: 0;
  max-width: 440px;
  font-family: var(--font-sans);
}

.home-feature-banner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px 0;
  line-height: 1;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #18181b;
  background: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 6px;
  transition: background-color 0.18s ease;
  box-shadow: none;
}

.home-feature-banner-cta:hover {
  background: #f4f4f5;
  color: #000000;
  transform: none;
  box-shadow: none;
}

.home-feature-banner-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.home-feature-banner-image-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  position: relative;
}

.home-feature-banner-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
  margin-left: auto;
  pointer-events: auto;
}

/* ==========================================================================
   Responsive behavior: flush on <=1300px and rounded container on >1300px
   ========================================================================== */

@media (max-width: 1300px) {
  .home-feature-banner-section {
    padding: 0 0 24px;
  }

  .home-feature-banner-section .hero-container,
  .home-feature-banner-section .container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .home-feature-banner-wrap {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .home-feature-banner-inner {
    padding: 0 50px;
  }
}

@media (min-width: 1301px) {
  .home-feature-banner-section {
    padding: 0 0 28px;
  }

  .home-feature-banner-section .hero-container,
  .home-feature-banner-section .container {
    max-width: 1400px;
    padding: 0 50px;
    margin: 0 auto;
  }

  .home-feature-banner-wrap {
    max-width: 1400px;
    border-radius: 20px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.15);
  }

  .home-feature-banner-inner {
    padding: 0 50px;
  }
}

@media (max-width: 1080px) {
  .home-feature-banner-inner {
    padding: 0 32px;
    gap: 24px;
  }

  .home-feature-banner-title {
    font-size: 36px;
  }

  .home-feature-banner-left {
    flex: 0 0 50%;
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .home-feature-banner-wrap {
    height: auto !important;
    min-height: 460px;
    border-radius: 0 !important;
  }

  .home-feature-banner-inner {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 32px 20px 0;
    gap: 16px;
    min-height: 460px;
    justify-content: space-between;
  }

  .home-feature-banner-left {
    flex: none;
    max-width: 100%;
    align-items: flex-start !important;
    text-align: left !important;
    z-index: 5;
  }

  .home-feature-banner-right {
    position: relative;
    top: auto;
    right: auto;
    bottom: 0;
    left: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 240px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-top: auto;
    overflow: hidden;
    pointer-events: auto;
    z-index: 2;
  }

  .home-feature-banner-image-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: auto;
  }

  .home-feature-banner-img {
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    vertical-align: bottom;
  }
}

@media (max-width: 560px) {
  .home-feature-banner-wrap {
    min-height: 420px;
  }

  .home-feature-banner-inner {
    padding: 28px 20px 0 !important;
    gap: 14px;
    min-height: 420px;
    align-items: flex-start !important;
    text-align: left !important;
    box-sizing: border-box;
  }

  .home-feature-banner-left {
    width: 100%;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 12px;
  }

  .home-feature-banner-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
    text-align: left !important;
    letter-spacing: -0.02em;
    margin: 0;
  }

  .home-feature-banner-text {
    font-size: 14.5px !important;
    line-height: 1.45 !important;
    text-align: left !important;
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  .home-feature-banner-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0 24px !important;
    line-height: 1 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    align-self: flex-start !important;
    border-radius: 999px !important;
  }

  .home-feature-banner-right {
    max-height: 200px;
  }

  .home-feature-banner-image-wrap {
    height: auto;
  }

  .home-feature-banner-img {
    max-height: 100%;
  }
}

.home-trending-section {
  padding: 35px 0 60px;
}

.home-showcase2-section {
  padding: 0 0 32px;
}

/* ---- Featured services ---- */

.featured-section {
  padding-bottom: 38px;
  /* base 18px + 20px gap before RFQ */
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  row-gap: 32px;
}

.featured-grid .product-card.is-featured-hidden {
  display: none;
}

.featured-load-more-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 28px auto 0;
  text-align: center;
}

.featured-load-more-wrap[hidden] {
  display: none !important;
}

.btn-featured-load-more {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #2563eb;
  background: #fff;
  border: 1.5px solid #2563eb;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-featured-load-more:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #1d4ed8;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  row-gap: 32px;
}

.product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #ffffff);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f2;
  position: relative;
}

.product-card:hover {
  transform: none;
}

.featured-grid .product-thumb-column {
  width: 100%;
}

.featured-grid .product-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.product-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.product-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #71717a;
  display: inline-block;
  margin-bottom: 4px;
}

.product-card .product-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #18181b;
  margin: 0 0 4px;
}

.product-card .product-title a {
  color: inherit;
  text-decoration: none;
}

.product-card .product-title a:hover {
  text-decoration: underline;
}

.product-condition {
  font-size: 13px;
  color: #71717a;
  margin: 0 0 8px;
}

.product-price-row {
  margin-bottom: 2px;
  padding-top: 10px;
}

.product-card .product-price {
  font-size: 22px;
  font-weight: 700;
  color: #191919;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-card .product-price .product-currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}

.product-card .product-price .takasymbol {
  display: inline-block;
  height: 0.84em;
  width: auto;
  max-height: 24px;
  vertical-align: middle;
  object-fit: contain;
}

.product-delivery-row {
  margin-bottom: 2px;
}

.product-delivery-text {
  font-size: 13px;
  font-weight: 400;
  color: #111827;
}

.product-sold-row {
  margin-bottom: 6px;
}

.product-sold-text {
  font-size: 13px;
  font-weight: 500;
  color: #e11d48;
}

.product-supplier-row {
  margin-top: 2px;
}

.product-supplier-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: #27272a;
  text-decoration: none;
}

.product-supplier-link:hover {
  text-decoration: underline;
}

.product-supplier-link .verified-badge {
  width: 15px;
  height: 15px;
  vertical-align: middle;
}

/* Card Header */
.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  gap: 10px;
  background: inherit;
}

.product-author-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.product-author-avatar-link {
  display: block;
  flex-shrink: 0;
}

.product-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111827;
}

.product-author-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.25;
}

.product-author-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text, #111827);
  text-decoration: none;
  min-width: 0;
}

.product-author-name:hover .product-author-name-text {
  text-decoration: underline;
}

.product-author-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.product-post-time {
  font-size: 12px;
  color: #6b7280;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Options menu */
.product-card-options {
  position: relative;
  flex-shrink: 0;
}

.product-card-more-btn {
  appearance: none;
  border: none;
  background: transparent;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-card-more-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.product-card-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--color-surface, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 4px;
  min-width: 145px;
  z-index: 25;
}

.product-card-dropdown[hidden] {
  display: none !important;
}

.product-card-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.product-card-menu-item:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Post content snippet */
.product-post-content {
  padding: 0 14px 10px;
}

.product-post-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  color: #1f2937;
  text-decoration: none;
  margin: 0;
  font-weight: 500;
}

.product-post-text:hover {
  color: #111827;
}

.product-post-more {
  color: #6b7280;
  font-weight: 600;
  margin-left: 2px;
}

/* Media thumb */
.product-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.3;
  overflow: hidden;
}

.product-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

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

.product-thumb-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-thumb-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  will-change: transform;
}

.product-thumb-slide.is-active {
  transform: translate3d(0, 0, 0);
  z-index: 2;
}

.product-thumb-slide.is-left {
  transform: translate3d(-100%, 0, 0);
  z-index: 1;
}

.product-thumb-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .product-thumb-slide {
    transition: none;
  }
}

/* Slider arrows & dots */
.product-thumb .thumb-arrow {
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease,
    background-color 0.15s ease;
}

.product-thumb .thumb-arrow::before,
.product-thumb .thumb-arrow::after {
  content: none !important;
  display: none !important;
}

.product-thumb.has-slider:hover .thumb-arrow,
.product-thumb.has-slider:focus-within .thumb-arrow {
  opacity: 0.8;
  pointer-events: auto;
}

.product-thumb .thumb-arrow:hover {
  opacity: 1;
  background-color: #ffffff;
}

.product-thumb-dots {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  gap: 6px;
  z-index: 6;
  align-items: center;
  justify-content: center;
}

.product-thumb.has-slider .product-thumb-dots {
  display: flex;
}

.product-thumb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.product-thumb-dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.product-thumb.is-single-image .thumb-arrow,
.product-thumb.is-single-image .product-thumb-dots {
  display: none !important;
}

@media (hover: none),
(max-width: 768px),
(pointer: coarse) {

  .product-thumb .thumb-arrow,
  .product-thumb.has-slider .thumb-arrow,
  .thumb-arrow {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* Card Footer */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: inherit;
  border: none;
  gap: 8px;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text, #111827);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  min-width: 0;
}

.product-card-price .product-currency,
.product-card-price .product-amount {
  font-size: 15px;
  font-weight: 700;
  color: inherit;
}

.product-card-price .product-amount {
  font-variant-numeric: tabular-nums;
}

.product-card-price .product-unit {
  font-size: 14px;
  font-weight: 600;
  color: inherit;
}

.product-card-price .product-price-label {
  font-size: 15px;
  font-weight: 700;
  color: inherit;
  letter-spacing: -0.01em;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-product-post {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #24292f;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  line-height: 1.3;
}

.btn-product-post:hover {
  background: #111827;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-product-whatsapp {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: #25D366;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  line-height: 1.3;
}

.btn-product-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-1px);
  text-decoration: none;
}

.verified-badge {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  align-self: center;
}

.verified-badge--lg {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {

  .featured-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 580px) {

  .featured-section .container,
  .search-page .container {
    padding-left: 0;
    padding-right: 0;
  }

  .featured-section .section-head,
  .search-page .search-heading,
  .featured-match-note {
    padding-left: 0;
    padding-right: 16px;
  }

  .featured-load-more-wrap {
    padding: 0 16px;
  }

  .featured-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    background: #eef1f5;
  }

  .product-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: 1px solid #e4e7ec;
    border-bottom: 1px solid #e4e7ec;
    box-shadow: none;
    width: 100%;
  }

  .product-card-header {
    padding: 12px 14px 8px;
  }

  .product-post-content {
    padding: 0 14px 10px;
  }

  .product-thumb {
    width: 100%;
    border-radius: 0;
    aspect-ratio: 3 / 2.3;
  }

  .product-card-footer {
    padding: 10px 14px 12px;
    border: none;
  }

  .featured-section .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .featured-section .section-head h2 {
    white-space: nowrap;
  }

  .categories-section .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .categories-section .section-head h2 {
    white-space: nowrap;
  }
}

/* ---- Homepage RFQ banner (above footer) ---- */

.rfq-section {
  padding-bottom: 28px;
  scroll-margin-top: 96px;
}

.rfq-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  background: #002b80;
  border-radius: 0;
  padding: 36px 40px;
  color: #fff;
}

.rfq-copy {
  flex: 1;
  min-width: 0;
  max-width: 400px;
  margin-top: 50px;
}

.rfq-copy h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rfq-copy p {
  font-size: 15px;
  color: #d7e0f2;
  margin: 0;
  line-height: 1.6;
}

.rfq-form {
  flex: 0 1 520px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 8px;
}

.rfq-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rfq-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.rfq-field--full {
  grid-column: 1 / -1;
}

.rfq-field-spacer {
  display: block;
  min-height: 0;
}

.rfq-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c5d2ef;
}

.rfq-field input,
.rfq-field textarea {
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: #e8eefc;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
  transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rfq-field input::placeholder,
.rfq-field textarea::placeholder {
  color: rgba(200, 214, 240, 0.75);
}

.rfq-field input:focus,
.rfq-field textarea:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(180, 205, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(147, 180, 255, 0.22);
}

.rfq-field textarea {
  resize: none;
  min-height: 88px;
}

.rfq-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.rfq-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: 10px 70px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #0b1f4a;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rfq-submit:hover:not(:disabled) {
  background: #f3f6fb;
  color: #002b80;
  transform: translateY(-1px);
}

.rfq-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.rfq-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  color: #a8b6d4;
}

.rfq-status {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  color: #b9c4de;
}

.rfq-status.is-success {
  color: #b8f0c8;
}

.rfq-status.is-error {
  color: #ffc9c4;
}

@media (max-width: 800px) {
  .rfq-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 28px 22px;
    gap: 22px;
  }

  .rfq-copy {
    max-width: none;
    margin-top: 0;
  }

  .rfq-form {
    flex: none;
    max-width: none;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .rfq-fields {
    grid-template-columns: 1fr;
  }

  .rfq-field-spacer {
    display: none;
  }

  .rfq-copy h2 {
    font-size: 22px;
  }
}