/* ==========================================================================
   genxbuy.com - Homepage Styles
   Adheres to: Color Palette (#000000, #FFFFFF, #3CACF0, #DC2626)
   Clean, Responsive, Mobile-First, Smooth Horizontal Scrolling
   ========================================================================== */

@import url('theme.css');

/* ==========================================================================
   0. Hero Banner Section (Full Width, No Border Radius, Background None)
   ========================================================================== */
.hero-banner-section {
  width: 100%;
  background: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  border: none;
  position: relative;
}

.hero-banner-link {
  display: block;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none;
  background: none;
  background-color: transparent;
  position: relative;
  text-decoration: none;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  border: none;
}

/* ==========================================================================
   Hero Banner Multi-Slide Carousel
   ========================================================================== */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  position: relative;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0;
}

.hero-slider-btn:hover {
  background: rgba(0, 0, 0, 0.8);
  color: #3CACF0;
  border-color: #3CACF0;
}

.hero-slider-btn.prev {
  left: 14px;
}

.hero-slider-btn.next {
  right: 14px;
}

.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  z-index: 5;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-dot.active {
  width: 24px;
  background: #3CACF0;
  border-color: #3CACF0;
}

@media (max-width: 768px) {
  .hero-slider-btn {
    width: 32px;
    height: 32px;
  }

  .hero-slider-btn.prev {
    left: 8px;
  }

  .hero-slider-btn.next {
    right: 8px;
  }

  .hero-slider-dots {
    bottom: 8px;
  }
}


.category-slider-section {
  width: 100%;
  background-color: #FFFFFF;
  padding: 24px 0 20px;
  position: relative;
}

.category-slider-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Outer Wrapper for Positioning Navigation Buttons */
.cat-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Horizontal Scrollable Track */
.cat-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  padding: 8px 4px 12px;
  width: 100%;
  cursor: grab;
  user-select: none;
}

.cat-slider-track:active {
  cursor: grabbing;
}

.cat-slider-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Individual Category Slide Item (Unified Card Box for Image & Text) */
.cat-slide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  flex: 0 0 114px;
  width: 114px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 0 10px;
  scroll-snap-align: start;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  outline: none;
  overflow: hidden;
}

.cat-slide-item:hover,
.cat-slide-item:focus-visible {
  background-color: transparent;
  transform: translateY(-4px);
  box-shadow: none;
}

