
/* ADDED NEAR THE TOP TO FORCE NO HORIZONTAL SCROLL */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
}

/* Ensure images shrink on small screens */
img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------
   Reset & Base
-------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f7f7f7;
}

/* Primary Color */
:root {
  --ks-primary: #008000; /* primary green color */
  --transition-speed: 0.3s;
  --ease-func: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------
   HEADER WRAPPER
-------------------------------------------------------- */
.ks-header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: -webkit-sticky; /* <-- ADDED for older Safari */
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ============ HEADER TOP (Desktop) ============ */
.ks-header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  position: relative;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Hamburger (Mobile Only) */
.ks-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-right: 15px;
}
.ks-hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  display: block;
}

/* Logo */
.ks-logo-area {
  display: flex;
  align-items: center;
}
.ks-logo-area img {
  height: 60px;
  width: auto;
  transition: height 0.3s;
}

/* Search (Desktop) */
.ks-search-area {
  flex: 1;
  justify-content: center;
  margin: 0 20px;
  position: relative;
}
.ks-search-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  background: #f2f2f2;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ks-search-input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  padding: 0 15px;
  font-size: 1rem;
  background: transparent;
}
.ks-search-input::placeholder {
  color: #999;
}
.ks-search-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  color: var(--ks-primary);
}
.ks-search-btn:hover {
  color: #333;
}
.ks-search-mic {
  width: 44px;
  height: 48px;
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease;
  color: #666;
}
.ks-search-mic:hover {
  color: #333;
}
.ks-search-mic.is-listening {
  color: #d93025;
  animation: ksSearchMicPulse 1.1s ease-in-out infinite;
}
.ks-voice-search-status {
  position: absolute;
  top: calc(100% + 10px);
  right: 12px;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(34, 34, 34, 0.94);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10020;
}
.ks-voice-search-status.show {
  opacity: 1;
  transform: translateY(0);
}
.ks-voice-search-status.is-error {
  background: rgba(180, 39, 39, 0.96);
}
.ks-voice-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(7, 18, 13, 0.46);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 100000;
}
.ks-voice-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.ks-voice-modal-card {
  position: relative;
  width: min(420px, calc(100vw - 28px));
  padding: 28px 24px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fff 0%, #f7fbf8 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  color: #162033;
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.18s ease;
  overflow: hidden;
}
.ks-voice-modal.show .ks-voice-modal-card {
  transform: translateY(0) scale(1);
}
.ks-voice-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f3;
  color: #111827;
  cursor: pointer;
  font-size: 1rem;
}
.ks-voice-modal-icon {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 10px auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #24b35a, #087a32 70%);
  box-shadow: 0 15px 34px rgba(8, 122, 50, 0.28);
  font-size: 2rem;
}
.ks-voice-modal-icon span {
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(8, 122, 50, 0.24);
  border-radius: 50%;
  animation: ksVoiceRipple 1.45s ease-out infinite;
}
.ks-voice-modal-icon span + span {
  animation-delay: 0.55s;
}
.ks-voice-modal-card h3 {
  margin: 0 38px 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ks-voice-modal-card p {
  margin: 0 auto 10px;
  color: #253044;
  line-height: 1.35;
  font-size: 2rem;
  font-weight: 800;
}
.ks-voice-hint {
  margin: 0 auto 18px;
  max-width: 310px;
  color: #778197;
  font-size: 0.95rem;
  line-height: 1.4;
}
.ks-voice-transcript {
  display: none;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef8f1;
  color: #0b5f2a;
  font-weight: 700;
  max-width: 320px;
}
.ks-voice-transcript.show {
  display: block;
}
.ks-voice-cancel {
  display: block;
  margin: 0 auto;
  padding: 11px 24px;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #fff;
  color: #222;
  cursor: pointer;
  font-weight: 700;
  min-width: 128px;
}
.ks-voice-cancel:hover,
.ks-voice-modal-close:hover {
  background: #f3f6f8;
}
@keyframes ksVoicePulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(11, 122, 50, 0.12); }
  50% { box-shadow: 0 0 0 14px rgba(11, 122, 50, 0.04); }
}
@keyframes ksVoiceRipple {
  0% { transform: scale(0.82); opacity: 0.85; }
  100% { transform: scale(1.32); opacity: 0; }
}
@media (max-width: 640px) {
  .ks-voice-modal {
    align-items: flex-end;
    padding: 12px;
  }
  .ks-voice-modal-card {
    width: 100%;
    min-height: 58vh;
    border-radius: 28px 28px 18px 18px;
    padding: 34px 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ks-voice-modal-icon {
    width: 108px;
    height: 108px;
    font-size: 2.25rem;
  }
  .ks-voice-modal-card h3 {
    font-size: 1.25rem;
  }
  .ks-voice-modal-card p {
    font-size: 2.35rem;
  }
  .ks-voice-cancel {
    margin-top: 8px;
  }
}
@keyframes ksSearchMicPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Search Results Container */
#searchResults {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
}

/* Right Links (Desktop + Mobile) */
.ks-right-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ks-divider {
  width: 1px;
  height: 20px;
  background: #ccc;
}
.ks-seller-btn,
.ks-app-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  transition: color 0.2s;
}
.ks-seller-btn i,
.ks-app-link i {
  color: var(--ks-primary);
}
.ks-seller-btn:hover,
.ks-app-link:hover {
  color: var(--ks-primary);
}

/* Cart Link */
.cart-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.cart-link:hover {
  color: var(--ks-primary);
}
.cart-link i {
  color: var(--ks-primary);
  font-size: 1.2rem;
}
.cart-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-amount {
  font-size: 0.85rem;
  margin-top: 2px;
}

/* My Account replaced with icon + 'Login' */
.ks-account-area {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ks-account-area i {
  font-size: 1.1rem;
  color: var(--ks-primary);
}
.ks-account-area span {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}

/* Account Popover */
.ks-account-popover {
  position: absolute;
  top: 110%;
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.ks-account-popover.show {
  opacity: 1;
  pointer-events: auto;
}
.ks-account-popover p {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #444;
}
.ks-login-btn {
  width: 100%;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: var(--ks-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}
.ks-login-btn:hover {
  background: #006400;
}
.ks-new-user {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}
.ks-new-user a {
  color: var(--ks-primary);
  text-decoration: none;
}
.ks-new-user a:hover {
  text-decoration: underline;
}

/* NAV BAR & Mega Menu (Desktop) */
.ks-nav-bar {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.ks-nav-items {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  list-style: none;
  justify-content: center;
}
.ks-nav-items li {
  position: relative;
}
.ks-nav-items a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.ks-nav-items a:hover {
  color: var(--ks-primary);
}
.ks-nav-items li.has-dropdown > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.75rem;
  color: #666;
  transition: transform 0.2s;
}
.ks-nav-items li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.ks-mega-menu {
  position: absolute;
  top: 40px;
  left: 30%;
  width: 600px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  display: none;
  z-index: 999;
  transform: translateX(-30%);
}
@media (max-width: 768px) {
  .ks-mega-menu {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }
}
.ks-mega-menu h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}
.ks-mega-menu .mega-columns {
  display: flex;
  gap: 20px;
}
.ks-mega-menu .mega-column {
  flex: 1;
}
.ks-mega-menu .mega-column ul {
  list-style: none;
  padding: 0;
}
.ks-mega-menu .mega-column ul li {
  margin-bottom: 2px;
}
.ks-mega-menu .mega-column ul li a {
  color: #555;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.ks-mega-menu .mega-column ul li a:hover {
  color: var(--ks-primary);
}
.ks-nav-items li:hover .ks-mega-menu {
  display: block;
}

/* ============ MOBILE STYLES ============ */
@media (max-width: 768px) {
  .ks-header-top {
    flex-wrap: wrap !important;
  }
  .ks-hamburger {
    display: flex;
  }
  .ks-logo-area img {
    height: 48px;
  }
  .ks-search-area {
    order: 3;
    width: 100%;
    margin: 10px 0 4px 0;
    
  }
  .ks-nav-bar {
    display: none;
  }
  .ks-right-links {
    display: none !important;
  }
  .ks-mobile-icons {
    display: flex !important;
    margin-left: auto;
    gap: 12px;
  }
}
.ks-mobile-icons {
  display: none;
  align-items: center;
}
.vertical-line {
  width: 1px;
  height: 20px;
  background: #ccc;
}

/* SIDE-DRAWER (Mobile Nav) */
.ks-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}
.ks-overlay.show {
  display: block;
}
.ks-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-speed) var(--ease-func);
}

  .ks-nav-drawer .ks-menu-level ul li {
    padding: 6px 0;   /* pehle 10px 0 tha, ab 6px 0 kar diya */
  }
