/* ==============================================================
   DHProduct Header CSS — Green Organic Theme + Dark/Light Mode
   Based on Evaly Layout + DHProduct Brand Colors
   Primary: #4e8b1e (Organic Leaf Green)
   ============================================================== */

/* ==================== CSS VARIABLES (LIGHT MODE DEFAULT) ==================== */
:root {
  /* Brand Colors */
  --shw-primary: #4e8b1e;
  /* Organic Leaf Green */
  --shw-primary-dark: #356312;
  /* Deeper green */
  --shw-primary-light: #6ab32a;
  /* Lighter green */
  --shw-secondary: #d89513;
  /* Organic Gold */
  --shw-primary-grad: linear-gradient(135deg, #4e8b1e 0%, #356312 100%);
  --shw-primary-glow: rgba(78, 139, 30, 0.15);

  /* Light Mode Surface */
  --shw-bg: #f7f9f4;
  /* Very light green-tinted white */
  --shw-surface: #ffffff;
  --shw-surface-2: #f3f7ee;
  /* Slightly greenish card bg */
  --shw-text: #1a2e0d;
  /* Deep forest text */
  --shw-text-muted: #4b6338;
  /* Muted green text */
  --shw-border: #dde8d0;
  /* Green-tinted border */

  /* Tiers */
  --shw-tier1-bg: #eef4e6;
  /* Light green utility bar */
  --shw-tier1-text: #3a5c1a;
  --shw-tier2-bg: #ffffff;
  --shw-tier3-bg: #ffffff;
  --shw-tier3-border: #dde8d0;

  /* Search */
  --shw-search-bg: #ffffff;
  --shw-search-border: #c8dbb0;
  --shw-search-select: #f0f7e6;

  /* Shadows */
  --shw-shadow: 0 2px 12px rgba(78, 139, 30, 0.08);
  --shw-shadow-hover: 0 8px 24px rgba(78, 139, 30, 0.15);

  /* Transitions */
  --shw-transition: all 0.22s ease-in-out;
  --shw-radius: 8px;
  --shw-radius-pill: 50px;
  --shw-radius-card: 12px;

  /* Dropdown */
  --shw-dropdown-bg: #ffffff;
  --shw-dropdown-hover: #f3f7ee;

  /* Cart Drawer */
  --shw-drawer-bg: #ffffff;
  --shw-drawer-footer: #f3f7ee;

  /* Sidebar */
  --shw-sidebar-bg: #ffffff;
  --shw-sidebar-hover: #f3f7ee;
  --shw-sidebar-border: #eef4e6;

  /* Announcement */
  --shw-announce-bg: #4e8b1e;
  --shw-announce-text: #ffffff;

  /* Badge */
  --shw-badge-bg: #4e8b1e;

  /* Category pill */
  --shw-cat-pill-bg: #1a2e0d;
  --shw-cat-pill-text: #ffffff;
}

/* ==================== DARK MODE ==================== */
/* Triggered by: html[data-dhp-theme="dark"] or body.dhp-dark */
html[data-dhp-theme="dark"],
html[data-dhp-theme="dark"] body,
body.dhp-dark {
  --shw-bg: #0f1a07;
  --shw-surface: #162409;
  --shw-surface-2: #1e3410;
  --shw-text: #d4f0a8;
  --shw-text-muted: #8ab56a;
  --shw-border: #2d4a18;

  --shw-tier1-bg: #0d1806;
  --shw-tier1-text: #8ab56a;
  --shw-tier2-bg: #162409;
  --shw-tier3-bg: #1a2e0d;
  --shw-tier3-border: #2d4a18;

  --shw-search-bg: #1e3410;
  --shw-search-border: #3a5c1a;
  --shw-search-select: #1a2e0d;

  --shw-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shw-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);

  --shw-dropdown-bg: #1e3410;
  --shw-dropdown-hover: #2d4a18;

  --shw-drawer-bg: #162409;
  --shw-drawer-footer: #1e3410;

  --shw-sidebar-bg: #162409;
  --shw-sidebar-hover: #1e3410;
  --shw-sidebar-border: #2d4a18;

  --shw-cat-pill-bg: #4e8b1e;
  --shw-cat-pill-text: #ffffff;
}

