/* --- RESET & VARIABLES --- */
:root {
  --color-primary: #5aa1e3;
  /* --color-secondary: #ff5252; */
  --color-secondary: #f06060;
  --color-accent: #568c56;
  --dark-bg: #1a1a1a;
  --text-dark: #333;
  --text-light: #fff;
  --border-color: #eee;
  --border-radius: 7px;
  --font-main: 'Poppins', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #fff;
  --swiper-navigation-size: 21px !important;
  --swiper-pagination-size: 10px !important;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- UTILITIES --- */
.desktop-only {
  display: none !important;
}
.mobile-only {
  display: block !important;
}

.section-padding {
  padding: 40px 0;
}

.white-text {
  color: var(--text-light);
}

.dark-bg {
  background-color: var(--dark-bg);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 500;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--text-light);
}
.btn-primary:hover {
  background-color: #4a8ac2;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--text-light);
}
.btn-secondary:hover {
  background-color: #e54949;
}

.btn-dark {
  background-color: #000;
  color: #fff;
  padding: 8px 15px; /* Overriding base */
  font-size: 0.8rem; /* Overriding base */
}
.btn-dark:hover {
  background-color: #333;
}

.btn-outline-white {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}
.btn-outline-white:hover {
  background: var(--text-light);
  color: var(--dark-bg);
}

