:root {
  --header-height: 160px;
  --header-height-min: 80px;
  --accent-color: #FFC43F;
  --dark-color: #222222;
  --light-dark-color: #727272;
  --light-color: #fff;
  --grey-color: #dbdbdb;
  --light-grey-color: #fafafa;
  --primary-color: #6995B1;
  --light-primary-color: #eef1f3;
  --body-font: "Open Sans", sans-serif;
  --heading-font: "Nunito", sans-serif;
}

@media screen and (max-width: 600px) {
  :root {
    --header-height: 100px;
    --header-height-min: 80px;
  }
}

body {
  --bs-link-color: #333;
  --bs-link-hover-color: #333;
  --bs-link-color-rgb: 40, 40, 40;
  --bs-link-hover-color-rgb: 0, 0, 0;
  --bs-light-rgb: 248, 248, 248;
  --bs-font-sans-serif: "Open Sans", sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 2;
  --bs-body-color: #747474;
  --bs-primary: #FFC43F;
  --bs-primary-rgb: 255, 196, 63;
  --bs-success: #a3be4c;
  --bs-success-rgb: 163, 190, 76;
  --bs-primary-bg-subtle: #FFF9EB;
  --bs-success-bg-subtle: #eef5e5;
  --bs-border-color: #F7F7F7;
  --bs-secondary-rgb: 230, 243, 251;
  --bs-danger-rgb: 249, 235, 231;
  --bs-warning-rgb: 255, 249, 235;
  --bs-info-rgb: 230, 243, 250;
  letter-spacing: 0.03em;
  overflow-x: hidden !important;
}

/*--------------------------------------------------------------
/** 2. GENERAL TYPOGRAPHY & BUTTONS
--------------------------------------------------------------*/
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--dark-color);
  font-weight: 700;
}

.header-section {
  height: 130px;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-weight: 700;
}

.breadcrumb.text-white {
  --bs-breadcrumb-divider-color: #fff;
  --bs-breadcrumb-item-active-color: var(--bs-primary);
}

.dropdown-menu {
  --bs-dropdown-link-active-bg: var(--bs-primary);
}

.nav-pills .nav-link {
  --bs-nav-pills-link-active-color: #111;
  --bs-nav-pills-link-active-bg: #f1f1f1;
}

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
  --bs-gutter-x: 3rem;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #ff0000;
  --bs-btn-border-color: #ff0000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #cc0000;
  --bs-btn-hover-border-color: #cc0000;
  --bs-btn-focus-shadow-rgb: 255, 0, 0;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #b30000;
  --bs-btn-active-border-color: #b30000;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #ff9999;
  --bs-btn-disabled-border-color: #ff9999;
  height: 50px;
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: #ff0000;
  --bs-btn-border-color: #ff0000;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #cc0000;
  --bs-btn-hover-border-color: #cc0000;
  --bs-btn-focus-shadow-rgb: 255, 0, 0;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #cc0000;
  --bs-btn-active-border-color: #cc0000;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff3cd;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #fff3cd;
  --bs-gradient: none;
}

.btn-outline-light {
  --bs-btn-color: #747474;
  --bs-btn-border-color: #EFEFEF;
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: #EFEFEF;
  --bs-btn-hover-border-color: #EFEFEF;
  --bs-btn-focus-shadow-rgb: 248, 249, 250;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #EFEFEF;
  --bs-btn-active-border-color: #EFEFEF;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #EFEFEF;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #EFEFEF;
  --bs-gradient: none;
}

.btn-warning {
  --bs-btn-color: #747474;
  --bs-btn-bg: #FCF7EB;
  --bs-btn-border-color: #FCF7EB;
  --bs-btn-hover-color: #747474;
  --bs-btn-hover-bg: #FFECBE;
  --bs-btn-hover-border-color: #FFECBE;
  --bs-btn-focus-shadow-rgb: 217, 164, 6;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: #FFECBE;
  --bs-btn-active-border-color: #FFECBE;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #FCF7EB;
  --bs-btn-disabled-border-color: #FCF7EB;
}