.ks-nav-drawer.show {
  transform: translateX(0);
}
.ks-drawer-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.ks-menu-level {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform var(--transition-speed) var(--ease-func);
}
.ks-menu-level.hidden-right {
  transform: translateX(100%);
}
.ks-menu-level.hidden-left {
  transform: translateX(-100%);
}
.ks-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
}
.ks-nav-drawer-header h3 {
  font-size: 1.1rem;
  color: #333;
}
.ks-drawer-close {
  font-size: 1.3rem;
  color: #333;
  cursor: pointer;
  background: none;
  border: none;
}
.ks-drawer-close:hover {
  color: var(--ks-primary);
}
.ks-sub-header {
  justify-content: flex-start;
  gap: 10px;
}
.ks-sub-header .ks-back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ks-sub-header .ks-back-btn i {
  margin-right: 6px;
  font-size: 1.1rem;
}
.ks-sub-header .ks-back-btn:hover {
  color: var(--ks-primary);
}
.ks-menu-level ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
}
.ks-menu-level ul li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  justify-content: space-between;
}
.no-sub i {
  display: none;
}
.ks-menu-level ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
   display: flex;
  align-items: center;
  /* arrow ko right me push karne ke liye */
  justify-content: space-between;
  /* pura row cover kare */
  width: 100%;
  /* agar padding alag ho to adjust kar lo */
  padding: 2px 6px;
}

.ks-menu-level ul li a .ks-arrow-btn {
  margin-left: auto;
}
.ks-menu-level ul li a:hover {
  color: var(--ks-primary);
}
.ks-arrow-btn {
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
}
.ks-arrow-btn:hover {
  color: var(--ks-primary);
}

/* Additional fix to anchor popover on the right so it's not cut off. */
.ks-account-popover {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

/* Extra fix for popover clipping */
.ks-right-links,
.ks-account-area {
  overflow: visible !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* -------------------------------------------------------
   CART DRAWER STYLING
-------------------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.show {
  right: 0;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}
.cart-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.cart-header .close-cart {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
.cart-header .close-cart:hover {
  color: #000;
}
#cartItemsContainer {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}
.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cart-item-variant {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 6px;
}
.cart-item-price {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.cart-item-price s {
  color: #999;
  margin-left: 6px;
  font-size: 0.85rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.cart-item-qty button:hover {
  background: #e0e0e0;
}
.cart-footer {
  border-top: 1px solid #ddd;
  padding: 1rem;
}
.cart-subtotal {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.cart-terms {
  margin-bottom: 1rem;
}
.cart-terms label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 6px;
  cursor: pointer;
}
.cart-terms input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}
.cart-terms input[type="checkbox"]:checked {
  accent-color: #1c7c54;
}
.cart-disclaimer {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.cart-disclaimer a {
  color: #007bff;
  text-decoration: underline;
}
.shipping-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 1rem;
}
/* GREEN PLACE ORDER BUTTON */
.cart-checkout-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #008000; /* Updated to green */
  color: #fff;
  border: none;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-checkout-btn:hover {
  background-color: #006400; /* Darker green on hover */
}
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cart-overlay.show {
  display: block;
  opacity: 1;
}
/* Slightly adjusted position for the .cart-badge so it sits higher */
.cart-badge {
  position: absolute;
  top: -16px;
  right: -8px;
  background-color: #1c7c54;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  display: none; /* Hide by default when count is 0 */
}

/* MOBILE RESPONSIVE CART DRAWER */
@media (max-width: 768px) {
  .cart-drawer {
    width: 100% !important;
    box-shadow: none !important;
  }
  .cart-drawer.show {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
  }
}

/* MOBILE BADGE FIX */
@media (max-width: 768px) {
  #cartBadgeMobile.cart-badge {
    top: -16px;
    right: -8px;
  }
}

/* BOTTOM SHEET STYLE FOR LOGIN ON MOBILE */
@media (max-width: 768px) {
  .ks-account-popover {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2) !important;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    z-index: 10000 !important;
  }
  .ks-account-popover.show {
    transform: translateY(0);
  }
  .ks-account-popover p {
    text-align: center;
  }
  .ks-account-popover .ks-login-btn {
    display: block;
    margin: 0 auto 8px auto;
  }
}

/* USER DRAWER */
.ks-user-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}
.ks-user-overlay.show {
  display: block;
}

.ks-user-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ks-user-drawer.show {
  right: 0;
}

.ks-user-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.ks-user-drawer-header img {
  height: 32px;
  width: auto;
}
.ks-user-drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #333;
}
.ks-user-drawer-close:hover {
  color: var(--ks-primary);
}

.ks-user-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ks-user-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  font-weight: 500;
}
.ks-user-menu li a:hover {
  background: #f7f7f7;
}

/* Hide the login popover on mobile by default */
@media (max-width: 768px) {
  #loginPopover {
    display: none !important;
  }
}

/* Force sticky header on mobile */
@media (max-width: 768px) {
  .ks-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  body {
    /* at least 130px; grows to the real fixed-header height measured by includes/header.php */
    padding-top: max(130px, var(--ksHeaderH, 0px));
  }
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
}

/* Ensure images shrink on small screens */
img {
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------
   Reset & Base
-------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #f7f7f7;
}

/* Primary Color */
:root {
  --ks-primary: #008000; /* primary green color */
  --transition-speed: 0.3s;
  --ease-func: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------------------
   HEADER WRAPPER
-------------------------------------------------------- */
.ks-header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: -webkit-sticky; /* <-- ADDED for older Safari */
  position: sticky;
  top: 0;
  z-index: 9999;
}

/* ============ HEADER TOP (Desktop) ============ */
.ks-header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  position: relative;
  flex-wrap: nowrap;
  overflow: visible;
}

/* Hamburger (Mobile Only) */
.ks-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-right: 15px;
}
.ks-hamburger span {
  width: 24px;
  height: 2px;
  background: #333;
  display: block;
}

/* Logo */
.ks-logo-area {
  display: flex;
  align-items: center;
}
.ks-logo-area img {
  height: 60px;
  width: auto;
  transition: height 0.3s;
}

/* Search (Desktop) */
.ks-search-area {
  flex: 1;
  justify-content: center;
  margin: 0 20px;
  position: relative;
}
.ks-search-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1500px;
  background: #f2f2f2;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ks-search-input {
  flex: 1;
  height: 48px;
  border: none;
  outline: none;
  padding: 0 15px;
  font-size: 1rem;
  background: transparent;
}
.ks-search-input::placeholder {
  color: #999;
}
.ks-search-btn {
  width: 48px;
  height: 48px;
  border: none;
  background: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  color: var(--ks-primary);
}
.ks-search-btn:hover {
  color: #333;
}

/* Search Results Container */
#searchResults {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000;
}

/* Right Links (Desktop + Mobile) */
.ks-right-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ks-divider {
  width: 1px;
  height: 20px;
  background: #ccc;
}
.ks-seller-btn,
.ks-app-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  transition: color 0.2s;
}
.ks-seller-btn i,
.ks-app-link i {
  color: var(--ks-primary);
}
.ks-seller-btn:hover,
.ks-app-link:hover {
  color: var(--ks-primary);
}