/* --- HEADER --- */
.top-bar {
  background-color: var(--color-secondary);
  color: #fff;
  text-align: center;
  padding: 8px;
  font-size: 0.9rem;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

.header-main {
  padding: 10px 0 3px;
  border-bottom: 1px solid var(--border-color);
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text span:last-child {
  opacity: 0.8;
}

.logo a {
  text-decoration: none;
}

.header-search {
  display: flex;
  width: 100%;
  margin-top: 15px;
}

.header-search input {
  flex-grow: 1;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  border-right: none;
  font-size: 0.9rem;
}

.header-search input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.header-search button {
  background: var(--color-primary);
  border: none;
  color: #fff;
  padding: 0 20px;
  cursor: pointer;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-size: 1rem;
}

.desktop-nav {
  display: none; /* Mobile first */
}

.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-actions .icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .cart-count {
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -7px;
  right: -10px;
}

.header-actions .icon-btn span {
  font-size: 0.85rem;
  font-weight: 500;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
}

/* --- MAIN NAV --- */
.main-nav-wrapper {
  background: var(--color-primary);
  color: #fff;
  padding: 5px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.main-nav-wrapper .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.desktop-nav a {
  padding: 10px 15px;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: background-color 0.2s;
}
.desktop-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

/* --- NEW 3-ROW HEADER STYLES --- */

/* 1. Base Header Layout */
.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 100;
}

/* 2. Row 2: Main Header (Logo, Search, Icons) */
.header-main {
  padding: 10px 0 3px;
  border-bottom: 1px solid #f0f0f0; /* Subtle separator */
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo Adjustment */
.logo a {
  text-decoration: none;
}
.logo-text {
  font-size: 1.6rem;
  line-height: 1;
}

/* Desktop Search Bar (Wide) */
.search-bar-desktop {
  flex-grow: 1;
  max-width: 600px; /* Prevent it from getting too wide on huge screens */
}
.search-form {
  display: flex;
  width: 100%;
}
.search-form input {
  flex-grow: 1;
  padding: 10px 15px;
  border: 2px solid var(--color-primary);
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--border-color);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  -webkit-border-radius: var(--border-radius) 0 0 var(--border-radius);
  -moz-border-radius: var(--border-radius) 0 0 var(--border-radius);
  -ms-border-radius: var(--border-radius) 0 0 var(--border-radius);
  -o-border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.search-form button {
  background-color: var(--dark-bg);
  color: #fff;
  border: 2px solid var(--dark-bg);
  padding: 0 25px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.2s;
}
.search-form button:hover {
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

/* Header Actions (Login / Cart) */
.header-actions {
  display: flex;
  gap: 25px;
  align-items: center;
}
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  text-decoration: none;
}
.icon-wrapper {
  position: relative;
  font-size: 1.4rem;
  color: #444;
}
.text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.text-wrapper .sub {
  font-size: 0.75rem;
  color: #888;
}
.text-wrapper .main {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

v-count {
  position: absolute;
  top: -8px;
  right: -8px;
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  background: var(--color-secondary);
}

.fav-count {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -7px;
  right: -10px;
}

/* 3. Row 3: Colored Nav Strip (Desktop) */
.header-nav-strip {
  background-color: var(--color-primary);
  color: #fff;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-nav a {
  display: inline-block;
  padding: 12px 15px;
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-extras {
  display: flex;
  align-items: center;
}
.extra-link {
  color: #fff;
  font-size: 0.9rem;
  padding: 5px 15px;
  text-decoration: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background-color: var(--dark-bg);
  margin-left: 7px;
  cursor: pointer;
  -webkit-border-radius: var(--border-radius);
  -moz-border-radius: var(--border-radius);
  -ms-border-radius: var(--border-radius);
  -o-border-radius: var(--border-radius);
  border-radius: var(--border-radius);
}
/* .extra-link.highlight {
  font-weight: 600;
  color: #ffeb3b;
} */

/* 4. Mobile Specific Elements */
.mobile-menu-toggle {
  display: none;
}
.search-bar-mobile {
  display: none;
}
.desktop-only-inline {
  display: block;
}
.desktop-only-flex {
  display: flex;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
  /* Hide Desktop Elements */
  .search-bar-desktop {
    display: none;
  }
  .desktop-only-inline {
    display: none;
  }
  .desktop-only-flex {
    display: none;
  }

  /* Layout Changes for Mobile Row 2 */
  .header-layout {
    /* No specific justify-content needed here as we want items clustered */
    justify-content: space-between;
  }

  /* Mobile Menu Button */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
  }
  .mobile-menu-text {
    font-size: 0.8rem;
    font-weight: 600;
    display: none;
  } /* Hide text on very small screens? */

  /* Mobile Search Bar (Row 2.5) */
  .search-bar-mobile {
    display: block;
    padding: 10px 0;
    background: var(--color-primary); /* Light grey background for contrast */
    border-bottom: 1px solid #ddd;
  }
  .search-bar-mobile .search-form input {
    border-radius: 4px; /* Full radius on mobile */
    border: 1px solid #ccc;
  }
  .search-bar-mobile .search-form button {
    border-radius: 0 4px 4px 0;
    margin-left: -4px; /* Connect buttons */
    background-color: var(--dark-bg);
  }

  /* Adjust Logo Size */
  .logo-text {
    font-size: 1.3rem;
  }

  /* Adjust Icon Size */
  .icon-wrapper {
    font-size: 1.3rem;
  }
}

@media (min-width: 992px) {
  /* Ensure Nav Strip logic works */
  .header-nav-strip {
    display: block;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  height: 300px;
  background: url('../../assets/images/hero-01.jpg') no-repeat center
    center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero h1 {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
}

/* --- HERO SLIDER --- */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 350px;
  max-height: 500px;
}

.hero-slider {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider .hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.hero-slider .hero-content .container {
  display: flex;
  flex-direction: column;
}

.hero-slider .hero-content[style*='text-align: left'] .container {
  align-items: flex-start;
}
.hero-slider .hero-content[style*='text-align: center'] .container {
  align-items: center;
}
.hero-slider .hero-content[style*='text-align: right'] .container {
  align-items: flex-end;
}

.hero-slider .hero-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-slider .hero-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

@media (max-width: 768px) {
  .hero-slider .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-slider .hero-content p {
    font-size: 0.9rem;
  }
}

.hero-slider .swiper-pagination-bullet-active {
  background-color: #fff;
}

.promo-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* --- PROMOS (Grid) --- */
/* .promos {
  display: none;
} */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.promo-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.promo-text {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  color: #fff;
}

.promo-card.red .promo-text {
  background: var(--color-secondary);
}

.promo-card.blue .promo-text {
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* --- GREEN BANNER --- */
.green-banner {
  display: none; /* Hidden on mobile */
  background-color: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* --- PRODUCTS --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.product-card {
  background: #fff;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  height: 100%;

  -webkit-transition: box-shadow 0.3s;
  -moz-transition: box-shadow 0.3s;
  -ms-transition: box-shadow 0.3s;
  -o-transition: box-shadow 0.3s;
  transition: box-shadow 0.3s;
}
.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.product-card:hover .prod-img img {
  transform: scale(1.05);
}

.prod-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.prod-img img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
  transition: transform 0.3s ease;
}

.prod-details {
  padding: 7px;
  text-align: center;
  border-top: 1px solid var(--border-color);

  flex-grow: 1;
}

.prod-details .price {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.prod-details .prod-name {
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.card-footer {
  padding: 10px 15px 15px 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Card Qty Selector */
.card-qty-selector {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  height: 36px;
  width: 100px; /* Fixed width for consistency */
  flex-shrink: 0;
}

.card-qty-selector button {
  background: #f8f9fa;
  border: none;
  width: 28px;
  cursor: pointer;
  color: #555;
  font-size: 0.7rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-qty-selector button:hover {
  background: #e9ecef;
  color: #000;
}

.card-qty-selector input {
  width: 100%; /* Fills remaining space */
  border: none;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  -moz-appearance: textfield; /* Firefox remove spinner */
  appearance: textfield;
}
/* Remove spinner arrows in Chrome/Safari */
.card-qty-selector input::-webkit-outer-spin-button,
.card-qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-cart-btn {
  /*width: 100%;
  */
  flex-grow: 1;
  background: var(--color-secondary);
  color: #fff;
  border: none;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--border-radius);
  -webkit-border-radius: var(--border-radius);
  -moz-border-radius: var(--border-radius);
  -ms-border-radius: var(--border-radius);
  -o-border-radius: var(--border-radius);
}
.add-cart-btn:hover {
  background-color: var(--color-primary);
}

/* --- WHY PARTNER --- */
.features {
  display: none; /* Hidden on mobile */
}

.feature-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.feature-bar {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-weight: 600;
}

/* --- SHOP PAGE --- */
.shop-page {
  background-color: #f9f9f9;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  border-radius: 5px;
}

.product-count {
  font-size: 0.9rem;
  color: #666;
}

.shop-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.orderby {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.view-toggle .icon-btn {
  color: #aaa;
  font-size: 1.4rem;
}

.view-toggle .icon-btn.active {
  color: var(--color-primary);
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

.shop-sidebar .filter-widget {
  background: #fff;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  border-radius: 5px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.category-filter-list li {
  margin-bottom: 10px;
}

.category-filter-list a {
  font-size: 0.9rem;
  color: #555;
  transition: color 0.2s;
}

.category-filter-list a:hover {
  color: var(--color-primary);
}

.category-filter-list span {
  float: right;
  font-size: 0.8rem;
  color: #999;
}

/* Price Filter Placeholder */
.price-slider-amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.price-slider-amount input {
  border: none;
  font-weight: bold;
  color: #555;
  width: 60%;
}

/* --- DUAL PRICE SLIDER CSS --- */

.double-slider-box {
  width: 100%;
  padding: 10px 5px;
}

.range-slider {
  position: relative;
  width: 100%;
  height: 5px;
  margin: 30px 0; /* Space for thumbs */
}

/* Background Track (Grey) */
.slider-track {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #ddd;
  border-radius: 5px;
  top: 0;
  left: 0;
}

/* Active Range (Blue) */
.slider-range {
  position: absolute;
  height: 100%;
  background-color: var(--primary-blue);
  border-radius: 5px;
  top: 0;
  /* JS will set 'left' and 'right' properties dynamically */
}

/* The Range Inputs (Stacked & Transparent) */
.range-input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: 0;
  left: 0;
  background: none;
  pointer-events: none; /* Allows click to pass through to bottom slider */
  -webkit-appearance: none;
  appearance: none;
  z-index: 10;
}

/* The Thumb (Handle) Styling */
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  pointer-events: auto; /* Re-enable pointer events for the handle */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-top: -8px; /* Center verticall on track */
}

.range-input::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border: none;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary-blue);
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Number Inputs styling */
.price-input-fields {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.price-input-fields .field {
  display: flex;
  flex-direction: column;
  width: 45%;
}

.price-input-fields span {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 5px;
}

.price-input-fields input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  -moz-appearance: textfield;
  appearance: textfield;
}

.price-input-fields input::-webkit-outer-spin-button,
.price-input-fields input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.separator {
  font-weight: 600;
  color: #999;
  margin-top: 15px;
}

/* Featured Products Widget */
.featured-product-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}

.featured-product-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}

.featured-product-details .prod-name {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  height: auto;
}

.featured-product-details .price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}

/* --- LIST VIEW STYLES --- */
.product-grid.list-view {
  grid-template-columns: 1fr;
  /* 1 column for list view */
}

.list-view .product-card {
  display: flex;
  text-align: left;
}

.list-view .prod-img {
  width: 200px;
  flex-shrink: 0;
  height: auto; /* Override fixed height for list view */
}

.list-view .prod-img img {
  height: 100%;
  object-fit: cover;
}

.list-view .prod-details {
  border: none;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.list-view .prod-details .prod-name {
  height: auto;
  margin-bottom: auto; /* Pushes button to bottom */
}

.list-view .add-cart-btn {
  width: auto;
  padding: 8px 20px;
  border-radius: 4px;
}

/* --- PAGINATION --- */
.pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  gap: 5px;
}

.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text-dark);
  border-radius: 4px;
  font-size: 0.9rem;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* --- FOOTER --- */
.main-footer {
  background: #151515;
  color: #ccc;
  padding-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-col.about p {
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.8;
}

.payment-icons {
  font-size: 1.5rem;
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.main-footer .contact-list li i {
  margin-top: 5px;
}

.footer-bottom {
  background: var(--color-secondary);
  color: #fff;
  padding: 15px;
  font-size: 0.8rem;
  
  @media(max-width:770px){
  margin-bottom: 65px;
  }
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 992px) {
  .footer-bottom .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.footer-bottom .container .copyright-message {
  text-align: left;
}
.footer-bottom .container .developer-credit {
  text-align: right;
}

@media (max-width: 992px) {
  .footer-bottom .container .copyright-message,
  .footer-bottom .container .developer-credit {
    text-align: center;
  }
}

/* --- MOBILE NAV --- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-primary);
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  color: #fff;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%; /* Hidden by default */
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #fff;
  z-index: 2000;
  transition: left 0.3s ease-in-out;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}
.mobile-nav-drawer.active {
  left: 0;
}
body.mobile-nav-open {
  overflow: hidden;
}
/* I'll add the drawer content styles later if needed */

/* =========================================
   MEDIA QUERIES (DESKTOP OVERRIDES)
   ========================================= */
@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }

  .desktop-only,
  .desktop-only-flex {
    display: block;
  }
  .desktop-only-flex {
    display: flex;
  }

  .mobile-only,
  .mobile-only-flex {
    display: none !important;
  }

  /* Header */
  .main-header .container {
    display: block;
  }
  .header-flex {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
  }
  .header-search {
    margin-top: 0;
  }
  .mobile-menu-btn {
    display: none;
  }

  .desktop-nav {
    display: flex;
    gap: 5px;
  }

  /* Hero */
  .hero {
    height: max(300px, 40vh);
  }

  .hero h1 {
    font-size: 2rem;
    background: none;
    text-shadow: none;
    line-height: 1.2;
  }
  .hero-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 50px;
    border-radius: var(--border-radius);
  }

  /* Show Desktop Sections */
  .promos,
  .green-banner,
  .features {
    display: block;
  }

  .main-nav-wrapper {
    display: block;
  }

  /* Hide Mobile Bottom Nav */
  .mobile-bottom-nav {
    display: none;
  }

  /* Shop Page */
  .shop-layout {
    grid-template-columns: 280px 1fr;
  }

  .shop-sidebar {
    display: block;
  }

  .shop-header {
    display: flex;
  }

  .product-grid.list-view .prod-img {
    width: 250px;
  }

  /* Products */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* --- SHOP SPECIFIC LAYOUT --- */

/* Page Header */
.page-header {
  background-color: #f4f4f4;
  padding: 5px 0;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.breadcrumbs {
  font-size: 0.9rem;
  color: #666;
}

/* Main Grid Layout */
.shop-layout {
  display: flex;
  gap: 40px;
  padding-bottom: 60px;
  position: relative;
  align-items: flex-start; /* Crucial for sticky to work */
}

/* Sidebar Styles */
.shop-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
}
.filter-group {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.filter-group:last-child {
  border-bottom: none;
}
.filter-actions {
  display: flex;
  gap: 10px;
}
.filter-actions .btn {
  flex-grow: 1;
  padding: 12px 5px;
  font-size: 0.9rem;
}
.filter-group.categories-filter {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}
.filter-list .sub-category-list {
  display: none;
  padding-left: 20px;
}
.filter-list .collapsible.open > .sub-category-list {
  display: block;
}
.filter-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.filter-item-header label {
  flex-grow: 1;
  cursor: pointer;
}
.toggle-icon {
  width: 20px;
  text-align: center;
}
.collapsible .toggle-icon .fa-minus {
  display: none;
}
.collapsible.open .toggle-icon .fa-plus {
  display: none;
}
.collapsible.open .toggle-icon .fa-minus {
  display: inline-block;
}
.filter-group h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text-dark);
}
.filter-list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #555;
}
.filter-list input[type='checkbox'] {
  margin-right: 10px;
  accent-color: var(--color-primary);
}
.price-slider input {
  width: 100%;
  margin-bottom: 10px;
}

/* Mobile Only Sidebar Elements */
.mobile-filter-toggle {
  display: none;
}
.sidebar-header {
  display: none;
}

/* Content Area */
.shop-content {
  flex-grow: 1;
}

/* Toolbar */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: var(--border-radius);
}
.result-count {
  font-size: 0.9rem;
  color: #666;
}
.sort-wrapper select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  color: #333;
  font-family: inherit;
}

/* Grid Override */
.shop-grid-view {
  grid-template-columns: repeat(3, 1fr); /* 3 cols for Shop */
  gap: 25px;
}

/* Product Card Enhancements */
.product-card {
  border: 1px solid var(--border-color);
  transition: box-shadow 0.3s;
}
.product-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prod-img {
  position: relative;
}
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-transform: uppercase;
}
.badge.sale {
  background-color: var(--color-secondary);
}
.badge.new {
  background-color: var(--color-accent);
}
.badge.special-price-badge {
  background-color: var(--color-accent);
  z-index: 2;
}
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #888;
}

