/* ======================================================
   HEADER-SPECIFIC VARIABLES
   layout.css defines --bg, --text, --header-bg, --primary,
   but has no concept of a border or accent color yet, so we
   add those here with safe fallbacks that work in both
   light mode (:root) and dark mode (.dark).
====================================================== */
:root {
  --header-border: #e5e7eb;
  --header-accent: var(--primary);
  --header-accent-rgb: var(--primary-rgb);
  --header-text-muted: #6b7280;
}

.dark {
  --header-border: #2a2a2a;
  --header-text-muted: #9ca3af;
}

/* ======================================================
   HEADER — BASE / MOBILE LAYOUT (default)
====================================================== */
.customer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px 16px;
  border-radius: var(--tc-topbar-radius, 0);
  border-bottom: var(--tc-topbar-bw, 1px) solid var(--tc-topbar-bc, rgba(255, 255, 255, 0.1));
  background: var(--tc-mobile-header-bg, transparent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: var(--tc-topbar-text, #ffffff);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

/* Premium deep blue gradient background wrapper */
.customer-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tc-topbar-bg, linear-gradient(180deg, #103682 0%, #0d2c6c 100%));
  opacity: var(--tc-topbar-opacity, 1);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  z-index: -1;
  pointer-events: none;
  transition: background 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}

/* Secondary Row (Menu and Location bar + Desktop auth controls) */
.header-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 8px auto 0;
  gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
}

.sub-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-width: 0;
}
.sub-row-left::-webkit-scrollbar { display: none; }

.sub-row-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* "Offers" pill button — right side of the sub-row */
.offers-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.offers-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.offers-btn svg,
.offers-btn i {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

.offers-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6a00;
  border: 1.5px solid #031b47;
}

/* Reverted delivery location bar */
.delivery-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
  width: fit-content;
}

.delivery-bar:hover {
  opacity: 0.9;
}