/* "fresh-grocery" = light mode (as used in ui-polish.js) */
html[data-dhp-theme="fresh-grocery"] {
  /* inherits :root = light mode, just restate for clarity */
  --shw-bg: #f7f9f4;
  --shw-surface: #ffffff;
  --shw-tier1-bg: #eef4e6;
  --shw-tier2-bg: #ffffff;
}

/* ==================== BASE HEADER ==================== */
.shw-header {
  grid-area: header;
  font-family: 'Outfit', 'Inter', sans-serif;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1050;
  background: var(--shw-tier2-bg);
  border-bottom: 1px solid var(--shw-border);
  box-shadow: var(--shw-shadow);
  transition: var(--shw-transition);
}

/* Map main content containers to 'main' area in CSS Grid */
.dhp-premium-home-wrap,
.dhp-shop-layout,
main,
#main,
.site-main,
.woocommerce-container {
  grid-area: main !important;
}

.dhp-wrapper {
  overflow: visible !important;
}

.shw-container {
  max-width: var(--dp-max-width, 1500px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TIER 1 — TOP UTILITY BAR ==================== */
.shw-tier1 {
  background: var(--shw-tier1-bg);
  color: var(--shw-tier1-text);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 0;
  border-bottom: 1px solid var(--shw-border);
  transition: var(--shw-transition);
}

.shw-tier1-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  white-space: nowrap;
}

.shw-tier1 a,
.shw-auth-link {
  color: var(--shw-tier1-text) !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: var(--shw-transition);
}

.shw-tier1 a:hover,
.shw-auth-link:hover {
  color: var(--shw-primary) !important;
}

.shw-tier1-left,
.shw-tier1-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shw-tier1-left .shw-contact-info {
  color: var(--shw-tier1-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.shw-tier1-left .shw-contact-info i,
.shw-tier1-left i {
  color: var(--shw-primary);
}

.shw-tier1-right .shw-divider {
  width: 1px;
  height: 12px;
  background: var(--shw-border);
  flex-shrink: 0;
}

/* ==================== TIER 2 — MAIN HEADER ==================== */
.shw-tier2 {
  background: var(--shw-tier2-bg);
  padding: 12px 0;
  transition: var(--shw-transition);
}

.shw-tier2-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.shw-logo-img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--shw-transition);
  flex-shrink: 0;
}

.shw-logo-img:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

/* Location Button */
.dhp-location-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--shw-surface-2);
  border: 1px solid var(--shw-border);
  border-radius: var(--shw-radius-pill);
  color: var(--shw-text);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: var(--shw-transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.dhp-location-btn:hover {
  background: var(--shw-surface);
  border-color: var(--shw-primary);
  box-shadow: 0 2px 8px var(--shw-primary-glow);
}

.dhp-location-btn i:first-child {
  color: var(--shw-primary);
  font-size: 13px;
}

/* ==================== SEARCH BAR ==================== */
.shw-search-wrap {
  flex: 1;
  max-width: 680px;
}

.shw-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--shw-search-bg);
  border: 1.5px solid var(--shw-search-border);
  border-radius: var(--shw-radius);
  height: 46px;
  overflow: hidden;
  transition: var(--shw-transition);
}

.shw-search-form:focus-within {
  border-color: var(--shw-primary);
  box-shadow: 0 0 0 3px var(--shw-primary-glow);
}

.shw-search-select {
  border: none;
  background: var(--shw-search-select);
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  color: var(--shw-text);
  border-right: 1.5px solid var(--shw-search-border);
  height: 100%;
  border-radius: 0;
  max-width: 150px;
  font-family: inherit;
  flex-shrink: 0;
}

.shw-search-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--shw-text);
  min-width: 0;
}

.shw-search-input::placeholder {
  color: var(--shw-text-muted);
  font-weight: 400;
  opacity: 0.7;
}

/* Search Submit — Green organic button with "Search" text */
.shw-search-form button[type="submit"] {
  height: 100%;
  padding: 0 22px;
  background: var(--shw-primary-grad);
  border: none;
  border-radius: 0 6px 6px 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: var(--shw-transition);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.shw-search-form button[type="submit"]::after {
  content: 'Search';
  font-size: 13px;
}

.shw-search-form button[type="submit"]:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px var(--shw-primary-glow);
}

/* Search Results Dropdown */
.dhp-search__results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--shw-surface);
  border-radius: var(--shw-radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--shw-border);
  z-index: 999;
  overflow: hidden;
}