.btn-success {
  --bs-btn-color: #222;
  --bs-btn-bg: #EEF5E4;
  --bs-btn-border-color: #EEF5E4;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #9de3c2;
  --bs-btn-hover-border-color: #9de3c2;
  --bs-btn-focus-shadow-rgb: 60, 153, 110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #9de3c2;
  --bs-btn-active-border-color: #9de3c2;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #EEF5E4;
  --bs-btn-disabled-border-color: #EEF5E4;
}

.btn-danger {
  --bs-btn-color: #222;
  --bs-btn-bg: #FFEADA;
  --bs-btn-border-color: #FFEADA;
  --bs-btn-hover-color: #222;
  --bs-btn-hover-bg: #ecc9af;
  --bs-btn-hover-border-color: #ecc9af;
  --bs-btn-focus-shadow-rgb: 60, 153, 110;
  --bs-btn-active-color: #222;
  --bs-btn-active-bg: #ecc9af;
  --bs-btn-active-border-color: #ecc9af;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #222;
  --bs-btn-disabled-bg: #FFEADA;
  --bs-btn-disabled-border-color: #FFEADA;
}

.btn-link {
  margin-right: 30px;
  font-weight: 600;
  font-size: 16px;
  line-height: 22px;
  text-align: right;
  text-transform: capitalize;
  color: #787878;
}

/*--------------------------------------------------------------
/** 3. SITE STRUCTURE (Preloader & Fixed Header)
--------------------------------------------------------------*/
.preloader-wrapper {
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 111;
  background: #fff;
}

.preloader-wrapper .preloader {
  margin: 20% auto 0;
  transform: translateZ(0);
}

.preloader:before,
.preloader:after {
  content: '';
  position: absolute;
  top: 0;
}

.preloader:before,
.preloader:after,
.preloader {
  border-radius: 50%;
  width: 2em;
  height: 2em;
  animation: animation 1.2s infinite ease-in-out;
}

.preloader {
  animation-delay: -0.16s;
}

.preloader:before {
  left: -3.5em;
  animation-delay: -0.32s;
}

.preloader:after {
  left: 3.5em;
}

@keyframes animation {

  0%,
  80%,
  100% {
    box-shadow: 0 2em 0 -1em var(--accent-color);
  }

  40% {
    box-shadow: 0 2em 0 0 var(--accent-color);
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

header.scrolled {
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.main-logo img {
  max-width: 220px;
  height: auto;
}

.user-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #ddd;
}

.user-icon i {
  font-size: 20px;
  color: #222;
}

.nav-link.active {
  color: #ff0000 !important;
  font-weight: 700;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff0000;
  border-radius: 5px;
}

/*--------------------------------------------------------------
/** 4. HERO & BANNER BLOCKS
--------------------------------------------------------------*/
.container-fluid {
  max-width: 1600px;
}

.banner-blocks {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-gap: 2rem;
}

.block-1 {
  grid-area: 1 / 1 / 3 / 8;
}

.block-2 {
  grid-area: 1 / 8 / 2 / 13;
}

.block-3 {
  grid-area: 2 / 8 / 3 / 13;
}

.banner-ad {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.banner-ad.blue {
  background: #e6f3fb;
}

.banner-ad .swiper-pagination {
  bottom: 40px;
  left: 0;
  right: 0;
}

.banner-ad .swiper-pagination .swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  margin: 4px;
  background: #FFF;
  opacity: 1;
  transition: background 0.3s ease-out;
}

.banner-ad .swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #ff0000;
}

.banner-ad .banner-content {
  padding: 48px;
}

.banner-ad .banner-content .categories {
  font-family: 'Garamond';
  font-size: 37px;
  text-transform: capitalize;
  color: var(--dark-color);
}

.banner-ad .banner-content .sale {
  position: relative;
  display: inline-block;
}

.banner-ad .banner-content .sale:before {
  content: '';
  width: 80px;
  border-bottom: 1px solid #111;
  position: absolute;
  bottom: 6px;
}

.banner-ad .banner-content .sale:after {
  content: 'SALE';
  font-family: var(--body-font);
  position: absolute;
  font-size: 11px;
  line-height: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #252525;
  bottom: 0;
  right: 0;
}

.banner-ad .banner-content .banner-title {
  letter-spacing: 0.02em;
  font-size: 33px;
}

.banner-ad.large .banner-content .categories {
  color: var(--accent-color);
}

.banner-ad.large .banner-content .banner-title {
  font-size: 54px;
}

.image-float {
  margin-top: -140px;
  margin-bottom: -140px;
}

/*--------------------------------------------------------------
/** 5. CAROUSELS (Category & Brand)
--------------------------------------------------------------*/
.swiper-prev,
.swiper-next {
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: #F1F1F1;
  color: #222222;
  padding: 0;
  text-align: center;
  border-radius: 10px;
  --bs-btn-border-color: transparent;
  --bs-btn-active-bg: #ec9b22;
  --bs-btn-active-border-color: transparent;
  --bs-btn-hover-bg: #FFC43F;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-disabled-color: #ccc;
  --bs-btn-disabled-bg: #eaeaea;
  --bs-btn-disabled-border-color: #eaeaea;
}

.swiper-prev:hover,
.swiper-next:hover {
  background: #FFC43F;
}

.category-carousel .category-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  text-align: center;
  padding: 60px 20px;
  margin: 20px 0;
  transition: box-shadow 0.3s ease-out, transform 0.3s ease-out;
}

