@import url("https://fonts.googleapis.com/css2?family=Expletus+Sans:wght@400;500;600;700&display=swap");

/* ===== Premium Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal - elements start hidden, animate when visible */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(8) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Nav link hover underline animation */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #ff2600;
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* Button ripple effect */
.btn-add-main,
.btn-buy-now-large,
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-add-main::after,
.btn-buy-now-large::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-add-main:active::after,
.btn-buy-now-large:active::after {
  width: 300px;
  height: 300px;
}

/* Cart icon pulse when item added */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-pulse {
  animation: cartPulse 0.4s ease;
}

/* Smooth page transitions */
.section-p1 h2 {
  animation: fadeInUp 0.6s ease-out;
}

/* Footer social icons hover */
.social-icon {
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
}

body {
  font-family: "Expletus Sans", sans-serif;
  overflow-x: hidden;
}

#dummy,
h1 {
  font-size: 45px;
}

h1,
h2,
h4,
p {
  color: #000;
}

.w-80 {
  width: 80% !important;
}

.pt-20 {
  padding-top: 20px !important;
}

.pointer {
  cursor: pointer !important;
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container {
  position: sticky;
  top: 0;
  z-index: 2000;
}

.margin-top {
  margin-top: 20px;
}

/* Color Selection Swatches */
.color-selection {
  margin-bottom: 25px;
}

.color-selection label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
  font-size: 15px;
}

#selected-color-name {
  font-weight: 500;
  color: #666;
  margin-left: 5px;
}

.swatch-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatch-item {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #e1e1e1;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 3px;
  background-clip: content-box;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.swatch-item:hover {
  transform: translateY(-2px);
  border-color: #ccc;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.swatch-item.active {
  border-color: #000;
  box-shadow:
    0 0 0 2px #fff inset,
    0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Custom Select (for other dropdowns if needed) */
.custom-select {
  position: relative;
}

#custom-select {
  position: relative;
}

#custom-select select {
  display: none;
}

.select-selected {
  background-color: #111;
}

.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

.select-items div,
.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

.select-items {
  position: absolute;
  background-color: #111;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

.select-hide {
  display: none;
}

.select-items div:hover,
.same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

#close,
#mobile {
  display: none;
}

#cart-icon,
#navbar,
#navbar .icon-cart,
#navbar li,
.section-p1 .pro,
.icon-cart,
.search-wrapper {
  position: relative;
}

.cart-tab {
  width: 400px;
  background-color: #fff;
  color: #1a1a1a;
  position: fixed;
  inset: 0 -400px 0 auto;
  display: grid;
  grid-template-rows: 70px 1fr 70px;
  transition: 0.5s;
  z-index: 2100;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.cart-tab h2 {
  padding: 20px;
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
  border-bottom: 1px solid #eee;
}

.cart-tab .list-cart {
  overflow-y: auto;
  padding: 10px;
}

.cart-tab .list-cart::-webkit-scrollbar {
  width: 0;
}

.cart-tab .btn {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #eee;
}

.cart-tab .btn button {
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.cart-tab .btn .close {
  background-color: #f8f8f8;
  color: #333;
  padding: 20px;
}

.cart-tab .btn .close:hover {
  background-color: #eee;
}

.cart-tab .btn .check-out {
  background-color: #ff2600;
  color: #fff;
}

.cart-tab .btn .check-out:hover {
  background-color: #d11f00;
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2500;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cart-overlay.active {
  display: block;
  opacity: 1;
}

#cart table tbody tr td,
footer .follow i {
  padding-top: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#dummy {
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 200px;
}

#header,
#navbar {
  display: flex;
  align-items: center;
}

marquee {
  color: #fff;
  padding: 10px;
  display: block;
}

h1 {
  line-height: 50px;
}

h2 {
  font-size: 40px;
  line-height: 48px;
}

h4 {
  font-size: 20px;
}

h6 {
  font-weight: 700;
  font-size: 12px;
}

#navbar li a,
p {
  font-size: 16px;
}

p {
  margin: 15px 0 20px;
}

.section-p2 {
  padding: 10px 40px;
}

.section-m1 {
  margin: 40px 0;
}

.image-box {
  flex: 1 1 33.33%;
  display: block;
}

.image-box img {
  width: 100%;
  height: auto;
  display: block;
}

button.normal {
  font-weight: 600;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  border: none;
}

.cart-tab .btn button,
.list-cart .quantity span,
button.filter-btn {
  background-color: #fff;
  cursor: pointer;
}

button.filter-btn {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 15px;
  margin: 0 auto;
  color: white;
  background-color: red;
  border-radius: 4px;
  border: none;
  outline: 0;
  transition: 0.2s;
}

.cart-tab .list-cart .item img,
body {
  width: 100%;
}

.logo {
  max-height: 70px;
  width: auto;
}

.fa-cart-shopping {
  color: #1a1a1a;
  cursor: pointer;
}

#header {
  justify-content: space-between;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  position: sticky;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  background: #fff; /* White background as requested */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #f0f0f0; /* Add subtle border for white-on-white */
}

#header,
.section-p1 {
  padding: 20px 150px;
}

.logo-container {
  position: relative;
  z-index: 1001;
  transform: none !important;
}

.logo {
  max-height: 70px;
  width: auto;
  height: 60px;
  object-fit: contain;
  transform: scale(0.8);
  transform-origin: left center;
}

#navbar {
  justify-content: flex-end;
  flex: 1;
  transition: 0.3s;
  display: flex;
  align-items: center;
}

#navbar li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}

#navbar li a {
  float: right;
  text-decoration: none;
  font-weight: 600px;
  color: #1a1a1a;
  transition: 0.3s;
  font-size: 16px;
}

#navbar li a.active,
#navbar li a:hover {
  color: red;
}

#navbar .user-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  text-decoration: none;
}

#navbar .user-icon-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ff2700;
  transform: scale(1.1);
}

#navbar .user-icon-link #user-icon {
  color: #1a1a1a;
  transition: color 0.3s ease;
}

#navbar .user-icon-link:hover #user-icon {
  color: #ff2600;
}

.fa-cart-shopping {
  color: #1a1a1a;
  cursor: pointer;
}

#cart-icon-d {
  cursor: pointer;
  padding: 10px;
}

#cart-count,
#navbar .icon-cart span {
  position: absolute;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  color: #fff;
  background-color: red;
  justify-content: center;
  align-items: center;
  top: 50%;
  right: 10px;
  font-size: 12px;
}

#cart-count {
  top: -5px;
  right: -5px;
}

.search-wrapper {
  max-width: 400px;
  margin: 20px auto;
  position: relative;
}

#header input {
  margin-left: 10px;
  padding: 6px 10px 6px 10px;
  border: none;
  font-size: 17px;
}

/* Update Search Bar to Pill Shape */
.search-wrapper-new {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 11px 48px 11px 20px;
  font-size: 0.95rem;
  border: 2px solid #e2e8f0;
  border-radius: 30px; /* Pill shape */
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
  border-color: #ff2600;
  box-shadow: 0 0 0 3px rgba(255, 38, 0, 0.08);
}

#product-results {
  position: absolute;
  top: 90%;
  left: 0;
  right: 0;
  z-index: 1000;
  border: 1px solid #ddd;
  border-top: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  padding: 10px;
  gap: 1rem;
}

/* Search Result Items Styling */
.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.search-result-item:hover {
  background-color: #f8f9fa;
  border-color: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-result-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 12px;
  border: 1px solid #e9ecef;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-weight: 600;
  font-size: 15px;
  color: #d95a1a;
}

/* Responsive Search Results */
@media (max-width: 768px) {
  .search-result-item {
    padding: 10px;
  }

  .search-result-item img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
  }

  .search-result-name {
    font-size: 13px;
  }

  .search-result-price {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .search-result-item {
    padding: 8px;
  }

  .search-result-item img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }

  .search-result-name {
    font-size: 12px;
  }

  .search-result-price {
    font-size: 13px;
  }
}

.product-card {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #fff;
  padding: 10px;
  gap: 1rem;
}

.product-card img {
  object-fit: contain;
  width: 80px;
  height: auto;
  border-radius: 6px;
}

.product-details {
  flex: 1;
}

.product-details h3 {
  margin: 0;
  font-size: 1rem;
}

.product-details p {
  margin: 2px 0;
  font-size: 0.9rem;
}

#close,
#mobile {
  display: none;
}

#mobile {
  align-items: center;
}

@media (max-width: 1024px) {
  #header,
  .section-p1 {
    padding: 15px 20px;
  }

  #header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: sticky;
  }

  .logo-container {
    max-width: 180px;
  }

  .logo {
    width: 100px;
    height: auto;
    transform: scale(1);
  }

  .search-wrapper {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0 20px;
    flex: 1;
    max-width: 600px;
    z-index: 998;
  }

  #header input {
    margin-left: 0;
    padding: 10px 15px;
    font-size: 16px;
    width: 100%;
  }

  #search-input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
  }

  #product-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 997;
  }

  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #000;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.1);
    padding: 80px 0 0 10px;
    z-index: 999;
    transition: right 0.3s ease-in-out;
  }

  #navbar.active {
    right: 0;
  }

  #navbar li {
    margin-bottom: 25px;
    margin-left: 25px;
    padding: 0;
  }

  #navbar li a {
    float: none;
    text-align: left;
    display: block;
    padding: 0;
    font-size: 16px;
    color: #fff;
  }

  #navbar li a:hover,
  #navbar li a.active {
    color: red;
  }

  #navbar li a::after {
    display: none;
  }

  #navbar .user-icon-link {
    padding: 0;
    font-size: 20px;
    margin-bottom: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    display: inline-block;
  }

  #navbar .user-icon-link:hover {
    background: transparent;
    transform: none;
    color: red;
  }

  #navbar .user-icon-link #user-icon {
    color: inherit;
  }

  #mobile {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  #mobile i {
    color: red;
    font-size: 24px;
    padding-left: 20px;
  }

  #close {
    display: block;
    position: absolute;
    top: 30px;
    left: 30px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
  }

  #cart-count {
    display: none !important;
  }
}

/* Mobile Bottom Navigation Styles */
.mobile-bottom-nav {
  display: none; /* Hidden on desktop */
}

@media (max-width: 1024px) {
  /* Hide top actions on mobile */
  .desktop-actions {
    display: none !important;
  }

  /* Fixed Bottom Navigation */
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 1050;
  }

  .mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4a5568;
    font-size: 12px;
    transition: color 0.3s ease;
  }

  .mobile-bottom-nav .nav-item:hover,
  .mobile-bottom-nav .nav-item.active {
    color: #ff2600;
  }

  .mobile-bottom-nav .icon-wrapper {
    position: relative;
    font-size: 22px;
    margin-bottom: 4px;
    color: inherit;
  }

  .mobile-bottom-nav .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff2600;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 5px;
    min-width: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #header,
  .section-p1 {
    padding: 10px 15px;
  }

  .logo {
    width: 80px;
  }

  .logo-container {
    max-width: 50px;
  }

  .search-wrapper {
    position: absolute;
    left: 15px;
    right: 15px;
    margin: 0;
    max-width: none;
  }

  #navbar {
    width: 240px;
  }

  #navbar .icon-cart span {
    top: -205px;
    right: 30px;
  }
}

/* Cart Sidebar CSS */
.cart-sidebar {
  position: fixed;
  right: -100%;
  transition: 0.3s;
  z-index: 9999;
}
.cart-sidebar.active {
  right: 0;
}

@media (min-width: 1025px) {
  .mobile-only {
    display: none;
  }

  #mobile {
    display: none;
  }

  #close {
    display: none;
  }

  #navbar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    right: 0;
    width: auto;
    height: auto;
    background-color: transparent;
    padding: 0;
    position: relative;
    box-shadow: none;
  }
}

@media (max-width: 1024px) {
  .mobile-only {
    display: block;
  }
}

marquee {
  color: #fff;
  padding: 10px;
  display: block;
}

/* #navbar li a.active,
#navbar li a:hover,
#navbar .user-icon-link:hover,
.breadcrumbs-container a:hover,
.contact-link:hover, */
/* Legacy footer hover rules removed */

/* #navbar li a.active::after,
#navbar li a:hover::after {
	content: "";
	width: 30%;
	height: 2px;
	background: #ff2600;
	position: absolute;
	bottom: -4px;
	left: 20px
} */

#navbar .user-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
}

#navbar .user-icon-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ff2700;
  transform: scale(1.1);
}