/* ==================== HEADER ACTIONS ==================== */
.shw-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Icon button — column layout (icon on top) */
.shw-icon-btn {
  width: auto;
  min-width: 42px;
  height: auto;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  color: var(--shw-text);
  font-size: 19px;
  text-decoration: none;
  position: relative;
  transition: var(--shw-transition);
  border: none;
  cursor: pointer;
  border-radius: var(--shw-radius);
}

.shw-icon-btn:hover {
  color: var(--shw-primary);
  background: var(--shw-surface-2);
}

.shw-icon-btn i {
  font-size: 19px;
  line-height: 1;
}

/* Dark/Light toggle — stays circular */
.dhp-darklight-toggle.shw-icon-btn {
  flex-direction: row;
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid var(--shw-border);
  font-size: 17px;
}

.dhp-darklight-toggle.shw-icon-btn:hover {
  border-color: var(--shw-primary);
  background: var(--shw-surface-2);
}

/* Badge (cart, wishlist) */
.shw-badge {
  position: absolute;
  top: 1px;
  right: 3px;
  background: var(--shw-badge-bg);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid var(--shw-surface);
  line-height: 1;
  z-index: 1;
  transition: var(--shw-transition);
}

/* Pulse animation on badge */
.shw-badge:not([style*="none"]) {
  animation: dhp-badge-pulse 2.5s ease infinite;
}

@keyframes dhp-badge-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

/* Action Item wrapper */
.shw-action-item {
  position: relative;
}

/* Cart subtotal display */
.shw-cart-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--shw-primary);
  white-space: nowrap;
}

/* ==================== USER DROPDOWN ==================== */
.shw-account-dropdown {
  position: relative;
}

.shw-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--shw-dropdown-bg);
  border-radius: var(--shw-radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  min-width: 235px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--shw-transition);
  padding: 8px;
  z-index: 200;
  border: 1px solid var(--shw-border);
}

.shw-account-dropdown:hover .shw-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shw-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--shw-text);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--shw-transition);
}

.shw-dropdown-menu a i {
  font-size: 14px;
  color: var(--shw-text-muted);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.shw-dropdown-menu a:hover {
  background: var(--shw-dropdown-hover);
  color: var(--shw-primary);
}

.shw-dropdown-menu a:hover i {
  color: var(--shw-primary);
}

/* ==================== TIER 3 — NAVIGATION BAR ==================== */
.shw-tier3 {
  background: var(--shw-tier3-bg);
  border-top: 1px solid var(--shw-tier3-border);
  border-bottom: 1px solid var(--shw-tier3-border);
  transition: var(--shw-transition);
}

.shw-tier3-inner {
  display: flex;
  align-items: center;
  height: 50px;
}

/* ALL CATEGORIES pill button — Green organic style */
.shw-mega-trigger-wrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.shw-mega-trigger {
  background: var(--shw-primary-grad);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  cursor: pointer;
  transition: var(--shw-transition);
  border-radius: var(--shw-radius);
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-right: 20px;
  box-shadow: 0 2px 8px var(--shw-primary-glow);
}

.shw-mega-trigger:hover,
.shw-mega-trigger-wrap:hover .shw-mega-trigger {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px var(--shw-primary-glow);
  transform: translateY(-1px);
}

.shw-mega-trigger .fa-angle-down {
  font-size: 11px;
  opacity: 0.85;
}

/* Mega Panel */
.shw-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 1000px;
  background: var(--shw-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  border-radius: 0 0 var(--shw-radius-card) var(--shw-radius-card);
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--shw-transition);
  z-index: 300;
  border: 1px solid var(--shw-border);
  border-top: 3px solid var(--shw-primary);
}

.shw-mega-trigger-wrap:hover .shw-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shw-mega-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.shw-mega-header {
  font-size: 13px;
  font-weight: 700;
  color: var(--shw-text);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--shw-border);
  transition: var(--shw-transition);
}

.shw-mega-header:hover {
  color: var(--shw-primary);
  border-bottom-color: var(--shw-primary);
}

.shw-mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.shw-mega-list a {
  display: block;
  font-size: 13px;
  color: var(--shw-text-muted);
  text-decoration: none;
  padding: 5px 0;
  transition: var(--shw-transition);
}

.shw-mega-list a:hover {
  color: var(--shw-primary);
  transform: translateX(4px);
}