.category-carousel .category-item:hover {
  transform: translate3d(0, -10px, 0);
  box-shadow: 0px 21px 44px rgba(0, 0, 0, 0.08);
}

.category-carousel .category-item .category-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 27px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  color: #222222;
  margin-top: 20px;
}

.brand-carousel .brand-item {
  background: #FFFFFF;
  border: 1px solid #FBFBFB;
  box-shadow: 0px 5px 22px rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 16px;
}

.brand-carousel .brand-item img {
  width: 100%;
  border-radius: 12px;
}

.brand-carousel .brand-item .brand-details {
  margin-left: 15px;
}

.brand-carousel .brand-item .brand-title {
  margin: 0;
}

/*--------------------------------------------------------------
/** 6. PRODUCT ELEMENTS & GRID
--------------------------------------------------------------*/
.product-tabs .nav-tabs {
  justify-content: flex-end;
  border: none;
  --bs-nav-link-hover-color: #111;
  --bs-nav-link-color: #555;
  --bs-nav-tabs-link-border-color: #fff;
  --bs-nav-tabs-link-hover-border-color: transparent;
  --bs-nav-tabs-link-active-border-color: #fff;
}

.product-tabs .nav-tabs .nav-link.active,
.product-tabs .nav-tabs .nav-item.show .nav-link {
  border-bottom: 3px solid #ff0000;
}

.product-item {
  position: relative;
  padding: 16px 16px 20px;
  background: #fbfbfb;
  border: 1px solid #f6f6f6;
  border-radius: 16px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease-out;
}

.product-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.product-item .badge {
  position: absolute;
  top: 18px;
  left: 0px;
  right: auto;
  bottom: auto;
  padding: 0.55rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: #fff !important;
  background-color: #dc3545 !important;
  border-radius: 14px;
}

.product-item .btn-outline-secondary i {
  color: #222;
  font-size: 18px;
}

.product-item .btn-outline-secondary:hover {
  background: #f2f2f2;
  border-color: #b1b1b1;
}

.product-item .btn-outline-secondary:hover i {
  color: #000 !important;
}

.product-item .btn-outline-secondary iconify-icon {
  display: none;
}

.product-item .btn-primary {
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  min-width: 118px;
}

.product-item .btn-primary:hover {
  background-color: #ff0000;
}

.product-item h3 {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 18px;
  line-height: 25px;
  text-transform: capitalize;
  color: #333333;
  margin: 0;
}

.product-item figure {
  background: transparent;
  border-radius: 12px;
  text-align: center;
}

.product-item .btn-wishlist {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d8d8d8;
  transition: all 0.3s ease-out;
}