#navbar .user-icon-link #user-icon {
  color: #fff;
  transition: color 0.3s ease;
}

#navbar .user-icon-link:hover #user-icon {
  color: #ff2600;
}

#mobile {
  align-items: center;
}

.breadcrumbs-container {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
  color: #888;
}

.breadcrumbs-container a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumbs-container a:hover {
  color: #000;
}

.breadcrumbs-container span:last-child {
  color: #000;
  font-weight: 600;
}

.breadcrumbs-symbol {
  font-size: 12px;
  color: #ccc;
  font-weight: 300;
  user-select: none;
}

.cat-img {
  max-height: 96px; /* Increased from 80px by 20% */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease-in-out;
}

#category h2 {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#category .cat-box {
  width: 180px;
  text-align: center;
  padding: 15px 10px;
  border: none;
  border-radius: 0;
  margin: 15px 0;
  backface-visibility: hidden;
}
#category .cat-box a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#category .cat-box:hover {
  transform: scale(1.1);
}

#categoryContainer {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  width: max-content !important;
  gap: 20px !important;
  padding: 10px 0;
  transition: transform 0.3s ease;
}

/* Category Card Fix for Slider */
#category .cat-box {
  flex-shrink: 0;
}

/* Generic Slider System */
.slider-container {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.pro-container-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.pro-container-wrapper.is-swiping {
  scroll-behavior: auto !important;
}

.pro-container-wrapper::-webkit-scrollbar {
  display: none;
}

.pro-container {
  /* Default product grids should not be forced into slider mode.
     Slider-only styles are scoped below to `.pro-container-wrapper .pro-container`. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  align-items: start;
}

.pro-container-wrapper .pro-container {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 20px;
  padding: 20px 0;
}

/* Features and Category slider containers */
.pro-container-wrapper.features-wrapper,
.pro-container-wrapper.category-wrapper {
  scroll-snap-type: x mandatory;
}

.pro-container-wrapper.features-wrapper .features-container,
.pro-container-wrapper.category-wrapper #categoryContainer {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 20px;
  padding: 20px 0;
}

/* Ensure centering if not overflowing */
.pro-container-wrapper:not(.is-overflowing) .pro-container,
.pro-container-wrapper:not(.is-overflowing) #categoryContainer {
  justify-content: center !important;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  color: #333;
}

.slider-btn:hover {
  background: #ff2600;
  color: #fff;
  border-color: #ff2600;
  box-shadow: 0 6px 20px rgba(255, 38, 0, 0.3);
}

.slider-btn.prev {
  left: -22px;
}

.slider-btn.next {
  right: -22px;
}

.slider-btn.hidden {
  display: none;
}

@media (max-width: 768px) {
  .slider-btn {
    display: none; /* Touch swiping is preferred on mobile */
  }
}

/* --- CONSOLIDATED RESPONSIVENESS --- */
@media (max-width: 1024px) {
  #header,
  .section-p1 {
    padding: 15px 20px !important;
  }

  .logo-container {
    max-width: 160px;
  }

  .logo {
    width: 120px;
    height: auto;
    transform: scale(1);
  }

  .search-wrapper-new {
    display: none; /* Hidden on mobile header, usually moved to a sticky or toggle */
  }

  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 280px;
    background-color: #ffffff !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding: 80px 0 0 30px;
    z-index: 2000;
    transition: 0.3s ease-in-out;
  }

  #navbar.active {
    right: 0;
  }

  #navbar li {
    margin-bottom: 20px;
    margin-left: 0;
  }

  #navbar li a {
    color: #1a1a1a !important;
    font-size: 18px;
    font-weight: 600;
  }

  #mobile {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
  }

  #mobile i {
    color: #1a1a1a;
    font-size: 24px;
  }

  #close {
    display: block;
    position: absolute;
    top: 30px;
    right: 30px;
    color: #1a1a1a;
    font-size: 28px;
    cursor: pointer;
  }

  /* Hero Section Refinement */
  .hero-grid-section {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 20px !important;
  }

  .hero-main {
    height: 400px; /* Increased Tablet height from 250px */
  }

  .hero-main .slide-img .main-img {
    object-fit: contain !important; /* Prevent cropping on tablets */
  }

  .hero-side {
    flex-direction: row;
    gap: 20px;
  }

  .side-banner {
    flex: 1;
    height: 250px; /* Increased Tablet height from 200px */
  }

  .side-banner .main-img {
    object-fit: contain !important; /* Prevent cropping on tablets */
  }

  /* Features Section */
  .features-section {
    margin: 20px !important;
    padding: 20px !important;
    max-width: none !important;
  }
}

@media (max-width: 768px) {
  .hero-main {
    height: 350px !important; 
  }

  .hero-main .slide-img .main-img {
    object-fit: contain !important; 
  }

  .hero-grid-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-top: 20px !important; 
  }

  .side-banner .main-img {
    object-fit: contain !important; 
  }
}

@media (max-width: 480px) {
  .hero-main {
    height: 280px !important;  
  }

  .hero-main .slide-img .main-img {
    object-fit: contain !important; 
  }

  .hero-grid-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .slide-img {
    border-radius: 12px;
  }

  .side-banner {
    height: 180px; /* Increased from 140px */
  }

  .side-banner .main-img {
    object-fit: contain !important; /* Prevent cropping on small mobile */
  }
}

  .hero-side {
    flex-direction: column; /* Stack side banners on smaller screens */
  }

  .side-banner {
    height: 180px;
  }

  .features-section {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 15px !important;
    padding: 20px !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid #eee !important;
    border-bottom: 1px solid #eee !important;
  }

  .features-section::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    min-width: 250px !important;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
  }

  .section-p1 .pro {
    width: 240px; /* Slightly smaller on tablets */
  }
}

@media (max-width: 480px) {
  .logo {
    width: 100px;
  }

  .hero-main {
    height: 180px; /* Consistent with the 480px rule above */
  }

  #navbar {
    width: 250px;
  }

  .section-p1 {
    padding: 30px 15px !important;
  }

  .slider-container {
    padding: 0 10px;
  }

  .slider-btn {
    display: none; /* Hide slider arrows on mobile */
  }

  .section-p1 .pro {
    width: 200px; /* Fit 2 comfortably with hint */
    padding: 10px;
  }

  .section-p1 .pro img {
    height: 180px;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  #category .cat-box {
    width: 120px; /* Fixed width for slider on mobile */
  }
}
@media (max-width: 768px) {
  #category .cat-box {
    width: 140px;
    padding: 10px 8px;
  }

  .cat-img {
    max-height: 76px; /* Scaled down for mobile but still larger than original */
  }
}

@media (max-width: 480px) {
  #category .cat-box {
    width: 120px;
    padding: 8px 6px;
  }

  .cat-img {
    max-height: 68px; /* Further scaled for small mobile */
  }

  #categoryContainer {
    gap: 10px !important;
  }
}

.search-wrapper {
  max-width: 400px;
  margin: 20px auto;
}

#search-input {
  width: 200%;
  padding: 10px;
  font-size: 1rem;
  border: 2px solid #ccc;
}

#product-results {
  position: absolute;
  top: 90%;
  left: 100px;
  right: -500px;
  z-index: 1000;
  border: 1px solid #ddd;
  border-top: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
}

.product-card {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

footer {
  background-color: #000;
}

.product-card img {
  object-fit: contain;
  width: 80px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.product-details {
  flex: 1;
}

.product-details h3 {
  margin: 0;
  font-size: 1rem;
}

.product-details p {
  margin: 2px 0;
  font-size: 0.9rem;
}

.section-p1 {
  text-align: center;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.pro-container-wrapper {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.pro-container-wrapper::-webkit-scrollbar {
  display: none;
}

.pro-container-wrapper .cat-box,
.pro-container-wrapper .pro {
  scroll-snap-align: start;
}

.section-p1 .pro-container {
  display: flex !important;
  justify-content: flex-start !important;
  padding: 20px 0;
  gap: 20px;
  width: max-content;
}

.section-p1 .pro {
  width: 280px; /* Base width for 5 in row on large screens */
  background: #ffffff; /* White background as requested */
  padding: 15px;
  border: 1px solid #e1e1e1; /* Subtle border to define against white page */
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  color: #222; /* Dark text for readability */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Light shadow */
}

.section-p1 .pro:hover {
  transform: translateY(-10px);
  border-color: #ff2600; /* Red highlight instead of green */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.section-p1 .pro .badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #ff2600; /* Red badge */
  color: #fff; /* White text looks better on red */
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 5;
}

.section-p1 .pro img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  background: #f8f9fa; /* Light gray inner card background */
  border-radius: 15px;
  padding: 20px;
  transition: 0.3s;
}

/* Interaction Icons */
.pro-icons {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(10px);
  transition: 0.3s;
}

.pro:hover .pro-icons {
  opacity: 1;
  transform: translateX(0);
}

.pro-icons i {
  width: 35px;
  height: 35px;
  background: rgba(0, 0, 0, 0.05); /* Darker background for light theme */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: #555; /* Dark icons */
  transition: 0.2s;
}

.pro-icons i:hover {
  background: #ff2600; /* Red on hover */
  color: #fff;
}

.section-p1 .pro .des {
  padding-top: 15px;
}

.section-p1 .pro .des span.brand {
  color: #ff2600; /* Red brand text */
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-p1 .pro .des h5 {
  font-size: 14px;
  margin: 8px 0;
  color: #1a1a1a;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.price-row .price {
  font-size: 18px;
  font-weight: 700;
  color: #ff2600; /* Red price */
}

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #ff2600; /* Red buttons */
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 18px;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn.prev {
  left: 0;
}
.slider-btn.next {
  right: 0;
}

.slider-btn:hover {
  background: #fff;
  color: red;
  transform: translateY(-50%) scale(1.1);
}

#navbar .icon-cart span {
  background-color: red;
  justify-content: center;
  align-items: center;
  top: 50%;
  right: 10px;
}

#cart-icon {
  cursor: pointer;
  padding: 10px;
}

#cart {
  overflow-x: auto;
}

#cart-count {
  top: -5px;
  right: -5px;
  background: red;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}

/* --- NEW MINIMALIST SIDE CART --- */
.cart-tab {
  width: 420px;
  height: 100%;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  right: -420px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.1);
}

body.show-cart .cart-tab {
  transform: translateX(-420px);
}

.cart-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f2f2f2;
  flex-shrink: 0;
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.close-cart-icon {
  font-size: 18px;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
  padding: 5px;
}

.close-cart-icon:hover {
  color: #1a1a1a;
  transform: rotate(90deg);
}

.list-cart {
  flex: 1;
  overflow-y: auto;
  padding: 10px 25px;
  scrollbar-gutter: stable;
}

/* Custom Scrollbar for list-cart */
.list-cart::-webkit-scrollbar {
  width: 5px;
}
.list-cart::-webkit-scrollbar-track {
  background: transparent;
}
.list-cart::-webkit-scrollbar-thumb {
  background: #eee;
  border-radius: 10px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #f8f8f8;
  position: relative;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  background: #fafafa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
}

.cart-item-image img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 20px;
}

.cart-item-variant {
  font-size: 11px;
  color: #999;
  margin-bottom: 5px;
  font-weight: 500;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 1px;
}

.cart-item-qty button {
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-qty button:hover {
  background: #e0e0e0;
  border-radius: 4px;
  color: #000;
}

.cart-item-qty span {
  font-size: 12px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
}

.remove-item-btn {
  position: absolute;
  top: 15px;
  right: 0;
  background: transparent;
  border: none;
  color: #ccc;
  cursor: pointer;
  font-size: 12px;
  transition: color 0.2s;
  padding: 5px;
}

.remove-item-btn:hover {
  color: #ff2600;
}

.cart-footer {
  padding: 20px 25px 30px;
  background: #fff;
  border-top: 1px solid #f2f2f2;
  flex-shrink: 0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.02);
}

.subtotal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.subtotal-container span:first-child {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subtotal-container .total-amount {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
}

.cart-actions button {
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn {
  background: #000 !important;
  color: #fff !important;
}

.close-btn:hover {
  background: #333 !important;
  color: #fff !important;
}

.checkout-btn {
  background: #ff2600 !important;
  color: #fff !important;
}

.checkout-btn:hover {
  background: #e62200 !important;
  transform: translateY(-1px);
}

/* Mobile & Tablet adjustments */
@media (max-width: 768px) {
  .cart-tab {
    width: 100% !important;
    right: -100% !important;
  }
  body.show-cart .cart-tab {
    transform: translateX(-100%) !important;
  }
}

#cart table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  white-space: nowrap;
}

#cart table img {
  width: 70px;
}