/* Card Box (Inner wrapper for category image inside the unified card) */
.cat-card-box {
  width: 100%;
  height: 78px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

/* Category Image inside the card */
.cat-card-img {
  width: 100%;
  height: 100%;
  max-height: 74px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.cat-slide-item:hover .cat-card-img {
  transform: scale(1.08);
}

/* Fallback SVG Icon if no image uploaded yet */
.cat-card-icon {
  width: 44px;
  height: 44px;
  color: #4B5563;
  transition: transform 0.25s ease, color 0.25s ease;
}

.cat-slide-item:hover .cat-card-icon {
  color: #3CACF0;
  transform: scale(1.1);
}

.no-img-placeholder-svg {
  width: 36px;
  height: 36px;
  stroke: #9CA3AF;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.cat-slide-item:hover .no-img-placeholder-svg {
  stroke: #3CACF0;
  transform: scale(1.1);
}

/* Category Title inside Unified Card Box */
.cat-card-title {
  margin-top: 6px;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #1F2937;
  text-align: center;
  line-height: 1.25;
  width: 100%;
  min-height: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.cat-slide-item:hover .cat-card-title,
.cat-slide-item:focus-visible .cat-card-title {
  color: #3CACF0;
}

/* Left & Right Navigation Arrow Buttons */
.cat-nav-btn {
  position: absolute;
  top: calc(50% - 14px);
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.cat-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.cat-nav-btn:hover:not(:disabled) {
  background-color: #3CACF0;
  border-color: #3CACF0;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(60, 172, 240, 0.4);
}

.cat-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.cat-nav-prev {
  left: 6px;
}

.cat-nav-next {
  right: 6px;
}

.cat-nav-btn:disabled,
.cat-nav-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* Subtle edge gradients to hint scrollability */
.cat-slider-wrapper::before,
.cat-slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 14px;
  width: 28px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cat-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.cat-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

.cat-slider-wrapper.has-scroll-left::before {
  opacity: 1;
}

.cat-slider-wrapper.has-scroll-right::after {
  opacity: 1;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .category-slider-section {
    padding: 16px 0 12px;
  }

  .category-slider-container {
    padding: 0 12px;
  }

  .cat-slider-track {
    gap: 12px;
    padding-bottom: 8px;
  }

  .cat-slide-item {
    flex: 0 0 96px;
    width: 96px;
    padding: 6px 0 8px;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .cat-card-box {
    width: 100%;
    height: 68px;
    padding: 2px 0;
  }

  .cat-card-img {
    max-height: 64px;
  }

  .cat-card-title {
    font-size: 11.5px;
    margin-top: 4px;
    min-height: 28px;
  }

  .cat-nav-btn {
    width: 32px;
    height: 32px;
  }

  .cat-nav-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* ==========================================================================
   3-Column Promo Sub Banners Styles
   ========================================================================== */
.sub-banners-section {
  width: 100%;
  background-color: #FFFFFF;
  padding: 6px 0 20px;
}

.sub-banners-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.sub-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sub-banner-card {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid #E5E7EB;
  background-color: #0B0E11;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease;
  position: relative;
}

.sub-banner-card:hover {
  transform: translateY(-3px);
  border-color: #3CACF0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.sub-banner-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 500 / 250;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

@media (max-width: 900px) {
  .sub-banners-grid {
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .sub-banners-section {
    padding: 6px 0 16px;
  }

  .sub-banners-container {
    padding: 0 12px;
  }

  .sub-banners-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sub-banner-card {
    border-radius: 12px;
  }
}

/* ==========================================================================
   Brand Slider Styles
   Horizontal sleek logos strip with navigation arrows
   ========================================================================== */
.brand-slider-section {
  width: 100%;
  background-color: #FFFFFF;
  padding: 6px 0 24px;
  border-bottom: 1px solid #F1F3F5;
}

.brand-slider-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.brand-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.brand-slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 4px 10px;
  width: 100%;
  align-items: center;
  cursor: grab;
  user-select: none;
}

.brand-slider-track:active {
  cursor: grabbing;
}

.brand-slider-track::-webkit-scrollbar {
  display: none;
}

/* Individual Brand Item */
.brand-slide-item {
  flex: 0 0 auto;
  height: 56px;
  min-width: 130px;
  padding: 6px 12px;
  background-color: #FFFFFF;
  border: none;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  outline: none;
}

.brand-slide-item:hover,
.brand-slide-item:focus-visible {
  border: none;
  transform: none;
  box-shadow: none;
  background-color: #FFFFFF;
}

/* Uploaded Image or Custom Vector Logo */
.brand-card-img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-slide-item:hover .brand-card-img {
  transform: scale(1.06);
}

.brand-fallback-wrap {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.brand-no-img-svg {
  width: 17px;
  height: 17px;
  stroke: #9CA3AF;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.brand-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1F2937;
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.brand-slide-item:hover .brand-no-img-svg {
  stroke: #3CACF0;
}

.brand-slide-item:hover .brand-name-text {
  color: #3CACF0;
}

.brand-text-logo {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
}

.brand-vector-svg {
  display: block;
}

.brand-mi-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-mi-box {
  background: #FF6900;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 11px;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
}

.brand-realme-box {
  background: #FFC915;
  color: #1F1F1F;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: -0.2px;
}

.brand-huawei-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Brand Arrow Buttons */
.brand-nav-btn {
  position: absolute;
  top: calc(50% - 2px);
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.brand-nav-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.brand-nav-btn:hover:not(:disabled) {
  background-color: #3CACF0;
  border-color: #3CACF0;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(60, 172, 240, 0.35);
}

.brand-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}

.brand-nav-prev {
  left: 6px;
}

.brand-nav-next {
  right: 6px;
}

.brand-nav-btn:disabled,
.brand-nav-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* Edge Fade Hints */
.brand-slider-wrapper::before,
.brand-slider-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brand-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), transparent);
}

.brand-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
}

.brand-slider-wrapper.has-scroll-left::before {
  opacity: 1;
}

.brand-slider-wrapper.has-scroll-right::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .brand-slider-section {
    padding: 4px 0 16px;
  }

  .brand-slider-container {
    padding: 0 12px;
  }

  .brand-slider-track {
    gap: 10px;
  }

  .brand-slide-item {
    height: 48px;
    min-width: 105px;
    padding: 4px 8px;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }

  .brand-card-img {
    max-height: 32px;
    max-width: 95px;
  }

  .brand-nav-btn {
    width: 30px;
    height: 30px;
  }

  .brand-nav-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   Trust & Features Section (5 Cards Strip)
   ========================================================================== */
.features-section {
  width: 100%;
  background-color: #FFFFFF;
  padding: 16px 0 28px;
}

.features-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

/* Feature Card */
.feature-card {
  background-color: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.feature-card-link {
  cursor: pointer;
}

.feature-card:hover {
  background-color: #FFFFFF;
  border-color: #3CACF0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Icon */
.feature-card-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #111827;
  transition: color 0.2s ease, transform 0.2s ease;
}

.feature-card-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  transition: stroke 0.2s ease;
}

.feature-card:hover .feature-card-icon {
  color: #3CACF0;
  transform: scale(1.06);
}

/* Content */
.feature-card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.feature-card-desc {
  font-size: 11.5px;
  font-weight: 500;
  color: #6B7280;
  line-height: 1.25;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-card:hover .feature-card-title {
  color: #3CACF0;
}

/* Responsive */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

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

@media (max-width: 600px) {
  .features-section {
    padding: 12px 0 20px;
  }

  .features-container {
    padding: 0 12px;
  }

  .features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    padding: 12px 14px;
    gap: 12px;
  }

  .feature-card-icon {
    width: 32px;
    height: 32px;
  }

  .feature-card-icon svg {
    width: 26px;
    height: 26px;
  }

  .feature-card-title {
    font-size: 13px;
  }

  .feature-card-desc {
    font-size: 11px;
  }
}

/* ==========================================================================
   5. Featured Categories Product Showcase Section
   Adheres to genxbuy.com brand identity: #000000, #FFFFFF, #3CACF0, #DC2626
   Responsive 4-col / 3-col / 2-col Grid, Rich Cards, Specs Chips, Micro-Interactions
   ========================================================================== */

.featured-catalog-section {
  width: 100%;
  background-color: #F8FAFC;
  border-top: 1px solid #EEF2F6;
  border-bottom: 1px solid #EEF2F6;
  position: relative;
}

.featured-catalog-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  position: relative;
}

/* Catalog Main Quick Nav */
.catalog-main-header {
  margin-bottom: 24px;
}

.catalog-header-text {
  margin-bottom: 20px;
}

.catalog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #558B2F;
  background: #EBF7E3;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.catalog-main-title {
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 0 0 8px 0;
}

.catalog-main-subtitle {
  font-size: 14.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Quick Category Navigation Pills (Horizontal Scrollable) */
.cat-quick-pills-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cat-quick-pills-nav::-webkit-scrollbar {
  display: none;
}

.cat-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #334155;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.cat-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3CACF0;
}

.cat-pill-icon svg {
  width: 16px;
  height: 16px;
}

.cat-pill-count {
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #64748B;
  padding: 2px 7px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.cat-quick-pill:hover {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.cat-quick-pill:hover .cat-pill-icon {
  color: #3CACF0;
}

.cat-quick-pill:hover .cat-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

/* Category Showcase Block */
.category-showcase-block {
  margin-bottom: 48px;
  scroll-margin-top: 100px;
  /* Offset for sticky header */
}

.category-showcase-block:last-child {
  margin-bottom: 0;
}

/* Showcase Header */
.cat-showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-left: 6px solid #3CACF0;
  border-radius: 14px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.cat-showcase-header:hover {
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  border-color: #94A3B8;
  border-left-color: #3CACF0;
}

.cat-showcase-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.cat-header-icon-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: transparent;
  color: #3CACF0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
}

.cat-header-thumb {
  width: 46px;
  height: 46px;
  min-width: 46px;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.cat-title-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cat-title-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-showcase-title {
  font-size: 21px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.25;
}

.cat-title-badge {
  display: inline-flex;
  align-items: center;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.cat-showcase-meta {
  font-size: 13px;
  color: #64748B;
  display: block;
  font-weight: 500;
}

.cat-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: #0F172A;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid #0F172A;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.cat-view-all-link svg {
  transition: transform 0.2s ease;
}

.cat-view-all-link:hover {
  background: #3CACF0;
  color: #000000;
  border-color: #3CACF0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(60, 172, 240, 0.4);
}

.cat-view-all-link:hover svg {
  transform: translateX(3px);
}

/* Products Grid */
.products-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Individual Product Card */
.product-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #3CACF0;
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.09), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
}

/* Thumbnail Area */
.product-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F8FAFC;
  overflow: hidden;
  border-bottom: 1px solid #F1F5F9;
}

.product-card-img-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.05);
}