.favorite-btn:hover {
  background: #fff;
  color: var(--color-secondary);
  transform: scale(1.1);
}

.favorite-btn .fa-heart {
  font-weight: 400; /* Regular (empty) heart */
}

.favorite-btn.is-favorite .fa-heart {
  font-weight: 900; /* Solid heart */
  color: var(--color-secondary);
}
.large-fav-btn {
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  padding: 8px 15px;
  position: static; /* Override absolute positioning */
  margin-bottom: 20px;
  display: inline-flex; /* Use inline-flex */
  gap: 8px;
  background: #f4f4f4;
}

.category-tag {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 5px;
  font-weight: 400;
  font-size: 0.85rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}
.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--text-dark);
  /*Circleslookgoodforpagination*/
  transition: 0.3s;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border-radius: 5px;
}
.pagination span.disabled {
  color: #ccc;
  cursor: not-allowed;
}
.pagination span.ellipsis {
  border: none;
  background: none;
}
.pagination a:hover,
.pagination a.active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .shop-layout {
    display: block;
  }

  /* Hide Sidebar by default on mobile */
  .shop-sidebar {
    position: fixed;
    top: 0;
    left: -100%; /* Hidden left */
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
    overflow-y: auto;
  }
  .shop-sidebar.active {
    left: 0;
  }

  /* Show Mobile Controls */
  .sidebar-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
  }
  #closeFilterBtn {
    background: none;
    border: none;
    font-size: 1.5rem;
  }

  .mobile-filter-toggle {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 20px;
    text-align: left;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-filter-toggle i {
    margin-right: 10px;
    color: var(--color-primary);
  }

  .product-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .shop-toolbar {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .sort-wrapper,
  .sort-wrapper select {
    width: 100%;
  }
}

/* --- PRODUCT PAGE LAYOUT --- */

/* Breadcrumbs */
.breadcrumb-strip {
  padding: 20px 0;
  font-size: 0.85rem;
  color: #888;
}
.breadcrumb-strip a {
  color: #555;
  transition: color 0.2s;
}
.breadcrumb-strip a:hover {
  color: var(--color-primary);
}
.breadcrumb-strip span {
  color: #333;
  font-weight: 500;
}

/* Main Split Layout */
.product-split-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 80px;
  align-items: flex-start; /* Crucial for sticky to work */
}