#cart table td:first-child {
  width: 100px;
  text-align: center;
}

#cart table td:nth-child(2),
#cart table td:nth-child(4),
#cart table td:nth-child(5),
#cart table td:nth-child(6) {
  width: 150px;
  text-align: center;
}

#cart table td:nth-child(3) {
  width: 300px;
  text-align: center;
}

#cart table td:nth-child(5) input {
  width: 70px;
  padding: 10px 5px 10px 15px;
}

#cart table thead {
  border: 1px solid #000;
  border-left: none;
  border-right: none;
}

#cart table thead td {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  padding: 18px 0;
}

#cart table tbody td,
footer h4 {
  font-size: 14px;
}

#cart-add {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
}

#coupon {
  width: 50%;
  margin-bottom: 30px;
}

#coupon h3 {
  padding-bottom: 15px;
}

#coupon input {
  padding: 10px 20px;
  outline: none;
  width: 60%;
  margin-right: 10px;
  border: 1px solid black;
}

#cart-total {
  margin-top: 20px;
  width: 100%;
  font-weight: 700;
}

#pay-now-btn {
  padding-right: 20px;
}

#pay-now-btn button {
  margin-top: 10px;
}

#cart table .remove-item i {
  color: red;
  font-size: 25px;
}

#cart table td .item-subtotal {
  background-color: red;
}

/* --- NEW FOOTER STYLES --- */
.footer-section {
  /* Add a fallback solid color before the gradient */
  background-color: #1a1a1a;

  /* Ensure the image doesn't tile if it's smaller than the container */
  background-repeat: no-repeat;

  /* Keep center alignment for both axes to handle different aspect ratios */
  background-position: center center;

  /* Existing properties */
  background-image: url("/img/footer-bg.png");
  background-size: cover;
  color: #fff;
  padding: 80px 150px 40px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-logo {
  max-width: 180px;
  height: auto;
}

.footer-title {
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 5px;
}

.store-info {
  margin-bottom: 25px;
}

.store-info p {
  color: #cbd5e0;
  font-size: 14px;
  margin: 0 0 10px;
  line-height: 1.6;
}

.social-title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin: 25px 0 15px;
  letter-spacing: 0.5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  background: #fff;
  color: #1a202c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
}

.social-icon:hover {
  background: #ff2700;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #a0aec0;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 1024px) {
  .footer-section {
    padding: 60px 40px 30px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-col {
    min-width: 100%;
  }
}
/* --- END NEW FOOTER STYLES --- */

/* Legacy footer rules removed */

.feature-products {
  display: flex;
  flex-direction: row;
  justify-content: center;
  max-width: 200px;
  padding: 15px;
  gap: 20px;
}

.noUi-connect {
  background: #f00505;
}

.noUi-handle {
  background: #000;
  border: 2px solid #fff;
  box-shadow: none;
}

.noUi-target {
  background: #000;
  border-radius: 10px;
  height: 8px;
}

.noUi-handle:focus,
.noUi-handle:hover {
  background: #494949;
}

.noUi-tooltip {
  display: none;
  background: #000;
  color: #fff;
  border: none;
  font-size: 12px;
}

.cart-total-display {
  margin-bottom: 20px;
  margin-top: 20px;
  padding: 10px;
  background-color: #f1f1f1;
  border: 1px solid #000;
}

.bill-container {
  margin: 50px auto;
  position: relative;
  max-width: 700px;
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.bill-container h2 {
  font-weight: 600;
  text-align: center;
}

.form .input-box {
  width: 100%;
  margin-top: 20px;
}

.input-box label {
  color: #000;
}

.form :where(.input-box input, .select-box) {
  position: relative;
  height: 50px;
  width: 100%;
  outline: 0;
  font-size: 1rem;
  color: #000;
  margin-top: 8px;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 0 15px;
}

.form button,
.select-box select {
  font-size: 1rem;
  border: none;
  width: 100%;
}

.input-box input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.form .column {
  display: flex;
  column-gap: 15px;
}

.gender-box h3 {
  color: #000;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.form :where(.gender-option, .gender) {
  display: flex;
  align-items: center;
  column-gap: 50px;
  flex-wrap: wrap;
}

.form :where(.gender input, .gender label) {
  cursor: pointer;
}

.address :where(input, .select-box) {
  margin-top: 15px;
}

.select-box select {
  height: 100%;
  outline: 0;
  color: #000;
}

.form button {
  height: 55px;
  color: #fff;
  font-weight: 400;
  cursor: pointer;
  transition: 0.2s;
  background: #000;
}

.form button:hover {
  background: rgba(255, 0, 0, 0.892);
  color: #000;
}

.contact-link {
  text-decoration: none;
  color: #000;
  font-weight: 700;
}

/* --- New Premium Product Page Styles --- */
.product-main-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  align-items: flex-start;
}

.product-gallery {
  display: flex;
  gap: 15px;
  width: 60%;
}

.thumbnail-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100px;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.thumbnail-list::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.thumbnail-list {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.thumbnail-item {
  width: 100%;
  aspect-ratio: 1/1;
  border: 1.5px solid #eee;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  object-fit: contain;
  background: #fff;
  padding: 5px;
}

.thumbnail-item:hover,
.thumbnail-item.active {
  border-color: #ff2600;
  box-shadow: 0 4px 15px rgba(255, 38, 0, 0.1);
  transform: translateY(-2px);
}

.main-image-wrapper {
  flex: 1;
  border: 1.5px solid #eee;
  border-radius: 15px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.main-image-wrapper img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-info-section {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: flex-start;
}

.product-info-section h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0;
  color: #111;
  line-height: 1.2;
}

.product-specs-brief {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  text-align: left;
}

.product-specs-brief li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px !important;
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
  padding-bottom: 0 !important;
}

.product-specs-brief li::before {
  content: "\f058";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #ff2600;
  font-size: 1.1rem;
}

.price-container {
  padding: 20px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.current-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ff2600;
}

.old-price {
  font-size: 1.4rem;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.quantity-buy-wrapper {
  display: flex;
  gap: 15px;
}

.quantity-buy-wrapper input {
  width: 70px !important;
  height: 55px !important;
  border-radius: 10px !important;
  border: 1.5px solid #eee !important;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem !important;
  margin-right: 0 !important;
}

.btn-premium {
  flex: 1;
  padding: 18px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-add-cart {
  background: #ff2600;
  color: #fff;
}

.btn-add-cart:hover {
  background: #e62200;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 38, 0, 0.25);
}

.btn-buy-now {
  background: #111;
  color: #fff;
  width: 100%;
}

.btn-buy-now:hover {
  background: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.color-selection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-selection label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
}

.color-selection select {
  padding: 12px 15px !important;
  border-radius: 10px !important;
  border: 1.5px solid #eee !important;
  font-weight: 600;
  cursor: pointer;
}

/* Modern Tabs Styling */
.modern-tabs {
  border-bottom: 2px solid #f0f0f0;
  margin-top: 50px;
  display: flex;
  gap: 40px;
}

.modern-tab-btn {
  padding: 15px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.modern-tab-btn:hover {
  color: #111;
}

.modern-tab-btn.active {
  color: #111;
}

.modern-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff2600;
  border-radius: 5px;
}

/* Tab Content Visibility */
.tab-content {
  display: none;
  padding: 30px 0;
  animation: fadeIn 0.4s ease;
}

.tab-content.active {
  display: block !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#desc-img {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

#desc-img img {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

.stock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  gap: 10px;
}

.stock p {
  margin: 0;
  font-weight: 600;
}

.stock h4 {
  padding: none;
}

.category-page .mb-5 {
  margin-bottom: 15px;
}

.category-page section.heading {
  width: 100%;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding: 20px 0 10px 0;
  font-size: 28px;
}

.category-page .stock-status {
  color: red;
  font-size: 15px;
  font-weight: 700;
}

.category-page .feature-products {
  display: flex;
  gap: 30px;
  position: relative;
}

.category-page section.filter-section {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 20px;
  height: -webkit-fill-available;
}

.category-page .section-p1 {
  flex: 1;
  min-width: 0;
}

.category-page .pro-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 25px;
  padding-top: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Responsive adjustments for 2-row, 5-column layout */
@media (max-width: 1024px) {
  .category-page .pro-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
  }
}

@media (max-width: 768px) {
  .category-page .pro-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .category-page .pro-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    gap: 15px;
  }
}

/* Ensure product cards follow the grid layout */
.category-page .pro-container .pro {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: none !important;
  display: block !important;
}

/* Override section-p1 pro styles for category page */
.category-page .section-p1 .pro {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: none !important;
  display: block !important;
}

.category-page .pro-container:only-child .pro,
.category-page .pro-container .pro:only-child,
.category-page .pro-container .pro:nth-child(-n + 2):last-child:nth-child(odd),
.category-page
  .pro-container
  .pro:nth-child(-n + 2):last-child:nth-child(odd)
  ~ .pro {
  /* grid-column: 1 / -1;
  max-width: 400px;
  margin: 0 auto;
  width: 100%; */
  justify-self: center;
}

.category-page .filter-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.category-page .filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.category-page .filter-group h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-page .filter-group h4 i {
  color: #ff0000;
  font-size: 14px;
  width: 16px;
}

.category-page .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-page .checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: color 0.2s ease;
  position: relative;
  padding-left: 25px;
}

.category-page .checkbox-label:hover {
  color: #ff0000;
}

.category-page .checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.category-page .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #f8f9fa;
  border: 2px solid #ddd;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.category-page .checkbox-label:hover input ~ .checkmark {
  border-color: #ff0000;
}

.category-page .checkbox-label input:checked ~ .checkmark {
  background-color: #ff0000;
  border-color: #ff0000;
}

.category-page .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.category-page .checkbox-label input:checked ~ .checkmark:after {
  display: block;
}

