/* ============================================================================
   [ANTIGRAVITY] Soft Airy Pastel Light Luxury Header
   File: main_assets/css/ag-header.css
   Author: Antigravity AI
   Description: 100% light-toned executive header — pearl-pastel backdrop,
                soft sky-blue search capsule, pastel sky-indigo Sign In pill,
                soft ice-blue user badge, and blush-pearl cart pill.
   ============================================================================ */

body {
  padding-top: 68px !important;
}

header.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 68px !important;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 50%, rgba(253, 246, 251, 0.98) 100%) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1.5px solid #e0e7ff !important;
  box-shadow: 0 6px 24px -10px rgba(59, 130, 246, 0.12) !important;
  z-index: 40 !important;
}

/* Soft Pastel Lotus Hairline */
header.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #93c5fd 0%, #a5b4fc 35%, #f9a8d4 70%, #93c5fd 100%);
  opacity: 0.85;
}

header.header .app-container {
  max-width: 1380px !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
  box-sizing: border-box !important;
}

/* Brand Logo */
header.header .logo {
  float: none !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

header.header .logo a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

header.header .logo a:hover {
  transform: scale(1.04);
}

header.header .logo img {
  height: 40px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
}

/* Header Main Flex Container */
header.header .header-box {
  width: auto !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
}

header.header .header-top {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

/* Center Light Capsule Search Bar */
header.header .header-left {
  float: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

header.header .search {
  float: none !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 590px !important;
  height: 44px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1.5px solid #dbeafe !important;
  padding: 0 5px 0 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  box-shadow: 0 4px 14px -4px rgba(147, 197, 253, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
}

header.header .search:focus-within {
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 4px rgba(191, 219, 254, 0.45), 0 6px 18px -4px rgba(147, 197, 253, 0.4) !important;
}

header.header .search .search-icon {
  float: none !important;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: #eff6ff !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: background 0.2s ease;
}

header.header .search:focus-within .search-icon {
  background: #dbeafe !important;
}

header.header .search .search-icon img {
  width: 15px !important;
  height: 15px !important;
  opacity: 0.72;
  display: block;
}

header.header .search input {
  float: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 100% !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
}

header.header .search input::placeholder {
  color: #64748b !important;
  font-weight: 400 !important;
}

/* Soft Pastel Sky-Blue Search Circle Button */
header.header .search .ag-search-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

header.header .search .ag-search-btn:hover {
  background: linear-gradient(135deg, #bfdbfe 0%, #c7d2fe 100%);
  transform: scale(1.06);
}

/* ----------------------------------------------------------------------------
   Right Action Controls (100% Soft Light Pastel Pills)
   ---------------------------------------------------------------------------- */
header.header .header-right {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

header.header .action {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  border-radius: 999px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Sign In Button (#liLoginref) - Soft Sky-Lavender Pastel Pill */
header.header #liLoginref.action {
  height: 42px !important;
  padding: 0 18px 0 7px !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%) !important;
  border: 1.5px solid #bfdbfe !important;
  color: #1d4ed8 !important;
  box-shadow: 0 4px 12px -3px rgba(147, 197, 253, 0.35) !important;
}

header.header #liLoginref.action:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%) !important;
  border-color: #93c5fd !important;
  color: #1e40af !important;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 18px -4px rgba(147, 197, 253, 0.5) !important;
}

header.header #liLoginref.action .action-icon {
  float: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #dbeafe !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header.header #liLoginref.action .action-icon img {
  width: 15px !important;
  height: 15px !important;
  filter: none !important;
  opacity: 0.8 !important;
}

header.header #liLoginref.action .action-label {
  float: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1d4ed8 !important;
  opacity: 1 !important;
  letter-spacing: 0.2px;
}

/* Logged-in User Pill (#liusername) - Soft Ice-Sky Pill */
header.header #liusername.action.action-dd {
  height: 42px !important;
  padding: 0 14px 0 7px !important;
  gap: 8px !important;
  background: #f0f9ff !important;
  border: 1.5px solid #bae6fd !important;
  box-shadow: 0 4px 12px rgba(186, 230, 253, 0.3) !important;
}

header.header #liusername.action.action-dd:hover {
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
}

header.header #liusername .action-icon {
  float: none !important;
  width: 27px !important;
  height: 27px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #bae6fd !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header.header #liusername .action-icon img {
  width: 15px !important;
  height: 15px !important;
  opacity: 1 !important;
  object-fit: contain;
}

header.header #liusername .action-label {
  float: none !important;
  padding: 0 16px 0 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0369a1 !important;
  opacity: 1 !important;
  position: relative !important;
}

header.header .action.action-dd .action-label::after {
  content: "" !important;
  position: absolute !important;
  right: 2px !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1.8px solid #0284c7 !important;
  border-bottom: 1.8px solid #0284c7 !important;
  transform: translateY(-65%) rotate(45deg) !important;
  transition: transform 0.2s ease !important;
}

header.header .action.action-dd.active .action-label::after {
  transform: translateY(-25%) rotate(225deg) !important;
}

/* Cart Action Pill (#actionCart) - Soft Blush-Pearl Pill */
header.header #actionCart.action.cart {
  height: 42px !important;
  background: #fff1f2 !important;
  border: 1.5px solid #fecdd3 !important;
  box-shadow: 0 4px 12px rgba(254, 205, 211, 0.3) !important;
}

header.header #actionCart.action.cart:hover {
  background: #ffe4e6 !important;
  border-color: #fda4af !important;
  transform: translateY(-1.5px);
}

header.header #actionCart.action.cart > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 15px !important;
  height: 100% !important;
  text-decoration: none !important;
}

