/* Homepage Styles - Extracted from index.php */

/* Main Content Wrapper with Sidebar */
.main-content-wrapper {
  display: flex;
  min-height: calc(100vh - 120px);
  position: relative;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-right: 1rem;
  padding-left: 1rem;
}

.new-navbar > .container,
.new-navbar > .container-fluid, .new-navbar > .container-sm, .new-navbar > .container-md, .new-navbar > .container-lg, .new-navbar > .container-xl, .new-navbar > .container-xxl {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}

/* New Navbar Styling */
.new-navbar {
  /* padding: 0.75rem 1rem; */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  background: white !important;
  transition: all 0.3s ease;
}

.new-navbar .navbar-toggler {
  border: 2px solid #343a40;
  /* padding: 0.5rem 1rem; */
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.new-navbar .navbar-toggler:hover {
  background-color: #343a40;
  color: white;
}

.new-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 58, 64, 0.25);
}

.new-navbar .navbar-toggler .fa-bars {
  font-size: 1.1rem;
}

/* Navigation Links */
.new-navbar .navbar-nav {
  gap: 0.5rem;
}

.new-navbar .nav-item {
  position: relative;
}

.new-navbar .nav-link {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #2d3436;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.new-navbar .nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--secondary-color, #f05025);
  transition: transform 0.3s ease;
}

.new-navbar .nav-link:hover {
  color: var(--secondary-color, #f05025);
  background-color: rgba(240, 80, 37, 0.05);
}

.new-navbar .nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}