.category-page .filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.category-page .filter-actions button {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.category-page .filter-actions button.normal {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.category-page .filter-actions button.normal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.category-page .filter-actions button.secondary {
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e9ecef;
}

.category-page .filter-actions button.secondary:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.category-page #price-display {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-top: 10px;
}

.category-page .pro-pagination {
  text-align: center;
  margin: 30px auto;
}

.category-page .page-numbers {
  display: flex;
  flex-direction: row;
  list-style: none;
  justify-content: center;
  gap: 5px;
}

.category-page .page-btn {
  padding: 10px 15px;
  background-color: #fff;
  border: white;
  margin-bottom: 6px;
  font-weight: 700;
}

.category-page .pro .des h5 {
  color: #1a202c !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  line-height: 1.4;
  height: 44px;
  overflow: hidden;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.category-page .pro .star {
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
  align-items: center;
}

.category-page .pro .star i {
  font-size: 11px;
  color: #fbbf24;
}

.category-page .pro .star .review-count {
  color: rgba(229, 231, 235, 0.6);
  font-size: 11px;
  margin-left: 5px;
}

.category-page .pro h4 {
  font-size: 18px !important;
  color: #1a202c !important;
  font-weight: 700 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-page .pro .old-price {
  color: #a0aec0 !important;
  text-decoration: line-through !important;
  font-size: 14px !important;
  font-weight: 500;
}

.category-page .pro .stock-status {
  font-size: 11px !important;
  margin-top: 10px !important;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #f7fafc;
  color: #ff0000 !important;
  font-weight: 600;
}

/* Badges */
.category-page .badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.category-page .badge-discount {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

.category-page .badge-out {
  background: #4a5568;
  color: #fff;
  left: auto;
  right: 15px;
}

/* Pagination Style */
.category-page .pro-pagination .page-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  margin: 0 3px;
  transition: all 0.2s;
  cursor: pointer;
}

.category-page .pro-pagination .page-btn:hover:not(.current):not(:disabled) {
  border-color: #ff0000;
  color: #ff0000;
}

.category-page .pro-pagination .page-btn.current {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

@media (max-width: 1400px) {
  .category-page .feature-products.section-p1 {
    padding: 30px 40px;
  }
}

@media (max-width: 992px) {
  .category-page .feature-products.section-p1 {
    flex-direction: column;
    padding: 20px;
  }
  .category-page .filter-section {
    width: 100%;
    min-width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 2000;
    transition: all 0.3s ease;
    border-radius: 0;
  }
  .category-page .filter-section.show {
    left: 0;
  }
  .category-page .pro-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .category-page .pro-container {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(5, auto) !important;
  }
}

@media (max-width: 1200px) {
  .category-page .pro-container {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
  }

  .category-page section.filter-section {
    min-width: 280px;
    max-width: 280px;
  }
}

@media (max-width: 1025px) {
  .category-page .feature-products {
    flex-direction: column;
    gap: 20px;
  }

  .category-page section.filter-section {
    position: relative;
    top: 110px !important;
    min-width: 100%;
    max-width: 100%;
    order: -1;
  }

  .category-page .pro-container {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
  }

  .category-page .section-p1 {
    padding: 20px;
  }

  .filter-section {
    padding: 20px !important;
  }

  .filter-group {
    margin-bottom: 20px;
  }

  .filter-group h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .checkbox-label {
    padding: 8px 0;
    font-size: 14px;
  }

  #price-slider {
    margin: 15px 0 !important;
  }

  #price-display {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  #header {
    padding: 10px 20px;
    flex-direction: column;
    gap: 15px;
  }

  #header .logo-container {
    order: -1;
  }

  #header .logo {
    height: 40px;
  }

  #header .search-wrapper {
    width: 100%;
    order: 1;
  }

  #header input {
    width: 100%;
    font-size: 16px;
    padding: 12px;
  }

  #mobile {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    padding: 10px 0;
  }

  .pro {
    padding: 15px;
    border-radius: 12px;
  }

  .pro .des {
    padding: 10px 0;
  }

  .pro .des h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .pro .des .price {
    font-size: 14px;
  }

  .pro .cart {
    padding: 8px 16px;
    font-size: 12px;
  }

  .category-page section.heading,
  .category-page section.heading,
  .category-page section.heading,
  .category-page section.heading {
    font-size: 24px;
    padding: 15px 20px 8px 20px;
    text-align: center;
  }

  .filter-section {
    padding: 15px !important;
    border-radius: 12px;
    margin: 0 20px 20px 20px;
  }

  .filter-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
  }

  .filter-group {
    margin-bottom: 15px;
  }

  .filter-group h4 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .checkbox-label {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
    padding: 6px 8px;
    font-size: 13px;
    border-radius: 6px;
    background: #f8f9fa;
    margin: 0;
  }

  .checkbox-label:hover {
    background: #e9ecef;
  }

  .filter-btn {
    display: block !important;
    width: calc(100% - 40px);
  }

  .filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }

  .filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .filter-overlay.active {
    display: block;
  }

  .filter-section {
    position: fixed !important;
    top: 0 !important;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: left 0.3s ease;
    border-radius: 0;
    margin: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .filter-section.active {
    left: 0;
  }

  .filter-close {
    display: block !important;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1001;
  }

  .page-numbers {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px;
  }

  .page-numbers li {
    margin: 0;
  }

  .page-numbers a {
    padding: 8px 12px;
    font-size: 14px;
    min-width: 36px;
    text-align: center;
  }

  footer {
    padding: 30px 20px !important;
  }

  .footer-right {
    flex-direction: column;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col h4 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .footer-col p,
  .footer-col a {
    font-size: 14px;
  }

  .icon-cart {
    top: 60px;
    right: 20px;
  }

  .section-p1 {
    padding: 20px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 18px;
  }

  .pro img {
    height: 220px;
  }

  .pro .des h4 {
    font-size: 18px;
  }

  .filter-section {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    transition: left 0.3s ease;
  }

  .filter-section.show {
    left: 0;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  body.no-scroll {
    overflow: hidden;
    height: 100vh;
  }

  .checkbox-label {
    font-size: 14px;
    padding: 8px 0;
  }

  #header {
    padding: 15px 30px;
  }

  .section-p1 {
    padding: 25px 30px !important;
  }
}

/* Global Responsiveness Overrides */
@media (max-width: 1600px) {
  .section-p1 {
    padding: 40px 80px;
  }
  .hero-grid-section {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
}

@media (max-width: 1200px) {
  .section-p1 {
    padding: 40px 40px;
  }
  .hero-grid-section {
    grid-template-columns: 1fr;
  }
  .hero-side {
    flex-direction: row;
  }
  .side-banner {
    height: 250px;
  }
}

@media (max-width: 900px) {
  .section-p1 .pro {
    width: 220px;
  }
  .slider-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 10px 20px;
  }
  .header-actions {
    gap: 10px;
  }
  .login-text {
    display: none;
  }
  .hero-main {
    height: 400px;
  }
  .side-banner {
    height: 200px;
  }
  .features-section {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .section-p1 .pro {
    width: 160px;
    padding: 10px;
  }
  .section-p1 .pro img {
    height: 160px;
    padding: 10px;
  }
  .hero-main {
    height: 300px;
  }
  .side-banner {
    height: 150px;
  }
  .features-section {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .section-p1 .pro-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
  }

  .section-p1 .pro {
    padding: 12px;
  }

  .section-p1 .pro img {
    height: 160px;
  }

  .pro .des h4 {
    font-size: 15px;
  }

  .pro .cart {
    padding: 6px 12px;
    font-size: 11px;
  }

  .filter-section {
    width: 90%;
    max-width: 280px;
  }

  .checkbox-label {
    font-size: 12px;
    padding: 5px 6px;
  }

  .filter-group h4 {
    font-size: 14px;
  }

  .page-numbers a {
    padding: 6px 10px;
    font-size: 13px;
    min-width: 32px;
  }
}

.category-page .pro-pagination {
  margin: 20px auto;
}

@media (max-width: 640px) {
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 8px;
  }

  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child,
  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child,
  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child,
  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child {
    max-width: 300px;
  }

  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd),
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd)
    ~ .pro,
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd),
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd)
    ~ .pro,
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd),
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd)
    ~ .pro,
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd),
  .category-page
    .pro-container
    .pro:nth-child(-n + 2):last-child:nth-child(odd)
    ~ .pro {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .category-page section.filter-section {
    border-radius: 0px;
    height: 88vh;
  }

  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
  }

  .category-page .filter-actions {
    flex-direction: column;
    gap: 8px;
  }

  .category-page .filter-actions button {
    padding: 10px 16px;
    font-size: 13px;
  }

  .category-page .page-btn {
    padding: 8px 12px;
    font-size: 14px;
  }

  .category-page section.heading {
    font-size: 20px;
    padding: 12px 0 6px 0;
  }
}

@media (max-width: 360px) {
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container,
  .category-page .pro-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child,
  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child,
  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child,
  .category-page .pro-container:only-child .pro,
  .category-page .pro-container .pro:only-child {
    max-width: 100%;
  }
}

body.no-scroll {
  overflow: hidden !important;
}

.filter-close {
  display: none;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border: 2px solid #000;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 260px;
  position: relative;
}

.filter-section.show {
  transform: translateX(0);
}

.filter-select:hover,
.filter-select:focus {
  border-color: red;
  outline: none;
}

.filter-select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.filter-select option[value=""] {
  color: #aaa;
  font-style: italic;
}

.my-black-btn {
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  font-weight: bold !important;
  padding: 8px 20px !important;
  border-radius: 5px !important;
}

#messenger-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.2s ease-in-out,
    background-color 0.2s ease;
  z-index: 1000;
}

#messenger-button:hover {
  transform: scale(1.05);
  box-shadow: none;
}

#messenger-button i.fab.fa-facebook-messenger {
  font-size: 30px;
  color: white;
}

#messenger-window {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 350px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
  transform: scale(0.8);
  opacity: 0;
  transform-origin: bottom right;
  transition:
    transform 0.3s ease-out,
    opacity 0.3s ease-out;
  color: #f0f0f0;
}

.messenger-hidden {
  display: none !important;
  opacity: 0;
  transform: scale(0.8);
}

#messenger-window:not(.messenger-hidden) {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.messenger-greeting {
  padding: 30px 25px 20px 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.messenger-greeting h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
  color: black;
}

.messenger-card {
  background-color: white;
  border-radius: 10px;
  margin: 0 25px 25px 25px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.messenger-card .card-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.messenger-card .profile-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #555;
  margin-right: 15px;
  object-fit: cover;
}

.messenger-card .card-info h3 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: black;
}

.messenger-card .card-info p {
  margin: 0;
  font-size: 13px;
  color: black;
}

.messenger-card .card-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border-radius: 6px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 15px;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease-out;
}

.action-button i {
  margin-right: 10px;
  font-size: 18px;
}

.action-button.message-us {
  background-color: black;
}

.action-button.message-us:hover {
  background-color: #0069d9;
  transform: translateY(-2px);
}

.action-button.message-us-w {
  background-color: black;
}

.action-button.message-us-w:hover {
  background-color: #01a711;
  transform: translateY(-2px);
}

.action-button.follow-us {
  background-color: black;
}

.action-button.follow-us:hover {
  background-color: #2d4373;
  transform: translateY(-2px);
}

i.fa-solid.fa-xmark {
  color: red;
  margin-left: 0px;
  cursor: pointer;
}

/* Thumbnails styling integrated into .thumbnail-item above */

.center {
  display: flex;
  align-items: center !important;
  justify-content: center;
}

.option-group {
  margin-bottom: 18px;
}

.option-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #000000;
}

.custom-select {
  position: relative;
}

.custom-select select {
  width: 50%;
  padding: 14px 44px 14px 16px !important;
  background: #ffffff;
  color: black;
  border-radius: 12px;
  border: 1px solid black;
  appearance: none;
  cursor: pointer;
  font-size: 15px;
}

.qty-control {
  display: flex;
  align-items: center;
  width: fit-content;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #000000;
  background: #ffffff;
}

.qty-btn {
  width: 42px;
  height: 42px;
  background: white;
  border: none;
  color: black;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #efefef;
}

.qty-control input {
  text-align: center;
  border: none;
  background: transparent;
  color: rgb(0, 0, 0);
}

.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-control input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transform: scale(0.8);
  transform-origin: left center;
}

.logo-container {
  max-width: 240px;
  display: flex;
  align-items: center;
}

.hero-container {
  height: 70vh;
  width: -webkit-fill-available;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  position: relative;
}

.slide-img {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.slide-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: -1;
}

.slide-img.active {
  opacity: 1;
  pointer-events: auto;
}

.dots-container {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 100;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.dot.active {
  background: white;
  transform: scale(1.3);
}

i.fa-solid.fa-xmark {
  margin-left: 1px !important;
}

.product-description {
  text-align: left !important;
}

.product-description p {
  text-align: left !important;
}

.product-description img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  height: auto;
}
@media (min-width: 1026px) {
  .mobile-only {
    display: none;
  }
  #cart-count {
    position: absolute;
    top: 5px !important;
    right: 0px !important;
  }
}

@media (max-width: 1025px) {
  #category {
    justify-content: center;
  }

  .uppercase {
    letter-spacing: 1px;
  }

  .custom-select select {
    width: 80%;
  }

  body.show-cart #navbar {
    transform: translateX(300px);
  }

  #product-results {
    right: -100px;
  }

  #search-input {
    width: 100%;
  }

  .filter-btn {
    z-index: 999;
    display: block;
  }

  .filter-section {
    position: fixed;
    top: 0px;
    left: -100%;
    width: 60% !important;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 0px !important;
    transition: left 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
  }

  .filter-section.show {
    left: 0;
    top: 115px;
  }

  .filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
  }

  .filter-overlay.active {
    display: block;
  }

  .filter-close {
    display: block;
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
  }

  .image-box {
    flex: 1 1 50%;
  }

  .image-box-third img {
    transform: scale(1);
  }

  #close,
  #mobile i {
    color: red;
    font-size: 24px;
  }

  .mobile-only {
    display: block;
  }

  .stock {
    gap: 40px;
    text-align: center;
  }

  #cart-count {
    display: none !important;
  }

  #mobile {
    display: flex;
    align-items: center;
  }

  #mobile i {
    padding-left: 20px;
  }

  #header input {
    margin-left: 0;
  }

  #product-results {
    left: 0;
    right: 0;
  }

  #close {
    display: initial;
    position: absolute;
    top: 30px;
    left: 30px;
  }

  .section-p1 .pro-container {
    justify-content: center;
  }

  .section-p1 .pro {
    margin: 5px;
    width: 80%;
  }

  .product-main-container {
    flex-direction: column;
    gap: 30px;
  }
  .product-gallery {
    width: 100%;
    flex-direction: column-reverse;
  }
  .thumbnail-list {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .thumbnail-item {
    width: 80px;
    flex-shrink: 0;
  }
  .product-info-section {
    width: 100%;
  }
  .product-info-section h1 {
    font-size: 1.8rem;
  }

  #pay-now-btn {
    padding-left: 450px;
    max-width: none !important;
  }

  .hero-container {
    height: 30vh;
  }

  .search-wrapper {
    max-width: 350px;
    margin: 0 15px;
  }

  input#search-input {
    padding: 5px;
    width: 350px;
    position: relative;
  }

  #navbar {
    top: 100px;
  }

  .logo {
    width: 100px;
    transform: scale(1);
  }

  .logo-container {
    max-width: 180px;
  }

  #header {
    padding-left: 70px;
    padding-right: 70px;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
}