.shw-view-all {
  color: var(--shw-primary) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* Tier 3 Quick Links */
.shw-tier3-links {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}

.shw-tier3-links::-webkit-scrollbar {
  display: none;
}

.shw-tier3-links a {
  color: var(--shw-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 50px;
  transition: var(--shw-transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  position: relative;
}

.shw-tier3-links a i {
  color: var(--shw-primary);
  font-size: 12px;
}

.shw-tier3-links a:hover {
  color: var(--shw-primary);
  border-bottom-color: var(--shw-primary);
  background: var(--shw-surface-2);
}

/* ==================== ANNOUNCEMENT BAR ==================== */
.dhp-announcement-bar {
  background: var(--shw-primary-grad);
  color: #ffffff;
  padding: 5px 50px 5px 15px;
  font-size: 12px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.dhp-announcement-bar__scroll {
  display: flex;
  white-space: nowrap;
  animation: dhp-marquee 28s linear infinite;
  gap: 60px;
}

.dhp-announcement-bar__close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  font-size: 14px;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--shw-transition);
}

.dhp-announcement-bar__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

@keyframes dhp-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ==================== MOBILE HAMBURGER ==================== */
.shw-mobile-menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--shw-border);
  font-size: 20px;
  color: var(--shw-text);
  cursor: pointer;
  padding: 7px 9px;
  border-radius: var(--shw-radius);
  flex-shrink: 0;
  transition: var(--shw-transition);
  line-height: 1;
}

.shw-mobile-menu-toggle:hover {
  border-color: var(--shw-primary);
  color: var(--shw-primary);
  background: var(--shw-surface-2);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .shw-tier1 {
    display: none;
  }

  .shw-tier3 {
    display: none;
  }

  .shw-search-wrap {
    max-width: 100%;
  }

  .shw-mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dhp-location-btn {
    display: none;
  }

  .dhp-announcement-bar {
    display: none;
  }
}

@media (max-width: 768px) {
  .shw-tier2-inner {
    flex-wrap: wrap;
    gap: 8px;
  }

  .shw-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .shw-actions {
    margin-left: auto;
  }

  .shw-tier2 {
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .shw-search-form button[type="submit"]::after {
    display: none;
  }

  .shw-search-form button[type="submit"] {
    padding: 0 14px;
  }

  .shw-container {
    padding: 0 12px;
  }
}

/* ==================== MOBILE SIDEBAR / DRAWER ==================== */
.dhp-sidebar {
  position: fixed !important;
  top: 0 !important;
  left: -320px !important;
  width: 300px !important;
  height: 100vh !important;
  background: var(--shw-sidebar-bg) !important;
  z-index: 999999 !important;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.15) !important;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  overflow-y: auto !important;
  padding-bottom: 60px !important;
}

.dhp-sidebar--open,
.dhp-sidebar.mobile-open {
  left: 0 !important;
}

.dhp-sidebar__title {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  color: var(--shw-text);
  border-bottom: 1px solid var(--shw-sidebar-border);
  background: var(--shw-surface-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dhp-sidebar__title::before {
  content: '';
  width: 4px;
  height: 18px;
  background: var(--shw-primary);
  border-radius: 2px;
}

.dhp-sidebar__item {
  border-bottom: 1px solid var(--shw-sidebar-border);
}

.dhp-sidebar__link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--shw-text);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--shw-transition);
}

.dhp-sidebar__link:hover {
  background: var(--shw-sidebar-hover);
  color: var(--shw-primary);
}

.dhp-sidebar__link .arrow {
  margin-left: auto;
  transition: transform 0.3s;
  font-size: 16px;
  color: var(--shw-text-muted);
}

.dhp-sidebar__item.is-expanded>.dhp-sidebar__link .arrow,
.dhp-sidebar__item.open>.dhp-sidebar__link .arrow {
  transform: rotate(90deg);
}

.dhp-sidebar__submenu {
  display: none;
  background: var(--shw-surface-2);
}

.dhp-sidebar__item.is-expanded>.dhp-sidebar__submenu,
.dhp-sidebar__item.open>.dhp-sidebar__submenu {
  display: block;
}

.dhp-sidebar__sublink {
  display: block;
  padding: 10px 20px 10px 45px;
  color: var(--shw-text-muted);
  font-size: 13px;
  text-decoration: none;
  transition: var(--shw-transition);
  border-bottom: 1px solid var(--shw-sidebar-border);
}