.product-item .btn-wishlist:hover {
  background: rgb(240, 56, 56);
  color: #fff;
}

.product-item .qty {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9D9D9D;
}

.product-item .rating {
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  text-transform: capitalize;
  color: #222222;
}

.product-item .rating iconify-icon {
  color: #FFC43F;
}

.product-item .price {
  display: block;
  width: 100%;
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  text-transform: capitalize;
  color: #222222;
}

.product-item .product-qty,
.cart .product-qty {
  width: 85px;
}

.cart .product-qty {
  min-width: 130px;
}

.product-item .btn-link {
  text-decoration: none;
}

.product-item #quantity {
  height: auto;
  width: 28px;
  text-align: center;
  border: none;
  margin: 0;
  padding: 0;
}

.product-item .btn-number {
  width: 26px;
  height: 26px;
  line-height: 1;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E2E2E2;
  border-radius: 6px;
  color: #222;
  padding: 0;
}

.post-item .post-meta {
  font-size: 0.8rem;
  line-height: 1;
}

.post-item .post-meta svg {
  margin-right: 5px;
}

.product-thumbnail-slider {
  height: 740px;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.product-image img,
.product-image .tab-image {
  max-width: 100%;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: 0.3s ease;
}

.product-image .view-overlay {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 1;
}

.product-image:hover .view-overlay {
  opacity: 1;
  visibility: visible;
}

.product-image:hover::before {
  opacity: 1;
}

.product-image:hover .tab-image {
  transform: scale(1.05);
}

.modal-content {
  border-radius: 12px;
  border: none;
}

/*--------------------------------------------------------------
/** 7. SEARCH & UTILITIES
--------------------------------------------------------------*/
.form-control {
  height: 50px;
}

.search-icon {
  color: #000;
  font-size: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-icon:hover {
  color: #ff0000;
}

.search-bar-container {
  display: none;
  padding: 15px 0;
  background: #fff;
  border-top: 1px solid #eee;
}

.search-bar-container.active {
  display: block;
}

.search-wrapper {
  position: relative;
}

.btn-close-search {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
}

.search-open {
  display: block;
}

.modal {
  z-index: 99999 !important;
}

.modal-backdrop {
  z-index: 99998 !important;
}

#searchInput {
  border: 1.5px solid #a8a8a8;
  border-radius: 30px;
  padding: 12px 20px;
}

#searchInput:focus {
  border-color: #666;
  box-shadow: none;
}

.form-select {
  border: 1.5px solid #a8a8a8;
  border-radius: 8px;
  background-color: #fff;
}

.login-logo img {
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

img,
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#offcanvasCart {
  z-index: 99999 !important;
}

.offcanvas-header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.offcanvas-title {
  display: block !important;
  color: #000;
  font-size: 20px;
  font-weight: 600;
}

.btn-close {
  display: block !important;
  opacity: 1 !important;
}

/*--------------------------------------------------------------
/** 8. RESPONSIVE MEDIA QUERIES & MOBILE MENUS FIX
--------------------------------------------------------------*/
@media screen and (max-width: 1140px) {
  .banner-blocks {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    grid-gap: 1rem;
  }

  .block-1 {
    grid-area: 1 / 1 / 3 / 2;
  }

  .block-2 {
    grid-area: 3 / 1 / 4 / 2;
  }

  .block-3 {
    grid-area: 4 / 1 / 5 / 2;
  }
}