@media (max-width: 768px) {
  #cart {
    width: 100%;
    border-collapse: collapse;
  }

  /* Fix product-overhaul-wrapper overflow and layout */
  .product-overhaul-wrapper {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* Change product-main-grid to row layout on mobile */
  .product-main-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
  }

  /* Ensure gallery and info columns stack vertically */
  .product-gallery-col,
  .product-info-col {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  /* Fix horizontal scroll on old product pages */
  .product-main-container {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fix description images causing overflow */
  .product-description {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .product-description img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  #cart thead {
    display: none;
  }

  #cart tr {
    display: block;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    padding: 12px;
  }

  #cart td {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 6px 0;
    position: relative;
    gap: 20px;
    overflow: auto;
  }

  #cart td:last-child {
    border-bottom: none;
  }

  #cart td::before {
    content: attr(data-title);
    width: 40%;
    text-align: left;
    font-weight: bold;
    color: #333;
  }

  #cart td > * {
    width: 60%;
    text-align: center;
  }

  #cart td img {
    max-width: 60px;
    height: auto;
    border-radius: 5px;
  }
}

@media (max-width: 480px) {
  body.show-cart #navbar {
    transform: translateX(300px);
  }

  #header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-container {
    height: 20vh;
  }

  #product-results {
    right: 0px;
  }

  #search-input {
    width: 100%;
  }

  .filter-section {
    top: 100px !important;
  }

  .filter-btn {
    top: 10px;
  }

  .image-box {
    flex: 1 1 100%;
  }

  .mobile-only {
    display: inline-block;
  }

  .feature-products {
    position: relative;
  }

  #header input {
    margin-left: 0;
    border: none;
    font-size: 17px;
    padding: 10px;
  }

  .feature-products.section-p1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .section-p1 .pro {
    margin: 5px 0 !important;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .cart-tab {
    width: 100% !important;
    right: -100% !important;
    top: 0 !important;
  }

  #mobile i {
    padding-left: 10px;
  }

  #cart-count {
    display: none !important;
  }

  #header {
    padding: 10px;
  }

  .section-p1 {
    padding: 25px;
  }

  #category h2 {
    text-align: center;
  }

  #category {
    justify-content: space-evenly;
  }

  #category .cat-box {
    margin: 0 auto !important;
  }

  .cat-img {
    max-height: 60px;
  }

  #vxe-r1-dtails {
    display: flex;
    flex-direction: column;
  }

  #desc-img img {
    padding: 0;
  }

  #navbar .icon-cart span {
    top: -205px;
    right: 30px;
  }

  #navbar {
    top: 110px;
  }

  .form .column {
    flex-wrap: wrap;
  }

  .form :where(.gender-option, .gender) {
    row-gap: 15px;
  }

  #cart-add {
    flex-direction: column;
  }

  #pay-now-btn {
    padding-left: 0px;
  }

  #coupon {
    width: 100%;
  }

  #cart-total {
    width: 100%;
  }

  .hero-container {
    height: 20vh;
  }

  .search-wrapper {
    max-width: 200px;
  }

  input#search-input {
    max-width: 310px;
  }

  .logo {
    width: 80px;
    height: auto;
    transform: scale(1);
  }

  .logo-container {
    max-width: 50px;
  }

  footer .logo {
    margin-bottom: 30px;
    transform: scale(2);
    transform-origin: left center;
  }
}

.pro:hover img {
  transform: scale(1.05);
}

#category .cat-box h6 {
  font-size: 16px;
  font-weight: 700;
  color: black;
  text-align: center;
  margin: 10px 0 0 0;
  transition: all 0.3s ease-in-out;
}

.section-p1 .pro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  display: none;
  z-index: 10;
}

.section-p1 .pro:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-p1 .pro:hover::before {
  display: block;
}

.uppercase {
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  body.filter-open #toggle-filter {
    display: none;
  }
}

@media (max-width: 1024px) {
  body.filter-open {
    overflow: hidden;
    height: 100vh;
  }

  .filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .filter-section {
    position: fixed !important;
    top: 0 !important;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: left 0.3s ease;
  }

  .filter-section.show {
    left: 0;
  }

  body.filter-open #toggle-filter {
    display: none !important;
  }
}
/* Global Cart Styles - Card Design */
#cart {
  padding: 40px 20px;
  background-color: #f8f9fa; /* Light background for contrast */
  min-height: 60vh;
}

#cart table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 15px; /* Spacing between cards */
}

#cart thead {
  display: none; /* Hide traditional table headers */
}

#cart tbody tr {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  margin-bottom: 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  position: relative;
  border: 1px solid #eee;
  min-height: 120px;
}

#cart tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#cart tbody td {
  border: none;
  padding: 0;
}

/* 1. Remove Button */
#cart tbody td:nth-child(1) {
  position: absolute;
  top: 15px;
  right: 5px;
}

#cart tbody td:nth-child(1) a {
  color: #ddd;
  font-size: 18px;
  transition: color 0.3s;
  text-decoration: none;
}

#cart tbody td:nth-child(1) a:hover {
  color: #ff4d4d;
}

/* 2. Image */
#cart tbody td:nth-child(2) {
  flex: 0 0 100px;
  margin-right: 20px;
}

#cart tbody td:nth-child(2) img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 5px;
}

#cart tbody td:nth-child(3) {
  flex: 2;
  font-weight: 600;
  font-size: 16px;
  color: #333;
  min-width: 200px;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding-right: 15px;
}

#cart tbody td:nth-child(7) {
  flex: 100%;
  order: 3;
  font-size: 14px;
  color: #888;
  margin-top: 5px;
  display: none;
}

#cart tbody td:nth-child(4) {
  flex: 0 0 120px;
  font-weight: 600;
  color: black;
  font-size: 16px;
  text-align: center;
  align-self: center;
}

/* 5. Quantity */
#cart tbody td:nth-child(5) {
  flex: 0 0 100px;
  text-align: center;
  align-self: center;
}

#cart tbody td:nth-child(5) input {
  width: 60px;
  height: 40px;
  padding-left: 10px; /* Center text better */
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  text-align: center;
}
#cart tbody td:nth-child(5) input:focus {
  border-color: #ff2600;
}

/* 6. Subtotal */
#cart tbody td:nth-child(6) {
  flex: 0 0 120px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
  text-align: right;
  margin-right: 40px; /* Space for remove button */
  align-self: center;
}

/* Cart Total Section Style Upgrade */
#cart-add {
  display: flex;
  justify-content: flex-end; /* Align to right */
  padding: 30px 20px;
}

#cart-total {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  font-size: 20px;
  font-weight: 700;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#pay-now-btn {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  max-width: 400px; /* Match total width */
  margin-left: auto; /* Push to right */
}

#pay-now-btn button {
  background-color: black;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}
#pay-now-btn button:hover {
  background-color: #141414;
}

/* Responsive - Mobile/Tablet Card Design Refined V3 - User Requested Layout */
@media (max-width: 768px) {
  #cart {
    padding: 20px 10px;
    overflow-x: hidden;
  }

  #cart table {
    width: 100%;
    min-width: 0;
  }

  #cart tbody tr {
    display: grid;
    grid-template-columns: 30px 90px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 15px 25px;
    padding: 15px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    overflow: auto;
  }

  #cart tbody td:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 5;
    position: static;
    display: flex;
    align-items: center;
    justify-content: start;
    z-index: 10;
  }
  #cart tbody td:nth-child(1) a {
    font-size: 16px;
    color: #999;
  }
  #cart tbody td:nth-child(1)::before {
    display: none !important;
  }

  /* 2. Image - Center Column */
  #cart tbody td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 5;
    display: flex;
    align-items: start;
    justify-content: start;
    margin-right: 0;
  }
  #cart tbody td:nth-child(2)::before {
    display: none !important;
  }
  #cart tbody td:nth-child(2) img {
    width: 100%;
    height: auto;
    max-width: 90px;
    object-fit: contain;
    border-radius: 4px;
    display: block;
  }

  /* 3. Product Name - Top of Details Column */
  #cart tbody td:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 5px;
    align-self: start;
    /* Text Wrapping Controls */
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Modern standard */
    word-break: break-word;
    hyphens: auto;
    min-width: 0; /* Critical for grid text wrapping */
    padding-right: 0;
  }
  #cart tbody td:nth-child(3)::before {
    display: none !important;
  }

  /* 7. Color */
  #cart tbody td:nth-child(7) {
    grid-column: 3 / 4;
    grid-row: 2;
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
    display: block; /* Ensure it's visible if it was hidden */
  }

  /* 4. Price (Unit) - Hidden or Small? Reference shows one main price. 
     We'll show unit price small above Qty maybe? Or just hide it and show subtotal.
     Let's style it small for clarity.
  */
  #cart tbody td:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 4; /* Below Qty? Or with it? Layout: Name -> Qty -> Price */
    font-size: 13px;
    font-weight: 400;
    color: #888;
    text-align: left;
    margin-bottom: 5px;
    display: none; /* Hiding Unit Price to match "clean" look, focus on Subtotal at bottom */
  }
  #cart tbody td:nth-child(4)::before {
    content: "Unit: ";
  }

  /* 5. Quantity - Middle of Details */
  #cart tbody td:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
  }
  #cart tbody td:nth-child(5)::before {
    display: none; /* No label needed for compact look */
  }
  #cart tbody td:nth-child(5) input {
    width: 40px;
    height: 30px;
    font-size: 14px;
    text-align: center;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

  /* 6. Subtotal - Bottom of Details (The main price shown) */
  #cart tbody td:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 4; /* Bottom slot */
    border: none;
    padding: 0;
    margin: 0;
    display: block;
    text-align: left;
    width: auto;
    font-size: 16px;
    font-weight: 700;
    color: #000;
  }
  #cart tbody td:nth-child(6)::before {
    content: none; /* Just the price */
  }
}

button.swal2-confirm.swal2-styled {
  background-color: red !important;
}
/* Affiliated Brands */
#affiliated-brands {
  padding: 60px 80px;
  background-color: var(--bg-tertiary);
}

#affiliated-brands h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  letter-spacing: 1px;
  font-weight: 700;
}

.brand-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  align-items: start;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.brand-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  text-decoration: none;
  color: inherit;
}

.brand-item:hover p {
  color: #ff0000;
}

.brand-item img {
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #fdfdfd;
}

.brand-item p {
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

@media (max-width: 799px) {
  #affiliated-brands {
    padding: 40px 20px;
  }
  .brand-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .brand-item {
    max-width: 100%;
    padding: 20px;
  }
  .brand-item img {
    max-height: 450px;
  }
}

/* --- NEW FRONTEND HEADER UPDATE --- */
.header-container {
  background: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 150px;
}

@media (max-width: 1200px) {
  .top-header {
    padding: 15px 40px;
  }
  .main-navbar {
    padding: 0 40px;
  }
}

.search-wrapper-new {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 400px;
  position: relative;
  background: transparent;
  transition: 0.3s;
}

.search-form-header {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
}

.search-wrapper-new input {
  width: 100%;
  padding: 11px 48px 11px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  outline: none;
  background: #ffffff;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-wrapper-new input:focus {
  border-color: #ff2600;
  box-shadow: 0 0 0 3px rgba(255, 38, 0, 0.08);
}

.search-header-btn,
.search-wrapper-new .search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #64748b;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 2;
  border-radius: 50%;
}

.search-header-btn:hover,
.search-wrapper-new .search-btn:hover {
  color: #ff2600;
}

.search-header-btn:active,
.search-wrapper-new .search-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.search-wrapper-new #product-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  z-index: 1001;
  max-height: 440px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.search-result-item:hover {
  background-color: #f8fafc;
}