/* --- LEFT: STICKY GALLERY --- */
.sticky-gallery {
  flex: 1;
  min-width: 300px;
  /* THE MAGIC: */
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 20px; /* Distance from top of viewport */
}

.main-image-frame {
  position: relative;
  background: #f9f9f9;
  /* border-radius: 8px; */
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 15px;
  /* border: 1px solid #eee; */
  border: none;
}
.main-image-frame img {
  width: 100%;
  height: auto;
  /* height: 100%; */
  /* aspect-ratio: 1/1; /*
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.main-image-slider .swiper-slide {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.thumbnail-slider-container {
  position: relative;
}

.thumbnail-slider {
  margin-top: 15px;
  /* Add padding to make space for arrows without overlapping thumbs */
  padding: 5px 30px;
}

.thumb {
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s;
  height: 100%;
}
.thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.thumbnail-slider .swiper-slide {
  opacity: 0.6;
}

.thumbnail-slider .swiper-slide-thumb-active {
  opacity: 1;
}
.thumbnail-slider .swiper-slide-thumb-active .thumb {
  border-color: var(--color-primary);
}

/* Thumbnail Nav Arrows */
.thumbnail-slider-container .swiper-button-next,
.thumbnail-slider-container .swiper-button-prev {
  color: var(--text-dark);
  top: 50%;
  transform: translateY(-50%);
  height: 30px;
  width: 30px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
}
.thumbnail-slider-container .swiper-button-next:hover,
.thumbnail-slider-container .swiper-button-prev:hover {
  background-color: #fff;
  color: var(--color-primary);
}
.thumbnail-slider-container .swiper-button-next::after,
.thumbnail-slider-container .swiper-button-prev::after {
  font-size: 0.8rem;
  font-weight: 700;
}

/* --- RIGHT: SCROLLABLE INFO --- */
.scrollable-info {
  flex: 1;
  min-width: 300px;
}

.sku {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 5px;
}
.product-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #222;
}

.large-fav-btn:hover {
  background: #e9e9e9;
}

.large-fav-btn span {
  font-size: 0.9rem;
  font-weight: 600;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.rating-box .stars {
  color: #ffb400;
  font-size: 0.85rem;
}
.rating-box span {
  color: #777;
}

.price-box {
  background: #f8fbfd;
  padding: 15px;
  border-left: 4px solid var(--color-primary);
  margin-bottom: 20px;
}
.price-box .price-container {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
}

.price-box .old-price {
  font-size: 1.5rem;
  font-weight: 400;
  color: #888;
  text-decoration: line-through;
}

.price-box .badge.special-price-badge {
  display: inline-block;
  margin-left: 15px;
  vertical-align: middle;
  font-size: 0.9rem;
  padding: 5px 10px;
}
.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.unit {
  font-size: 1rem;
  color: #555;
}
.stock-status {
  margin-top: 5px;
  font-weight: 500;
  font-size: 0.9rem; /* --- OUT OF STOCK & NOTIFICATION STYLES --- */

  /* Stock Status Colors */
  .stock-status.out-stock {
    color: var(--primary-red);
    font-weight: 600;
  }

  /* Notification Card */
  .notify-card {
    background: #fff8e1; /* Light yellow background for attention */
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
  }

  .notify-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #856404;
  }
  .notify-header i {
    font-size: 1.2rem;
  }
  .notify-header h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
  }

  .notify-card p {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  /* Logged In Button */
  .btn-notify-simple {
    background: #333;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
  }
  .btn-notify-simple:hover {
    background: #000;
  }

  /* Guest Form */
  .notify-form .form-group {
    margin-bottom: 15px;
  }
  .notify-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: #444;
    font-weight: 500;
  }
  .notify-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd; /* White input on yellow bg */
    border-radius: 4px;
    background: #fff;
  }

  .btn-notify-full {
    width: 100%;
    background: #333;
    color: #fff;
    padding: 8px 24px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
  }
  .btn-notify-full:hover {
    background: #000;
  }

  /* Utility Helper */
  .hidden {
    display: none !important;
  }
}
.stock-status.in-stock {
  color: #2e7d32;
}