.product-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
}

/* Overlay Badges */
.product-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  line-height: 1.2;
}

.badge-discount {
  background: #DC2626;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.badge-featured {
  background: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.product-card-condition-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.75);
  color: #FFFFFF;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 2px 7px;
  border-radius: 6px;
  z-index: 2;
}

/* Product Card Body */
.product-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Brand & Stock Status */
.product-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.product-card-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 0.6px;
}

.product-card-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

/* Title */
.product-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-card-title a:hover {
  color: #3CACF0;
}

/* Spec Chips */
.product-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}

.spec-chip {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  background: #F1F5F9;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* Price Area */
.product-card-price-wrap {
  margin-top: auto;
  margin-bottom: 10px;
}

.price-main-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-current {
  font-size: 17px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.3px;
}

.price-regular {
  font-size: 13px;
  color: #94A3B8;
  text-decoration: line-through;
  font-weight: 500;
}

.price-saved-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #15803D;
  margin-top: 2px;
}

/* Warranty */
.product-warranty-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #64748B;
  margin-bottom: 12px;
}

.product-warranty-line svg {
  color: #3CACF0;
  flex-shrink: 0;
}

/* Actions Row */
.product-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-card-view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #0F172A;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  height: 34px;
}

.btn-card-view:hover {
  background: #3CACF0;
  border-color: #3CACF0;
  color: #000000;
}