.search-result-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #f8fafc;
  padding: 2px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-result-brand {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 13px;
  font-weight: 700;
  color: #ff2600;
}

.search-results-footer {
  padding: 12px 16px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
  transition: background-color 0.2s;
}

.search-results-footer:hover {
  background: #ff2600;
}

.search-no-results {
  padding: 18px 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.search-view-all-link {
  color: #ff2600;
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.search-view-all-link:hover {
  text-decoration: underline;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-actions .action-icon {
  position: relative;
  color: #333;
  font-size: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.header-actions .action-icon:hover {
  color: #ff2600;
}

.header-actions .badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff2600;
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.header-actions .login-text {
  font-size: 15px;
  font-weight: 500;
}

.main-navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 150px;
  border-top: 1px solid #f0f0f0;
  position: relative;
  background: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-links li {
  position: relative;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 14px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff2600;
}

/* ==========================================================================
   All Category Dropdown Navigation Component
   ========================================================================== */
.category-dropdown-item {
  position: relative;
}

#navbar li a.category-toggle-btn,
.nav-links a.category-toggle-btn,
.category-toggle-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 9px !important;
  background: #ffffff !important;
  color: #1a1a1a !important;
  padding: 8px 18px !important;
  margin: 6px 14px 6px 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  float: none !important;
}

#navbar li a.category-toggle-btn span,
.nav-links a.category-toggle-btn span,
.category-toggle-btn span,
.category-toggle-btn .cat-btn-text {
  color: #1a1a1a !important;
  font-weight: 700 !important;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: color 0.3s ease;
}

.category-toggle-btn::after {
  display: none !important;
}

.category-toggle-btn i.fa-bars-staggered,
.category-toggle-btn i.fa-bars {
  font-size: 14px;
  color: #ff2600 !important;
  transition: all 0.3s ease;
}

.category-toggle-btn .dropdown-arrow {
  font-size: 11px;
  margin-left: 4px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  color: #64748b !important;
}

#navbar li a.category-toggle-btn:hover,
.nav-links a.category-toggle-btn:hover,
.category-toggle-btn:hover,
.category-dropdown-item.active .category-toggle-btn {
  background: #ff2600 !important;
  color: #ffffff !important;
  border-color: #ff2600 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 38, 0, 0.28);
}

#navbar li a.category-toggle-btn:hover span,
.nav-links a.category-toggle-btn:hover span,
.category-toggle-btn:hover span,
.category-toggle-btn:hover .cat-btn-text,
.category-dropdown-item.active .category-toggle-btn span,
.category-dropdown-item.active .category-toggle-btn .cat-btn-text {
  color: #ffffff !important;
}

.category-toggle-btn:hover i.fa-bars-staggered,
.category-toggle-btn:hover i.fa-bars,
.category-toggle-btn:hover .dropdown-arrow,
.category-dropdown-item.active .category-toggle-btn i.fa-bars-staggered,
.category-dropdown-item.active .category-toggle-btn i.fa-bars,
.category-dropdown-item.active .category-toggle-btn .dropdown-arrow {
  color: #ffffff !important;
}

.category-dropdown-item:hover .dropdown-arrow,
.category-dropdown-item.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* Category Dropdown Menu Container with Smooth Animations */
.category-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 270px;
  max-height: 480px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.25s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Dropdown Show state */
.category-dropdown-item:hover .category-dropdown-menu,
.category-dropdown-item.active .category-dropdown-menu,
.category-dropdown-item:focus-within .category-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Category Dropdown Items */
.category-dropdown-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px !important;
  border-radius: 8px;
  color: #1e293b !important;
  text-decoration: none;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  border-bottom: none !important;
  width: 100%;
  box-sizing: border-box;
}

.category-dropdown-link::after {
  display: none !important;
}

.category-dropdown-link .cat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f1f5f9;
  margin-right: 12px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.category-dropdown-link .cat-dropdown-thumb {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.category-dropdown-link .cat-fallback-icon {
  font-size: 13px;
  color: #64748b;
}

.category-dropdown-link .cat-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1e293b;
  font-weight: 600;
  transition: color 0.2s ease;
}

.category-dropdown-link .cat-arrow {
  font-size: 11px;
  color: #cbd5e1;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.category-dropdown-link:hover {
  background: #fff1f0 !important;
  color: #ff2600 !important;
  transform: translateX(3px);
}

.category-dropdown-link:hover .cat-name {
  color: #ff2600 !important;
}

.category-dropdown-link:hover .cat-icon-wrap {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 38, 0, 0.15);
}

.category-dropdown-link:hover .cat-dropdown-thumb {
  transform: scale(1.15);
}

.category-dropdown-link:hover .cat-arrow {
  color: #ff2600;
  transform: translateX(3px);
}

/* Custom Scrollbar for Dropdown */
.category-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.category-dropdown-menu::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}
.category-dropdown-menu::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.category-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media (max-width: 1024px) {
  .search-wrapper-new {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .mobile-bottom-nav .mobile-nav-icon .badge{
    top: -5px !important;
    right: -8px !important;
    left: auto !important;
  }
  .top-header {
    padding: 10px 15px;
    gap: 10px;
  }

  .logo {
    width: 200px;
  }

  .search-wrapper-new {
    margin: 0 5px;
    order: 2; /* Search first in the row */
    max-width: none;
    flex: 1;
  }

  .search-wrapper-new input {
    padding: 8px 40px 8px 14px;
    box-sizing: border-box;
  }

  .header-actions {
    gap: 15px;
    order: 3; /* Icons to the right of search */
  }

  .header-actions .action-icon {
    font-size: 20px;
    gap: 0;
  }

  .header-actions .login-text {
    display: none;
  }

  #mobile {
    display: block;
    order: 4; /* Hamburger at the far right */
    margin-left: 5px;
  }

  #mobile i {
    font-size: 24px;
    color: #333;
    padding-left: 0;
  }

  /* Mobile Navigation Drawer Fixes */
  .main-navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 25px 40px;
    z-index: 1001;
    transition: 0.3s ease-in-out;
    border: none;
    overflow-y: auto;
  }

  .main-navbar.active {
    right: 0;
  }

  .mobile-close {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
  }

  .category-dropdown-item {
    width: 100%;
    margin-bottom: 8px;
  }

  .category-toggle-btn {
    width: 100% !important;
    justify-content: space-between;
    margin: 0 !important;
    padding: 12px 16px !important;
    box-sizing: border-box;
  }

  .category-dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    margin-top: 8px;
    max-height: 280px;
    width: 100%;
    pointer-events: auto;
  }

  .category-dropdown-item.active .category-dropdown-menu {
    display: flex;
  }

  .categories-btn {
    width: 100%;
    margin-right: 0;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    justify-content: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 10px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    padding: 15px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 600;
  }
}

@media (max-width: 480px) {
  .top-header {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .logo-container {
    flex: 1;
  }

  .header-actions {
    flex: 0;
    order: 2;
  }

  #mobile {
    order: 3;
  }

  .search-wrapper-new {
    flex: 1 0 100%; /* Force search to its own row on very small phones */
    margin: 10px 0 0;
    order: 5;
  }

  /* Mobile Bottom Navigation */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
  }
}

/* Hide mobile bottom nav on desktop only */
@media (min-width: 1025px) {
  .mobile-bottom-nav {
    display: none;
  }
}

  .mobile-bottom-nav .mobile-nav-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
    position: relative;
  }

  .mobile-bottom-nav .mobile-nav-icon:hover {
    color: #ff2600;
  }

  .mobile-bottom-nav .mobile-nav-icon i {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .mobile-bottom-nav .mobile-nav-icon .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff2600;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }
}

.categories-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  padding: 20px 0;
  margin-right: 40px;
  font-size: 15px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  padding: 20px 0;
  display: block;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
}

/* .nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ff2600;
} */

.mobile-close {
  display: none;
}

/* Redundant mobile block removed */

/* --- NEW HERO GRID UPDATE --- */
.hero-grid-section {
  display: grid;
  grid-template-columns: 2.3fr 1fr; /* Refined golden-ratio style split */
  gap: 24px;
  max-width: 1600px;
  margin: 30px auto;
  padding-left: 40px !important;
  padding-right: 40px !important;
}

.hero-main {
  position: relative;
  overflow: hidden;
  border-radius: 20px; /* Softer, modern corners */
  height: 600px; /* Increased height */
  width: 100%;
  background-color: #f8f9fa;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Deep, soft shadow */
  border: 1px solid rgba(0, 0, 0, 0.03);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.hero-main .slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  background: #f8f9fa; /* Base color to avoid white flashes */
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-main .slide-img a {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-user-drag: none;
}

/* Clear Image Layer */
.hero-main .slide-img .main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  display: block;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Blurred Background Layer */
.hero-main .slide-img .blur-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(25px) brightness(0.7);
  transform: scale(1.1);
  z-index: 1;
}

.hero-main .slide-img.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-main .dots-container {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%); /* Centered position */
  display: flex;
  gap: 8px;
  z-index: 10;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-main .dot {
  width: 8px;
  height: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-main .dot.active {
  width: 24px;
  background: #ff2600;
  border-radius: 4px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.side-banner {
  height: 288px; /* Increased to match 600px total (288*2 + 24 gap) */
  border-radius: 20px;
  background-color: #ffffff;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: block;
  text-decoration: none;
  color: inherit;
}

.side-banner .main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.side-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 3;
}

.side-banner:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 38, 0, 0.2);
}

.side-banner.top {
  background-color: #f3f3f3;
}

.side-banner.bottom {
  background-color: #f3f3f3;
}

.side-banner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  filter: brightness(1.05);
}

/* --- NEW FEATURES SECTION --- */
.features-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: calc(100% - 300px);
  margin: 0px auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px !important;
  background: #fff;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 250px;
}

.feature-card .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  flex-shrink: 0;
  color: #000;
  background: transparent;
}

.feature-text h4 {
  font-size: 13px;
  margin-bottom: 2px;
  font-weight: 800;
  color: #000;
  letter-spacing: 0.5px;
}

.feature-text p {
  font-size: 11px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* --- BUG FIXES & OVERRIDES --- */
/* Force nav links to be black */
#navbar .nav-links a {
  color: #111 !important;
}
#navbar .nav-links a:hover,
#navbar .nav-links a.active {
  color: #ff2600 !important;
}

/* Adjust Cart Badge Position */
.header-actions .badge {
  top: -5px !important;
  right: -10px !important;
}

/* Hero and Features Tablet Adjustments */
@media (max-width: 1199px) {
  .hero-grid-section {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }
  .features-section {
    margin-left: 40px !important;
    margin-right: 40px !important;
  }
}
@media (max-width: 1280px) {
  .logo {
    height: 50px;
  }
  .product-main-grid {
    grid-template-columns: 70% 30% !important;
  }
}
/* --- Mobile UI Premium Overrides --- */
@media (max-width: 1024px) {
  /* Prevent messenger button hiding behind bottom nav */
  #messenger-button {
    bottom: 85px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
  }

  /* Hero Section column layout */
  .hero-grid-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
  .hero-side {
    display: flex !important;
    flex-direction: row !important;
    gap: 15px !important;
  }
  .side-banner {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
}

@media (max-width: 768px) {
  /* Header layout redesign */
  .top-header {
    position: relative !important;
    padding-top: 20px !important;
    padding-bottom: 15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  /* Absolute position for hamburger menu to allow logo centering */
  #mobile {
    position: absolute !important;
    top: 25px !important;
  }
  #mobile i {
    padding-left: 0 !important;
    font-size: 26px !important;
  }

  /* Logo at the middle */
  .logo-container {
    flex: 0 0 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 15px !important;
    order: -1 !important;
  }

  /* Search bar enhancement */
  .search-wrapper-new {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-content: center;
  }

  #search-input {
    padding: 12px 48px 12px 20px !important;
    font-size: 0.95rem !important;
    height: 48px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
  }

  /* Hero UI Premium improvements */
  .hero-side {
    flex-direction: column !important;
  }
  .hero-main {
    border-radius: 16px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }

  /* Make buttons and inputs globally a bit plumper for touch targets */
  .slider-btn {
    width: 44px !important;
    height: 44px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  }
  .social-icons {
    justify-content: center;
  }
}
/* Redundant mobile block removed */
div#color-swatches {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