.short-desc {
  color: #555;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

/* B2B Table */
.bulk-pricing {
  margin-bottom: 25px;
}
.bulk-pricing h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.bulk-pricing table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bulk-pricing th,
.bulk-pricing td {
  padding: 8px 12px;
  border: 1px solid #eee;
  text-align: left;
}
.bulk-pricing th {
  background: #f4f4f4;
  color: #333;
}

/* Actions */
.action-zone {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.qty-selector {
  display: flex;
  border: 2px solid #ddd;
  border-radius: 5px;
  height: 50px;
}
.qty-btn {
  background: none;
  border: none;
  width: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #555;
}
.qty-btn:hover {
  background: #f4f4f4;
}
.qty-selector input {
  width: 50px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.large-btn {
  flex-grow: 1;
  font-size: 1.1rem;
  border-radius: 5px;
}

.b2b-links {
  display: flex;
  gap: 20px;
  font-size: 0.9rem;
  margin-bottom: 30px;
}
.b2b-links a {
  color: #666;
  text-decoration: underline;
}
.b2b-links a:hover {
  color: var(--color-primary);
}

.notify-btn-dark {
  background-color: #333 !important; /* Overrides the default Red */
  border: 1px solid #333;
  margin-top: 10px;
  height: auto; /* Ensures padding defines height */
  padding: 12px 20px; /* Comfortable click area */
  text-transform: none; /* Optional: Makes it 'Notify Me' instead of 'NOTIFY ME' */
}
.btn-notify-simple {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-notify-simple:hover {
  background: #000;
}
.btn-notify-full {
  width: 100%;
  background: #333;
  color: #fff;
  padding: 12px 24px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  border-radius: 4px;
}
.btn-notify-full:hover {
  background: #000;
}

.notify-btn-dark:hover {
  background-color: #000 !important;
}

.divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 30px 0;
}

/* Detailed Content Styles */
.long-details h3 {
  font-size: 1.3rem;
  margin: 30px 0 15px;
  color: #222;
}
.long-details p {
  margin-bottom: 15px;
  color: #555;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.specs-table tr:nth-child(odd) {
  background-color: #f9f9f9;
}
.specs-table td {
  padding: 10px;
  border: 1px solid #eee;
  font-size: 0.9rem;
}
.specs-table td:first-child {
  font-weight: 600;
  width: 35%;
  color: #333;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  /* Disable sticky on smaller screens where side-by-side isn't possible */
  .sticky-gallery {
    position: static;
    width: 100%;
  }
  .product-split-layout {
    flex-direction: column;
    gap: 30px;
  }
  .product-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .action-zone {
    flex-direction: column;
  }
  .qty-selector {
    width: 100%;
    justify-content: space-between;
  }
  .main-image-frame {
    border: none;
  }
}

/* --- CART PAGE STYLES --- */

/* Simple Header */
.page-header-simple {
  background-color: #fff;
  padding: 30px 0 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}
.page-header-simple h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
}

.cart-container {
  padding-bottom: 80px;
}

/* Free Shipping Bar */
.shipping-progress {
  background: #f0f8ff;
  border: 1px solid #dbeafe;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 30px;
}
.shipping-progress p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #444;
}
.shipping-progress strong {
  color: var(--color-primary);
}
.progress-track {
  background: #e0e0e0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  background: var(--color-primary);
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Split Layout */
.cart-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Left: Cart List */
.cart-list {
  flex: 2;
}

.cart-row-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1.5fr 1fr 0.5fr;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: auto 3fr 1fr 1.5fr 1fr 0.5fr; /* Img, Details, Price, Qty, Total, Remove */
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.item-img img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #f0f0f0;
}

.item-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.item-name {
  font-weight: 500;
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}
.item-name:hover {
  color: var(--color-primary);
}
.item-sku {
  font-size: 0.75rem;
  color: #999;
}

.item-price,
.item-total {
  font-weight: 500;
  color: #444;
  font-size: 0.95rem;
}
.item-total {
  font-weight: 700;
  color: #333;
}

.item-remove button {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.item-remove button:hover {
  color: var(--color-secondary);
}

/* Quantity Selector (Smaller Version) */
.qty-selector.small {
  height: 36px;
  width: 100px;
}
.qty-selector.small button {
  width: 30px;
  font-size: 1rem;
}
.qty-selector.small input {
  width: 40px;
  font-size: 0.9rem;
}

.cart-actions {
  margin-top: 20px;
}
.btn-text {
  color: #555;
  font-weight: 500;
  transition: 0.2s;
}
.btn-text:hover {
  color: var(--color-primary);
}

/* Right: Sidebar Summary */
.cart-sidebar {
  flex: 1;
  position: sticky;
  top: 20px;
}

.summary-card {
  background: #fcfcfc;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.summary-card h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.95rem;
  color: #555;
}
.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin-top: 15px;
}

.checkout-btn {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  margin: 20px 0;
  transition: background 0.3s;
}
.checkout-btn:hover {
  background: #4a8ac2;
}

.trust-badges {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}
.trust-badges i.fa-lock {
  margin-right: 5px;
  color: #2e7d32;
}
.trust-badges .cards {
  font-size: 1.5rem;
  margin-top: 10px;
  gap: 10px;
  display: flex;
  justify-content: center;
  color: #555;
}

.coupon-box {
  margin-top: 20px;
}
.coupon-box p {
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #666;
}
.input-group {
  display: flex;
}
.input-group input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}
.input-group button {
  background: #333;
  color: #fff;
  border: none;
  padding: 0 15px;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  cursor: pointer;
}

/* --- RESPONSIVE CART --- */
@media (max-width: 991px) {
  .cart-layout {
    flex-direction: column;
  }
  .cart-sidebar {
    width: 100%;
    position: static;
  }
}

@media (max-width: 768px) {
  /* Hide headers */
  .cart-row-header {
    display: none;
  }

  /* Transform Row to Flex Column */
  .cart-item-row {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    padding: 20px 0;
  }

  .item-img {
    margin-right: 15px;
  }
  .item-details {
    width: calc(100% - 110px);
  } /* Remaining width */

  /* Reposition elements */
  .item-price {
    display: none;
  } /* Hide single unit price on mobile to save space */

  .item-qty {
    margin-top: 15px;
    margin-left: 95px; /* Align with text not image */
  }

  .item-total {
    position: absolute;
    bottom: 25px;
    right: 0;
    font-size: 1.1rem;
  }

  .item-remove {
    position: absolute;
    top: 20px;
    right: 0;
  }
}

/* --- CHECKOUT SPECIFIC STYLES --- */

/* Reset body for split screen look */
body {
  background-color: #fff;
}

/* Minimal Header */
.checkout-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  background: #fff;
}
.secure-badge {
  color: #2e7d32; /* Green lock */
  font-size: 0.9rem;
  font-weight: 500;
}

/* Layout Grid */
.checkout-wrapper {
  padding: 40px 0;
}
.layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Form wider than sidebar */
  gap: 60px;
}

/* --- FORM STYLES --- */
.checkout-form-col {
  color: #333;
}

.form-section {
  margin-bottom: 40px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}
.form-section h2 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 15px;
}
.sub-text {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

/* Inputs */
.form-group {
  margin-bottom: 15px;
  position: relative;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 1px var(--color-primary);
}

/* Grid for inputs */
.form-row {
  display: flex;
  gap: 15px;
}
.form-group.half {
  width: 50%;
}
.form-group.third {
  width: 33.33%;
}

/* Payment Accordion */
.payment-accordion {
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}
.payment-option {
  border-bottom: 1px solid #d9d9d9;
}
.payment-option:last-child {
  border-bottom: none;
}

.radio-header {
  background: #fdfdfd;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.radio-header label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}
.payment-body {
  padding: 15px;
  background: #f4f4f4;
  border-top: 1px solid #ddd;
}
.payment-body.hidden {
  display: none;
}
.input-icon {
  position: absolute;
  right: 15px;
  top: 40px; /* Adjust based on label height */
  color: #999;
}

/* Submit Button */
.submit-order-btn {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-order-btn:hover {
  background: #4a8ac2;
}

/* Footer Links */
.footer-links {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--color-primary);
}

/* --- RIGHT SIDEBAR --- */
.checkout-sidebar {
  background: #fafafa;
  border-left: 1px solid var(--border-color);
  padding-left: 40px;
  /* Simulate visual Full Height background for sidebar */
  /* position: relative; */

  position: sticky;
  position: -webkit-sticky;
  top: 20px;
  /* height: auto; */
  /* min-height: 100%; */
}

@media (max-width: 992px) {
  .checkout-sidebar {
    padding-left: 0;
  }
}
.checkout-sidebar::before {
  content: '';
  position: absolute;
  top: -100px; /* Extend up */
  bottom: -100px; /* Extend down */
  right: -1000px; /* Extend right */
  left: 0;
  background: #fafafa;
  z-index: -1;
  border-left: 1px solid var(--border-color);
}

.sidebar-content {
  position: sticky;
  top: 20px;
}

.mini-cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.thumb-wrapper {
  position: relative;
  width: 65px;
  height: 65px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  background: #fff;
}
.thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
}
.qty-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #777;
  color: #fff;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-text {
  flex: 1;
}
.item-text p {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}
.variant {
  font-size: 0.75rem;
  color: #777;
}
.price {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.discount-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.discount-row input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}
.discount-row button {
  padding: 10px 15px;
  background: #ddd; /* Disabled look initially */
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #555;
  cursor: pointer;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #555;
}
.cost-row.total {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-top: 20px;
  align-items: center;
}
.currency {
  font-size: 0.8rem;
  font-weight: 400;
  color: #777;
}