.dhp-sidebar__sublink:hover {
  color: var(--shw-primary);
  background: var(--shw-sidebar-hover);
}

/* Drawer overlay scrim (created by ui-polish.js) */
.dhp-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999998;
  transition: opacity 0.3s;
}

.dhp-drawer-overlay.active {
  display: block;
}

body.dhp-drawer-open {
  overflow: hidden;
}

/* Sidebar close button (injected by ui-polish.js) */
.dhp-drawer-close {
  position: sticky;
  top: 0;
  right: 0;
  float: right;
  margin: 10px;
  background: var(--shw-surface-2);
  border: 1px solid var(--shw-border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--shw-text);
  font-size: 16px;
  z-index: 10;
  transition: var(--shw-transition);
}

.dhp-drawer-close:hover {
  background: var(--shw-primary);
  color: #fff;
  border-color: var(--shw-primary);
}

/* ==================== CART DRAWER ==================== */
.dhp-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--shw-transition);
}

.dhp-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.dhp-cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: var(--shw-drawer-bg);
  z-index: 1200;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dhp-cart-drawer.open {
  right: 0;
}

.dhp-cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--shw-border);
  background: var(--shw-surface-2);
}

.dhp-cart-drawer__title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--shw-text);
  margin: 0;
}

.dhp-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.dhp-cart-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--shw-border);
  background: var(--shw-drawer-footer);
}

/* Free delivery progress bar */
.dhp-free-delivery-bar {
  background: var(--shw-border);
}

.dhp-free-delivery-bar__fill {
  background: var(--shw-primary-grad);
}

/* ==================== LOCATION MODAL ==================== */
.dhp-location-modal {
  display: none;
}

/* ==================== SCROLLBAR THEME ==================== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--shw-surface-2);
}

::-webkit-scrollbar-thumb {
  background: var(--shw-primary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--shw-primary-dark);
}

/* ==================== TIER 3 SERIAL CATEGORY NAV ==================== */
.shw-cat-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  gap: 0;
}

.shw-cat-nav::-webkit-scrollbar {
  display: none;
}

.shw-cat-nav__link {
  color: var(--shw-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 0 13px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--shw-transition);
  flex-shrink: 0;
}

.shw-cat-nav__link:hover {
  color: var(--shw-primary);
  border-bottom-color: var(--shw-primary);
  background: var(--shw-surface-2);
}

/* Divider between serial cats and quick links */
.shw-tier3-divider {
  width: 1px;
  height: 28px;
  background: var(--shw-border);
  flex-shrink: 0;
  margin: 0 6px;
}

/* ==================== QUICK LINKS (Today's Deals etc) ==================== */
.shw-tier3-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.shw-ql {
  color: var(--shw-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 50px;
  white-space: nowrap;
  transition: var(--shw-transition);
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}

.shw-ql i {
  font-size: 12px;
}

.shw-ql:hover {
  color: var(--shw-primary);
  border-bottom-color: var(--shw-primary);
  background: var(--shw-surface-2);
}

/* Colored icons for specific links */
.shw-ql--deal i {
  color: #e67e22;
}

.shw-ql--flash i {
  color: #f1c40f;
}

.shw-ql--hot i {
  color: #e74c3c;
}

.shw-ql--deal:hover {
  color: #e67e22;
  border-bottom-color: #e67e22;
}

.shw-ql--flash:hover {
  color: #d4ac0d;
  border-bottom-color: #d4ac0d;
}

.shw-ql--hot:hover {
  color: #e74c3c;
  border-bottom-color: #e74c3c;
}

/* Mega arrow rotation */
.shw-mega-trigger-wrap.is-open .shw-cat-arrow {
  transform: rotate(180deg);
}

.shw-cat-arrow {
  transition: transform 0.22s ease;
}

/* ==================== MOBILE DRAWER ==================== */
.dhp-mob-drawer {
  position: fixed;
  top: 0;
  left: -340px;
  width: 320px;
  max-width: 92vw;
  height: 100vh;
  background: var(--shw-sidebar-bg);
  z-index: 999999;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.18);
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.dhp-mob-drawer.is-open {
  left: 0;
}

/* Drawer Head */
.dhp-mob-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--shw-primary-grad);
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
}

.dhp-mob-drawer__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.dhp-mob-drawer__logo img {
  height: 34px;
  width: auto;
}