/* ========================================
   MODERN CATEGORY PAGE UI STYLES
   ======================================== */

/* Category Header */
.category-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.category-header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #a0aec0;
}

.breadcrumb .sep {
  color: #a0aec0;
  font-size: 0.8rem;
}

.breadcrumb a {
  color: #ff0000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb .current {
  color: white;
  font-weight: 500;
}

/* Brand Row */
.brand-row-section {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}

.brand-row-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

.brand-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.brand-row::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  width: 100px;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.brand-chip:hover {
  transform: translateY(-3px);
}

.brand-chip.active .brand-chip-img {
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2);
}

.brand-chip.active .brand-chip-name {
  color: #ff0000;
  font-weight: 600;
}

.brand-chip-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.brand-chip-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  transform: scale(1.25);
}

.brand-chip-img .brand-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #6b7280;
  background: #e5e7eb;
  border-radius: 50%;
}

.brand-chip-name {
  font-size: 0.8rem;
  color: #374151;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 768px) {
  .brand-row-section {
    padding: 15px 0;
  }
  .brand-chip {
    width: 80px;
  }
  .brand-chip-img {
    width: 56px;
    height: 56px;
  }
  .brand-chip-name {
    font-size: 0.7rem;
  }
}

.category-header-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.product-count {
  font-size: 1.1rem;
  color: #ff0000;
  font-weight: 500;
}