/* --- MOBILE TOGGLE --- */
.mobile-summary-toggle {
  display: none; /* Hidden on desktop */
  background: #fafafa;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
  cursor: pointer;
  margin: -20px -20px 20px -20px; /* Bleed to edges */
}
.mobile-summary-content {
  display: none;
  background: #fafafa;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}
.total-preview {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .checkout-sidebar {
    display: none;
  } /* Hide Right Col */

  .mobile-summary-toggle {
    display: flex;
    margin: 0 0 20px 0;
  }

  .checkout-header .container {
    justify-content: center;
  }
  .secure-badge {
    display: none;
  } /* Save space on mobile header */
  .form-row {
    flex-direction: column;
    gap: 15px;
  }
  .form-group.half,
  .form-group.third {
    width: 100%;
  }
}

/* --- FAQ PAGE STYLES --- */

/* Hero Section */
.faq-hero {
  background-color: #f4f8fb; /* Very light blue tint */
  padding: 20px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.faq-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #333;
}
.faq-hero p {
  color: #666;
  margin-bottom: 30px;
}

.faq-search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.faq-search-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 50px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}
.faq-search-wrapper input:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 4px 20px rgba(90, 161, 227, 0.2);
}
.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
}

/* Layout Grid */
.faq-layout {
  display: flex;
  gap: 50px;
  padding-top: 50px;
  padding-bottom: 50px;
}

/* Sidebar Navigation */
.faq-sidebar {
  width: 250px;
  flex-shrink: 0;
}
.faq-sidebar ul {
  position: sticky;
  top: 30px;
  list-style: none;
  border-left: 2px solid var(--border-color);
}
.faq-sidebar li a {
  display: block;
  padding: 10px 20px;
  color: #666;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  text-decoration: none;
  position: relative;
}
.faq-sidebar li a:hover {
  color: var(--color-primary);
}
.faq-sidebar li a.active-link {
  color: var(--color-primary);
  font-weight: 600;
}
/* Visual indicator for active link */
.faq-sidebar li a.active-link::before {
  content: '';
  position: absolute;
  left: -2px; /* overlap border */
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--color-primary);
}

/* Content Area */
.faq-content {
  flex-grow: 1;
  max-width: 800px;
}
.faq-category {
  margin-bottom: 50px;
  scroll-margin-top: 100px; /* For anchor offset */
}
.faq-category h2 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #333;
}

/* Accordion Item */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 15px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.3s;
}
.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  background: #fff;
  border: none;
  padding: 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  font-family: inherit;
}
.faq-question i {
  color: #999;
  transition: transform 0.3s ease;
}

/* Active State */
.faq-item.active .faq-question {
  background: #fdfdfd;
  color: var(--color-primary);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: #fff;
}
.faq-answer p {
  padding: 0 20px 20px 20px;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Contact CTA Box */
.contact-cta {
  padding-bottom: 60px;
}
.cta-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
}
.cta-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cta-box p {
  color: #f7f7f7;
  margin-bottom: 25px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}
.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  transition: 0.3s;
}
.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .faq-layout {
    flex-direction: column;
  }
  .faq-sidebar {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
  }
  .faq-sidebar ul {
    display: flex;
    border-left: none;
    position: static;
    gap: 10px;
  }
  .faq-sidebar li a.active-link::before {
    display: none;
  }
  .faq-sidebar li a {
    background: #f4f4f4;
    border-radius: 20px;
    padding: 8px 16px;
  }
  .faq-sidebar li a.active-link {
    background: var(--color-primary);
    color: #fff;
  }
}

/* --- ABOUT PAGE STYLES --- */

/* Hero Section */
.about-hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://placehold.co/1600x600/222/555?text=Warehouse+Operations');
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.hero-text p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Stats Bar */
.stats-bar {
  background-color: var(--color-primary);
  color: #fff;
  padding: 40px 0;
  margin-top: -50px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 20px;
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
}

/* Story Section (Split) */
.split-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}
.split-image {
  flex: 1;
  position: relative;
}
.split-image img {
  width: 100%;
  border-radius: 5px;
  position: relative;
  z-index: 2;
}
.image-offset-border {
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-primary);
  z-index: 1;
  border-radius: 5px;
}

.split-content {
  flex: 1;
}
.sub-heading {
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.split-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #222;
}
.split-content p {
  color: #555;
  margin-bottom: 20px;
  line-height: 1.7;
}
.signature {
  margin-top: 10px;
  opacity: 0.7;
}

/* Values Grid */
.values-section {
  background-color: #f9f9f9;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.value-card {
  background: #fff;
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}
.value-card:hover {
  transform: translateY(-5px);
}
.icon-box {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.value-card h3 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}
.value-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.team-card {
  text-align: center;
}
.team-card img {
  width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  filter: grayscale(100%); /* Professional look */
  transition: filter 0.3s;
}
.team-card:hover img {
  filter: grayscale(0%);
}
.team-info h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #333;
}
.team-info span {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA Strip */
.cta-strip {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-strip h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.cta-strip p {
  color: #ccc;
  margin-bottom: 30px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-white {
  background: #fff;
  color: #222;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
}
.btn-outline-white {
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
}
.btn-outline-white:hover {
  background: #fff;
  color: #222;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .split-layout {
    flex-direction: column;
  }
  .image-offset-border {
    left: 10px;
    top: 10px;
  } /* Adjust overlap for mobile */

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }
  .btn-white,
  .btn-outline-white {
    width: 100%;
    text-align: center;
  }
}

/* --- CONTACT PAGE STYLES --- */

/* Hero */
.contact-header {
  background-color: #f8f9fa;
  padding: 30px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.contact-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}
.contact-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Main Wrapper */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 Split */
  gap: 50px;
  padding-top: 50px;
  padding-bottom: 80px;
}

/* LEFT: Info Column */
.info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--border-radius);
  transition: 0.3s;
}
.info-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateX(5px);
}

.info-card i {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 15px;
}
.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}
.info-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-card .highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
}
.sub-text {
  font-size: 0.85rem;
  color: #888;
  display: block;
  margin-top: 5px;
}

/* Map */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* RIGHT: Form Column */
.contact-form-wrapper {
  width: 100%;
}