@media screen and (max-width: 991px) {
  .image-float {
    margin: 0;
  }

  .offcanvas-body .nav-item {
    font-weight: 700;
    border-bottom: 1px solid #d1d1d1;
  }

  .offcanvas-body .filter-categories {
    width: 100%;
    margin-bottom: 20px !important;
    border: 1px solid #d1d1d1 !important;
    padding: 14px;
    border-radius: 8px;
  }

  .dropdown-menu {
    padding: 0;
    border: none;
    line-height: 1.4;
    font-size: 0.9em;
  }

  .dropdown-menu a {
    padding-left: 0;
  }

  .dropdown-toggle::after {
    position: absolute;
    right: 0;
    top: 21px;
  }

  .banner-ad .swiper-slide {
    min-height: 320px;
  }

  .banner-ad .banner-content {
    padding: 20px;
  }

  .banner-ad .banner-content .categories {
    font-size: 20px;
  }

  .banner-ad .banner-content .banner-title {
    font-size: 26px;
  }

  .banner-ad.large .banner-content .banner-title {
    font-size: 32px;
  }

  /* CRITICAL NAVIGATION SINGLE-ROW LAYOUT FOR MOBILE & TABLET */
  header .row.py-3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    gap: 0 !important;
  }

  .main-logo {
    flex: 0 0 auto !important;
    max-width: 40% !important;
    width: auto !important;
  }

  .main-logo img {
    max-height: 42px !important;
    width: auto !important;
  }

  /* Search bar block constraints on tablet */
  .search-bar {
    display: none !important;
    /* Hide native layout block to make space for mobile search toggles */
  }

  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
  }

  /* Adjust Action Icons Sizes for clean horizontal fitting */
  .header-actions a,
  .header-actions .user-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }

  .header-actions .user-icon i {
    font-size: 16px !important;
  }

  /* Force hamburger toggle to line up instantly on the right side */
  .navbar-toggler {
    padding: 4px 6px !important;
    font-size: 1.1rem !important;
    margin-left: 4px !important;
    flex: 0 0 auto !important;
    border: 1px solid #ddd !important;
  }

  .product-item {
    padding: 12px;
  }

  .product-item .price {
    font-size: 18px;
  }

  .product-item h3 {
    font-size: 16px;
  }

  .product-grid {
    gap: 12px;
  }
}

@media screen and (max-width: 992px) {
  .product-thumbnail-slider {
    margin-top: 20px;
    height: auto;
  }
}

@media screen and (min-width: 992px) {
  .product-thumbnail-slider {
    height: 520px;
  }
}