header.header #actionCart .action-icon {
  float: none !important;
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header.header #actionCart .action-icon img {
  width: 19px !important;
  height: 19px !important;
  opacity: 0.82 !important;
}

header.header #actionCart .action-icon .badge {
  position: absolute !important;
  top: -8px !important;
  right: -9px !important;
  left: auto !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: #fb7185 !important;
  color: #ffffff !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 19px !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(251, 113, 133, 0.35);
}

header.header #actionCart .action-label {
  float: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #be123c !important;
  opacity: 1 !important;
}

/* Light Pastel User Dropdown Card */
header.header .action .action-dd-menu {
  width: 245px !important;
  position: absolute !important;
  top: calc(100% + 12px) !important;
  right: 0 !important;
  left: auto !important;
  background: #ffffff !important;
  border: 1px solid #e0e7ff !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px -10px rgba(59, 130, 246, 0.16) !important;
  overflow: visible !important;
  z-index: 90 !important;
}

header.header .action .action-dd-menu .profile {
  background: linear-gradient(135deg, #f0f9ff 0%, #fdf2f8 100%) !important;
  padding: 14px 12px !important;
  border-bottom: 1px solid #e0e7ff !important;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

header.header .action .action-dd-menu .profile .photo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  border: 2px solid #93c5fd !important;
  margin: 0 auto 8px !important;
}

header.header .action .action-dd-menu .profile .code {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

header.header .action .action-dd-menu .user-menus {
  padding: 8px 6px !important;
}

header.header .action .action-dd-menu .user-menus .user-menu {
  border-radius: 9px;
  transition: background 0.15s ease;
}

header.header .action .action-dd-menu .user-menus .user-menu a {
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 12px !important;
  border-radius: 9px;
  text-decoration: none !important;
}

header.header .action .action-dd-menu .user-menus .user-menu:hover {
  background: #eff6ff !important;
}

header.header .action .action-dd-menu .user-menus .user-menu:hover > a {
  color: #1d4ed8 !important;
  font-weight: 600 !important;
}

header.header .action .action-dd-menu .user-menus .user-menu a.has-submenu::after {
  content: "" !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  width: 6px !important;
  height: 6px !important;
  border-right: 1.8px solid #64748b !important;
  border-bottom: 1.8px solid #64748b !important;
  transform: translateY(-50%) rotate(-45deg) !important;
  opacity: 0.75 !important;
}

header.header .action .action-dd-menu .user-menus .user-menu .user-submenus {
  right: 237px !important;
  width: 175px !important;
  background: #ffffff !important;
  border: 1px solid #e0e7ff !important;
  border-radius: 12px !important;
  padding: 6px !important;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.14) !important;
}

/* ============================================================================
   MOBILE SOFT LIGHT PASTEL HEADER (<= 768px)
   ============================================================================ */
@media (max-width: 768px) {
  body {
    padding-top: 60px !important;
  }

  header.header {
    height: 60px !important;
  }

  header.header .app-container {
    padding: 0 10px !important;
    gap: 8px !important;
  }

  header.header .mobile-menu-button {
    float: none !important;
    width: 38px !important;
    height: 38px !important;
    padding: 7px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1.5px solid #dbeafe !important;
    box-shadow: 0 2px 8px rgba(147, 197, 253, 0.25) !important;
    flex-shrink: 0 !important;
  }

  header.header .mobile-menu-button img {
    width: 21px !important;
    height: 21px !important;
    filter: none !important;
  }

  header.header .logo {
    height: 32px !important;
  }

  header.header .logo img {
    height: 30px !important;
  }

  header.header .header-box {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  header.header .header-top {
    gap: 8px !important;
  }

  header.header .header-left {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  header.header .search {
    height: 38px !important;
    padding: 0 10px 0 5px !important;
    gap: 7px !important;
  }

  header.header .search .search-icon {
    width: 26px !important;
    height: 26px !important;
  }

  header.header .search .search-icon img {
    width: 13px !important;
    height: 13px !important;
  }

  header.header .search input {
    font-size: 12px !important;
  }

  header.header .search .ag-search-btn {
    display: none !important;
  }

  header.header .header-right {
    gap: 6px !important;
  }

  header.header #liLoginref.action {
    height: 36px !important;
    padding: 0 11px 0 5px !important;
    gap: 6px !important;
  }

  header.header #liLoginref.action .action-icon {
    width: 24px !important;
    height: 24px !important;
  }

  header.header #liLoginref.action .action-icon img {
    width: 13px !important;
    height: 13px !important;
  }

  header.header #liLoginref.action .action-label {
    font-size: 11.5px !important;
  }

  header.header #liusername.action.action-dd {
    height: 36px !important;
    padding: 0 10px 0 6px !important;
  }

  header.header #liusername .action-label {
    max-width: 65px !important;
    font-size: 11.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  header.header #actionCart.action.cart {
    height: 36px !important;
  }

  header.header #actionCart.action.cart > a {
    padding: 0 9px !important;
  }

  header.header #actionCart .action-label {
    display: none !important;
  }

  header.header .action .action-dd-menu {
    position: fixed !important;
    top: 64px !important;
    right: 10px !important;
    left: auto !important;
  }

  header.header .action .action-dd-menu .user-menus .user-menu .user-submenus {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
    margin-top: 2px;
  }
}

@media (max-width: 400px) {
  header.header .logo img {
    height: 26px !important;
  }
  header.header #liLoginref.action {
    padding: 0 9px 0 4px !important;
  }
  header.header #liLoginref.action .action-label {
    font-size: 11px !important;
  }
}