/* Cart Link */
.cart-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.cart-link:hover {
  color: var(--ks-primary);
}
.cart-link i {
  color: var(--ks-primary);
  font-size: 1.2rem;
}
.cart-top {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-amount {
  font-size: 0.85rem;
  margin-top: 2px;
}

/* My Account replaced with icon + 'Login' */
.ks-account-area {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ks-account-area i {
  font-size: 1.1rem;
  color: var(--ks-primary);
}
.ks-account-area span {
  font-size: 0.9rem;
  color: #333;
  font-weight: 600;
}

/* Account Popover */
.ks-account-popover {
  position: absolute;
  top: 110%;
  left: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}
.ks-account-popover.show {
  opacity: 1;
  pointer-events: auto;
}
.ks-account-popover p {
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #444;
}
.ks-login-btn {
  width: 100%;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background: var(--ks-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}
.ks-login-btn:hover {
  background: #006400;
}
.ks-new-user {
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}
.ks-new-user a {
  color: var(--ks-primary);
  text-decoration: none;
}
.ks-new-user a:hover {
  text-decoration: underline;
}

/* NAV BAR & Mega Menu (Desktop) */
.ks-nav-bar {
  background: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.ks-nav-items {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  list-style: none;
  justify-content: center;
}
.ks-nav-items li {
  position: relative;
}
.ks-nav-items a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.ks-nav-items a:hover {
  color: var(--ks-primary);
}
.ks-nav-items li.has-dropdown > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 6px;
  font-size: 0.75rem;
  color: #666;
  transition: transform 0.2s;
}
.ks-nav-items li.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.ks-mega-menu{
  position:fixed;                         /* ← key change            */
  top:calc(var(--ksHeaderH,100px) + 1px); /* sits right under header */
  left:50%;
  transform:translateX(-50%);
  width:650px;                            /* default width           */
  max-width:calc(100vw - 24px);           /* 12 px margin each side  */
  background:#fff;
  border:1px solid #ddd;
  border-radius:6px;
  padding:15px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
  display:none;
  z-index:999;
}

/* Seeds panel only – wider but still fully centred */
li.seeds-menu .ks-mega-menu{width:950px;}


/* Compact look ------------------------------------------------- */
.ks-mega-menu .mega-columns{display:flex;gap:14px;}  /* tighter col gap */
.ks-mega-menu .mega-column ul li{margin-bottom:0;}
.ks-mega-menu .mega-column ul li a{line-height:1.25;}

/* General spacing & reset */
.ks-mega-menu .mega-column ul   {margin:0; padding:0; list-style:none;}
.ks-mega-menu .mega-column ul li{margin:4px 0; line-height:1.35;}

/* Sub-links */
.ks-mega-menu .mega-column ul li a{
  display:block;
  font-size:0.9rem;
  color:#555;                   /* normal */
  text-decoration:none;
  transition:color .2s;
}

/* Hover / focus effect */
.ks-mega-menu .mega-column ul li a:hover{
  color:var(--ks-primary);      /* same green everywhere */
}

/* Optional: underline heading style for all panels */
.ks-mega-menu h4{
  margin:0 0 12px;
  font-size:1rem;
  font-weight:600;
  color:#333;
  text-transform:uppercase;
  border-bottom:1px solid #eee;
  padding-bottom:4px;
}

/* ===== VEG-SEEDS twin-list ================================== */
.veg-cols{                     /* wrapper holds the two ULs   */
  display:flex;                /* side-by-side lists          */
  gap:40px;                    /* horizontal space            */
}
.veg-cols ul{
  list-style:none;
  margin:0;
  padding:0;
  min-width:0;                 /* allow flex items to shrink  */
}
.veg-cols li{margin:4px 0;}
.veg-cols a{
  display:block;
  font-size:.9rem;
  color:#555;
  transition:color .2s;

  /* 🚀 NEW – keep to one line */
  white-space:nowrap;          /* never wrap */
  overflow:hidden;             /* clip overflow */
  text-overflow:ellipsis;      /* add “…”      */
}
.veg-cols a:hover{color:var(--ks-primary);}



/* Remove fake headings in “no-heading” columns */
.mega-column.no-heading h4{display:none;}

li.crop-menu .ks-mega-menu{
  width:950px;                 /* desktop – same width as Seeds */
}

li.crop-menu .ks-mega-menu            { width: 820px; }   /* 950px  → 820px */
li.crop-menu .ks-mega-menu .mega-columns{
  gap: 22px;                                              /* 40px   → 22px */
}

/* keep it fluid on small screens */
@media (max-width:1024px){
  li.crop-menu .ks-mega-menu{
    width:calc(100vw - 24px);  /* 12-12 px side margin */
  }
}

li.nutrition-menu .ks-mega-menu{
  width:350px;          /* same width as other single-column panels   */
  left:46%;             /* anchor in the middle of the viewport       */
  transform:translateX(-50%); /* pull back by half its own width      */
}

li.tools-menu .ks-mega-menu{
  width:650px;              /* Same width as other one-column panels */
  left:50%;                 /* Anchor in the horizontal centre       */
  transform:translateX(-50%);/* Pull back by half its own width      */
}

li.tools-menu .mega-column.no-heading{
  /* 1 rem text (≈16px) + 12px bottom-margin + 4px underline = 32px */
  padding-top: 32px;       /* tweak ±2 px if you prefer tighter/looser */
}

/* ----------------------------------------------------
   Farming Tools  -- 2-column layout spacing tweaks
----------------------------------------------------- */
li.tools-menu .ks-mega-menu        { width: 650px; } 
.tools-menu .mega-columns          { gap: 60px; }   
.tools-menu .mega-column ul li     { margin: 4px 0; }

.seeds-menu .mega-column.no-heading{
    padding-top:0;      /* keep both columns perfectly aligned */
}



/* Hide fake headings */
.mega-column.no-heading h4{display:none;}
@media (max-width: 768px) {
  .ks-mega-menu {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }
}
.ks-mega-menu h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #333;
}

.ks-mega-menu .mega-column {
  flex: 1;
}
.ks-mega-menu .mega-column ul {
  list-style: none;
  padding: 0;
}
.ks-mega-menu .mega-column ul li {
  margin-bottom: 2px;
}
.ks-mega-menu .mega-column ul li a {
  color: #555;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.ks-mega-menu .mega-column ul li a:hover {
  color: var(--ks-primary);
}
.ks-nav-items li:hover .ks-mega-menu {
  display: block;
}

/* ============ MOBILE STYLES ============ */
@media (max-width: 768px) {
  .ks-header-top {
    flex-wrap: wrap !important;
  }
  .ks-hamburger {
    display: flex;
  }
  .ks-logo-area img {
    height: 48px;
  }
  .ks-search-area {
    order: 3;
    width: 100%;
    margin: 10px 0 4px 0;
    
  }
  .ks-nav-bar {
    display: none;
  }
  .ks-right-links {
    display: none !important;
  }
  .ks-mobile-icons {
    display: flex !important;
    margin-left: auto;
    gap: 12px;
  }
}
.ks-mobile-icons {
  display: none;
  align-items: center;
}
.vertical-line {
  width: 1px;
  height: 20px;
  background: #ccc;
}

/* SIDE-DRAWER (Mobile Nav) */
.ks-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}
.ks-overlay.show {
  display: block;
}
.ks-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
  z-index: 9999;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-speed) var(--ease-func);
}

  .ks-nav-drawer .ks-menu-level ul li {
    padding: 6px 0;   /* pehle 10px 0 tha, ab 6px 0 kar diya */
  }
.ks-nav-drawer.show {
  transform: translateX(0);
}
.ks-drawer-content {
  position: relative;
  width: 100%;
  height: 100%;
}
.ks-menu-level {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform var(--transition-speed) var(--ease-func);
}
.ks-menu-level.hidden-right {
  transform: translateX(100%);
}
.ks-menu-level.hidden-left {
  transform: translateX(-100%);
}
.ks-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
}
.ks-nav-drawer-header h3 {
  font-size: 1.1rem;
  color: #333;
}

