/* ==================================================
   HOME PAGE ONLY STYLES
   Scoped via .home-page
================================================== */
.home-page .single-banner {
    align-items: stretch !important;
}
/* Prevent horizontal overflow ONLY on home */
.home-page {
    overflow-x: hidden;
}

/* ---------------- HEADER FIXES ---------------- */

.home-page .header-main1 {
    padding-top: 0;
    padding-bottom: 0;
    min-width: 100%;
}

.home-page .header-main1 .container,
.home-page .header-bottom .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

/* Ensure header rows donâ€™t collapse */
.home-page .header-bottom-inner {
    margin-bottom: 6px;
}

/* ---------------- CONTAINER SAFETY ---------------- */
/* IMPORTANT: Do NOT override .container globally */

/* .home-page .container,
.home-page .container-fluid {
    max-width: 100%;
} */

/* ---------------- BANNER FIXES ---------------- */

.home-page .banner-area1 {
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.home-page .banner-area1 .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.home-page .single-banner {
    width: 100%;
    aspect-ratio: 1536 / 320;
    position: relative;
}
.home-page .section-title {
    margin-top: -30px;
}

.home-page .banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hide home slider on mobile */
@media (max-width: 767px) {
    .home-page .banner-area1 {
        display: none;
    }
}

/* ---------------- CATEGORY CARDS ---------------- */

.home-page .cat-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

/* .home-page .cat-card-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform .4s ease;
} */

.home-page .cat-card:hover img {
    transform: scale(1.08);
}

.home-page .cat-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(
        to right,
        rgba(0,0,0,.75),
        rgba(0,0,0,.55)
    );
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    border-top: 3px solid #ffb703;
    text-align: center;
}
/* Center ONLY category title text, keep arrow on right */
.home-page .cat-overlay {
  position: relative;
}

.home-page .cat-overlay > *:not(.cat-arrow) {
  margin-left: auto;
  margin-right: auto;
  
}

.home-page .cat-arrow {
    font-size: 22px;
}
/* Force category image to fully cover card, even on zoom */
.home-page .cat-card-img {
  /* height: 100%; */
  overflow: hidden;
}

.home-page .cat-card-img img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  object-position: center;
}

.home-page .placeholder {
    background: #f2f2f2;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid #ccc;
    color: #777;
}

/* Responsive card heights */
/* @media (max-width: 991px) {
    .home-page .cat-card-img img {
        height: 280px;
    }
} */

/* @media (max-width: 576px) {
    .home-page .cat-card-img img {
        height: 240px;
    }
} */

/* ---------------- CATEGORY DROPDOWN ---------------- */

.home-page .category-items {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
    padding: 6px 0;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: .22s ease;
    pointer-events: none;
}

.home-page .category-menu:hover .category-items {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.home-page .category-item {
    padding: 10px 14px 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    transition: .22s ease;
    border-bottom: 1px solid rgba(255,255,255,.07);
    position: relative;
}

.home-page .category-item:hover {
    background: rgba(255,255,255,.12);
    padding-left: 22px;
    transform: scale(1.02);
}

.home-page .category-item::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 0;
    width: 3px;
    background: #00ff99;
    transition: height .25s ease;
}

.home-page .category-item:hover::after {
    height: 100%;
}

/* Scrollbar */
.home-page .category-items::-webkit-scrollbar {
    width: 6px;
}

.home-page .category-items::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 4px;
}

.home-page .category-items::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ---------------- FEATURES BLOCK ---------------- */

.home-page .features-single {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    transition: .2s;
}

.home-page .features-single:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
}

.home-page .irc-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-page .irc-item-icon img {
    width: 60px;
    height: auto;
}

.home-page .irc-item-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}
.home-page .banner-area,
.home-page .banner-area1,
.home-page .swiper-container,
.home-page .swiper-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.home-page .swiper-slide {
    height: auto !important;
}
/* ===============================
   HOME PAGE PRODUCT GRID FIX
=============================== */

.home-page .products-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

/* Desktop: 4 products per row */
.home-page .products-wrapper .single-product {
  width: calc(25% - 21px);
}