.btn-card-wa {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EBF7E3;
  color: #25D366;
  border: 1px solid #D6F0C5;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-wa:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

/* Bottom Category Explore Button (Mobile) */
.cat-block-bottom-link {
  display: none;
  margin-top: 14px;
  text-align: center;
}

.btn-block-explore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Responsive Breakpoints for Featured Products Catalog
   ========================================================================== */

@media (max-width: 1200px) {
  .products-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .featured-catalog-container {
    padding: 30px 16px 36px;
  }

  .catalog-main-title {
    font-size: 24px;
  }

  .products-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .cat-showcase-title {
    font-size: 17px;
  }

  .cat-header-icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
  }

  .cat-header-icon-box svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 640px) {
  .featured-catalog-container {
    padding: 24px 12px 30px;
  }

  .catalog-header-text {
    margin-bottom: 14px;
  }

  .catalog-main-title {
    font-size: 21px;
  }

  .catalog-main-subtitle {
    font-size: 13px;
  }

  .cat-showcase-header {
    padding: 12px 14px;
    border-radius: 12px;
    border-left-width: 5px;
  }

  .cat-showcase-title {
    font-size: 16px;
  }

  .cat-header-icon-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
  }

  .cat-header-icon-badge svg {
    width: 18px;
    height: 18px;
  }

  .cat-view-all-link {
    display: none;
    /* Replaced by bottom button on small mobile */
  }

  .cat-block-bottom-link {
    display: block;
  }

  .products-showcase-grid {
    gap: 10px;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-card-body {
    padding: 10px 10px 12px;
  }

  .product-card-title {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 6px;
  }

  .price-current {
    font-size: 15px;
  }

  .price-regular {
    font-size: 11.5px;
  }

  .spec-chip {
    font-size: 10px;
    padding: 1px 5px;
  }

  .product-warranty-line {
    display: none;
  }

  .btn-card-view {
    font-size: 11.5px;
    height: 30px;
    padding: 4px 8px;
  }

  .btn-card-wa {
    width: 30px;
    height: 30px;
    min-width: 30px;
  }
}