/*banner-section*/
.allproducts-banner {
  padding: 10px 110px;
}

.banner-container {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

.banner-content {
  position: absolute;
  top: 65%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 40%;
  text-align: left;
  color: #FFFFFF;
  z-index: 10;
}

.banner-title {
  font-family: "Nunito Sans";
  font-size: 45px;
  font-style: normal;
  font-weight: 700;
  line-height: 67.2px;
  margin-bottom: 12px;
}

.banner-description {
  font-family: "Nunito Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* Styling for Product Category Section */
.product-category-section {
  padding: 60px 110px;
}

.product-category-container {
  margin: 0 auto;
  font-family: "Nunito Sans", sans-serif;
}

/* Header Section */
.product-category-header {
  text-align: center;
  margin-bottom: 36px;
}

.product-category-title {
  font-size: 48px;
  color: #0B1631;
  margin-bottom: 16px;
  line-height: 1.2;
  text-transform: capitalize;
}

.product-category-title .title-highlight {
  background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.product-category-subtitle {
  font-size: 18px;
  color: #111;
  font-weight: 400;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Main Card Wrapper */
.product-category-card-wrapper {
  border-radius: 24px;
  border: 1px solid #EAEAEA;
  background: #FAFAFA;
  overflow: hidden;
}

/* Category Tabs Bar */
.desktop-category-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #1A4C9E;
  overflow: hidden;
}

.desktop-category-tab {
  padding: 22px 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  border-right: 1px solid #FAFAFA;
  outline: none;
  color: #FAFAFA;
  text-align: center;
  font-family: "Nunito Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

.desktop-category-tab:last-child {
  border-right: none;
}

.desktop-category-tab:hover:not(.active) {
  background-color: #1A4C9E;
}

.desktop-category-tab.active {
  background-color: #FAFAFA;
  color: #000;
  text-align: center;
  font-family: "Nunito Sans";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
}

/* Desktop Filter Pills */
.desktop-filter-pills {
  display: flex;
  padding: 8px;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #EAEAEA;
}

.desktop-filter-pill {
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  border-radius: 999px;
  border: 1px solid #F4F4F4;
  background: linear-gradient(180deg, #FAFAFA 0%, #EAEAEA 117.74%);
  box-shadow: 0 -3px 0 0 rgba(244, 244, 244, 0.18) inset, 0 0 4px 0 rgba(144, 144, 144, 0.12) inset, 0 -4px 16px 0 rgba(244, 244, 244, 0.3) inset;
  padding: 16px 56px;
  align-items: center;
  color: #677080;
  font-family: "Nunito Sans";
  font-size: 16.683px;
  font-style: normal;
  font-weight: 600;
}

.desktop-filter-pill.active {
  border-radius: 999px;
  border: 1px solid #3499FE;
  background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
  color: #FFF;
  font-family: "Nunito Sans";
  font-size: 16.683px;
  font-style: normal;
  font-weight: 600;
}

/* No products message */
.no-products-message {
  width: 100%;
  padding: 60px 20px;
  font-size: 16px;
  color: #64748B;
  text-align: center;
  font-weight: 500;
}

/* ==========================================
   Unified Carousel and Responsive Layout
   ========================================== */
/* Categories Visibility Toggle */
.desktop-category-tabs {
  display: grid !important;
}

.mobile-nav-bar {
  display: none !important;
}

.desktop-filter-pills {
  display: flex !important;
}

/* Slider and Swiper Containers */
.product-slider-container {
  padding: 48px 0px 24px 48px;
  overflow: hidden;
}

.product-swiper {
  overflow: hidden;
  width: 100%;
}

/* Bottom Bar */
.product-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px 40px 60px;
}

/* Pagination and Navigation Arrows */
.product-pagination {
  display: flex;
  gap: 8px;
  width: auto !important;
  position: static !important;
}

.product-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background-color: #D1D5DB;
  opacity: 1;
  border-radius: 50%;
  margin: 0 !important;
  transition: all 0.3s ease;
}

.product-pagination .swiper-pagination-bullet-active {
  background-color: #0B1631;
  width: 8px;
  border-radius: 4px;
}

.product-navigation-arrows {
  display: flex;
  gap: 4px;
}

.product-nav-btn {
  padding: 16px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  outline: none;
  border-radius: 999px;
}

.product-nav-btn svg {
  width: 24px;
  height: 24px;
}

.product-nav-btn .mobile-arrow {
  display: none;
}

.product-nav-btn .desktop-arrow {
  display: block;
}

.product-prev-btn {
  border-radius: 999px;
  border: 1px solid #F4F4F4;
  background: linear-gradient(180deg, #FAFAFA 0%, #EAEAEA 117.74%);
  box-shadow: 0 -3px 0 0 rgba(244, 244, 244, 0.18) inset, 0 0 4px 0 rgba(144, 144, 144, 0.12) inset, 0 -4px 16px 0 rgba(244, 244, 244, 0.3) inset, 0 10px 30px -8px rgba(255, 255, 255, 0.24);
}

.product-prev-btn svg {
  color: black;
}

.product-next-btn {
  border-radius: 999px;
  border: 1px solid #3499FE;
  background: linear-gradient(90deg, #60A5FA 0%, #3B82F6 100%);
  box-shadow: 0 -3px 0 0 rgba(30, 154, 255, 0.18) inset, 0 -4px 16px 0 rgba(0, 106, 255, 0.3) inset, 0 10px 30px -8px rgba(59, 130, 246, 0.5), 0 1px 10px 0 rgba(0, 0, 0, 0.15);
}

.product-next-btn svg {
  color: white;
}

.product-nav-btn.swiper-button-disabled {
  opacity: 0.2;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Unified Product Card Style - Desktop First */
.category-product-card {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  transition: transform 0.3s ease;
}

.category-product-card .image-wrapper {
  margin-bottom: 16px;
}

.category-product-card .product-image {
  height: 100%;
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
}

/* Card details container using CSS grid */
.category-product-card .product-info-container {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  -moz-column-gap: 12px;
  column-gap: 12px;
  row-gap: 4px;
}

.category-product-card .product-title {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
  font-weight: 600;
  color: #0B1631;
  line-height: 1.3;
  text-align: left;
  margin: 0;
  /* white-space: nowrap; */
  /* overflow: hidden; */
  /* text-overflow: ellipsis; */
  /* min-width: 0; */
}

.category-product-card .product-price {
  grid-column: 2;
  grid-row: 1;
  color: #0B1631;
  font-family: "Nunito Sans";
  font-size: 18.537px;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.category-product-card .product-subtext {
  grid-column: 1/span 2;
  grid-row: 2;
  font-size: 13px;
  font-weight: 400;
  color: #64748B;
  text-align: left;
  margin: 0 0 16px 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-product-card .buy-now-btn {
  grid-column: 1/span 2;
  grid-row: 3;
  width: 100%;
  padding: 16px 0;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  outline: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #FAFAFA 0%, #EAEAEA 117.74%), #EDEDED;
  box-shadow: 0 -3px 0 0 rgba(244, 244, 244, 0.18) inset, 0 0 4px 0 rgba(144, 144, 144, 0.12) inset, 0 -4px 16px 0 rgba(244, 244, 244, 0.3) inset;
}

.category-product-card .buy-now-btn .btn-text {
  color: #0B1631;
  font-family: "Nunito Sans";
  font-size: 14.829px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.244px;
}

.category-product-card .buy-now-btn:hover {
  background: linear-gradient(180deg, #F3F4F6 0%, #E5E7EB 100%);
  border-color: #D1D5DB;
}

.category-product-card .buy-now-btn .btn-arrow {
  display: none;
}

/* ==========================================
   TABLET RESPONSIVE SPACING (768px - 1024px)
   ========================================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .allproducts-banner {
    padding: 40px 48px;
  }

  .banner-content {
    left: 6%;
    max-width: 40%;
  }

  .banner-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .banner-description {
    font-size: 14px;
    line-height: 1.4;
  }

  .product-category-section {
    padding: 40px 48px;
  }

  .product-category-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .product-category-subtitle {
    font-size: 16px;
    max-width: 600px;
  }

  .desktop-category-tab {
    font-size: 16px;
    padding: 18px 8px;
  }

  .desktop-category-tab.active {
    font-size: 16px;
  }

  .desktop-filter-pills {
    padding: 6px;
    gap: 4px;
  }

  .desktop-filter-pill {
    padding: 12px 32px;
    font-size: 14px;
  }

  .desktop-filter-pill.active {
    font-size: 14px;
  }

  .product-slider-container {
    padding: 32px 0px 20px 32px;
  }

  .product-bottom-bar {
    padding: 15px 32px 32px 32px;
  }

  .product-nav-btn {
    padding: 12px 36px;
  }

  .category-product-card .buy-now-btn {
    padding: 12px 0;
  }
}

/* ==========================================
   MOBILE MEDIA QUERY (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
  .allproducts-banner {
    padding: 0px 16px 24px;
  }

  .banner-container {
    border-radius: 16px;
  }

  .banner-content {
    display: none;
  }

  .product-category-section {
    padding: 24px 16px;
  }

  .product-category-section .product-category-title {
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 32px;
    font-style: normal;
    margin-bottom: 12px;
  }

  .product-category-section .product-category-subtitle {
    color: #677080;
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  /* Hide desktop categories & filter pills, show mobile navigation elements */
  .desktop-category-tabs {
    display: none !important;
  }

  .mobile-nav-bar {
    display: flex !important;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 50;
  }

  .desktop-filter-pills {
    display: none !important;
  }

  /* Mobile wrapper style */
  .product-category-card-wrapper {
    border-radius: 24px;
    border: 1px solid #EAEAEA;
    background: #FFFFFF;
    padding: 24px 16px;
  }

  .product-slider-container {
    padding: 8px 0 10px 0;
  }

  .product-swiper {
    padding-bottom: 0;
  }

  /* Mobile Bottom Bar Controls stacking */
  .product-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 0px;
    padding: 0px;
  }

  .product-pagination {
    justify-content: center;
  }

  .product-navigation-arrows {
    gap: 16px;
    justify-content: center;
  }

  /* Pill-shaped navigation buttons matching mobile styles */
  .product-nav-btn {
    border-radius: 999px;
    padding: 10px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-nav-btn svg {
    width: 16px;
    height: 16px;
  }

  .product-nav-btn .mobile-arrow {
    display: block;
  }

  .product-nav-btn .desktop-arrow {
    display: none;
  }

  /* Mobile navigation elements (Dropdown & Filter trigger styles) */
  .mobile-dropdown-container {
    flex: 1;
    position: relative;
  }

  .mobile-dropdown-trigger {
    width: 100%;
    border: none;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background-color 0.2s ease;
    border-radius: 12px;
    background: #1A4C9E;
    color: #FFF;
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
  }

  .dropdown-chevron {
    transition: transform 0.2s ease;
  }

  .mobile-dropdown-container.open .dropdown-chevron {
    transform: rotate(180deg);
  }

  .mobile-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 50;
  }

  .mobile-dropdown-container.open .mobile-dropdown-menu {
    display: block;
  }

  .mobile-dropdown-item {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
  }

  .mobile-dropdown-item:hover {
    background-color: #F3F4F6;
  }

  .mobile-dropdown-item.active {
    background-color: #EEF2F6;
    color: #1E4E9A;
    font-weight: 600;
  }

  .mobile-filter-container {
    position: relative;
  }

  .mobile-filter-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #FAFAFA 0%, #EAEAEA 117.74%), #1A4C9E;
    color: #0B1631;
    text-align: center;
    font-family: "Nunito Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
  }

  .mobile-filter-container.open .mobile-filter-trigger {
    background-color: #E5E7EB;
    border-color: #D1D5DB;
  }

  .mobile-sub-filter-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 50;
  }

  .mobile-filter-container.open .mobile-sub-filter-menu {
    display: block;
  }

  .mobile-sub-filter-item {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: background-color 0.2s ease;
  }

  .mobile-sub-filter-item:hover {
    background-color: #F3F4F6;
  }

  .mobile-sub-filter-item.active {
    background-color: #EEF2F6;
    color: #2563EB;
    font-weight: 600;
  }

  /* Transparent individual card background and reset transform on hover */
  .category-product-card {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    transform: none !important;
  }

  .category-product-card:hover {
    transform: none !important;
  }

  /* Grey background card image container */
  .category-product-card .image-wrapper img {
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    height: 100%;
  }

  .category-product-card .image-wrapper {
    margin-bottom: 12px;
  }

  /* Grid layout for info - price on left, text stacked, buy button on right */
  .category-product-card .product-info-container {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    -moz-column-gap: 16px;
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
  }

  .category-product-card .product-price {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    margin-bottom: 4px;
    color: #0B1631;
    font-family: "Nunito Sans";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
  }

  .category-product-card .product-title {
    grid-column: 1;
    grid-row: 2;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #0B1631;
    font-family: "Nunito Sans";
    font-size: 16.683px;
    font-style: normal;
    font-weight: 600;
    /* white-space: nowrap; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* min-width: 0; */
  }

  .category-product-card .product-subtext {
    grid-column: 1;
    grid-row: 3;
    font-size: 13px;
    color: #677080;
    margin: 0;
    line-height: 1.4;
    height: auto;
    overflow: visible;
    display: block;
  }

  /* Buy Now action button on the right next to title/subtext */
  .category-product-card .buy-now-btn {
    grid-column: 2;
    grid-row: 2/span 1;
    width: auto;
    align-self: center;
    justify-self: end;
    color: #E8EEF7;
    border: none;
    padding: 16px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-radius: 999px;
    background: #3B82F6;
    box-shadow: 0 10px 30px -8px rgba(59, 130, 246, 0.5);
  }

  .category-product-card .buy-now-btn .btn-text {
    color: #FFFFFF;
    font-family: "Nunito Sans";
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .category-product-card .buy-now-btn:hover {
    background: linear-gradient(90deg, #3B82F6 0%, #2563EB 100%);
    color: #FFFFFF;
    border: none;
  }

  .category-product-card .buy-now-btn .btn-arrow {
    display: inline-block;
  }
}