.shadow-box {
  background: #fff;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}
.shadow-box h2 {
  margin-bottom: 25px;
  color: #333;
}

/* Form Elements (Reusing some Checkout Logic) */
.form-row {
  display: flex;
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
  width: 100%;
}
.form-group.half {
  width: 50%;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border 0.3s;
  background: #fafafa;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover {
  background: #4a8ac2;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .contact-wrapper {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 40px;
  }

  /* On mobile, usually people want to see info first, so no order change needed */
  .info-cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .info-card {
    flex: 1;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .info-cards {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-group.half {
    width: 100%;
  }

  .shadow-box {
    padding: 25px;
  }
}

/* --- POLICY PAGE STYLES --- */

/* Minimal Header */
.policy-header {
  background-color: #f9f9f9;
  padding: 50px 0;
  border-bottom: 1px solid var(--border-color);
}
.policy-header h1 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 10px;
}
.last-updated {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

/* Layout Wrapper */
.policy-wrapper {
  display: flex;
  gap: 60px;
  padding-top: 50px;
  padding-bottom: 80px;
}

/* Sidebar Navigation */
.policy-sidebar {
  width: 250px;
  flex-shrink: 0;
}
.policy-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #333;
  color: #222;
}
.policy-sidebar nav {
  display: flex;
  flex-direction: column;
}
.policy-sidebar nav a {
  padding: 12px 15px;
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.policy-sidebar nav a:hover {
  background-color: #f9f9f9;
  color: var(--color-primary);
}
.policy-sidebar nav a.active {
  border-left-color: var(--color-primary);
  background-color: #f0f7ff;
  color: var(--color-primary);
  font-weight: 500;
}

/* Content Area */
.policy-content {
  flex-grow: 1;
  max-width: 800px; /* Limits line length for readability */
  color: #444;
}

/* Print Button */
.print-actions {
  text-align: right;
  margin-bottom: 20px;
}
.print-actions button {
  background: none;
  border: 1px solid #ddd;
  padding: 5px 15px;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: 0.2s;
}
.print-actions button:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* Typography for Legal Text */
.policy-content section {
  margin-bottom: 40px;
}
.policy-content h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}
.policy-content p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1rem;
}
.policy-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}
.policy-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}
.policy-content strong {
  color: #222;
}

.policy-footer {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid var(--border-color);
  font-size: 0.95rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .policy-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .policy-sidebar {
    width: 100%;
  }
  .policy-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
  }
  .policy-sidebar nav a {
    border-left: none;
    background: #f4f4f4;
    border-radius: var(--border-radius);
    white-space: nowrap;
  }
  .policy-sidebar nav a.active {
    background: var(--color-primary);
    color: #fff;
  }
}

/* --- PRINT MEDIA QUERY --- */
@media print {
  .top-bar,
  .main-header,
  .main-footer,
  .policy-sidebar,
  .print-actions,
  .mobile-menu-btn {
    display: none !important;
  }
  .policy-wrapper {
    display: block;
    padding: 0;
  }
  .policy-content {
    max-width: 100%;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  h1 {
    font-size: 18pt;
  }
  h2 {
    font-size: 14pt;
  }
  a {
    text-decoration: none;
    color: #000;
  }
}

/* --- PROFESSIONAL MOBILE DRAWER --- */

/* The Dark Overlay Background */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000; /* High z-index to sit on top */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px); /* Modern blur effect */
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* The Drawer Container */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -320px !important; /* Hidden to the left */
  width: 300px;
  height: 100%;
  background: #fff;
  z-index: 1001; /* Higher than overlay */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}