.dhp-mob-drawer__logo strong {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.dhp-mob-drawer__close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--shw-transition);
}

.dhp-mob-drawer__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Drawer Section */
.dhp-mob-drawer__section {
  padding: 0;
  flex-shrink: 0;
}

.dhp-mob-drawer__label {
  margin: 0;
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--shw-primary);
  background: var(--shw-surface-2);
  border-bottom: 1px solid var(--shw-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Quick link grid inside drawer */
.dhp-mob-ql-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--shw-border);
  border-bottom: 1px solid var(--shw-border);
}

.dhp-mob-ql {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px;
  text-decoration: none;
  color: var(--shw-text);
  font-size: 11px;
  font-weight: 600;
  background: var(--shw-surface);
  text-align: center;
  transition: var(--shw-transition);
}

.dhp-mob-ql i {
  font-size: 18px;
  color: var(--shw-primary);
}

.dhp-mob-ql:hover {
  background: var(--shw-surface-2);
  color: var(--shw-primary);
}

.dhp-mob-ql--deal i {
  color: #e67e22;
}

.dhp-mob-ql--flash i {
  color: #f1c40f;
}

.dhp-mob-ql--hot i {
  color: #e74c3c;
}

/* Mobile Category List */
.dhp-mob-cats {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dhp-mob-cats__item {
  border-bottom: 1px solid var(--shw-sidebar-border);
}

/* Category button (has children) */
.dhp-mob-cats__btn,
.dhp-mob-cats__lnk {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--shw-text);
  font-size: 13.5px;
  font-weight: 600;
  gap: 10px;
  transition: var(--shw-transition);
  text-align: left;
}

.dhp-mob-cats__btn:hover,
.dhp-mob-cats__lnk:hover {
  background: var(--shw-sidebar-hover);
  color: var(--shw-primary);
}