/* Main Layout */
.feature-products.section-p1 {
  display: flex;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Filter Sidebar */
.filter-sidebar {
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 0;
  height: fit-content;
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.filter-sidebar:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.filter-close {
  display: none;
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff0000;
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
}

/* Filter Header */
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ff0000;
}

.clear-filters-btn {
  background: #ff0000;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-filters-btn:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

/* Sidebar Navigation */
.sidebar-nav {
  background: #1a1a1a;
  color: white;
  padding: 25px 20px;
  border-radius: 16px 16px 0 0;
}

.sidebar-nav h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ff0000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li {
  margin-bottom: 12px;
}

.nav-menu li a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav-menu li a:hover {
  background: #ff0000;
  transform: translateX(5px);
}

/* Filter Content */
.filter-content {
  padding: 25px 20px;
}

.filter-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #ff0000;
  padding-bottom: 10px;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group h4 i {
  color: #ff0000;
  font-size: 14px;
  width: 16px;
}

/* Price Inputs */
.price-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.price-input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-input-group label {
  font-size: 0.85rem;
  color: #718096;
  font-weight: 500;
}

.price-input-group input {
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.price-input-group input:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Brand Search */
.search-brand {
  position: relative;
  margin-top: 15px;
}

.search-brand input {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-brand input:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.search-brand i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #718096;
}

/* Color Swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.color-swatch:hover {
  transform: scale(1.1);
  border-color: #ff0000;
}

.color-swatch.selected {
  border-color: #ff0000;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
}

.color-swatch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.color-display {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  border: none;
}

/* Rating Filter */
.rating-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rating-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4a5568;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  padding-left: 35px;
}

.rating-label:hover {
  background: #fff5f5;
  color: #ff0000;
}

.rating-label .stars {
  margin-left: 8px;
  color: #fbbf24;
  font-size: 0.9rem;
}

/* Checkbox and Radio Styles */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: #4a5568;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  padding-left: 35px;
}

.checkbox-label:hover,
.radio-label:hover {
  background: #fff5f5;
  color: #ff0000;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark,
.radio-mark {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: white;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.radio-mark {
  border-radius: 50%;
}

.checkbox-label:hover input ~ .checkmark,
.checkbox-label:hover input ~ .radio-mark,
.radio-label:hover input ~ .checkmark,
.radio-label:hover input ~ .radio-mark {
  border-color: #ff0000;
}

.checkbox-label input:checked ~ .checkmark,
.radio-label input:checked ~ .radio-mark {
  background-color: #ff0000;
  border-color: #ff0000;
}

.checkmark:after,
.radio-mark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after,
.radio-label input:checked ~ .radio-mark:after {
  display: block;
}

/* Products Main Area */
.products-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 25px 30px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
  gap: 20px;
}

.products-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.products-subtitle {
  font-size: 1rem;
  color: #718096;
  margin: 0;
}

.products-subtitle span {
  color: #ff0000;
  font-weight: 600;
}

.products-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.view-options {
  display: flex;
  gap: 8px;
}

.view-btn {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #4a5568;
  font-size: 0.9rem;
}

.view-btn:hover {
  border-color: #ff0000;
  color: #ff0000;
}

.view-btn.active {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-label {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 500;
}

.sort-select {
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
}

.sort-select:hover {
  border-color: #ff0000;
}

.sort-select:focus {
  outline: none;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

/* Products Grid */
.products-grid {
  background: transparent;
}

.pro-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  align-items: start;
}

.pro-container.list-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pro-container.list-view .pro {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.pro-container.list-view .pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-color: #ff0000;
}

.pro-container.list-view .pro img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px;
}

.pro-container.list-view .pro .des {
  flex: 1;
  padding: 0;
  min-width: 0;
}

.pro-container.list-view .pro .des h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pro-container.list-view .pro .star {
  margin-bottom: 8px;
  display: flex;
  gap: 2px;
}

.pro-container.list-view .pro .star i {
  font-size: 12px;
  color: #fbbf24;
}

.pro-container.list-view .pro h4 {
  font-size: 1.1rem;
  color: #ff0000;
  font-weight: 700;
  margin: 0;
}

.pro-container.list-view .pro .price-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.pro-container.list-view .pro .old-price {
  color: #a0aec0;
  text-decoration: line-through;
  font-size: 0.9rem;
  font-weight: 500;
}

.pro-container.list-view .pro .stock-status {
  font-size: 0.8rem;
  margin-top: 10px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pro-container.list-view .pro .stock-status.in-stock {
  background: #10b981;
  color: white;
}

.pro-container.list-view .pro .stock-status.out-of-stock {
  background: #ef4444;
  color: white;
}

/* Product Cards */
.pro {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid #f0f0f0;
}

.pro:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #ff0000;
}

.pro img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.pro:hover img {
  transform: scale(1.05);
}

.pro .des {
  padding: 20px;
}

.pro .des h5 {
  color: #1a1a1a !important;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.pro .star {
  margin-bottom: 12px;
  display: flex;
  gap: 2px;
}

.pro .star i {
  font-size: 12px;
  color: #fbbf24;
}

.pro h4 {
  font-size: 1.2rem;
  color: #ff0000 !important;
  font-weight: 700;
  margin: 0;
}

.pro .price-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.pro .old-price {
  color: #a0aec0 !important;
  text-decoration: line-through !important;
  font-size: 0.9rem;
  font-weight: 500;
}

.pro .stock-status {
  font-size: 0.8rem;
  margin-top: 10px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pro .stock-status.in-stock {
  background: #10b981;
  color: white;
}

.pro .stock-status.out-of-stock {
  background: #ef4444;
  color: white;
}

.badge-discount {
  background: #ff0000;
  color: white;
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
}

.badge-out {
  background: #4a5568;
  color: white;
  left: auto;
  right: 15px;
}

/* Pagination */
.pro-pagination {
  text-align: center;
  margin: 40px auto;
  padding: 0 20px;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-btn {
  padding: 12px 16px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(.current):not(:disabled) {
  border-color: #ff0000;
  color: #ff0000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.page-btn.current {
  background: #ff0000;
  color: white;
  border-color: #ff0000;
  transform: scale(1.1);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Filter Button */
.filter-btn {
  display: none;
  position: fixed;
  top: 120px;
  right: 15px;
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

@media (min-width: 1025px) {
  .filter-btn {
    top: auto;
    bottom: 20px;
  }
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

.filter-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .feature-products.section-p1 {
    padding: 0 15px 30px;
  }

  .filter-sidebar {
    width: 280px;
  }

  .pro-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 1200px) {
  .category-header-content h1 {
    font-size: 2.2rem;
  }

  .products-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .products-controls {
    width: 100%;
    justify-content: space-between;
  }

  .pro-container {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 992px) {
  .feature-products.section-p1 {
    flex-direction: column;
    padding: 0 15px 30px;
  }

  .filter-sidebar {
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    z-index: 1001;
    border-radius: 0;
    transition: left 0.3s ease;
    overflow-y: auto;
  }

  .filter-sidebar.show {
    left: 0;
  }

  .filter-close {
    display: block;
  }

  .filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .category-header-content {
    padding: 0 15px;
  }

  .category-header-content h1 {
    font-size: 2rem;
  }

  .pro-container {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .category-header {
    padding: 40px 0;
  }

  .category-header-content h1 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .products-header {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .products-info h2 {
    font-size: 1.5rem;
  }

  .products-controls {
    width: 100%;
    justify-content: space-between;
  }

  .pro-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }

  .pro {
    border-radius: 12px;
  }

  .pro .des {
    padding: 15px;
  }

  .pro img {
    height: 160px;
  }

  .page-btn {
    padding: 10px 12px;
    font-size: 0.85rem;
    min-width: 38px;
    height: 38px;
  }

  .filter-sidebar {
    width: 85%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
    i.fa-solid.fa-barcode {
        display: none;
    }
  .category-header-content h1 {
    font-size: 1.5rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .pro-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .products-info h2 {
    font-size: 1.3rem;
  }

  .sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
    min-width: auto;
  }

  .view-options {
    order: -1;
  }

  .filter-sidebar {
    width: 90%;
  }

  .pro img {
    height: 140px;
  }
  .modern-tabs {
    gap: 20px;
  }
}

/* Loading Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 50px auto;
  grid-column: 1 / -1;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.pro-container.loading {
  display: grid;
  place-items: center;
  min-height: 200px;
}

/* ============================
   Category UI v2 (Dark Theme)
   ============================ */
body.category-ui-v2 {
  background:
    radial-gradient(
      1200px 600px at 20% 0%,
      rgba(255, 210, 80, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 10%,
      rgba(120, 180, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, #0b1020 0%, #070a12 100%);
  color: #e5e7eb;
  overflow-x: hidden;
}

/* body.category-ui-v2 h1,
body.category-ui-v2 h2,
body.category-ui-v2 h3,
body.category-ui-v2 h4,
body.category-ui-v2 p {
  color: inherit;
} */

body.category-ui-v2 .category-header {
  background: transparent;
  padding: 28px 0 18px;
}

body.category-ui-v2 .category-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

body.category-ui-v2 .breadcrumb a {
  color: black;
  font-weight: 600;
}

body.category-ui-v2 .breadcrumb i {
  color: black;
}

body.category-ui-v2 .breadcrumb .current {
  color: red;
  font-weight: 600;
}

body.category-ui-v2 .category-header-content h1 {
  font-size: 2.2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 10px 0 8px;
}

body.category-ui-v2 .category-subtitle {
  font-size: 0.9rem;
  margin: 0 0 5px 0;
  text-transform: none;
  letter-spacing: 0.5px;
}

body.category-ui-v2 .product-count {
  color: rgba(229, 231, 235, 0.75);
  font-size: 0.95rem;
  margin: 0;
}

body.category-ui-v2 .product-count #product-count {
  color: red;
  font-weight: 700;
}

body.category-ui-v2 .feature-products.section-p1 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px 40px;
  gap: 22px;
}

body.category-ui-v2 .sidebar-nav {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.category-ui-v2 .sidebar-nav h3 {
  color: rgba(229, 231, 235, 0.9);
}

body.category-ui-v2 .nav-menu li a {
  color: rgba(229, 231, 235, 0.85);
}

body.category-ui-v2 .nav-menu li a:hover {
  background: rgba(182, 242, 85, 0.14);
  color: rgba(229, 231, 235, 0.98);
  transform: translateX(4px);
}

body.category-ui-v2 .filter-content h3 {
  color: rgba(229, 231, 235, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.category-ui-v2 .filter-group {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

body.category-ui-v2 .filter-group h4 {
  color: rgba(229, 231, 235, 0.92);
}

body.category-ui-v2 .filter-group h4 i {
  color: #b6f255;
}

body.category-ui-v2 .checkbox-label,
body.category-ui-v2 .radio-label {
  color: rgba(229, 231, 235, 0.8);
}

body.category-ui-v2 .checkbox-label:hover,
body.category-ui-v2 .radio-label:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(229, 231, 235, 0.95);
}

body.category-ui-v2 .checkmark,
body.category-ui-v2 .radio-mark {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}

body.category-ui-v2 .checkbox-label input:checked ~ .checkmark,
body.category-ui-v2 .radio-label input:checked ~ .radio-mark {
  background-color: #b6f255;
  border-color: #b6f255;
}

body.category-ui-v2 .price-input-group label {
  color: black;
}

body.category-ui-v2 .price-input-group input,
body.category-ui-v2 .search-brand input {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(229, 231, 235, 0.92);
}

body.category-ui-v2 {
  background:
    radial-gradient(
      1200px 600px at 20% 0%,
      rgba(255, 210, 80, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 10%,
      rgba(120, 180, 255, 0.08),
      transparent 55%
    ),
    linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
  color: #e5e7eb;
  overflow-x: hidden;
}

body.category-ui-v2 .header-container {
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

body.category-ui-v2 .category-header {
  background: #ffffff;
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid #eeeeee;
}

body.category-ui-v2 .category-header h1 {
  color: #1a1a1a;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

body.category-ui-v2 .category-header .product-count {
  color: #666666;
  font-size: 0.9rem;
}

body.category-ui-v2 .filter-sidebar {
  background: #ffffff !important;
  border: 1px solid #eeeeee !important;
  border-radius: 8px !important;
  padding: 25px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
}

body.category-ui-v2 .filter-btn {
  position: fixed !important;
  bottom: auto !important;
  top: 120px !important;
  right: 15px !important;
  transform: none !important;
  left: auto !important;
  width: auto !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 12px 20px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  z-index: 1000 !important;
  border: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  align-items: center !important;
  gap: 8px !important;
}

@media (min-width: 1025px) {
  body.category-ui-v2 .filter-btn {
    bottom: 20px !important;
    top: auto !important;
  }
}

@media (max-width: 992px) {
  body.category-ui-v2 .filter-btn {
    display: flex !important;
  }
}

body.category-ui-v2 .filter-header {
  border-bottom: 2px solid #ff0000 !important;
  padding-bottom: 12px !important;
  margin-bottom: 25px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body.category-ui-v2 .filter-header h3 {
  color: #1a1a1a !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.5px;
  margin: 0 !important;
}

body.category-ui-v2 .clear-filters-btn {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 5px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none !important;
  cursor: pointer;
}

body.category-ui-v2 .clear-filters-btn i {
  display: none !important; /* Hide icon if present in HTML */
}

body.category-ui-v2 .filter-group {
  margin-bottom: 25px;
}

body.category-ui-v2 .filter-group h4 {
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  border-bottom: none !important;
  padding-bottom: 0 !important;
}

body.category-ui-v2 .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px !important;
}

body.category-ui-v2 .checkbox-label,
body.category-ui-v2 .radio-label {
  color: #444444 !important;
  font-size: 12px !important;
  font-weight: 500;
  padding-left: 28px !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

body.category-ui-v2 .filter-count {
  color: #a0a0a0 !important;
  font-weight: 500 !important;
  font-size: 11px;
}

/* Green Check/Radio Styles */
body.category-ui-v2 .checkmark,
body.category-ui-v2 .radio-mark {
  width: 16px !important;
  height: 16px !important;
  border-color: #dddddd !important;
  left: 0 !important;
  background-color: #ffffff !important;
}

body.category-ui-v2 .radio-label input:checked ~ .radio-mark {
  background-color: #ffffff !important;
  border-color: #32cd32 !important;
}
body.category-ui-v2 .radio-label input:checked ~ .radio-mark:after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #32cd32 !important;
  border: none !important;
}

body.category-ui-v2 .checkbox-label input:checked ~ .checkmark {
  background-color: #32cd32 !important;
  border-color: #32cd32 !important;
}
body.category-ui-v2 .checkbox-label input:checked ~ .checkmark:after {
  border-color: #ffffff !important;
  left: 4px !important;
  top: 1px !important;
  width: 4px !important;
  height: 8px !important;
}

/* Price Slider Overrides */
body.category-ui-v2 .price-inputs {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 25px !important;
}
body.category-ui-v2 .price-slider {
  margin: 0 10px 20px 10px !important; /* ensure slider handles are fully visible inside container */
}
body.category-ui-v2 .noUi-target {
  background: #eeeeee !important;
  border: none !important;
  box-shadow: none !important;
  height: 4px !important;
}
body.category-ui-v2 .noUi-connect {
  background: #ff0000 !important;
}
body.category-ui-v2 .noUi-handle {
  border: 4px solid #1a1a1a !important;
  background: #1a1a1a !important;
  border-radius: 50% !important; /* Changed from 0 to 50% for standard round handle */
  box-shadow: none !important;
  width: 16px !important;
  height: 16px !important;
  right: -8px !important;
  top: -6px !important;
  cursor: pointer !important;
}
body.category-ui-v2 .noUi-handle::before,
body.category-ui-v2 .noUi-handle::after {
  display: none !important;
}
body.category-ui-v2 .price-input-group {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
}
body.category-ui-v2 .price-input-group label {
  font-size: 10px !important;
  text-transform: uppercase;
  color: #1a1a1a !important;
  font-weight: 700;
}
body.category-ui-v2 .price-input-group input {
  width: 100% !important; /* Ensure input takes full width of flex child */
  padding: 8px 10px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  border: 1px solid #eeeeee !important;
  color: #444444 !important;
  box-sizing: border-box !important; /* Important when width is 100% */
}
body.category-ui-v2 .price-display {
  font-size: 12px !important;
  color: #1a1a1a !important;
  font-weight: 600 !important;
  margin-top: 15px !important;
  text-align: center !important; /* Center the price text */
}

/* Search Brand Input */
body.category-ui-v2 .search-brand input {
  padding: 8px 30px 8px 12px !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  border: 1px solid #eeeeee !important;
  background: #ffffff !important;
  color: #444444 !important;
}
body.category-ui-v2 .search-brand i {
  color: #a0a0a0 !important;
  font-size: 12px !important;
}

body.category-ui-v2 .pro-container:not(.list-view) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 15px !important;
}

body.category-ui-v2 .pro-container:not(.list-view) .pro {
  width: calc(20% - 12px) !important;
  min-width: 180px !important;
  flex-shrink: 0 !important;
}

body.category-ui-v2 .pro {
  background: #ffffff !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 6px !important;
  padding: 10px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: none !important;
}

body.category-ui-v2 .pro:hover {
  border-color: #ff0000 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.category-ui-v2 .pro img {
  border-radius: 4px;
}

body.category-ui-v2 .pro .des {
  padding-top: 8px !important;
}

body.category-ui-v2 .pro .des h5 {
  color: #333333 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important; /* Smaller text for smaller cards */
  line-height: 1.3 !important;
  margin: 6px 0 !important;
  height: 2.2em; /* Ensure alignment */
  overflow: hidden;
}

body.category-ui-v2 .pro .des h4 {
  color: #ff0000 !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  margin-top: 8px !important;
}

body.category-ui-v2 .pro .des span {
  color: #999999 !important;
  font-size: 10px !important;
  font-weight: 600;
}

body.category-ui-v2 .stock-status {
  font-size: 10px !important;
  padding: 2px 6px !important;
  border-radius: 3px !important;
  background: #f8f8f8 !important;
  margin-top: 5px !important;
}

body.category-ui-v2 .pro-pagination .page-btn {
  width: 32px;
  height: 32px;
  font-size: 13px;
  border-radius: 4px;
}

/* Responsiveness adjustments for product grid */
@media (max-width: 1400px) {
  body.category-ui-v2 .pro-container:not(.list-view) .pro {
    width: calc(25% - 12px) !important;
  }
}

@media (max-width: 1100px) {
  body.category-ui-v2 .pro-container:not(.list-view) .pro {
    width: calc(33.333% - 10px) !important;
  }
}

@media (max-width: 768px) {
    i.fa-solid.fa-barcode {
        display: none;
    }
  body.category-ui-v2 .pro-container:not(.list-view) {
    gap: 10px !important;
  }
  body.category-ui-v2 .pro-container:not(.list-view) .pro {
    width: calc(50% - 5px) !important;
    min-width: 140px !important;
  }

  body.category-ui-v2 .category-header h1 {
    font-size: 1.8rem !important;
  }

  body.category-ui-v2 .feature-products {
    padding: 20px 10px !important;
  }
}

@media (max-width: 400px) {
  body.category-ui-v2 .pro-container:not(.list-view) {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(5, auto) !important;
  }
}
a.categories-btn {
    text-decoration: none;
    color: black;
}

/* ==========================================================================
   PC & ULTRAWIDE RESPONSIVE CENTERING (>= 1200px)
   Constrains and centers the main content across the entire website on PC & Ultrawide.
   Creates generous left & right margins/padding while centering content.
   Screens < 1200px (mobile & tablet) remain completely unchanged.
   ========================================================================== */
@media (min-width: 1200px) {
  /* 1. Header Centering & Single-Line Navigation */
  .header-container {
    width: 100%;
    background: #ffffff;
  }

  .top-header {
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .header-actions .action-icon,
  .header-actions .user-icon-link {
    white-space: nowrap !important;
  }

  .main-navbar {
    max-width: 1400px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    align-items: center !important;
  }

  .main-navbar .nav-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100%;
  }

  .main-navbar li,
  .main-navbar .nav-links li,
  #navbar li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .main-navbar .nav-links a,
  #navbar .nav-links a {
    white-space: nowrap !important;
    padding: 14px 10px !important;
    font-size: 14.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .category-toggle-btn {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin: 6px 12px 6px 0 !important;
  }

  .category-toggle-btn span,
  .category-toggle-btn .cat-btn-text {
    white-space: nowrap !important;
    display: inline-block !important;
  }

  /* 2. Hero Grid Section (Home Page) */
  .hero-grid-section {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 3. Features Section */
  .features-section {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 4. Main Section Container (section-p1) across all pages */
  .section-p1 {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 5. Category Pages Elements */
  .category-header-content,
  body.category-ui-v2 .category-header-content {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .brand-row-wrapper {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .feature-products.section-p1,
  body.category-ui-v2 .feature-products.section-p1 {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 6. Product Detail / Overhaul Pages */
  .product-overhaul-wrapper {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 7. Contact Page */
  .contact-page-wrapper {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 8. Search Page */
  .search-content-section {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 9. Checkout & Cart Pages */
  .checkout-container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 10. Blog & Promotions Pages */
  .blog-page-wrapper,
  .promo-grid {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 11. Brands Hero & Container */
  .brands-hero,
  .brand-container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  /* 12. Footer Centering */
  .footer-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-container {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .footer-bottom {
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   13. Landing Page SEO & Blog Section
   ========================================================================== */
.landing-seo-section {
  max-width: 1400px;
  margin: 30px auto 10px;
  padding: 0 20px;
  box-sizing: border-box;
}

.landing-seo-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.landing-seo-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 14px;
  line-height: 1.35;
}

.landing-seo-content p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 12px;
}

.landing-seo-content p:last-child {
  margin-bottom: 0;
}

.landing-seo-more {
  display: none;
}

.landing-seo-more.show {
  display: block;
}

.landing-seo-toggle {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.landing-seo-toggle:hover {
  background: #e5e7eb;
  color: #111827;
}

.landing-blog-section {
  max-width: 1400px;
  margin: 15px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

.landing-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-blog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.landing-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.landing-blog-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #111827;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: visible;
}

.landing-blog-img-link {
  display: block;
  width: 100%;
  height: 100%;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.landing-blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.landing-blog-card:hover .landing-blog-img-wrap img {
  transform: scale(1.05);
}

.landing-blog-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  min-width: 44px;
  z-index: 2;
  pointer-events: none;
}

.blog-date-day {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  line-height: 1;
}

.blog-date-month {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.landing-blog-cat-badge {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff2600;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(255, 38, 0, 0.35);
  white-space: nowrap;
  z-index: 3;
}

.landing-blog-body {
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  background: #ffffff;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.landing-blog-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-blog-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-blog-title a:hover {
  color: #ff2600;
}

.landing-blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 12px;
}

.landing-blog-meta i {
  color: #9ca3af;
}

.landing-blog-excerpt {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-blog-action {
  margin-top: auto;
}

.landing-blog-read-more {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ff2600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-blog-read-more:hover {
  color: #cc1f00;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .landing-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-blog-grid {
    grid-template-columns: 1fr;
  }
  .landing-seo-card {
    padding: 20px 16px;
  }
  .landing-seo-title {
    font-size: 1.2rem;
  }
}