.ks-nav-drawer-header h3 a,   /* generic selector */
.drawer-title{                /* explicit helper class */
  color:#333;             /* neutral dark grey/black  */
  text-decoration:none;   /* remove underline         */
  font-weight:600;        /* keep bold                */
}
.ks-nav-drawer-header h3 a:hover,
.drawer-title:hover{
  color:#008000;          /* turn green when hovered  */
}

.ks-drawer-close {
  font-size: 1.3rem;
  color: #333;
  cursor: pointer;
  background: none;
  border: none;
}
.ks-drawer-close:hover {
  color: var(--ks-primary);
}
.ks-sub-header {
  justify-content: flex-start;
  gap: 10px;
}
.ks-sub-header .ks-back-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.ks-sub-header .ks-back-btn i {
  margin-right: 6px;
  font-size: 1.1rem;
}
.ks-sub-header .ks-back-btn:hover {
  color: var(--ks-primary);
}
.ks-menu-level ul {
  list-style: none;
  margin: 0;
  padding: 0 20px;
}
.ks-menu-level ul li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  justify-content: space-between;
}
.no-sub i {
  display: none;
}
.ks-menu-level ul li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
   display: flex;
  align-items: center;
  /* arrow ko right me push karne ke liye */
  justify-content: space-between;
  /* pura row cover kare */
  width: 100%;
  /* agar padding alag ho to adjust kar lo */
  padding: 2px 6px;
}

.ks-menu-level ul li a .ks-arrow-btn {
  margin-left: auto;
}
.ks-menu-level ul li a:hover {
  color: var(--ks-primary);
}
.ks-arrow-btn {
  color: #333;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
}
.ks-arrow-btn:hover {
  color: var(--ks-primary);
}

/* Additional fix to anchor popover on the right so it's not cut off. */
.ks-account-popover {
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

/* Extra fix for popover clipping */
.ks-right-links,
.ks-account-area {
  overflow: visible !important;
  position: relative !important;
  z-index: 9999 !important;
}

/* -------------------------------------------------------
   CART DRAWER STYLING
-------------------------------------------------------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.show {
  right: 0;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}
.cart-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.cart-header .close-cart {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
.cart-header .close-cart:hover {
  color: #000;
}
#cartItemsContainer {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.cart-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}
.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.cart-item-variant {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 6px;
}
.cart-item-price {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.5rem;
}
.cart-item-price s {
  color: #999;
  margin-left: 6px;
  font-size: 0.85rem;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-qty button {
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.cart-item-qty button:hover {
  background: #e0e0e0;
}
.cart-footer {
  border-top: 1px solid #ddd;
  padding: 1rem;
}
.cart-subtotal {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.cart-terms {
  margin-bottom: 1rem;
}
.cart-terms label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-bottom: 6px;
  cursor: pointer;
}
.cart-terms input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}
.cart-terms input[type="checkbox"]:checked {
  accent-color: #1c7c54;
}
.cart-disclaimer {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.cart-disclaimer a {
  color: #007bff;
  text-decoration: underline;
}
.shipping-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 1rem;
}
/* GREEN PLACE ORDER BUTTON */
.cart-checkout-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #008000; /* Updated to green */
  color: #fff;
  border: none;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-checkout-btn:hover {
  background-color: #006400; /* Darker green on hover */
}
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cart-overlay.show {
  display: block;
  opacity: 1;
}
/* Slightly adjusted position for the .cart-badge so it sits higher */
.cart-badge {
  position: absolute;
  top: -16px;
  right: -8px;
  background-color: #1c7c54;
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  display: none; /* Hide by default when count is 0 */
}

/* MOBILE RESPONSIVE CART DRAWER */
@media (max-width: 768px) {
  .cart-drawer {
    width: 100% !important;
    box-shadow: none !important;
  }
  .cart-drawer.show {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 100% !important;
    overflow-y: auto !important;
  }
}

/* MOBILE BADGE FIX */
@media (max-width: 768px) {
  #cartBadgeMobile.cart-badge {
    top: -16px;
    right: -8px;
  }
}

/* BOTTOM SHEET STYLE FOR LOGIN ON MOBILE */
@media (max-width: 768px) {
  .ks-account-popover {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px 12px 0 0 !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2) !important;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: auto !important;
    z-index: 10000 !important;
  }
  .ks-account-popover.show {
    transform: translateY(0);
  }
  .ks-account-popover p {
    text-align: center;
  }
  .ks-account-popover .ks-login-btn {
    display: block;
    margin: 0 auto 8px auto;
  }
}

/* USER DRAWER */
.ks-user-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 9998;
}
.ks-user-overlay.show {
  display: block;
}

.ks-user-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ks-user-drawer.show {
  right: 0;
}

.ks-user-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}
.ks-user-drawer-header img {
  height: 32px;
  width: auto;
}
.ks-user-drawer-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #333;
}
.ks-user-drawer-close:hover {
  color: var(--ks-primary);
}

.ks-user-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ks-user-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  font-weight: 500;
}
.ks-user-menu li a:hover {
  background: #f7f7f7;
}

/* Hide the login popover on mobile by default */
@media (max-width: 768px) {
  #loginPopover {
    display: none !important;
  }
}

/* Force sticky header on mobile */
@media (max-width: 768px) {
  .ks-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
  }
  body {
    padding-top: max(130px, var(--ksHeaderH, 0px)); /* grows to the real fixed-header height */
  }
}



  /* header.css */


  /* Mobile / tablet: sticky */
  .ks-header{
    position: sticky;
    top: 0;
    z-index: 1000;
    background:#fff;
    transition: box-shadow 0.25s ease;
  }
  .ks-header.scrolled{box-shadow:0 2px 6px rgba(0,0,0,.12);}

  /* Desktop (≥1024 px): fixed */
  @media (min-width:1024px){
    .ks-header{
      position: fixed !important;
      left:0; right:0;
    }
    /* Push page content down so it’s not hidden */
    body{padding-top:var(--ksHeaderH,120px);}
  }
  
  /* ---------- Cart empty-state ---------- */