.dhp-mob-cats__ic {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.dhp-mob-cats__nm {
  flex: 1;
}

.dhp-mob-cats__ct {
  background: var(--shw-surface-2);
  border: 1px solid var(--shw-border);
  color: var(--shw-text-muted);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.dhp-mob-cats__ar {
  font-size: 11px;
  color: var(--shw-text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.dhp-mob-cats__item.is-open>.dhp-mob-cats__btn .dhp-mob-cats__ar {
  transform: rotate(90deg);
}

/* Submenu */
.dhp-mob-cats__sub {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--shw-surface-2);
  border-top: 1px solid var(--shw-border);
}

.dhp-mob-cats__sub[hidden] {
  display: none;
}

.dhp-mob-cats__sl {
  display: block;
  padding: 10px 16px 10px 50px;
  color: var(--shw-text-muted);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid var(--shw-sidebar-border);
  transition: var(--shw-transition);
}

.dhp-mob-cats__sl:hover {
  color: var(--shw-primary);
  background: var(--shw-sidebar-hover);
}

.dhp-mob-cats__sl--all {
  color: var(--shw-primary);
  font-weight: 700;
  font-size: 12px;
  padding-left: 16px;
}

/* Mobile backdrop */
.dhp-mob-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999998;
  backdrop-filter: blur(2px);
}

.dhp-mob-backdrop.is-active {
  display: block;
}

body.dhp-mob-open {
  overflow: hidden;
}

/* ==================== RESPONSIVE OVERRIDES ==================== */
@media (max-width: 1200px) {
  .shw-cat-nav {
    display: none;
  }

  .shw-tier3-divider {
    display: none;
  }
}

@media (max-width: 1024px) {
  .dhp-wrapper {
    display: block !important;
  }

  .shw-tier3 {
    display: none;
  }

  .shw-tier1 {
    display: none;
  }

  .dhp-announcement-bar {
    display: none;
  }

  .dhp-location-btn {
    display: none;
  }

  .shw-search-wrap {
    max-width: 100%;
    flex: 1;
  }

  .shw-mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .shw-tier2-inner {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }

  .shw-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
  }

  .shw-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .shw-actions .dhp-darklight-toggle,
  .shw-actions .shw-icon-btn:not(#dhp-cart-toggle),
  .shw-actions .shw-account-dropdown,
  .shw-actions #dhp-header-corporate-toggle,
  .shw-actions .shw-cart-amount {
    display: none !important;
  }

  .shw-tier2 {
    padding: 8px 0;
  }

  .shw-logo-img {
    max-height: 36px;
  }
}

@media (max-width: 480px) {
  .shw-search-form button[type="submit"]::after {
    display: none;
  }

  .shw-search-form button[type="submit"] {
    padding: 0 14px;
  }

  .shw-container {
    padding: 0 10px;
  }

  .shw-actions {
    gap: 2px;
  }

  .shw-icon-btn {
    min-width: 36px;
    padding: 4px 5px;
  }
}


/* ==================== MEGA MENU CLICK STATE ==================== */
/* Open state via JS class toggle (click-based, not hover-only) */
.shw-mega-trigger-wrap.is-open .shw-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.shw-mega-trigger-wrap.is-open .shw-mega-trigger {
  filter: brightness(1.1);
  box-shadow: 0 4px 16px var(--shw-primary-glow);
}

/* Mobile toggle button fix */
.shw-mobile-menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--shw-border);
  font-size: 20px;
  color: var(--shw-text);
  cursor: pointer;
  padding: 7px 9px;
  border-radius: var(--shw-radius);
  flex-shrink: 0;
  transition: var(--shw-transition);
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.shw-mobile-menu-toggle:hover {
  border-color: var(--shw-primary);
  color: var(--shw-primary);
  background: var(--shw-surface-2);
}

@media (max-width: 1024px) {
  .shw-mobile-menu-toggle {
    display: flex !important;
  }
}

/* ==================== TIER 1 QUICK LINKS (Deal/Flash/Hot) ==================== */
.shw-t1-ql {
  font-weight: 600 !important;
  display: flex;
  align-items: center;
  gap: 4px;
}

.shw-t1-ql i {
  font-size: 11px;
}

.shw-t1-ql--deal {
  color: var(--shw-tier1-text) !important;
}

.shw-t1-ql--deal i {
  color: #e67e22 !important;
}

.shw-t1-ql--flash {
  color: var(--shw-tier1-text) !important;
}

.shw-t1-ql--flash i {
  color: #f39c12 !important;
}

.shw-t1-ql--hot {
  color: var(--shw-tier1-text) !important;
}

.shw-t1-ql--hot i {
  color: #e74c3c !important;
}

.shw-t1-ql--deal:hover {
  color: #e67e22 !important;
}

.shw-t1-ql--flash:hover {
  color: #f39c12 !important;
}

.shw-t1-ql--hot:hover {
  color: #e74c3c !important;
}

/* Hide duplicate quick links from tier3 since they moved to tier1 */
.shw-ql--deal,
.shw-ql--flash,
.shw-ql--hot {
  display: none !important;
}


/* ==================== FA CATEGORY ICON STYLES ==================== */

/* Mega menu column header icon */
.shw-mega-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--shw-primary-glow);
  border-radius: 6px;
  flex-shrink: 0;
  margin-right: 6px;
}

.shw-mega-icon-wrap i {
  font-size: 13px;
  color: var(--shw-primary);
  line-height: 1;
}

/* Mega list sub-item icon */
.shw-mega-list li a i {
  width: 16px;
  font-size: 11px;
  color: var(--shw-primary);
  opacity: 0.75;
  margin-right: 4px;
  flex-shrink: 0;
}

.shw-mega-list li a {
  display: flex;
  align-items: center;
}

/* Serial category nav icon */
.shw-cat-nav__ic {
  font-size: 13px;
  color: var(--shw-primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  margin-right: 3px;
}

/* Mobile drawer category icon */
.dhp-mob-cats__ic {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--shw-primary-glow);
  border-radius: 8px;
  flex-shrink: 0;
}

.dhp-mob-cats__ic i {
  font-size: 14px;
  color: var(--shw-primary);
  line-height: 1;
}

/* Mobile subcategory icon */
.dhp-mob-cats__sl-ic {
  font-size: 11px;
  color: var(--shw-primary);
  opacity: 0.7;
  width: 14px;
  margin-right: 6px;
  flex-shrink: 0;
}

.dhp-mob-cats__sl {
  display: flex;
  align-items: center;
}

/* Dark mode adjustments */
html[data-dhp-theme="dark"] .shw-mega-icon-wrap,
html[data-dhp-theme="dark"] .dhp-mob-cats__ic {
  background: rgba(78, 139, 30, 0.12);
}


/* ==================== 5D PREMIUM VECTOR SVG & IMAGE ICON STYLES ==================== */