@media screen and (min-width: 1200px) {
  .product-thumbnail-slider {
    height: 740px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .banner-ad .swiper-slide {
    min-height: 420px;
  }

  .banner-ad .banner-content {
    padding: 32px;
  }
}

.offcanvas .nav-link:hover {
  color: #ff0000 !important;
}

a,
button,
.nav-link {
  touch-action: manipulation;
}

/* ===================================== RESPONSIVE HERO SLIDER ===================================== */
.banner-ad .swiper-slide,
.slide-bg-one,
.slide-bg-two,
.slide-bg-three {
  min-height: 630px;
}

.slide-bg-one,
.slide-bg-two,
.slide-bg-three {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.slide-bg-one {
  background-image: url('images/slide-1.png');
}

.slide-bg-two {
  background-image: url('images/slide-2.png');
}

.slide-bg-three {
  background-image: url('images/slide-3.png');
}

.slide-bg-one .banner-content,
.slide-bg-two .banner-content,
.slide-bg-three .banner-content {
  min-height: 630px;
  align-items: center;
}

.banner-ad .banner-content {
  padding: 48px;
}

/* Tablet */
@media (max-width: 991px) {

  .banner-ad .swiper-slide,
  .slide-bg-one,
  .slide-bg-two,
  .slide-bg-three {
    min-height: 450px;
  }

  .slide-bg-one .banner-content,
  .slide-bg-two .banner-content,
  .slide-bg-three .banner-content {
    min-height: 450px;
  }

  .banner-ad .banner-content {
    padding: 30px;
  }

  .display-4 {
    font-size: 34px !important;
  }

  .categories {
    font-size: 22px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .banner-blocks {
    display: block;
  }

  .block-1,
  .block-2,
  .block-3 {
    width: 100%;
    margin-bottom: 15px;
  }

  .banner-ad .swiper-slide,
  .slide-bg-one,
  .slide-bg-two,
  .slide-bg-three {
    min-height: 320px;
    background-size: cover;
    background-position: center;
  }

  .slide-bg-one .banner-content,
  .slide-bg-two .banner-content,
  .slide-bg-three .banner-content {
    min-height: 320px;
    padding: 20px;
  }

  .content-wrapper {
    width: 55%;
    max-width: 55%;
  }

  .display-4 {
    font-size: 24px !important;
    line-height: 1.2;
  }

  .categories {
    font-size: 14px !important;
  }

  .banner-content p {
    font-size: 13px;
    line-height: 1.5;
  }

  .banner-content .btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

.gap50 {
  margin-top: 50PX;
}

/* Side banners - Mobile */
@media (max-width: 767px) {

  .block-2,
  .block-3 {
    min-height: 180px;
  }

  .block-2 .banner-content,
  .block-3 .banner-content {
    padding: 15px !important;
    min-height: 180px;
  }

  .block-2 .content-wrapper,
  .block-3 .content-wrapper {
    width: 45%;
    max-width: 45%;
    z-index: 2;
  }

  .block-2 .banner-title,
  .block-3 .item-title {
    font-size: 18px !important;
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .block-2 .categories,
  .block-3 .categories {
    font-size: 12px !important;
  }

  .block-2,
  .block-3 {
    background-size: 45% auto !important;
    background-position: right center !important;
  }

  .block-2 .nav-link,
  .block-3 .nav-link {
    font-size: 13px;
  }
}

/* =================================== PRODUCT RESPONSIVE FIX =================================== */
/* Tablet */
@media (max-width: 991px) {
  .header-section {
    height: 100px;
  }

  .product-grid {
    row-gap: 20px;
  }

  .product-item {
    padding: 15px;
  }

  .product-image {
    height: 180px;
  }

  .product-image img,
  .product-image .tab-image {
    max-height: 160px;
  }

  .product-item h3 {
    font-size: 16px;
    min-height: 45px;
  }

  .product-item .price {
    font-size: 18px;
  }
}

/* Mobile - 2 products per row Layout Adjustment */
@media (max-width: 767px) {
  .header-section {
    height: 80px;
  }

  .tabs-header {
    flex-direction: column;
    align-items: stretch !important;
  }

  .tabs-header h3 {
    margin-bottom: 15px;
  }

  .tabs-header .row {
    margin: 0;
  }

  .tabs-header .col-md-4 {
    width: 100%;
    margin-bottom: 10px;
  }

  /* Grid Layout Fixes */
  .product-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0px !important;
    row-gap: 0px !important;
    justify-content: flex-start !important;
  }

  /* Explicitly make every item fit 2 per row */
  .product-grid>.col {
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    display: flex !important;
  }

  .product-item {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 8px !important;
    border-radius: 12px;
    margin-bottom: 0px !important;
  }

  .product-image {
    height: 130px !important;
  }

  .product-image img,
  .product-image .tab-image {
    max-height: 110px !important;
  }

  .product-item h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    min-height: 34px !important;
    margin-top: 6px !important;
  }

  .product-item .price {
    font-size: 15px !important;
    margin-bottom: 6px !important;
  }

  /* Inner Card Content Stack Realignment */
  .product-item .d-flex.align-items-center.justify-content-between {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: stretch !important;
  }

  /* Scaling product actions */
  .product-item .product-qty {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-item .product-qty .form-control {
    height: 32px !important;
    font-size: 12px !important;
  }

  .product-item .d-flex.align-items-center.gap-2 {
    width: 100% !important;
    gap: 4px !important;
  }

  .product-item .btn-outline-secondary {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-item .btn-outline-secondary i {
    font-size: 14px !important;
  }

  .product-item .btn-primary {
    flex: 1 !important;
    margin-right: 0 !important;
    min-width: auto !important;
    height: 32px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .product-item .badge {
    font-size: 10px !important;
    padding: 4px 8px !important;
    top: 10px !important;
  }
}

/* Mobile Features Section */
@media (max-width: 767px) {
  .card {
    text-align: center;
  }

  .card .row {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .card .col-md-2,
  .card .col-md-10 {
    width: 100%;
    max-width: 100%;
  }

  .card .col-md-2 {
    margin-bottom: 10px;
  }

  .card svg {
    margin: 0 auto;
  }

  .card-body {
    text-align: center;
  }
}