.empty-cart-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  text-align:center;
  color:#333;
}
.empty-cart-img{
  width:140px;
  height:auto;
  margin-bottom:20px;
}
.empty-cart-state h4{margin:0 0 6px;font-size:1.25rem;font-weight:600;}
.empty-cart-state p{margin:0 0 20px;font-size:0.95rem;color:#666;}
.shop-now-btn{
  background:#0a8b00;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:10px 26px;
  font-size:1rem;
  font-weight:600;
  cursor:pointer;
  transition:background .25s;
}
.shop-now-btn:hover{background:#076d00;}
.empty-cart-icon{font-size:72px;color:#0a8b00;margin-bottom:20px;}

.ks-suggest-box{
  width:100%;
  border:1px solid #e0e0e0;
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 42px rgba(15,23,42,.14);
  display:none;                       /* shown from JS               */
  overflow:hidden;                    /* keep inner list clipped     */
  position:absolute;
  top:100%;
  left:0;
  z-index:3000;                       /* sits above header           */
}

.ks-search-discovery{
  padding:14px 16px 18px;
  background:#fff;
}
.ks-search-discovery-section + .ks-search-discovery-section{
  margin-top:18px;
}
.ks-search-discovery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:9px;
  color:#64748b;
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.ks-search-clear-recent{
  border:0;
  background:transparent;
  color:#64748b;
  font-size:.78rem;
  cursor:pointer;
  padding:2px 4px;
}
.ks-search-clear-recent:hover{color:#0a8b00}
.ks-search-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ks-search-chip{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:34px;
  padding:7px 13px;
  border:1px solid #bbf7d0;
  border-radius:999px;
  background:#eafbf0;
  color:#166534;
  font-size:.88rem;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ks-search-chip:hover{
  background:#dcfce7;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(22,101,52,.12);
}
.ks-search-chip i{
  font-size:.78rem;
  color:#15803d;
}

/* Reset the inner list -------------------------------------------- */
.ks-suggest-box ul{
  list-style:none;
  margin:0;
  padding:0;
}

/* ==================================================================
   ITEM  – desktop & tablet
   =================================================================*/
.ks-suggest-box li{
    display:grid;
    grid-template-columns:40px minmax(0,1fr) 90px 58px; /* thumb | title | price | discount */
    column-gap:12px;
    align-items:center;
    padding:10px 12px;
    /* NEW → gap for the orange badge so price stays visible */
    position:relative;
    cursor:pointer;
}

/* Hover / keyboard selection */
.ks-suggest-box li:hover,
.ks-suggest-box li.active{background:#f0f9f0;}

/* --- Thumbnail, title & prices ---------------------------------- */
.ks-suggest-thumb{                 /* 40 × 40 fixed thumb */
  grid-column:1;
  width:40px;
  height:40px;
  border-radius:4px;
  object-fit:cover;
}

.ks-suggest-title{                 /* never overlaps price  */
  grid-column:2;
  font-weight:600;
  font-size:0.95rem;
  line-height:1.3;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.ks-suggest-price{
    grid-column:3;
    text-align:left;
    font-weight:600;
    white-space:nowrap;
}
.ks-suggest-price s{               /* strike-through MRP */
  font-weight:400;
  font-size:0.80rem;
  margin-left:4px;
  color:#999;
}

/* %-OFF badge ------------------------------------------------------ */
.ks-suggest-badge{
  grid-column:4;
  justify-self:end;
  background:#ff8a00;
  color:#fff;
  font-size:0.7rem;
  font-weight:600;
  padding:2px 6px;
  border-radius:4px;
  white-space:nowrap;
}

/* ===== MOBILE (≤480px) – Polished suggestion list ===== */
@media (max-width:480px){

  /* --- dropdown container: soft card --- */
  .ks-suggest-box{
    border:none;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.12);
    padding:4px 0;                 /* inner breathing */
  }
  .ks-search-discovery{
    padding:12px 12px 14px;
  }
  .ks-search-discovery-section + .ks-search-discovery-section{
    margin-top:14px;
  }
  .ks-search-chip-row{
    gap:8px;
  }
  .ks-search-chip{
    min-height:32px;
    padding:6px 11px;
    font-size:.82rem;
  }

  /* --- one row (card-feel) --- */
  .ks-suggest-box li{
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 16px;             /* 48 px tap target */
    background:#fff;
    border-bottom:1px solid #f2f2f2;
  }
  .ks-suggest-box li:last-child{border-bottom:none;}
  .ks-suggest-box li:hover,
  .ks-suggest-box li.active{background:#f6fff6;}  /* tap feedback */

  /* --- thumbnail (bigger) --- */
  .ks-suggest-thumb{
    flex:0 0 48px;
    width:48px;
    height:48px;
    border-radius:6px;
    object-fit:cover;
  }

  /* --- title (max-2 lines) --- */
  .ks-suggest-title{
    flex:1 1 auto;
    font-size:.95rem;
    font-weight:600;
    line-height:1.35;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  /* --- price block --- */
  .ks-suggest-price{
    flex:0 0 auto;
    font-weight:700;
    text-align:right;
    white-space:nowrap;
    margin-left:4px;
  }
  .ks-suggest-price s{
    display:block;
    font-size:.80rem;
    font-weight:500;
    color:#888;
  }

  /* --- %-OFF badge (hidden on mobile) --- */
  .ks-suggest-badge{
    display:none !important;   /* hide discount badge on phones */
  }
}


/* “view all” CTA --------------------------------------------- */
.ks-view-all{
  display:block;
  padding:10px 0;
  background:#0a8b00;
  color:#fff;
  font-weight:600;
  text-align:center;
  border-top:1px solid #e0e0e0;
  text-decoration:none;
}
.ks-view-all:hover{
  background:#066d00;
}

/* ============================================================
   EXTRA FIX – let the dropdown escape header limits
   (parent containers were clipping it).  Keep at end!
=========================================================== */
.ks-header-top,
.ks-search-container{
  overflow:visible !important;   /* dropdown is no longer cut */
}
.ks-search-container{
  position:relative;             /* stacking context for z-index */
  z-index:3100;                  /* over mega-menu etc.        */
}

/* ===== Account dropdown styles ===== */
.ks-account-area.ks-user-menu{position:relative;cursor:pointer;}
.ks-account-area.ks-user-menu i.fa-angle-down{margin-left:4px;font-size:.8rem;}
/* NEW – no gap + invisible hover-bridge */
.ks-account-area.ks-user-menu{
  position:relative;                 /* anchor for the list */
}

/* dropdown box */
.ks-user-dropdown{
  position:absolute;
  right:0;
  top:calc(100% + 4px);              /* sits 4 px lower, no gap */
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:6px;
  min-width:160px;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
  list-style:none;
  margin:0;
  padding:6px 0;
  display:none;                      /* default hidden */
  z-index:10000;                     /* stay above everything */
}

/* keep it open while hovering
   – over the button, the list *or* any child of the list */
.ks-account-area.ks-user-menu:hover .ks-user-dropdown,
.ks-account-area.ks-user-menu:focus-within .ks-user-dropdown{
  display:block;
}

/* ► invisible strip exactly over the gap
     so pointer never “leaves” the menu while moving down */
.ks-account-area.ks-user-menu::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:100%;
  height:6px;                        /* same 4 px + a small buffer */
}

.ks-user-dropdown li a{
  display:block;padding:8px 14px;font-size:.95rem;
  color:#333;text-decoration:none;
}
.ks-user-dropdown li a:hover{background:#f5f5f5;}
/* show on hover (desktop only) */
@media (min-width:1024px){
  .ks-account-area.ks-user-menu:hover .ks-user-dropdown{display:block;}
}

/* ==== User Drawer (mobile) =================================== */
.ks-user-overlay{
  position:fixed;inset:0;
  background:rgba(0,0,0,.45);
  backdrop-filter:blur(1px);
  opacity:0;visibility:hidden;
  transition:opacity .25s;
  z-index:11000;
}
.ks-user-drawer{
  position:fixed;top:0;right:0;height:100%;width:280px;
  background:#fff;border-left:1px solid #e0e0e0;
  transform:translateX(100%);transition:transform .3s ease;
  display:flex;flex-direction:column;z-index:11001;
}
.ks-user-drawer.show        {transform:none;}
.ks-user-overlay.show       {opacity:1;visibility:visible;}

.ks-user-drawer-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border-bottom:1px solid #f0f0f0;
}
.ks-drawer-logo{height:26px;width:auto;}
.ks-drawer-close{background:none;border:none;font-size:1.3rem;cursor:pointer;}

.ks-user-info{
  padding:18px;border-bottom:1px solid #f0f0f0;
  display:flex;flex-direction:column;gap:4px;font-size:.9rem;
}
.ks-user-links{list-style:none;margin:0;padding:0;}
.ks-user-links li a{
  display:block;padding:12px 20px;font-size:.95rem;
  color:#333;text-decoration:none;
}
.ks-user-links li a:hover{background:#f5f5f5;}
.ks-logout{color:#d9534f;}
/* desktop में drawer नहीं दिखेगा */
@media (min-width:768px){.ks-user-drawer,.ks-user-overlay{display:none!important;}}

/* Back arrow on inner pages */
.ks-back-btn{
  font-size:1.65rem;        /* same visual weight as hamburger */
  padding:12px 10px;        /* hit area, keep it tappable     */
  cursor:pointer;
  display:flex;
  align-items:center;
}

@media (min-width: 768px){
  .ks-only-mobile{
    display: none !important;   /* force-hide on bigger screens  */
  }
}

/* ================= MOBILE TWEAKS ================= */
@media (max-width:480px){        /* phones only */
  /* hide decimals (.00) */
  .ks-decimal{display:none;}

  .ks-suggest-price{
  white-space:normal;         /* allow wrapping on phones */
}

.ks-suggest-price s{          /* strike-through price */
  display:block;              /* appears under the main price */
  font-size:.8rem;            /* slightly bigger for readability */
  color:#777;
  margin-top:2px;             /* small gap */
}
}

.no-anim{
  transition:none !important;
}

/* === FIX: remove blue focus ring from search input + button + container ===
   Note: Button focus ring was making the whole grey box look blue. */
.ks-search-input,
.ks-search-btn,
.ks-search-mic {
  -webkit-appearance: none;
}

/* kill focus ring on input, button, and container focus-within */
.ks-search-input:focus,
.ks-search-input:focus-visible,
.ks-search-btn:focus,
.ks-search-btn:focus-visible,
.ks-search-mic:focus,
.ks-search-mic:focus-visible,
.ks-search-container:focus-within {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* Firefox inner focus border on buttons */
.ks-search-btn::-moz-focus-inner {
  border: 0 !important;
}

/* belt-and-suspenders: if any child inside container gets focus */
.ks-search-container *:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* HOMEPAGE: header search par focus ring hatao */
.ks-header :is(input, button, a, [tabindex]):focus,
.ks-header :is(input, button, a, [tabindex]):focus-visible,
.ks-header .ks-search-container:focus-within {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

/* ==============================================================
   ETHNICHAAT HEADER — compact premium redesign
   Font: Jost (clean, highly legible, fashion-friendly)
   ============================================================= */
:root {
  --eh-maroon: #8f0c2d;
  --eh-maroon-deep: #69051f;
  --eh-gold: #b8843c;
  --eh-gold-soft: #e6cfa7;
  --eh-ink: #1f1a17;
  --eh-text: #3a312c;
  --eh-muted: #857870;
  --eh-cream: #fffaf3;
  --eh-line: #efe1cb;
  --eh-sans: 'Jost', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.ks-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--eh-cream);
  border-bottom: 1px solid var(--eh-line);
  box-shadow: 0 4px 18px rgba(83, 26, 20, .06);
  font-family: var(--eh-sans);
  color: var(--eh-ink);
  -webkit-font-smoothing: antialiased;
}
.ks-header i,
.ks-header .fa-solid,
.ks-header .fa-regular { color: inherit; }

/* ---- Utility bar ---- */
.eh-utility-bar {
  color: #fff6ea;
  background: linear-gradient(100deg, var(--eh-maroon-deep), #9c0e33 55%, #6f061f);
}
.eh-utility-inner {
  width: min(100% - 48px, 1600px);
  min-height: 36px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  font-family: var(--eh-sans);
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: .02em;
}
.eh-utility-inner > span,
.eh-utility-links,
.eh-utility-links a { display: flex; align-items: center; }
.eh-utility-inner > span { gap: 8px; }
.eh-utility-inner i { color: #f0c97c !important; font-size: 13px; }
.eh-heritage { justify-self: center; font-weight: 500; }
.eh-utility-links { justify-self: end; gap: 0; }
.eh-utility-links a {
  gap: 7px;
  padding: 0 14px;
  color: inherit;
  text-decoration: none;
  border-left: 1px solid rgba(240, 201, 124, .35);
  white-space: nowrap;
  transition: color .2s ease;
}
.eh-utility-links a:first-child { border-left: 0; }
.eh-utility-links a:last-child { padding-right: 0; }
.eh-utility-links a:hover { color: #f5d798; }

/* ---- Main row: logo | search | actions ---- */
.ks-header .ks-header-top {
  width: min(100% - 48px, 1600px);
  min-height: 0;
  height: auto;
  margin: 0 auto;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 260px minmax(360px, 700px) auto;
  grid-template-rows: auto;
  justify-content: space-between;
  align-items: center;
  gap: 0 32px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.ks-header .ks-logo-area {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  grid-column: 1;
  grid-row: 1;
}
.ks-header .ks-logo-area a { display: block; width: 100%; }
.ks-header .ks-logo-area img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 88px;
  margin: -10px 0;
  object-fit: contain;
  object-position: left center;
}
.ks-header .ks-search-area { width: 100%; grid-column: 2; grid-row: 1; }
.ks-header .ks-search-area form { width: 100%; }
.ks-header .ks-search-container {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid #e0cba9 !important;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(124, 68, 31, .05) !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ks-header .ks-search-container:hover { border-color: #d3b27f !important; }
.ks-header .ks-search-container:focus-within {
  border-color: var(--eh-maroon) !important;
  box-shadow: 0 0 0 3px rgba(143, 12, 45, .1) !important;
}
.ks-header .ks-search-container::before {
  content: '\f002';
  flex: 0 0 auto;
  margin-left: 20px;
  color: var(--eh-muted);
  font-family: 'Font Awesome 6 Free';
  font-size: 16px;
  font-weight: 900;
}
.ks-header .ks-search-input {
  min-width: 0;
  flex: 1;
  height: 46px;
  padding: 0 12px;
  color: var(--eh-ink);
  background: transparent;
  border: 0 !important;
  outline: none;
  font-family: var(--eh-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
}
.ks-header .ks-search-input::placeholder { color: #958980; opacity: 1; }
.ks-header .ks-search-mic {
  position: static;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: var(--eh-muted);
  background: transparent;
  transform: none;
}
.ks-header .ks-search-mic:hover { color: var(--eh-maroon); }
.ks-header .ks-search-btn {
  position: static;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin-right: 4px;
  color: #fff;
  background: var(--eh-maroon);
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transition: background .2s ease;
}
.ks-header .ks-search-btn:hover { background: var(--eh-maroon-deep); }
.ks-header .ks-search-btn i::before { content: '\f061'; }

/* ---- Account / wishlist / cart ---- */
.ks-header .ks-right-links {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: auto;
}
.ks-header .ks-divider { display: none; }
.ks-header .ks-account-area,
.ks-header .eh-wishlist-link,
.ks-header .cart-link {
  min-width: 64px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--eh-text);
  border-radius: 10px;
  font-family: var(--eh-sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.ks-header .ks-account-area span,
.ks-header .cart-link span { color: inherit; font-size: inherit; font-weight: inherit; }
.ks-header .ks-account-area > i:first-child,
.ks-header .eh-wishlist-link > i,
.ks-header .cart-link i { font-size: 21px; color: inherit !important; }
.ks-header .ks-account-area > i.fa-angle-down { display: none; }
.ks-header .ks-account-area:hover,
.ks-header .eh-wishlist-link:hover,
.ks-header .cart-link:hover { color: var(--eh-maroon); background: #f7ece0; }
.ks-header .cart-top { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.ks-header .cart-top > span { margin-left: 0 !important; }
.ks-header .cart-badge {
  top: -8px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--eh-cream);
  background: var(--eh-maroon);
  color: #fff;
  font: 600 10px/14px var(--eh-sans);
}
.ks-header .ks-user-dropdown { top: 58px; font-family: var(--eh-sans); }

/* ---- Category nav ---- */
.eh-nav-bar {
  height: 46px;
  padding: 0 24px;
  background: #fff;
  border-top: 1px solid var(--eh-line);
}
.eh-nav-bar > ul {
  width: min(100%, 1600px);
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
  list-style: none;
}
.eh-nav-bar li { display: flex; align-items: center; }
.eh-nav-bar a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  color: var(--eh-text);
  font-family: var(--eh-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .2s ease;
}
.eh-nav-bar a i { font-size: 10px; opacity: .55; transition: transform .2s ease; }
.eh-nav-bar a:hover i { transform: rotate(180deg); opacity: 1; }
.eh-nav-bar a::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--eh-maroon);
  transform: scaleX(0);
  transition: transform .25s ease;
}
.eh-nav-bar a:hover,
.eh-nav-bar a.is-active { color: var(--eh-maroon); }
.eh-nav-bar a:hover::after,
.eh-nav-bar a.is-active::after { transform: scaleX(1); }
.eh-nav-bar .eh-sale-link { color: #c2185b; font-weight: 600; }
.eh-nav-message {
  margin-left: auto;
  gap: 8px;
  padding-left: 20px;
  color: var(--eh-gold);
  border-left: 1px solid var(--eh-line);
  font-family: var(--eh-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}
.eh-nav-message br { display: none; }
.eh-nav-message i { color: var(--eh-gold) !important; font-size: 16px; }
.ks-legacy-nav,
.ks-legacy-drawer { display: none !important; }

/* ---- Mobile drawer ---- */
.eh-mobile-drawer { background: var(--eh-cream); font-family: var(--eh-sans); }
.eh-mobile-drawer .ks-nav-drawer-header {
  min-height: 70px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--eh-line);
}
.eh-mobile-drawer .ks-nav-drawer-header img { width: 170px; height: 52px; object-fit: contain; object-position: left center; }
.eh-mobile-drawer .ks-drawer-close { color: var(--eh-maroon); background: #f7eade; }
.eh-mobile-kicker { padding: 14px 20px 6px; color: var(--eh-gold); font: 500 12px/1.3 var(--eh-sans); letter-spacing: .12em; text-transform: uppercase; }
.eh-mobile-menu { margin: 0; padding: 0 20px 30px; list-style: none; }
.eh-mobile-menu li { border-bottom: 1px solid var(--eh-line); }
.eh-mobile-menu a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; color: var(--eh-ink); font: 500 16px/1.2 var(--eh-sans); text-decoration: none; }
.eh-mobile-menu a i { color: #b59468; font-size: 11px; }
.eh-mobile-menu .eh-sale-link { color: #c2185b; }

@media (max-width: 1280px) {
  .eh-utility-inner { grid-template-columns: 1fr auto; }
  .eh-heritage { display: none !important; }
  .ks-header .ks-header-top { grid-template-columns: 210px minmax(300px, 1fr) auto; gap: 0 20px; }
  .ks-header .ks-logo-area img { height: 76px; margin: -8px 0; }
  .eh-nav-bar a { padding: 0 10px; font-size: 14.5px; }
  .eh-nav-message { display: none !important; }
}

@media (max-width: 900px) {
  .eh-utility-inner { width: min(100% - 28px, 820px); min-height: 32px; grid-template-columns: 1fr auto; font-size: 12.5px; }
  .eh-utility-links a { display: none; }
  .eh-utility-links a:first-child { display: flex; border: 0; padding: 0; }
  .ks-header .ks-header-top {
    width: 100%;
    padding: 8px 14px 10px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    grid-template-rows: 48px 44px;
    gap: 8px 12px;
  }
  .ks-header .ks-hamburger,
  .ks-header .ks-only-mobile { grid-column: 1; grid-row: 1; align-self: center; }
  .ks-header .ks-hamburger span { background: var(--eh-maroon); }
  .ks-header .ks-logo-area { grid-column: 2; grid-row: 1; justify-content: center; }
  .ks-header .ks-logo-area a { width: min(100%, 200px); }
  .ks-header .ks-logo-area img { width: 100%; height: 54px; margin: -4px 0; object-position: center; }
  .ks-header .ks-mobile-icons { grid-column: 3; grid-row: 1; display: flex; color: var(--eh-ink); gap: 10px; }
  .ks-header .ks-mobile-icons i { font-size: 20px; color: var(--eh-ink) !important; }
  .ks-header .ks-search-area { grid-column: 1 / -1; grid-row: 2; }
  .ks-header .ks-search-container { height: 44px; }
  .ks-header .ks-search-container::before { margin-left: 16px; font-size: 14px; }
  .ks-header .ks-search-input { height: 42px; font-size: 15px; }
  .ks-header .ks-search-mic { flex-basis: 32px; width: 32px; height: 32px; }
  .ks-header .ks-search-btn { flex-basis: 36px; width: 36px; height: 36px; }
  .ks-header .ks-right-links,
  .eh-nav-bar { display: none !important; }
  .ks-header .vertical-line { background: var(--eh-line); }
}

@media (max-width: 480px) {
  .eh-utility-inner { width: calc(100% - 20px); display: flex; justify-content: center; }
  .eh-utility-inner > span { font-size: 12px; }
  .eh-utility-links { display: none; }
  .ks-header .ks-header-top { padding: 6px 10px 10px; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px 8px; }
  .ks-header .ks-logo-area a { width: min(100%, 170px); }
  .ks-header .ks-logo-area img { height: 50px; }
  .ks-header .ks-mobile-icons { gap: 7px; }
  .ks-header .ks-mobile-icons .vertical-line { margin: 0 2px; }
  .ks-header .ks-search-input { padding: 0 8px; font-size: 15px; }
  .ks-header .ks-search-container::before { margin-left: 14px; }
}

/* ==============================================================
   HERITAGE ORNAMENTS — mandala + lotus (shared with footer)
   Images: /assets/images/footer/{mandala-half,lotus,sparkle}.svg
   ============================================================= */
.eh-utility-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    url('/assets/images/footer/mandala-half.svg') left center / auto 260% no-repeat,
    radial-gradient(ellipse at 50% 0%, #a3143b 0%, transparent 70%),
    linear-gradient(100deg, #5e0419, #8a0c2c 50%, #5e0419);
}
.eh-utility-bar::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 50%;
  background: url('/assets/images/footer/mandala-half.svg') left center / auto 260% no-repeat;
  transform: scaleX(-1);
  pointer-events: none;
}
.eh-utility-inner { width: min(100% - 180px, 1500px); min-height: 40px; }
.eh-heritage {
  gap: 10px !important;
  color: #fbe3c4;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 600;
  letter-spacing: .01em;
}
.eh-u-lotus { width: 24px; height: 18px; filter: brightness(1.3); }
.eh-u-spark,
.eh-nav-bar .eh-nav-message::before {
  display: inline-block;
  width: 9px;
  height: 9px;
  background: url('/assets/images/footer/sparkle.svg') center / contain no-repeat;
  opacity: .9;
}
.eh-utility-links a { border-left: 0; position: relative; }
.eh-utility-links a + a::before {
  content: '';
  position: absolute;
  left: -4px;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  background: url('/assets/images/footer/sparkle.svg') center / contain no-repeat;
}

/* Main row: faint mandala watermark on the edges */
.ks-header { position: relative; }
.ks-header .ks-header-top { position: relative; }
.ks-header::before,
.ks-header::after {
  content: '';
  position: absolute;
  top: 40px;
  bottom: 46px;
  z-index: -1;
  width: 110px;
  background: url('/assets/images/footer/mandala-half.svg') left center / auto 180% no-repeat;
  opacity: .14;
  pointer-events: none;
}
.ks-header::before { left: 0; }
.ks-header::after { right: 0; transform: scaleX(-1); }

/* Nav: gold hairline with a centre lotus feel + lotus message */
.eh-nav-bar {
  position: relative;
  border-top: 0;
  background: #fff;
}
.eh-nav-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #dcb57c 20%, #dcb57c 80%, transparent);
}
.eh-nav-bar .eh-nav-message {
  gap: 10px;
  color: #9b6526;
  border-left: 1px solid #ecd9bd;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 600;
}
.eh-nav-bar .eh-nav-message::before { content: none; }
.eh-nav-lotus { width: 28px; height: 21px; }
.eh-nav-bar a.is-active::after,
.eh-nav-bar a:hover::after { background: linear-gradient(90deg, var(--eh-maroon), #b8843c); }

@media (max-width: 1280px) {
  .eh-utility-inner { width: min(100% - 120px, 1500px); }
}
@media (max-width: 900px) {
  .eh-utility-bar { background-size: auto 200%, auto, auto; }
  .eh-utility-bar::after { background-size: auto 200%; }
  .eh-utility-inner { width: min(100% - 80px, 820px); }
  .ks-header::before,
  .ks-header::after { display: none; }
}
@media (max-width: 480px) {
  .eh-utility-inner { width: calc(100% - 60px); }
}

/* ==============================================================
   CART DRAWER — EthnicHaat heritage style
   (markup: includes/header.php; items are rendered by page JS with the
    shared .cart-item classes, so their inline styles are overridden here)
   ============================================================= */
#cartDrawer.eh-cart {
  width: 420px;
  max-width: 100vw;
  background: #fbf6ee;
  box-shadow: -18px 0 50px rgba(60, 4, 20, .28);
  font-family: 'Jost', 'Segoe UI', system-ui, sans-serif;
  color: #2a211d;
  z-index: 10001;
}
.eh-cart .cart-header {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 18px 14px 20px;
  border: 0;
  color: #fff;
  background:
    url('/assets/images/footer/mandala-half.svg') right -70px center / auto 230% no-repeat,
    linear-gradient(100deg, #5e0419, #8a0c2c 60%, #6f061f);
}
.eh-cart-lotus { width: 34px; height: auto; filter: brightness(1.35); }
.eh-cart .cart-header h3 {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font: 600 26px/1 'Cormorant Garamond', Georgia, serif;
}
.eh-cart-count {
  padding: 5px 10px;
  color: #5e0419;
  background: #f3d58f;
  border-radius: 999px;
  font: 600 12px/1 'Jost', sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
}
.eh-cart .cart-header .close-cart {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(243, 213, 143, .45);
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.eh-cart .cart-header .close-cart:hover { color: #fff; background: rgba(255, 255, 255, .26); transform: rotate(90deg); }

/* free-shipping meter */
.eh-ship-meter { padding: 12px 20px 14px; background: #fff8ec; border-bottom: 1px solid #ecdcc3; }
.eh-ship-meter[hidden] { display: none; }
.eh-ship-meter p { margin: 0 0 8px; color: #4a3f39; font-size: 13.5px; }
.eh-ship-meter strong { color: #8f0c2d; }
.eh-ship-track { height: 7px; overflow: hidden; background: #efe1cb; border-radius: 999px; }
.eh-ship-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #c99550, #8f0c2d); border-radius: inherit; transition: width .4s ease; }
.eh-ship-meter.is-done p,
.eh-ship-meter.is-done strong { color: #1e7a45; }
.eh-ship-meter.is-done .eh-ship-track span { background: linear-gradient(90deg, #3aa56a, #1e7a45); }

/* items */
.eh-cart #cartItemsContainer { padding: 16px !important; }
.eh-cart .cart-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ecdcc3;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(60, 20, 10, .05);
}
.eh-cart .cart-item:last-child { margin-bottom: 0; border-bottom: 1px solid #ecdcc3; }
.eh-cart .cart-item > img {
  flex: 0 0 76px;
  width: 76px !important;
  height: 92px !important;
  object-fit: cover;
  border-radius: 10px !important;
  background: #f6ecdd;
}
.eh-cart .cart-mobile-qty-badge { display: none !important; }
.eh-cart .cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.eh-cart .cart-item-title { color: #2a211d; font: 500 15px/1.35 'Jost', sans-serif; }
.eh-cart .cart-item-title > span { float: right; margin-left: 10px; color: #8f0c2d; font-weight: 600 !important; }
.eh-cart .cart-item-variant {
  align-self: flex-start;
  padding: 3px 9px;
  color: #6b5a4f !important;
  background: #f7eee1;
  border-radius: 999px;
  font-size: 12px !important;
}
.eh-cart .cart-item-price { color: #4a3f39; font-size: 13.5px; font-weight: 500; }
.eh-cart .cart-item-price s { margin-left: 6px; color: #9b8f86; font-size: 12.5px; }
.eh-cart .cart-item-qty { display: flex; align-items: center; gap: 0; margin-top: 4px; }
.eh-cart .cart-item-qty > button:nth-of-type(1),
.eh-cart .cart-item-qty > button:nth-of-type(2) {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #8f0c2d;
  background: #fff;
  border: 1px solid #e3caa6;
  font: 600 16px/1 'Jost', sans-serif;
  cursor: pointer;
  transition: background .2s ease;
}
.eh-cart .cart-item-qty > button:nth-of-type(1) { border-radius: 999px 0 0 999px; }
.eh-cart .cart-item-qty > button:nth-of-type(2) { border-radius: 0 999px 999px 0; }
.eh-cart .cart-item-qty > button:nth-of-type(1):hover,
.eh-cart .cart-item-qty > button:nth-of-type(2):hover { background: #fbf1e2; }
.eh-cart .cart-item-qty > span {
  min-width: 38px;
  height: 32px;
  display: grid;
  place-items: center;
  border-top: 1px solid #e3caa6;
  border-bottom: 1px solid #e3caa6;
  font-weight: 600;
}
.eh-cart .cart-item-qty > button:nth-of-type(3) {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-left: auto !important;
  color: #9b8f86;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.eh-cart .cart-item-qty > button:nth-of-type(3):hover { color: #8f0c2d; background: #fbeaea; }

/* empty state */
.eh-cart .empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  text-align: center;
}
.eh-cart .empty-cart-state::before {
  content: '';
  width: 150px;
  height: 150px;
  margin-bottom: 22px;
  border-radius: 50%;
  background:
    url('/assets/images/footer/lotus.svg') center 58% / 64px no-repeat,
    url('/assets/images/footer/mandala-half.svg') right center / auto 100% no-repeat,
    radial-gradient(circle, #fff8ec 0%, #f3e3c8 100%);
  box-shadow: inset 0 0 0 6px #fff, 0 10px 26px rgba(94, 4, 25, .12);
}
.eh-cart .empty-cart-icon { display: none !important; }
.eh-cart .empty-cart-state h4 { margin: 0 0 8px; color: #8f0c2d; font: 600 28px/1.1 'Cormorant Garamond', Georgia, serif; }
.eh-cart .empty-cart-state p { margin: 0 0 24px; color: #7a6c63; font-size: 15px; }
.eh-cart .shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 30px;
  color: #fff;
  background: linear-gradient(145deg, #a3143b, #5e0419);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(143, 12, 45, .25);
  font: 500 15px/1 'Jost', sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.eh-cart .shop-now-btn::after { content: '\2192'; }
.eh-cart .shop-now-btn:hover { background: linear-gradient(145deg, #a3143b, #5e0419); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(143, 12, 45, .32); }

/* footer */
.eh-cart .cart-footer {
  padding: 16px 20px 18px;
  background: #fff;
  border-top: 1px solid #ecdcc3;
  box-shadow: 0 -10px 24px rgba(60, 20, 10, .06);
}
.eh-cart .cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 10px;
  color: #2a211d;
  font: 600 22px/1 'Cormorant Garamond', Georgia, serif;
}
.eh-cart .cart-subtotal > span:last-child { color: #8f0c2d; font: 600 20px/1 'Jost', sans-serif; }
.eh-cart .cart-terms label { display: flex; align-items: center; gap: 8px; color: #4a3f39; font-size: 13px; }
.eh-cart .cart-terms input[type="checkbox"] { width: 16px; height: 16px; accent-color: #8f0c2d; }
.eh-cart .cart-terms a,
.eh-cart .cart-disclaimer a { color: #8f0c2d; }
.eh-cart .cart-disclaimer { margin: 6px 0 12px; color: #8a7a6e; font-size: 11.5px; line-height: 1.45; }
.eh-cart .cart-checkout-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(145deg, #a3143b, #5e0419);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(143, 12, 45, .28);
  font: 500 16px/1 'Jost', sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.eh-cart .cart-checkout-btn:hover:not(:disabled) { background: linear-gradient(145deg, #a3143b, #5e0419); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(143, 12, 45, .34); }
.eh-cart .cart-checkout-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.eh-cart .cart-checkout-btn i { color: #f3d58f; font-size: 13px; }
.eh-cart .shipping-note { margin: 10px 0 0; color: #8a7a6e; font-size: 12px; text-align: center; }
.eh-cart-trust {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #ecdcc3;
  color: #6b5a4f;
  font-size: 11.5px;
}
.eh-cart-trust span { display: flex; align-items: center; gap: 5px; }
.eh-cart-trust i { color: #b8843c; }

.cart-overlay.show { background: rgba(40, 4, 14, .45); backdrop-filter: blur(3px); }

@media (max-width: 480px) {
  #cartDrawer.eh-cart { width: 100vw; }
  .eh-cart .cart-header h3 { font-size: 23px; }
  .eh-cart .cart-item > img { flex-basis: 66px; width: 66px !important; height: 80px !important; }
  .eh-cart-trust { font-size: 10.5px; }
}
