
  /* ==========================================================================
     HOMEPAGE STYLES MATCHING REFERENCE DESIGN
     ========================================================================== */

  /* Global Section Settings */
  .home-section {
    padding: 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .home-section-title {
    text-align: center;
    font-size: 1.85rem;
    font-weight: 800;
    color: #111111;
    margin: 0 0 35px 0;
    letter-spacing: -0.3px;
  }
  .home-section-title span.accent-red {
    color: var(--primary);
  }

  /* --------------------------------------------------------------------------
     1. HERO BANNER / SLIDER
     --------------------------------------------------------------------------
     HEIGHT CONTROL:
     Adjust '--hero-banner-height' below to easily increase or decrease banner height!
     e.g., 580px, 600px, 640px, 700px.
     -------------------------------------------------------------------------- */
  :root {
    --hero-banner-height: 600px; /* Default desktop banner height */
  }

  .home-hero-slider {
    position: relative;
    width: 100%;
    height: var(--hero-banner-height, 600px);
    min-height: 560px;
    background: #06020c;
    overflow: hidden;
    color: #ffffff;
  }

  .home-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    z-index: 1;
  }

  .home-hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
  }

  /* Dark gradient overlay ensures razor-sharp text readability over any background */
  .home-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 2, 12, 0.92) 0%, rgba(6, 2, 12, 0.60) 48%, rgba(6, 2, 12, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
  }

  .home-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 3;
  }

  .home-hero-text {
    max-width: 580px;
  }

  .home-hero-subtitle {
    display: inline-block;
    color: #f04438;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
  }

  .home-hero-title {
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.14;
    color: #ffffff;
    margin: 0 0 28px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  }

  .home-hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
  }

  .btn-hero-primary {
    display: inline-block;
    background: #e3000f;
    color: #ffffff;
    padding: 13px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: none;
    text-decoration: none;
    border: 2px solid #e3000f;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(227, 0, 15, 0.4);
  }

  .btn-hero-primary:hover {
    background: #c0000d;
    border-color: #c0000d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 0, 15, 0.5);
  }

  .btn-hero-outline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: none;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
  }

  .btn-hero-outline:hover {
    background: #ffffff;
    color: #0d0617;
    border-color: #ffffff;
    transform: translateY(-2px);
  }

  .home-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .hero-pc-image {
    max-width: 100%;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 25px rgba(227, 0, 15, 0.25));
    animation: heroFloat 5s ease-in-out infinite;
    user-select: none;
  }

  @keyframes heroFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
  }

  /* Slider Navigation Buttons */
  .hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(10, 5, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
  }

  .hero-slider-btn:hover {
    background: #e3000f;
    border-color: #e3000f;
    transform: translateY(-50%) scale(1.08);
  }

  .hero-slider-btn.prev { left: 24px; }
  .hero-slider-btn.next { right: 24px; }

  /* Slider Dots Indicator */
  .hero-slider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
  }

  .hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .hero-dot.active {
    width: 32px;
    background: #e3000f;
  }

  /* --------------------------------------------------------------------------
     2. FEATURED CATEGORIES CAROUSEL
     -------------------------------------------------------------------------- */
  .featured-cats-section {
    padding: 50px 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .cats-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }
  .cats-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
  }
  .cats-track::-webkit-scrollbar {
    display: none;
  }
  .cat-card-item {
    flex: 0 0 calc(20% - 16px);
    min-width: 160px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #edf2f7;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .cat-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
  }
  .cat-img-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cat-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  .cat-card-item:hover .cat-img-box img {
    transform: scale(1.05);
  }
  .cat-card-name {
    padding: 12px 10px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
  }
  .carousel-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    color: #333333;
    transition: all 0.2s ease;
  }
  .carousel-nav-btn:hover {
    background: #e3000f;
    color: #ffffff;
    border-color: #e3000f;
  }
  .carousel-nav-btn.prev { left: -14px; }
  .carousel-nav-btn.next { right: -14px; }

  /* --------------------------------------------------------------------------
     3. BUILD YOUR OWN PC (INTEL & AMD 50/50 BANNERS)
     -------------------------------------------------------------------------- */
  .build-pc-section {
    padding: 40px 24px 60px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .build-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .build-promo-banner {
    position: relative;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .build-promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
  .build-promo-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  .build-promo-banner:hover .build-promo-bg {
    transform: scale(1.04);
  }
  .build-promo-overlay {
    position: absolute;
    inset: 0;
  }
  .build-promo-banner.intel .build-promo-overlay {
    background: linear-gradient(135deg, rgba(0, 32, 96, 0.75) 0%, rgba(0, 75, 175, 0.6) 100%);
  }
  .build-promo-banner.amd .build-promo-overlay {
    background: linear-gradient(135deg, rgba(120, 0, 0, 0.75) 0%, rgba(200, 16, 24, 0.6) 100%);
  }
  .build-promo-title {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  }

  /* --------------------------------------------------------------------------
     4. PRE BUILD'S (DARK SECTION, 3x2 GRID WITH SPECS)
     -------------------------------------------------------------------------- */
  .prebuilds-dark-section {
    background: #000000;
    color: #ffffff;
    padding: 70px 24px;
    width: 100%;
  }
  .prebuilds-inner {
    max-width: 1280px;
    margin: 0 auto;
  }
  .prebuilds-dark-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 45px 0;
  }
  .prebuilds-dark-title span {
    color: #e3000f;
  }
  .pb-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .pb-dark-card {
    background: #141720;
    border: 1px solid #232734;
    border-radius: 12px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  }
  .pb-dark-card:hover {
    transform: translateY(-5px);
    border-color: #e3000f;
    box-shadow: 0 10px 30px rgba(227, 0, 15, 0.15);
  }
  .pb-thumb-wrap {
    width: 100%;
    height: 220px;
    background: #0d0e14;
    border-radius: 8px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }
  .pb-thumb {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .pb-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 12px 0;
    line-height: 1.35;
    min-height: 46px;
  }
  .pb-price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
  }
  .pb-price-badge {
    background: rgba(227, 0, 15, 0.15);
    color: #ff3344;
    border: 1px solid rgba(227, 0, 15, 0.4);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
  }
  .pb-current-price {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
  }
  .pb-specs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }
  .pb-spec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.35;
  }
  .pb-spec-icon-img {
    width: 18px;
    height: 18px;
    filter: invert(1);
    opacity: 0.85;
    flex-shrink: 0;
  }
  .pb-spec-row strong {
    color: #ffffff;
    font-weight: 700;
    margin-right: 2px;
  }
  .pb-view-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px;
    background: transparent;
    color: #e3000f;
    border: 1px solid #e3000f;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .pb-dark-card:hover .pb-view-btn {
    background: #e3000f;
    color: #ffffff;
  }

  /* --------------------------------------------------------------------------
     5. RECOMMEND FOR YOU (WITH ADMIN-CONTROLLED CATEGORY TABS)
     -------------------------------------------------------------------------- */
  .recommend-section {
    padding: 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .rec-header-block {
    text-align: center;
    margin-bottom: 35px;
  }
  .rec-main-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #111111;
    margin: 0 0 16px 0;
  }
  /* Category Filter Tabs (User can select, controlled by Admin) */
  .rec-cat-tabs-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .rec-cat-tab-btn {
    background: none;
    border: none;
    padding: 8px 14px;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
  }
  .rec-cat-tab-btn:hover {
    color: #111111;
  }
  .rec-cat-tab-btn.active {
    color: #e3000f;
    border-bottom-color: #e3000f;
  }

  /* 4-Column Product Grid */
  .rec-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 35px;
  }
  .rec-product-card {
    background: #ffffff;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }
  .rec-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.09);
    border-color: #cbd5e1;
  }
  .rec-prod-img-box {
    width: 100%;
    height: 180px;
    background: #fafafa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
  }
  .rec-prod-img-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  .rec-product-card:hover .rec-prod-img-box img {
    transform: scale(1.06);
  }
  .rec-prod-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .rec-prod-price-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .rec-prod-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #e3000f;
  }
  .rec-prod-compare {
    font-size: 0.82rem;
    color: #94a3b8;
    text-decoration: line-through;
  }
  .rec-load-more-wrap {
    text-align: center;
  }
  .btn-load-more {
    display: inline-block;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 10px 32px;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .btn-load-more:hover {
    background: #e3000f;
    color: #ffffff;
    border-color: #e3000f;
  }

  /* --------------------------------------------------------------------------
     6. LATEST VIDEOS (3 COLUMNS)
     -------------------------------------------------------------------------- */
  .videos-section {
    padding: 50px 24px;
    max-width: 1280px;
    margin: 0 auto;
  }
  .videos-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .video-card-item {
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .video-card-item iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  /* --------------------------------------------------------------------------
     7. CUSTOMER REVIEWS (DARK 3-COLUMN CAROUSEL)
     -------------------------------------------------------------------------- */
  .reviews-dark-section {
    background: #000000;
    color: #ffffff;
    padding: 70px 24px;
    width: 100%;
  }
  .reviews-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
  }
  .reviews-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .review-box {
    background: #151821;
    border: 1px solid #242938;
    border-radius: 12px;
    padding: 30px 24px 26px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .review-avatar-circle {
    width: 58px;
    height: 58px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .review-avatar-circle svg {
    width: 32px;
    height: 32px;
    fill: #111111;
  }
  .review-author-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
  }
  .review-quote-text {
    font-size: 0.86rem;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 16px 0;
    font-style: italic;
  }
  .review-stars-row {
    color: #f59e0b;
    font-size: 1.15rem;
    letter-spacing: 2px;
  }

  /* --------------------------------------------------------------------------
     8. WHY MEGA TECH (CENTERED WITH RED ACCENT BAR)
     -------------------------------------------------------------------------- */
  .why-megatech-section {
    padding: 70px 24px 80px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
  }
  .why-title-wrap {
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
  }
  .why-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #111111;
    margin: 0 0 12px 0;
  }
  .why-title span {
    color: #e3000f;
  }
  .why-accent-line {
    width: 80px;
    height: 3px;
    background: #e3000f;
    margin: 0 auto;
    border-radius: 2px;
  }
  .why-body-text {
    font-size: 0.94rem;
    color: #555555;
    line-height: 1.85;
    margin: 0 auto;
    max-width: 960px;
  }

  /* --------------------------------------------------------------------------
     RESPONSIVE BREAKPOINTS
     -------------------------------------------------------------------------- */
  @media (max-width: 1024px) {
    .home-hero-title { font-size: 2.1rem; }
    .pb-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .rec-products-grid { grid-template-columns: repeat(3, 1fr); }
    .videos-grid-3, .reviews-grid-3 { grid-template-columns: 1fr; }
  }

  @media (max-width: 768px) {
    .home-hero-slider {
      height: auto;
      min-height: 580px;
    }
    .home-hero-slide {
      position: relative;
      min-height: 580px;
      padding: 40px 0;
      display: none;
    }
    .home-hero-slide.active {
      display: flex;
    }
    .home-hero-container {
      grid-template-columns: 1fr;
      text-align: center;
      padding: 30px 16px;
    }
    .home-hero-title { font-size: 2.1rem; }
    .home-hero-buttons { justify-content: center; }
    .hero-pc-image { max-height: 320px; margin-top: 15px; }
    .hero-slider-btn { display: none; }
    .build-banners-grid { grid-template-columns: 1fr; }
    .build-promo-banner { height: 180px; }
    .pb-cards-grid { grid-template-columns: 1fr; }
    .rec-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .cat-card-item { flex: 0 0 calc(50% - 10px); min-width: 140px; }
  }