/* Beautiful Rounded 3D Embossed button for Pin Icon */
.delivery-pin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.delivery-bar:hover .delivery-pin-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.delivery-pin-icon-modern {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.delivery-arrow-icon {
  width: 15px;
  height: 15px;
  stroke: #ffffff;
  stroke-width: 2.5;
  margin-top: 1px;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.delivery-bar:hover .delivery-arrow-icon {
  transform: translateY(1.5px);
}

.delivery-text {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.delivery-label {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.delivery-text strong {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

/* Divider between the delivery and arrives blocks in the sub-row */
.header-subrow-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
}

/* Estimated arrival ("Arrives / Tomorrow") block — same visual language
   as the delivery-bar next to it */
.arrives-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #ffffff;
  user-select: none;
  width: fit-content;
  flex-shrink: 0;
}

.arrives-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.arrives-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.5;
  fill: none;
  flex-shrink: 0;
}

.arrives-text {
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.arrives-label {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.arrives-text strong {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
}

.logo-area {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

#headerLogo {
  height: 42px;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  object-fit: contain;
  display: block;
}

.center {
  flex: 1;
  max-width: 600px;
  min-width: 200px;
}

/* ======================================================
   SEARCH BAR WITH DROPDOWN
====================================================== */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#searchBar {
  width: 100%;
  padding: 9px 48px 9px 18px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 500;
  opacity: 1;
  transition: all 0.3s ease;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#searchBar::placeholder {
  color: #6b7280;
}

#searchBar:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

.search-btn {
  position: absolute;
  right: 6px;
  background: #ffffff;
  border: 2.5px solid #ff6a00;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6a00;
  transition: all 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}

.search-btn:hover {
  transform: scale(1.06);
  border-color: #e05a00;
  color: #e05a00;
}

.search-btn svg, .search-btn i {
  width: 14px;
  height: 14px;
  stroke: #ff6a00;
  stroke-width: 3px;
}

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg);
  border: 1px solid var(--header-border);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.search-dropdown.open {
  display: flex;
}

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-results-list li {
  border-bottom: 1px solid var(--header-border);
  padding: 0;
}

.search-results-list li:last-child {
  border-bottom: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  color: var(--text);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.search-result-item:hover {
  background-color: var(--header-border);
}

.search-result-item img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-price {
  font-size: 12px;
  color: var(--header-text-muted);
}

.search-loading {
  padding: 16px;
  text-align: center;
  color: var(--header-text-muted);
  font-size: 13px;
}

.search-empty {
  padding: 16px;
  text-align: center;
  color: var(--header-text-muted);
  font-size: 13px;
}

/* Desktop-only controls hidden on mobile by default */
.desktop-controls {
  display: none;
}

.right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--tc-topbar-text, #ffffff);
  cursor: pointer;
  position: relative;
}

.cart-btn {
  display: none;
  width: auto;
  gap: 2px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary-dark);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.cart-count.hidden {
  display: none;
}

/* ======================================================
   NAV DRAWER (mobile slide-out)
====================================================== */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(280px, 80vw);
  background: var(--header-bg);
  color: var(--text);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-drawer.open {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  background: var(--tc-topbar-bg, linear-gradient(135deg, var(--primary-light, #2563eb) 0%, var(--primary, #1E3A8A) 100%));
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-drawer-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tc-topbar-bg, linear-gradient(135deg, var(--primary-light, #2563eb) 0%, var(--primary, #1E3A8A) 100%));
  opacity: var(--tc-topbar-opacity, 1);
  pointer-events: none;
  z-index: 0;
}

.nav-drawer-header > * {
  position: relative;
  z-index: 1;
}

.nav-drawer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-drawer-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.nav-drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.nav-drawer-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
}

/* ── User info panel (logged-in) ── */
.nav-drawer-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--header-border, #e5e7eb);
  background: var(--bg, #f9fafb);
}

.nav-drawer-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff6a00; /* Beautiful orange accent */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.25);
}

.nav-drawer-user-avatar svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}

.nav-drawer-user-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-drawer-user-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text, #1f2937);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-drawer-user-phone {
  font-size: 12px;
  color: var(--header-text-muted, #6b7280);
}

.nav-drawer-user-arrow {
  color: var(--header-text-muted, #9ca3af);
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nav-drawer-user-arrow:hover {
  color: #ff6a00;
}

.nav-drawer-user-arrow svg {
  width: 18px;
  height: 18px;
}

/* ── Auth buttons (logged-out) ── */
.nav-drawer-auth-btns {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--header-border, #e5e7eb);
}

.nav-drawer-auth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.nav-drawer-auth-btn:active {
  transform: scale(0.97);
}

.nav-drawer-auth-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-drawer-auth-btn--primary {
  background: #ff6a00; /* Beautiful orange color */
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 106, 0, 0.25);
}

.nav-drawer-auth-btn--primary svg {
  stroke: #ffffff;
}

.nav-drawer-auth-btn--outline {
  background: transparent;
  color: #ff6a00;
  border: 1.5px solid #ff6a00;
}

.nav-drawer-auth-btn--outline svg {
  stroke: #ff6a00;
}

.nav-drawer-section-title {
  padding: 14px 16px 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--header-text-muted);
}

.nav-drawer-categories {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.nav-drawer-categories li button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.nav-drawer-categories li button:active {
  background: var(--header-border);
}

/* -------- LANGUAGE TOGGLE (drawer, mobile) -------- */
.nav-drawer-lang-toggle {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--header-border);
}

.lang-option {
  flex: 1;
  padding: 9px 0;
  border: 1px solid var(--header-border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
}

.lang-option.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: var(--primary-glow);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

/* ======================================================
   DESKTOP LAYOUT (≥860px)
====================================================== */
/* Desktop-only elements hidden on mobile by default */
.desktop-nav-links {
  display: none;
}

.desktop-icon-nav {
  display: none;
}

.desktop-delivery-bar {
  display: none;
}

.desktop-cat-strip {
  display: none;
}

.desktop-cat-dropdown {
  display: none;
}

@media (min-width: 860px) {
  /* ===== DESKTOP TOPBAR — Row 1 ===== */
  /* Logo | Delivery Location | Search (full width) | Language | Wishlist | Account | Cart */
  
  .customer-header {
    padding: 0;
    gap: 0;
    flex-direction: column;
  }

  .header-main-row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 8px 24px;
    height: 64px;
    box-sizing: border-box;
  }

  .logo-area img {
    height: 38px;
  }

  .logo-area {
    flex-shrink: 0;
  }

  /* ===== Desktop delivery location (compact, between logo and search) ===== */
  .desktop-delivery-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s;
    flex-shrink: 0;
    color: #ffffff;
  }

  .desktop-delivery-bar:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .desktop-delivery-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    flex-shrink: 0;
  }

  .desktop-delivery-pin svg {
    stroke: #ffffff;
  }

  .desktop-delivery-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .desktop-delivery-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  .desktop-delivery-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
  }

  .desktop-delivery-arrow {
    width: 14px;
    height: 14px;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2.5;
  }

  /* ===== Full-width search bar ===== */
  .center {
    flex: 1;
    max-width: none;
    min-width: 200px;
  }

  #searchBar {
    padding: 10px 48px 10px 16px;
    font-size: 14px;
    height: 40px;
  }

  .search-btn {
    width: 40px;
    height: 40px;
    right: 4px;
  }

  /* Hide mobile sub-row on desktop */
  .header-sub-row {
    display: none;
  }

  /* Language toggle stays compact */
  .lang-toggle-group {
    flex-shrink: 0;
  }

  /* ===== Desktop icon nav (Wishlist | Account | Cart) ===== */
  .desktop-icon-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }

  .desktop-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.18s ease;
    position: relative;
    cursor: pointer;
  }

  .desktop-icon-btn i,
  .desktop-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
    flex-shrink: 0;
  }

  .desktop-icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .desktop-icon-btn:hover i,
  .desktop-icon-btn:hover svg {
    stroke: #ffffff;
  }

  /* Badge for wishlist/cart counts */
  .desktop-icon-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ff6a00;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1;
  }

  .desktop-icon-badge.hidden {
    display: none;
  }

  /* Cart button — icon + total price */
  .desktop-cart-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 4px;
    padding-left: 14px;
  }

  .desktop-cart-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-cart-icon-wrap .desktop-cart-icon {
    width: 26px;
    height: 26px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
    transition: transform 0.18s ease;
  }

  .desktop-cart-btn:hover .desktop-cart-icon {
    transform: translateY(-1px) scale(1.05);
  }

  .desktop-cart-icon-wrap .desktop-icon-badge {
    top: -6px;
    right: -8px;
  }

  .desktop-cart-total {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
  }

  /* ===== DESKTOP CATEGORY STRIP (thin bar below main) ===== */
  .desktop-cat-strip {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
    height: 40px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
  }

  .desktop-cat-strip-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 0 14px;
    height: 100%;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
  }

  .desktop-cat-strip-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  .desktop-cat-strip-toggle i,
  .desktop-cat-strip-toggle svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    stroke-width: 2;
  }

  .desktop-cat-chevron {
    transition: transform 0.2s;
  }

  .desktop-cat-strip-toggle.open .desktop-cat-chevron {
    transform: rotate(180deg);
  }

  .desktop-cat-strip-links {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 8px;
  }

  .desktop-cat-strip-links::-webkit-scrollbar { display: none; }

  .desktop-cat-strip-links a {
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
  }

  .desktop-cat-strip-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
  }

  .desktop-cat-strip-offer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    height: 100%;
    color: #ffcc70;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
  }

  .desktop-cat-strip-offer:hover {
    background: rgba(255, 106, 0, 0.15);
    color: #ffaa33;
  }

  .desktop-cat-strip-offer i,
  .desktop-cat-strip-offer svg {
    width: 14px;
    height: 14px;
    stroke: #ffcc70;
    stroke-width: 2;
  }

  /* ===== DESKTOP CATEGORY DROPDOWN (mega menu) ===== */
  .desktop-cat-dropdown {
    display: none;
    position: fixed;
    top: 104px;
    left: 24px;
    right: auto;
    max-width: 600px;
    margin: 0;
    background: var(--bg, #ffffff);
    border: 1px solid var(--header-border, #e5e7eb);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
  }

  .desktop-cat-dropdown.open {
    display: block;
  }

  .desktop-cat-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
  }

  .desktop-cat-dropdown-grid a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text, #1f2937);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s;
  }

  .desktop-cat-dropdown-grid a:hover {
    background: var(--header-border, #f3f4f6);
  }

  .desktop-cat-dropdown-grid img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
  }

  .desktop-cat-dropdown-grid .cat-emoji {
    font-size: 20px;
    width: 28px;
    text-align: center;
  }

  /* ===== COLLAPSIBLE CATEGORY TREE (mirrors mobile nav drawer) ===== */
  .desktop-cat-dropdown-grid.tree-mode {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .desktop-cat-tree-item .desktop-cat-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    color: var(--text, #1f2937);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s;
  }

  .desktop-cat-tree-item .desktop-cat-row:hover {
    background: var(--header-border, #f3f4f6);
  }

  .desktop-cat-tree-item .desktop-cat-row img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
  }

  /* Smaller icons for sub-levels (depth > 0) */
  .desktop-cat-row--sub img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }

  .desktop-cat-row--sub .cat-emoji {
    width: 18px;
    font-size: 14px;
  }

  .desktop-cat-row .desktop-cat-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .desktop-cat-row .desktop-cat-arrow {
    font-size: 10px;
    opacity: 0.5;
    transition: transform 0.2s;
    flex-shrink: 0;
  }

  /* Children hidden until the parent row expands them */
  .desktop-cat-children {
    display: none;
  }

  .desktop-cat-tree-item.expanded > .desktop-cat-children {
    display: block;
  }

  .desktop-cat-tree-item.expanded > .desktop-cat-row .desktop-cat-arrow {
    transform: rotate(90deg);
  }

  /* Desktop controls hidden — replaced by desktop-icon-nav */
  .desktop-controls {
    display: none !important;
  }

  .nav-drawer-toggle {
    display: none;
  }
}