/* Tablet */
@media (max-width: 991px) {
  .home-page .products-wrapper .single-product {
    width: calc(33.333% - 19px);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .home-page .products-wrapper .single-product {
    width: calc(50% - 14px);
  }
}

@media (max-width: 480px) {
  .home-page .products-wrapper .single-product {
    width: 100%;
  }
}

.single-product {
  position: relative; /* REQUIRED for hover scope */
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 14px;
  transition: all .25s ease;
}

.single-product:hover {
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.product-image {
  position: relative;
  background: #f2f2f2;
  padding: 1px;
  text-align: center;
}

.product-image img {
  width: 100%;
  max-height: 720px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ACTION AREA â€” controlled by FULL CARD hover */
    .product-action {
    position: absolute;
    top: 10px;
    right: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 5;
    display: flex;
  align-items: center;
  justify-content: center;
    }

.product-action .quick-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-name a {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #0d6efd;
  text-transform: uppercase;
}




/* Image hover â†’ eye icon */
.product-image:hover .product-action {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* FIX HUGE BLANK SPACE BELOW BANNER (HOME PAGE ONLY) */

.home-page .banner-area1 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.home-page .slider__active,
.home-page .swiper-container {
    height: auto !important;
    min-height: unset !important;
}

.home-page .swiper-slide {
    height: auto !important;
}

.home-page .single-banner {
    min-height: unset !important;
    height: auto !important;
}
/* ===============================
   FIX HUGE BLANK SPACE BELOW BANNER
   HOME PAGE ONLY
================================ */

.home-page .banner-area1 {
    height: auto !important;
    min-height: unset !important;
}

.home-page .banner-area1 .swiper-container,
.home-page .banner-area1 .swiper-wrapper,
.home-page .banner-area1 .swiper-slide {
    height: auto !important;
}

.home-page .banner-area1 .single-banner {
    min-height: unset !important;
    padding: 0 !important;
}
/* FIX: prevent Categories from hiding under banner */
.home-page .category-banner-area {
    position: relative;
    z-index: 2;
    margin-top: 40px; /* adjust: 30â€“60px if needed */
}


/* ===============================
   HOME PAGE BANNER – FINAL
=============================== */

.home-page .banner-area1 {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.home-page .banner-area1 .single-banner {
    position: relative;
    min-height: 420px;
}

.home-page .banner-area1 .banner-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Tablet */
@media (max-width: 991px) {
    .home-page .banner-area1 .single-banner {
        min-height: 260px;
    }
}

/* Mobile: banner hidden */
@media (max-width: 767px) {
    .home-page .banner-area1 {
        display: none;
    }
}



/* ---------------- CATEGORY CARDS (FIXED DIMENSION) ---------------- */

.home-page .cat-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;

    /* HARD DIMENSION */
    width: 100%;
    aspect-ratio: 1 / 1.08;   /* matches screenshot proportion */
    background: #eaeaea;
}

/* Image wrapper OWNS the size */
.home-page .cat-card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Image NEVER controls height */
.home-page .cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}

.home-page .cat-card:hover img {
    transform: scale(1.08);
}

/* Overlay always sticks to bottom */
.home-page .cat-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 14px 18px;

    background: linear-gradient(
        to right,
        rgba(0,0,0,.75),
        rgba(0,0,0,.55)
    );

    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: 600;
    border-top: 3px solid #ffb703;
}

/* Arrow stays right */
.home-page .cat-arrow {
    position: absolute;
    right: 18px;
    font-size: 22px;
}







/* ==================================================
   ZOOM SAFE LAYOUT FIX (90%–125%)
   HOME PAGE ONLY
================================================== */

/* ---------- GLOBAL SAFETY ---------- */
.home-page * {
    box-sizing: border-box;
}

/* ---------- CONTAINER STABILITY ---------- */
.home-page .container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CATEGORY CARDS (OUR CATEGORIES) ---------- */

/* Lock card dimension instead of image */
.home-page .cat-card {
    width: 100%;
    aspect-ratio: 1 / 1.1;      /* stable at all zoom levels */
    display: flex;
    flex-direction: column;
}

/* Image wrapper controls height */
.home-page .cat-card-img {
    flex: 1;
    width: 100%;
    overflow: hidden;
}

/* Image fills wrapper, no height math */
.home-page .cat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay height fixed, avoids zoom jump */
.home-page .cat-overlay {
    min-height: 64px;
    flex-shrink: 0;
}

/* ---------- RESPONSIVE TUNING ---------- */
@media (max-width: 991px) {
    .home-page .cat-card {
        aspect-ratio: 1 / 1.15;
    }
}

@media (max-width: 576px) {
    .home-page .cat-card {
        aspect-ratio: 1 / 1.2;
    }
}

/* ---------- PRODUCT GRID ZOOM SAFETY ---------- */
.home-page .products-wrapper {
    gap: 24px; /* avoid fractional rounding at 90% zoom */
}

.home-page .products-wrapper .single-product {
    flex: 0 0 calc(25% - 18px);
}

@media (max-width: 991px) {
    .home-page .products-wrapper .single-product {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 767px) {
    .home-page .products-wrapper .single-product {
        flex: 0 0 calc(50% - 14px);
    }
}

@media (max-width: 480px) {
    .home-page .products-wrapper .single-product {
        flex: 0 0 100%;
    }
}

/* ---------- BANNER ZOOM STABILITY ---------- */
/* .home-page .banner-area1 .single-banner {
    aspect-ratio: 1536 / 420;
    min-height: unset !important;
} */

/* Prevent fractional overflow at zoom */
.home-page {
    overflow-x: hidden;
}