.mobile-nav-drawer.active {
  transform: translateX(320px); /* Slide in */
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}
.drawer-logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-primary);
  letter-spacing: 1px;
}
.drawer-logo span:last-child {
  opacity: 0.7;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.drawer-close-btn:hover {
  color: var(--color-secondary);
}

/* Drawer Content */
.drawer-content {
  flex: 1;
  overflow-y: auto; /* Scrollable if content is long */
  padding: 20px 0;
}

.drawer-section-title {
  padding: 0 20px 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #999;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.drawer-links {
  display: flex;
  flex-direction: column;
}
.drawer-links a {
  padding: 12px 20px;
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  border-left: 3px solid transparent; /* Marker strip */
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon and text */
}
.drawer-links a i {
  width: 20px;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}
.drawer-links a:hover,
.drawer-links a.active {
  background: #f0f7ff;
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}
.drawer-links a:hover i,
.drawer-links a.active i {
  color: var(--color-primary);
}

.drawer-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

/* Drawer Footer */
.drawer-footer {
  padding: 20px;
  background: #fafafa;
  border-top: 1px solid #eee;
  text-align: center;
}
.btn-drawer-action {
  display: block;
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.drawer-contact {
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- RIGHT-SIDE CART DRAWER --- */

.cart-drawer {
  position: fixed;
  top: 0;
  right: -350px; /* Hidden to the right */
  width: 350px; /* Slightly wider than nav for better product view */
  height: 100%;
  background: #fff;
  z-index: 1001; /* Above overlay */
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Empty Cart Message in Drawer */
.empty-cart-message {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.empty-cart-message i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.5;
}
.empty-cart-message p {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 25px;
  color: #555;
}
.empty-cart-message .btn {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

.cart-drawer.active {
  transform: translateX(-350px); /* Slide in from right */
}

/* Header Tweaks */
.drawer-title {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-count-badge {
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Items Area */
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Mini Cart Item Styling */
.mini-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  position: relative;
}
.mini-cart-item:last-child {
  border-bottom: none;
}

.mini-img-wrapper {
  width: 70px;
  height: 70px;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-item-details {
  flex: 1;
  padding-right: 20px;
} /* Space for trash icon */
.mini-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
  margin-bottom: 5px;
}
.mini-item-meta {
  font-size: 0.85rem;
  color: #666;
  display: flex;
  gap: 15px;
}
.mini-item-price {
  color: #333;
  font-weight: 600;
}

.mini-remove-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  position: absolute;
  right: 0;
  top: 0;
  transition: color 0.2s;
}
.mini-remove-btn:hover {
  color: var(--color-secondary);
}

/* Footer Area */
.cart-drawer-footer {
  padding: 20px;
  background: #fcfcfc;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
}
.shipping-note {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 20px;
  text-align: center;
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-view-cart,
.btn-checkout {
  text-align: center;
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-view-cart {
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
}
.btn-view-cart:hover {
  background: #f4f4f4;
  border-color: #bbb;
}

.btn-checkout {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.btn-checkout:hover {
  background: var(--color-secondary);
}

/* Mobile Adjustment for Drawer Width */
@media (max-width: 480px) {
  .cart-drawer {
    width: 90%;
    right: -90%;
  }
  .cart-drawer.active {
    transform: translateX(-100%);
  }
}

/* --- FEATURED CATEGORIES SLIDER --- */
.featured-categories-slider {
  position: relative;
  padding: 0 10px; /* Give some space on edges */
}

.cat-card {
  display: block;
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1; /* Make them square */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.cat-card:hover img {
  transform: scale(1.05);
}

.cat-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: #fff;
  padding: 20px 10px 10px;
  text-align: center;
}

.cat-card-name span {
  font-weight: 600;
  font-size: 1rem;
}

/* Scoped navigation buttons for this slider */
.featured-categories-slider .swiper-button-next,
.featured-categories-slider .swiper-button-prev {
  color: var(--dark-bg);
  background-color: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}
.featured-categories-slider .swiper-button-next:hover,
.featured-categories-slider .swiper-button-prev:hover {
  background-color: #fff;
}
.featured-categories-slider .swiper-button-next::after,
.featured-categories-slider .swiper-button-prev::after {
  font-size: 1rem;
  font-weight: 700;
}

/* --- CATEGORIES PAGE --- */
.category-grid-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

@media (min-width: 576px) {
  .category-grid-full {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
  }
}

/* --- SWIPER SLIDER --- */
.featured-products-slider {
  padding-bottom: 40px; /* Space for pagination if we add it */
  position: relative;
}

.featured-products-slider .swiper-slide {
  height: auto; /* Allow slides to grow */
}

.featured-products-slider .product-card {
  height: 100%; /* Make cards fill the slide height */
}

.featured-products-slider .swiper-button-next,
.featured-products-slider .swiper-button-prev {
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.featured-products-slider .swiper-button-next:hover,
.featured-products-slider .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.featured-products-slider .swiper-button-next::after,
.featured-products-slider .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- VIEW ALL BUTTON --- */
.view-all-btn-container {
  text-align: center;
  margin-top: 30px;
}

/* --- CHECKOUT PAGE STYLES (FIXED) --- */

body,
html {
  overflow-x: hidden; /* Safety net for horizontal scroll */
  /* background-color: #f8f9fa; */
  background-color: #fff;
}

/* --- HEADER --- */
.checkout-header {
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
  padding: 20px 0;
}
.secure-badge {
  color: #2e7d32;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

/* --- MAIN LAYOUT --- */
.checkout-wrapper {
  margin-top: 40px;
  margin-bottom: 80px;
}

/* --- VIEW 1: GATEKEEPER (Guest/Login) --- */
.gatekeeper-container {
  max-width: 900px;
  margin: 0 auto;
}

.gatekeeper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.auth-box {
  background: #fff;
  padding: 40px;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.auth-box h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}
.auth-box p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Login Buttons */
.btn-full-blue {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}
.btn-full-blue:hover {
  background: #4a8ac2;
}

.forgot-link {
  display: block;
  text-align: center;
  margin-top: 15px;
  font-size: 0.85rem;
  color: #666;
  text-decoration: underline;
}

.btn-outline-blue {
  width: 100%;
  background: #fff;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-outline-blue:hover {
  background: var(--color-primary);
  color: #fff;
}

.benefit-list {
  list-style: none;
  margin-bottom: 30px;
}
.benefit-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555;
}
.benefit-list li i {
  color: #2e7d32;
}

/* --- VIEW 2: CHECKOUT MAIN LAYOUT --- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Left: 60%, Right: 40% */
  gap: 30px;
  align-items: start;
}

/* --- LEFT COLUMN: FORMS --- */
.checkout-section {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 10px;
}
.section-head h3 {
  font-size: 1.1rem;
  color: #333;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Styling for the checkbox label inside header */
.same-address-label {
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9f9f9;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #eee;
}
.same-address-label:hover {
  background: #f0f0f0;
}
.same-address-label input {
  accent-color: var(--color-primary);
}

.edit-link {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  text-decoration: underline;
}

/* Read-Only Fields */
.db-field {
  background-color: #f4f6f8;
  color: #333;
  font-weight: 500;
  border: 1px solid #ddd;
  cursor: not-allowed;
}

.secure-notice {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* --- RIGHT COLUMN: SIDEBAR SUMMARY --- */
.checkout-sidebar {
  position: relative;
  display: block;
}

.summary-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
/* .sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  z-index: 10;
} */

.summary-card.sticky-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  z-index: 10;
}

.summary-card h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.summary-items-list {
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #555;
}
.sum-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dotted #eee;
}
.sum-item:last-child {
  border-bottom: none;
}

.divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 15px 0;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}
.discount {
  color: #2e7d32;
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #333;
}

/* Payment Method */
.payment-method-box {
  margin: 25px 0;
}
.payment-method-box h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.radio-box {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #cce5ff;
  border-radius: 6px;
  background: #f0f7ff;
  cursor: pointer;
}
.radio-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.method-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}
.method-desc {
  font-size: 0.8rem;
  color: #666;
}
.icon-right {
  color: #2e7d32;
  font-size: 1.4rem;
}

.btn-place-order {
  width: 100%;
  background: #2e7d32;
  color: #fff;
  padding: 18px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
  transition: background 0.2s;
}
.btn-place-order:hover {
  background: #256629;
}

.checkout-policies {
  margin-top: 25px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}
.checkout-policies a {
  color: #777;
  margin: 0 5px;
  text-decoration: underline;
}

/* Utility */
.hidden {
  display: none !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .gatekeeper-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-sidebar {
    display: block !important;
    width: 100%;
  }
  .sticky-sidebar {
    position: static;
  }

  .checkout-main {
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  /* Adjust checkbox alignment for smaller screens */
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .same-address-label {
    width: 100%;
    margin-top: 10px;
  }
}

/* --- CATEGORY (SINGLE) PAGE --- */
.sub-categories-section {
  margin-bottom: 60px;
}

/* --- SWIPER SLIDER --- */
.featured-products-slider {
  padding-bottom: 40px; /* Space for pagination if we add it */
  position: relative;
}

.featured-products-slider .swiper-slide {
  height: auto; /* Allow slides to grow */
}

.featured-products-slider .product-card {
  height: 100%; /* Make cards fill the slide height */
}

.featured-products-slider .swiper-button-next,
.featured-products-slider .swiper-button-prev {
  color: var(--text-light);
  background-color: rgba(0, 0, 0, 0.3);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.featured-products-slider .swiper-button-next:hover,
.featured-products-slider .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.featured-products-slider .swiper-button-next::after,
.featured-products-slider .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 700;
}

/* --- RELATED PRODUCTS SLIDER --- */
.related-products-slider {
  padding-bottom: 40px; /* Space for pagination if we add it */
  position: relative;
}

.related-products-slider .swiper-slide {
  height: auto; /* Allow slides to grow */
}

.related-products-slider .product-card {
  height: 100%; /* Make cards fill the slide height */
}

.related-products-slider .swiper-button-next,
.related-products-slider .swiper-button-prev {
  color: var(--text-dark);
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #ddd;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

/* --- LIVE SEARCH DROPDOWN --- */
.search-container {
  position: relative;
}

.search-results-dropdown {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 450px;
  overflow-y: auto;
}

.search-results-dropdown.show {
  display: block;
}

.search-results-header {
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 15px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f8f9fa;
}

.search-result-item .item-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.search-result-item .item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.search-result-item .item-info {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.search-result-item .item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.search-result-item .item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
}

.search-result-category .item-name {
  font-weight: 400;
}

.search-no-results,
.search-loading {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* Alert Box */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}
.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}
.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* --- Stock Notification Messages --- */
.stock-notification-success,
.stock-notification-error {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

.stock-notification-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.stock-notification-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.stock-notification-success i,
.stock-notification-error i {
  margin-right: 8px;
}

/* --- SWIPER --- */
.swiper-slide{
    background-color: #fff !important;
}