/* ============================================================
   CATEGORY ICON BAR — horizontal scrollable row of primary
   category icon buttons, shown below the header
============================================================ */
.category-icon-bar {
  position: relative;
  background: var(--tc-catbar-bg, #ffffff);
  opacity: var(--tc-catbar-opacity, 1);
  border-radius: var(--tc-catbar-radius, 0);
  border-bottom: var(--tc-catbar-bw, 1px) solid var(--tc-catbar-bc, rgba(0,0,0,0.06));
  overflow: hidden;
  min-height: var(--tc-catbar-height, 115px);
  max-height: 250px;
  transition: min-height 0.3s ease, max-height 0.3s ease, padding 0.3s ease, border-bottom-width 0.3s ease;
}

.category-icon-bar.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  min-height: 0 !important;
  max-height: 0 !important;
  border-bottom-width: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.category-icon-scroll {
  display: flex;
  gap: var(--tc-cat-gap, 12px);
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-icon-scroll::-webkit-scrollbar { display: none; }

.cat-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--tc-cat-gap, 8px);
  min-width: var(--tc-cat-card-w, 80px);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
  color: var(--tc-catbar-text, #0f172a);
  font-size: var(--tc-cat-text-size, 12px);
  font-weight: var(--tc-cat-text-weight, 500);
  text-align: center;
}

.cat-icon-btn:hover {
  background: transparent;
  transform: translateY(-2px);
}

.cat-icon-btn.active .cat-icon-circle {
  box-shadow: 0 0 0 2px var(--primary, #1e3a8a), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cat-icon-circle {
  width: var(--tc-mobile-cat-icon-size, var(--tc-cat-card-w, 80px));
  height: var(--tc-mobile-cat-icon-size, var(--tc-cat-card-h, 80px));
  border-radius: var(--tc-mobile-cat-chip-radius, var(--tc-cat-card-radius, 16px));
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tc-mobile-cat-chip-bg, var(--tc-cat-card-bg, #f1f5f9));
  color: var(--tc-catbar-text, #0f172a);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.15s ease-in-out;
  margin-bottom: 0;
  overflow: hidden;
}

.cat-icon-btn:hover .cat-icon-circle {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cat-icon-emoji {
  font-size: var(--tc-catbar-icon-size, 28px);
  line-height: 1;
}

.cat-icon-img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: var(--tc-cat-img-fit, cover);
}

.cat-icon-label {
  max-width: var(--tc-cat-card-w, 80px);
  font-size: var(--tc-cat-text-size, 12px);
  font-weight: var(--tc-cat-text-weight, 500);
  color: var(--tc-catbar-text, #0f172a);
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.25;
}

/* ── Sub-category expandable in nav drawer ── */
.nav-drawer-cat-item {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav-drawer-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}

.nav-drawer-cat-header:hover {
  background: rgba(0,0,0,0.03);
}

.nav-drawer-cat-header .cat-drawer-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-drawer-cat-header .cat-drawer-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-drawer-cat-header .cat-drawer-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.nav-drawer-cat-header .cat-drawer-arrow {
  font-size: 12px;
  transition: transform 0.2s;
  opacity: 0.5;
}

.nav-drawer-cat-item.expanded .cat-drawer-arrow {
  transform: rotate(90deg);
}

.nav-drawer-subs {
  display: none;
  padding-left: 40px;
  background: rgba(0,0,0,0.02);
}

.nav-drawer-cat-item.expanded .nav-drawer-subs {
  display: block;
}

.nav-drawer-sub-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  font-size: 13px;
  color: var(--text, #333);
  transition: background 0.15s;
}

.nav-drawer-sub-btn:hover {
  background: rgba(0,0,0,0.04);
}

.nav-drawer-sub-icon {
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-drawer-sub-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-drawer-child-icon {
  font-size: 15px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-drawer-child-img {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* ============================================================
   GLASS EFFECT — white glass transparent (light) / dark (dark)
   Applied when opacity < 1, creates frosted glass with glow border
============================================================ */
.customer-header::before {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.customer-header {
  border-bottom: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04), 0 0 1px rgba(255,255,255,0.1) inset;
}

.dark .customer-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 12px rgba(0,0,0,0.3), 0 0 1px rgba(255,255,255,0.05) inset;
}

/* Nav drawer glass */
.nav-drawer {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.dark .nav-drawer {
  background: rgba(10,10,10,0.95);
}

.nav-drawer {
  background: rgba(255,255,255,0.92);
}

/* Category icon bar glass */
.category-icon-bar {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}



/* Cat icon buttons glass */
.cat-icon-btn {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
}



/* ======================================================
   NEW LANGUAGE TOGGLE & RESPONSIVE SINGLE-ROW STYLES
   ====================================================== */
.lang-toggle-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.lang-toggle-group:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.lang-btn {
  position: relative;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.lang-btn.active {
  background: #ffffff;
  color: #0b1a3d;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover:not(.active) {
  color: #ffffff;
}

/* Elegant vertical separator between language toggle options */
.lang-btn:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -2.5px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* Softly hide the separator if either option is selected/active */
.lang-btn.active::after,
.lang-btn.active + .lang-btn::after,
.lang-toggle-group:hover .lang-btn::after {
  opacity: 0;
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.signin-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.signin-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Navigation Drawer Toggle Button styled as a 3D rounded square */
.nav-drawer-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  box-sizing: border-box;
}

.nav-drawer-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-drawer-toggle-btn svg {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* Responsive Rules to handle narrow screens gracefully */
@media (max-width: 860px) {
  .customer-header {
    padding: 8px 12px 10px;
    gap: 6px;
  }
  
  /* Prevent search bar wrapping on mobile to satisfy strict row layouts */
  .header-main-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    width: 100%;
  }
  
  .logo-area {
    order: unset;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  
  #headerLogo {
    height: 32px;
    max-width: 100px;
    object-fit: contain;
  }

  .desktop-delivery-bar {
    display: none !important;
  }
  
  .center {
    order: unset;
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  
  #searchBar {
    padding: 7px 38px 7px 14px;
    font-size: 13px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    color: #1e293b;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
  }

  .search-btn {
    width: 28px;
    height: 28px;
    right: 4px;
    border: 2px solid #ff6a00;
    border-radius: 50%;
    background: #ffffff;
    color: #ff6a00;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .search-btn svg, .search-btn i {
    width: 13px;
    height: 13px;
    stroke: #ff6a00;
    stroke-width: 2.8px;
  }

  /* Default mobile header has language selector on right & hides desktop-only icon nav */
  .right {
    order: unset;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .desktop-icon-nav {
    display: none !important;
  }

  /* 2nd row: menu drawer | deliver to | offer badges for normal pages */
  .header-sub-row {
    display: flex !important;
    padding: 5px 8px;
    margin: 4px auto 0;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
  }

  .sub-row-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
  }

  .nav-drawer-toggle-btn,
  .delivery-pin-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .delivery-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
  }

  .delivery-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
  }

  .delivery-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.72);
    text-transform: none;
    font-weight: 500;
  }

  .delivery-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 135px;
  }

  .delivery-arrow-icon {
    width: 13px;
    height: 13px;
    stroke: #ffffff;
    stroke-width: 2.5;
    flex-shrink: 0;
    margin-left: 2px;
  }

  .header-subrow-divider,
  .arrives-bar {
    display: none !important;
  }

  .sub-row-right {
    flex-shrink: 0;
    margin-left: 4px;
  }

  .offers-btn {
    height: 34px;
    padding: 0 12px 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .offers-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6a00;
    border: 1.5px solid #0d2c6c;
    box-shadow: 0 0 6px rgba(255, 106, 0, 0.9);
  }
}

/* ============================================================
   PRODUCT DETAIL PAGES ONLY (Mobile Viewport <= 860px):
   Strictly show ONLY: logo | search bar | wishlist icon | cart icon (count)
   Remove 2nd row menu drawer | offer badges
============================================================ */
@media (max-width: 860px) {
  body.page-product-detail .customer-header,
  body[data-page="product-detail"] .customer-header {
    padding: 8px 10px !important;
    gap: 0 !important;
  }

  body.page-product-detail .header-main-row,
  body[data-page="product-detail"] .header-main-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Topbar element 1: Logo */
  body.page-product-detail .logo-area,
  body[data-page="product-detail"] .logo-area {
    order: unset !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  body.page-product-detail #headerLogo,
  body[data-page="product-detail"] #headerLogo {
    height: 30px !important;
    max-width: 90px !important;
    object-fit: contain !important;
  }

  body.page-product-detail .desktop-delivery-bar,
  body[data-page="product-detail"] .desktop-delivery-bar {
    display: none !important;
  }

  /* Topbar element 2: Search bar */
  body.page-product-detail .center,
  body[data-page="product-detail"] .center {
    order: unset !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }

  body.page-product-detail #searchBar,
  body[data-page="product-detail"] #searchBar {
    padding: 6px 36px 6px 12px !important;
    font-size: 13px !important;
    height: 36px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  body.page-product-detail .search-btn,
  body[data-page="product-detail"] .search-btn {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #ff6a00 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  body.page-product-detail .search-btn svg,
  body.page-product-detail .search-btn i,
  body[data-page="product-detail"] .search-btn svg,
  body[data-page="product-detail"] .search-btn i {
    width: 14px !important;
    height: 14px !important;
    stroke: #ff6a00 !important;
    stroke-width: 2.8px !important;
  }

  /* Hide language toggle on mobile PDP topbar */
  body.page-product-detail .right,
  body[data-page="product-detail"] .right {
    display: none !important;
  }

  /* Topbar elements 3 & 4: Wishlist icon and Cart icon (count) */
  body.page-product-detail .desktop-icon-nav,
  body[data-page="product-detail"] .desktop-icon-nav {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  /* Topbar element 3: Wishlist icon */
  body.page-product-detail #desktopWishlistBtn,
  body[data-page="product-detail"] #desktopWishlistBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    position: relative !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    background: transparent !important;
    cursor: pointer !important;
    text-decoration: none !important;
  }

  body.page-product-detail #desktopWishlistBtn i,
  body.page-product-detail #desktopWishlistBtn svg,
  body[data-page="product-detail"] #desktopWishlistBtn i,
  body[data-page="product-detail"] #desktopWishlistBtn svg {
    width: 21px !important;
    height: 21px !important;
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
  }

  body.page-product-detail #desktopWishlistCount,
  body[data-page="product-detail"] #desktopWishlistCount {
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 3px !important;
    background: #ff6a00 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #103682 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  body.page-product-detail #desktopWishlistCount.hidden,
  body[data-page="product-detail"] #desktopWishlistCount.hidden {
    display: none !important;
  }

  /* Hide Account icon on mobile PDP topbar */
  body.page-product-detail #desktopAccountBtn,
  body[data-page="product-detail"] #desktopAccountBtn {
    display: none !important;
  }

  /* Topbar element 4: Cart icon (count) */
  body.page-product-detail #desktopCartBtn,
  body[data-page="product-detail"] #desktopCartBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-left: none !important;
    margin-left: 0 !important;
    position: relative !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    background: transparent !important;
    cursor: pointer !important;
    text-decoration: none !important;
  }

  body.page-product-detail .desktop-cart-icon-wrap,
  body[data-page="product-detail"] .desktop-cart-icon-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.page-product-detail .desktop-cart-icon-wrap i,
  body.page-product-detail .desktop-cart-icon-wrap svg,
  body[data-page="product-detail"] .desktop-cart-icon-wrap i,
  body[data-page="product-detail"] .desktop-cart-icon-wrap svg {
    width: 21px !important;
    height: 21px !important;
    stroke: #ffffff !important;
    stroke-width: 2.2 !important;
  }

  body.page-product-detail #desktopCartCount,
  body[data-page="product-detail"] #desktopCartCount {
    position: absolute !important;
    top: -5px !important;
    right: -7px !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 3px !important;
    background: #ff3b30 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #103682 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  body.page-product-detail #desktopCartCount.hidden,
  body[data-page="product-detail"] #desktopCartCount.hidden {
    display: none !important;
  }

  /* Hide cart total price text on mobile PDP */
  body.page-product-detail .desktop-cart-total,
  body[data-page="product-detail"] .desktop-cart-total {
    display: none !important;
  }

  /* Remove 2nd row menu drawer | offer badges on mobile PDP */
  body.page-product-detail .header-sub-row,
  body[data-page="product-detail"] .header-sub-row {
    display: none !important;
  }
}