/* Container and wrappers */
.shw-cat-nav__ic-wrap,
.shw-mega-icon-wrap,
.dhp-mob-cats__ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--shw-surface-2);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

/* Sub-category tiny icon wraps */
.dhp-sub-cat-icon-wrap,
.dhp-mob-cats__sl-ic-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: transparent;
  margin-right: 8px;
  flex-shrink: 0;
}

.dhp-sub-cat-icon-wrap svg,
.dhp-mob-cats__sl-ic-wrap svg,
.dhp-sub-cat-icon-wrap img,
.dhp-mob-cats__sl-ic-wrap img,
.shw-mega-icon-wrap img,
.shw-cat-nav__ic-wrap img,
.dhp-cat-img-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  display: inline-block !important;
  vertical-align: middle !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Category menu item hover lift & glow */
.shw-cat-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.shw-cat-nav__link:hover {
  transform: translateY(-2px);
  color: var(--shw-primary) !important;
}

.shw-cat-nav__link:hover .shw-cat-nav__ic-wrap {
  background: var(--shw-primary-glow);
  transform: scale(1.1) rotate(4deg);
}

/* Mega menu item styling with vector icons */
.shw-mega-col {
  transition: transform 0.25s ease;
}

.shw-mega-col:hover {
  transform: translateY(-3px);
}

.shw-mega-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

.shw-mega-header:hover .shw-mega-icon-wrap {
  background: var(--shw-primary-glow);
  transform: scale(1.1);
}

/* Responsive SVGs inside icons */
.shw-cat-nav__ic-wrap svg,
.shw-mega-icon-wrap svg,
.dhp-mob-cats__ic svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.shw-cat-nav__link:hover svg,
.shw-mega-header:hover svg,
.dhp-mob-cats__btn:hover svg {
  transform: scale(1.15);
}

/* Glassmorphism & 5D Soft Depth Ambient Shadows on Dropdowns */
.shw-mega-panel,
.shw-dropdown-menu,
.dhp-search__results,
.dhp-cart-drawer {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.03),
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* Golden Mustard "ALL CATEGORIES" Button Premium Enhancements */
.shw-mega-trigger {
  background: #B8860B !important;
  /* Golden mustard color requested */
  color: #FFF !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
  transition: all 0.3s ease !important;
}

.shw-mega-trigger:hover,
.shw-mega-trigger-wrap.is-open .shw-mega-trigger {
  background: #9B700A !important;
  box-shadow: 0 6px 14px rgba(184, 134, 11, 0.35) !important;
}

/* Top bar Deep Slate Styling */
.dhp-utility-bar {
  background: #1E293B !important;
  color: #F8FAFC !important;
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dhp-utility-bar a {
  color: #F8FAFC !important;
  transition: color 0.2s ease;
}

.dhp-utility-bar a:hover {
  color: #4CAF50 !important;
}

.dhp-utility-bar .shw-divider {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Glowing Pulse on top bar contact info */
.shw-contact-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.shw-contact-info i {
  color: #4CAF50;
  animation: dhp-pulse 1.8s infinite alternate;
}

@keyframes dhp-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 1px rgba(76, 175, 80, 0.4));
  }

  100% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(76, 175, 80, 0.85));
  }
}

/* Wishlist and Cart pulse animations */
.shw-badge-wishlist,
#dhp-cart-badge {
  animation: dhp-badge-pulse 2.2s infinite;
}

@keyframes dhp-badge-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* Custom slim scrollbar for mega menu / dropdowns */
.shw-mega-panel::-webkit-scrollbar,
.dhp-mob-drawer::-webkit-scrollbar {
  width: 5px;
}

.shw-mega-panel::-webkit-scrollbar-thumb,
.dhp-mob-drawer::-webkit-scrollbar-thumb {
  background: rgba(76, 175, 80, 0.3);
  border-radius: 4px;
}

/* Mobile responsive bottom navigation */
@media (max-width: 1024px) {
  .shw-cat-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding: 8px 16px !important;
    gap: 12px !important;
    background: #FFF;
    border-bottom: 1px solid var(--shw-border);
  }

  .shw-cat-nav::-webkit-scrollbar {
    display: none;
  }

  .shw-cat-nav__link {
    font-size: 12px !important;
    padding: 6px 12px !important;
    background: var(--shw-surface-2);
    border-radius: 20px;
    border: 1px solid var(--shw-border);
  }
}