.new-navbar .nav-link.dropdown-toggle::after {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.new-navbar .nav-link.dropdown-toggle:hover::after,
.new-navbar .nav-link.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Dropdown Menu Styling */
.new-navbar .dropdown-menu {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0;
  margin-top: 0.5rem;
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.new-navbar .dropdown-item {
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  color: #2d3436;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.new-navbar .dropdown-item img,
.new-navbar .dropdown-item .material-icons {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.new-navbar .dropdown-item:hover {
  background-color: rgba(240, 80, 37, 0.08);
  color: var(--secondary-color, #f05025);
  padding-left: 2rem;
}

/* Megamenu Styling */
.new-navbar #marciNavItem.nav-item.dropdown {
  position: static;
}

.new-navbar .dropdown-menu.megamenu {
  position: absolute !important;
  width: 800px;
  max-width: 90vw;
  left: 50% !important;
  right: auto !important;
  top: 100% !important;
  transform: translateX(-50%) !important;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 0.5rem;
  inset: auto !important;
}

.new-navbar .megamenu-services {
  padding: 1rem 0;
}

.new-navbar .megamenu-services a.brand-logo-link {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem !important;
  text-decoration: none;
}

.new-navbar .megamenu-services a.brand-logo-link:hover {
  transform: scale(1.08);
  opacity: 1;
}

.new-navbar .megamenu-services img {
  border-radius: 6px;
  transition: all 0.3s ease;
  filter: grayscale(0.2);
}

.new-navbar .megamenu-services a.brand-logo-link:hover img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  filter: grayscale(0);
}

/* Mobile Responsive Styles */
@media (max-width: 991px) {
  .new-navbar {
    padding: 0.5rem 1rem;
  }

  .new-navbar .container-fluid {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .new-navbar .navbar-toggler {
    order: 1;
    margin-left: 0;
    margin-right: auto;
  }

  .new-navbar .navbar-collapse {
    order: 2;
    width: 100%;
    margin-top: 1.5rem;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 70vh;
    overflow-y: auto;
  }

  .new-navbar .navbar-nav {
    gap: 0.25rem;
    margin: 0 !important;
  }

  .new-navbar .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }

  .new-navbar .dropdown-menu {
    border: none;
    box-shadow: none;
    padding: 0.5rem 0 0.5rem 1rem;
    background: rgba(240, 80, 37, 0.03);
    border-radius: 8px;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .new-navbar .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 6px;
  }

  .new-navbar .dropdown-item:hover {
    padding-left: 1.5rem;
  }

  /* Megamenu Mobile Adjustments */
  .new-navbar .nav-item.dropdown {
    position: relative;
  }

  .new-navbar .dropdown-menu.megamenu {
    padding: 1rem;
    position: relative !important;
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    inset: auto !important;
  }

  .new-navbar .megamenu-services {
    padding: 0.5rem 0;
  }

  .new-navbar .megamenu-services a.brand-logo-link {
    margin-bottom: 0.5rem;
    padding: 0.25rem !important;
  }

  .new-navbar .megamenu-services a.brand-logo-link img {
    height: 50px !important;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
  .new-navbar .nav-link {
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
  }

  .new-navbar .megamenu-services a.brand-logo-link img {
    height: 55px !important;
  }
}

/* Small Mobile Screens */
@media (max-width: 575px) {
  .new-navbar {
    padding: 0.5rem 0.75rem;
  }

  .new-navbar .navbar-toggler {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .new-navbar .navbar-collapse {
    padding: 0.75rem;
  }

  .new-navbar .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
  }

  .new-navbar .dropdown-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .new-navbar .megamenu-services a.brand-logo-link {
    padding: 0.25rem !important;
  }

  .new-navbar .megamenu-services a.brand-logo-link img {
    height: 45px !important;
  }
}

/* Extra Small Screens */
@media (max-width: 375px) {
  .new-navbar .navbar-toggler b {
    font-size: 0.85rem;
  }

  .new-navbar .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 0.65rem;
  }

  .new-navbar .dropdown-item {
    font-size: 0.8rem;
  }
}

/* Desktop sidebar hidden state */
@media (min-width: 992px) {
  .sidebar-categories {
    transform: translateX(0);
    opacity: 1;
  }

  .sidebar-categories.hidden {
    transform: translateX(-100%);
    opacity: 0;
    width: 0;
    overflow: hidden;
  }

  .right-content-wrapper {
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

.sidebar-categories {
  width: 300px;
  background-color: #343a40;
  color: white;
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 50;
  overflow-y: auto;
  max-height: calc(100vh - 120px);
  
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.sidebar-categories::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

/* Sidebar hidden state for mobile */
@media (max-width: 991px) {
  .sidebar-categories {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    max-height: 100vh;
    transform: translateX(-100%);
    opacity: 0;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .sidebar-categories.active {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.sidebar-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.sidebar-categories a .material-icons {
  margin-right: 12px;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.sidebar-categories a > span:first-of-type {
  display: flex;
  align-items: center;
  flex: 1;
}

.sidebar-categories a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 30px;
}

/* Close button for mobile sidebar */
@media (max-width: 991px) {
  .sidebar-categories::before {
    content: '×';
    opacity: 0;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
  }

  .sidebar-categories::before:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .sidebar-categories ul {
    padding-top: 60px;
  }
}

.sidebar-categories .arrow-icon {
  font-size: 18px;
}

.right-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: static !important;
  margin: 0;
}

/* Hero Section */
.hero-section-wrapper {
  flex: 1;
  background-color: #f8f9fa;
  padding: 20px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.hero-slider-container {
  position: relative;
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-height: 450px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-text-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 40px;
  color: white;
  text-align: center;
}

.hero-text-content h3 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text-content p {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-cta-button {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 35px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.hero-cta-button:hover {
  background-color: #d04420;
  transform: translateY(-2px);
}

/* Bullet Points Navigation */
.slide-bullets {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  align-items: center;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bullet-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.3);
}

.bullet-dot.active {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(240, 80, 37, 0.5);
}

/* Old navigation - kept for backwards compatibility but hidden */
.slide-navigation {
  display: none;
}

/* Subcategories Section Styles */
.subcategories-section {
  background-color: #f8f9fa;
}

.subcategory-cards-wrapper {
  display: flex;
  gap: 15px;
  width: 100%;
  padding: 0 15px;
}

.subcategory-card {
  position: relative;
  height: 350px;
  flex: 1;
  min-width: 80px; /* Prevent cards from becoming too thin */
  overflow: hidden;
  border-radius: 16px;
  transition: flex 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.subcategory-card:hover {
  flex: 2;
}

.subcategory-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

.subcategory-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.subcategory-card:hover .subcategory-image {
  transform: scale(1.05);
}

.subcategory-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
  transition: background 0.6s ease;
}

.subcategory-card:hover .subcategory-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.subcategory-text {
  position: absolute;
  top: 25px;
  left: 25px;
  color: white;
  z-index: 10;
  transition: all 0.6s ease;
}

.subcategory-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.6s ease;
}

.subcategory-text p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.subcategory-card:hover .subcategory-text h3 {
  font-size: 24px;
  transform: translateY(-5px);
}

/* Recommended Products Section */
.recommended-product-slider {
  position: relative;
}

.recommended-product-slider .product-slider-item {
  margin-left: 0.8rem;
  margin-right: 0.8rem;
  display: flex;
  height: 100%;
}

.recommended-product-slider .product {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.recommended-product-slider .product-detail {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.recommended-product-slider .product-button {
  margin-top: auto;
}

.recommended-product-slider .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
}

.recommended-product-slider .owl-nav .owl-prev,
.recommended-product-slider .owl-nav .owl-next {
  position: absolute;
  background: white !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  pointer-events: all;
  transition: all 0.3s ease;
  color: #2d3436 !important;
  font-size: 24px !important;
}

.recommended-product-slider .owl-nav .owl-prev:hover,
.recommended-product-slider .owl-nav .owl-next:hover {
  background: var(--secondary-color) !important;
  color: white !important;
  transform: scale(1.1);
}

.recommended-product-slider .owl-nav .owl-prev {
  left: -25px;
}

.recommended-product-slider .owl-nav .owl-next {
  right: -25px;
}

/* Best Selling Section Styles */
.best-selling-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.best-selling-text {
  padding: 20px;
}

.best-selling-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  color: #2d3436;
  margin-bottom: 1.5rem;
}

.best-selling-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #636e72;
}

.best-selling-slider-wrapper {
  position: relative;
  padding: 0 0px;
}

.best-selling-slider .product-slider-item {
  margin: 0 10px;
  display: flex;
  height: 100%;
}

.best-selling-slider .product {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.best-selling-slider .product-detail {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.best-selling-slider .product-button {
  margin-top: auto;
}

.best-selling-slider .owl-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
}

.best-selling-slider .owl-nav .owl-prev,
.best-selling-slider .owl-nav .owl-next {
  position: absolute;
  background: white !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  pointer-events: all;
  transition: all 0.3s ease;
  color: #2d3436 !important;
  font-size: 24px !important;
}

.best-selling-slider .owl-nav .owl-prev:hover,
.best-selling-slider .owl-nav .owl-next:hover {
  background: var(--secondary-color) !important;
  color: white !important;
  transform: scale(1.1);
}

.best-selling-slider .owl-nav .owl-prev {
  left: -25px;
}

.best-selling-slider .owl-nav .owl-next {
  right: -25px;
}

.best-selling-slider .owl-dots {
  text-align: center;
  margin-top: 20px;
}

/* Responsive Media Queries */
@media (max-width: 1199px) {
  .best-selling-title {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  /* Grid layout for tablets - 2 rows of 3 cards */
  .subcategory-cards-wrapper {
    flex-wrap: wrap;
    gap: 12px;
  }

  .subcategory-card {
    flex: 1 1 calc(33.333% - 8px);
    min-height: 200px;
    height: 200px;
    min-width: 0; /* Allow cards to shrink on smaller screens */
  }

  .subcategory-card:hover {
    flex: 1 1 calc(33.333% - 8px);
  }
  
  /* Disable stepping animation on tablets - looks better with grid */
  .subcategory-card {
    flex: 1 1 calc(33.333% - 8px) !important;
  }
  
  .subcategory-text h3 {
    font-size: 17px;
  }

  .subcategory-text p {
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  .best-selling-title {
    font-size: 3rem;
    text-align: center;
  }

  .best-selling-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .best-selling-text {
    margin-bottom: 20px;
  }

  .best-selling-slider .owl-nav .owl-prev {
    left: 10px;
  }

  .best-selling-slider .owl-nav .owl-next {
    right: 10px;
  }

  .recommended-product-slider .owl-nav .owl-prev {
    left: 10px;
  }

  .recommended-product-slider .owl-nav .owl-next {
    right: 10px;
  }

  /* Adjust hero text for tablets */
  .hero-text-content h3 {
    font-size: 40px;
  }

  .hero-text-content p {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .main-content-wrapper {
    flex-direction: column;
  }

  .sidebar-categories {
    width: 100%;
  }

  .hero-slider-container {
    min-height: 500px;
  }

  .hero-slide {
    background-position: center center;
  }

  .hero-text-content {
    padding: 30px 20px;
    max-width: 100%;
  }

  .hero-text-content h3 {
    font-size: 32px;
  }

  .hero-text-content p {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Adjust bullet points for mobile */
  .slide-bullets {
    bottom: 15px;
    gap: 6px;
  }

  .bullet-dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  .bullet-dot.active {
    width: 20px;
  }

  /* Mobile landscape & small tablets: 3 cards per row */
  .subcategory-cards-wrapper {
    gap: 10px;
  }

  .subcategory-card {
    flex: 1 1 calc(33.333% - 7px) !important;
    height: 160px;
    min-height: 160px;
    min-width: 0;
  }

  .subcategory-card:hover {
    flex: 1 1 calc(33.333% - 7px) !important;
  }

  .subcategory-text {
    top: 12px;
    left: 12px;
  }

  .subcategory-text h3 {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .subcategory-text p {
    font-size: 11px;
  }

  .best-selling-title {
    font-size: 2.5rem;
  }

  .best-selling-subtitle {
    font-size: 0.9rem;
  }

  .best-selling-slider .owl-nav .owl-prev,
  .best-selling-slider .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    font-size: 20px !important;
  }

  .best-selling-slider .owl-nav .owl-prev {
    left: 5px;
  }

  .best-selling-slider .owl-nav .owl-next {
    right: 5px;
  }
}

@media (max-width: 575px) {
  /* Mobile portrait: 2 cards per row, showing all 6 in 3 rows */
  .subcategory-cards-wrapper {
    gap: 8px;
  }

  .subcategory-card {
    flex: 1 1 calc(50% - 4px) !important;
    height: 150px;
    min-height: 150px;
  }

  .subcategory-card:hover {
    flex: 1 1 calc(50% - 4px) !important;
  }

  .subcategory-text {
    top: 10px;
    left: 10px;
  }

  .subcategory-text h3 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .subcategory-text p {
    font-size: 10px;
  }

  .best-selling-title {
    font-size: 2rem;
  }

  /* Smaller hero text for small mobile */
  .hero-text-content h3 {
    font-size: 24px;
  }

  .hero-text-content p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-cta-button {
    padding: 10px 30px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  /* Extra small phones: Still 2 columns but slightly smaller */
  .subcategory-card {
    flex: 1 1 calc(50% - 4px) !important;
    height: 140px;
    min-height: 140px;
  }

  .subcategory-text h3 {
    font-size: 12px;
  }

  .subcategory-text p {
    font-size: 9px;
  }
}

@media (max-width: 767px) {
  .recommended-product-slider .owl-nav .owl-prev,
  .recommended-product-slider .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    font-size: 20px !important;
  }

  .recommended-product-slider .owl-nav .owl-prev {
    left: 5px;
  }

  .recommended-product-slider .owl-nav .owl-next {
    right: 5px;
  }
}
