/* ===== Marketplace header: logo + search + actions / quick links / departments + nav ===== */

.site-header {
  position: relative;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}

/* Sticky on mobile/tablet screens only (<1024px) */
@media (max-width: 1023px) {
  .site-header.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}

/* Ensure desktop header (>=1024px) is strictly non-sticky */
@media (min-width: 1024px) {
  .site-header,
  .site-header.is-sticky {
    position: relative !important;
    top: auto !important;
    box-shadow: none !important;
  }
}

.hdr-wrap {
  max-width: var(--page-max, 1280px);
  margin: 0 auto;
  padding: 0 var(--page-pad, 16px);
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Announcement Marquee Bar ---------- */
.hdr-marquee-bar {
  background: linear-gradient(90deg, #0d47a1 0%, var(--primary, #1668B8) 50%, #0d47a1 100%);
  color: #ffffff;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  z-index: 2;
}
.hdr-marquee-track {
  display: flex;
  width: max-content;
}
.hdr-marquee-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  animation: hdr-marquee-anim var(--marquee-duration, 30s) linear infinite;
  will-change: transform;
}
.hdr-marquee-bar:hover .hdr-marquee-content {
  animation-play-state: paused;
}
.hdr-marquee-content span {
  display: inline-block;
  padding: 0 10px;
}
.hdr-marquee-sep {
  color: #fbbf24;
  font-size: 11px;
  opacity: 0.9;
  padding: 0 16px !important;
}

@keyframes hdr-marquee-anim {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 767px) {
  .hdr-marquee-bar {
    font-size: 12px;
    padding: 5px 0;
  }
  .hdr-marquee-content {
    animation-duration: calc(var(--marquee-duration, 30s) * 0.85);
  }
}

/* ---------- Row 0 — Top Bar ---------- */
.hdr-top {
  background: var(--foreground);
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.hdr-top .hdr-wrap {
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.hdr-top-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex-wrap: wrap;
}
.hdr-top-contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.hdr-top-contact a:hover {
  color: #ffffff;
}
.hdr-top-contact svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.hdr-top-contact span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hdr-top-addr span {
  max-width: 44ch;
}

.hdr-top-social {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hdr-top-social-label {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hdr-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.hdr-social:hover {
  color: #ffffff;
  transform: translateY(-2px);
}
.hdr-social.is-empty {
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}
.hdr-social.is-empty:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  transform: none;
}
.hdr-social-facebook:hover { background: #1877f2; }
.hdr-social-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.hdr-social-tiktok:hover { background: #000000; }
.hdr-social-youtube:hover { background: #ff0000; }
.hdr-social-whatsapp:hover { background: #25d366; }

/* ---------- Row 1 — Main Header ---------- */
.hdr-main .hdr-wrap {
  min-height: 80px;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--foreground);
  text-decoration: none;
  transition: opacity 0.2s;
}
.site-logo:hover {
  opacity: 0.88;
}
.site-logo img {
  max-width: 175px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.site-brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Search Bar (Desktop) */
.hdr-search {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hdr-search:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.hdr-search-cat {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  background: var(--muted);
}
.hdr-search-cat select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--foreground);
  height: 100%;
  padding: 0 28px 0 14px;
  cursor: pointer;
  max-width: 150px;
}
.hdr-search-cat select:focus {
  outline: none;
}
.hdr-search-cat svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: var(--muted-foreground);
}
.hdr-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--foreground);
  background: transparent;
}
.hdr-search-input::placeholder {
  color: var(--muted-foreground);
}
.hdr-search-input:focus {
  outline: none;
}
.hdr-search-btn {
  flex-shrink: 0;
  width: 54px;
  border: 0;
  background: var(--primary);
  color: var(--primary-foreground, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.hdr-search-btn:hover {
  background: var(--primary-hover);
}
.hdr-search-btn:active {
  transform: scale(0.96);
}

/* Actions (Desktop) */
.hdr-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hdr-action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--foreground);
  text-decoration: none;
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.hdr-action:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.hdr-action:active {
  transform: scale(0.94);
}
.hdr-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hdr-action-ico {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 0;
}
.hdr-action-ico svg {
  display: block;
}

/* Mobile Search Elements hidden by default on Desktop */
.hdr-action-search,
.hdr-mobile-search-bar {
  display: none;
}

/* Tooltip (Desktop hover) */
.hdr-action::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 6px 11px;
  border-radius: 6px;
  background: var(--foreground);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.hdr-action::before {
  content: "";
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  border: 5px solid transparent;
  border-bottom-color: var(--foreground);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.hdr-action:hover::after,
.hdr-action:hover::before,
.hdr-action:focus-visible::after,
.hdr-action:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.hdr-actions .hdr-action:last-child::after {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(-4px);
}
.hdr-actions .hdr-action:last-child:hover::after,
.hdr-actions .hdr-action:last-child:focus-visible::after {
  transform: translateX(0) translateY(0);
}
@media (hover: none) {
  .hdr-action::after,
  .hdr-action::before {
    display: none !important;
  }
}

/* Badge Count */
.hdr-action-count {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(210, 28, 62, 0.4);
}
.hdr-action-count.is-empty {
  display: none;
}

/* Menu toggle button (Desktop hidden) */
.menu-toggle {
  display: none;
}

/* ---------- Row 2 — Departments + Nav ---------- */
.hdr-bar {
  background: var(--foreground);
}
.hdr-bar .hdr-wrap {
  gap: 0;
  align-items: stretch;
  min-height: 50px;
}

.hdr-dept {
  position: relative;
  flex-shrink: 0;
  width: 270px;
}
.hdr-dept-btn {
  width: 100%;
  height: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 0;
  background: var(--primary);
  color: var(--primary-foreground, #fff);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.hdr-dept-btn:hover {
  background: var(--primary-hover);
}
.hdr-dept-btn > span {
  flex: 1;
  text-align: left;
}
.hdr-dept-btn > svg:last-child {
  transition: transform 0.25s ease;
}
.hdr-dept-btn[aria-expanded="true"] > svg:last-child {
  transform: rotate(180deg);
}

.hdr-dept-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 60;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 0;
  box-shadow: var(--shadow-md);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  display: none;
}
.hdr-dept-list.is-open {
  display: block;
}
.hdr-dept-list li + li a {
  border-top: 1px solid var(--border);
}
.hdr-dept-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, padding-left 0.18s;
}
.hdr-dept-list a:hover {
  background: var(--muted);
  color: var(--primary);
  padding-left: 20px;
}
.hdr-dept-thumb {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: block;
}
.hdr-dept-list img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
  background: var(--muted);
}
.hdr-dept-list .cat-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: hsl(var(--tint, 200) 62% 93%);
  color: hsl(var(--tint, 200) 55% 34%);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.hdr-dept-more a {
  font-weight: 700;
  color: var(--primary);
  justify-content: space-between;
}

/* Primary nav (Desktop) */
.hdr-nav {
  display: none;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
  min-width: 0;
  flex: 1;
}
.hdr-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.hdr-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}
.hdr-nav a.current-menu-item,
.hdr-nav li.current-menu-item > a {
  background: var(--primary);
  color: var(--primary-foreground, #ffffff);
}
@media (min-width: 1024px) {
  .hdr-nav {
    display: flex;
  }
}

/* Desktop Home pinned department panel */
@media (min-width: 1024px) {
  .hdr-dept.is-home .hdr-dept-list {
    display: block;
    height: var(--hx-hero-h, 390px);
    max-height: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.08);
  }
  .hdr-dept.is-home .hdr-dept-btn > svg:last-child {
    display: none;
  }
  .hdr-dept.is-home .hdr-dept-btn {
    cursor: default;
    border-radius: 12px 12px 0 0;
  }
  .hdr-dept.is-home .hdr-dept-btn:hover {
    background: var(--primary);
  }
}

/* ==========================================================================
   MOBILE & TABLET OPTIMIZATIONS (< 1024px)
   ========================================================================== */

@media (max-width: 1023px) {
  /* Top Bar */
  .hdr-top .hdr-wrap {
    min-height: 34px;
    padding: 0 12px;
    gap: 8px;
  }
  .hdr-top-contact a {
    font-size: 12px;
    font-weight: 600;
  }
  .hdr-top-contact a:not(:first-child) {
    display: none;
  }
  .hdr-top-social-label {
    display: none;
  }
  .hdr-top-social {
    gap: 5px;
  }
  .hdr-social {
    width: 24px;
    height: 24px;
  }
  .hdr-social svg {
    width: 13px;
    height: 13px;
  }

  /* Main Header on Mobile: 1 Clean Row */
  .hdr-main .hdr-wrap {
    min-height: 56px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  /* Site Logo */
  .site-logo {
    max-width: 100%;
    flex-shrink: 1;
  }
  .site-logo img {
    max-width: 145px;
    max-height: 38px;
    width: auto;
    height: auto;
  }
  .site-brand-text {
    font-size: 18px;
  }

  /* Hide Desktop Search Bar & All Categories Bar on Mobile */
  .hdr-search,
  .hdr-bar {
    display: none !important;
  }

  /* Action Icons Group: Mobile shows Search + Cart + Menu */
  .hdr-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  /* Hide Track Order and Store Location on Mobile */
  .hdr-action-track,
  .hdr-action-store {
    display: none !important;
  }

  /* Harmonized Action Buttons on Mobile: Search, Cart & Menu Toggle */
  .hdr-action-search,
  .hdr-action-cart,
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--muted);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--foreground);
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .hdr-action-search:hover,
  .hdr-action-cart:hover,
  .menu-toggle:hover,
  .hdr-action-search.is-active {
    background: color-mix(in srgb, var(--primary) 12%, var(--muted));
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  }
  .hdr-action-search:active,
  .hdr-action-cart:active,
  .menu-toggle:active {
    transform: scale(0.92);
    background: var(--border);
  }
  .hdr-action-search svg,
  .hdr-action-cart svg,
  .menu-toggle svg {
    width: 19px;
    height: 19px;
  }

  /* Mobile Cart Badge */
  .hdr-action-count {
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    font-size: 9.5px;
    font-weight: 800;
    border: 2px solid var(--card);
    box-shadow: 0 2px 6px rgba(210, 28, 62, 0.4);
  }

  /* Mobile Expandable Search Bar */
  .hdr-mobile-search-bar {
    display: block;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    overflow: hidden;
    transition: max-height 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, transform 0.22s ease;
    background: #ffffff;
    border-bottom: 1px solid transparent;
  }
  .hdr-mobile-search-bar.is-open {
    max-height: 64px;
    opacity: 1;
    transform: translateY(0);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  }
  .hdr-mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 10px;
    position: relative;
  }
  .hdr-ms-icon {
    position: absolute;
    left: 24px;
    top: calc(50% - 1px);
    transform: translateY(-50%);
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    pointer-events: none;
  }
  .hdr-ms-icon svg {
    width: 16px;
    height: 16px;
  }
  .hdr-ms-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 34px 0 34px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--muted);
    font-size: 13.5px;
    color: var(--foreground);
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
  }
  .hdr-ms-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(22, 104, 184, 0.12);
  }
  .hdr-ms-close {
    position: absolute;
    right: 76px;
    top: calc(50% - 1px);
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--muted-foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
  }
  .hdr-ms-close:hover {
    color: var(--foreground);
  }
  .hdr-ms-submit {
    flex-shrink: 0;
    height: 38px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
  }
  .hdr-ms-submit:hover {
    background: var(--primary-hover);
  }
}

/* Extra small screens (<360px) */
@media (max-width: 359px) {
  .site-logo img {
    max-width: 130px;
    max-height: 34px;
  }
  .hdr-action-cart,
  .menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .hdr-action-cart svg,
  .menu-toggle svg {
    width: 19px;
    height: 19px;
  }
}

/* ==========================================================================
   MOBILE SLIDE-OUT DRAWER (PREMIUM & HIGHLY DECORATED SIDEBAR)
   ========================================================================== */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.drawer.open {
  display: block;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: drawerFadeIn 0.25s ease;
}
.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(325px, 86vw);
  background: #f8fafc;
  padding: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  animation: drawerSlideIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
}

@keyframes drawerFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes drawerSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Drawer Header */
.drawer-head {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.drawer-brand {
  display: flex;
  align-items: center;
  max-width: 180px;
}
.drawer-brand img {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}
.drawer-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}
.drawer-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  transform: rotate(90deg);
}

/* Drawer Customer Support Banner */
.drawer-support-card {
  margin: 14px 14px 4px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.drawer-support-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 10px;
}
.drawer-support-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: pulseSupport 2s infinite ease-in-out;
}
@keyframes pulseSupport {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.drawer-quick-contact {
  display: flex;
  gap: 8px;
}
.drawer-quick-contact.is-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.drawer-quick-contact.is-single .drawer-qc-btn {
  width: 100%;
}

.drawer-qc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-qc-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}
.drawer-qc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.drawer-qc-text small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}
.drawer-qc-text strong {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-qc-phone {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}
.drawer-qc-phone .drawer-qc-ico {
  background: #fee2e2;
  color: #dc2626;
}
.drawer-qc-phone:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
  transform: translateY(-1px);
}

.drawer-qc-wa {
  background: #25d366;
  border: 1px solid #22c55e;
  color: #ffffff;
}
.drawer-qc-wa .drawer-qc-ico {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.drawer-qc-wa:hover {
  background: #1faa53;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Drawer Body Scrollable Content */
.drawer-body {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-group-header {
  margin-bottom: 8px;
  padding: 0 4px;
}
.drawer-group-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* ==========================================================================
   DASHBOARD QUICK ACTIONS ICON GRID (1 OR 2 ROWS)
   ========================================================================== */

.drawer-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.drawer-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 3px 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.drawer-grid-item:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.drawer-grid-item:active {
  transform: scale(0.94);
}

.drawer-grid-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  position: relative;
  transition: transform 0.2s ease;
}
.drawer-grid-item:hover .drawer-grid-ico {
  transform: scale(1.06);
}

.drawer-grid--home .drawer-grid-ico { background: #fef2f2; color: #dc2626; }
.drawer-grid--shop .drawer-grid-ico { background: #eff6ff; color: #2563eb; }
.drawer-grid--cart .drawer-grid-ico { background: #fff7ed; color: #ea580c; }
.drawer-grid--track .drawer-grid-ico { background: #ecfdf5; color: #059669; }
.drawer-grid--store .drawer-grid-ico { background: #f5f3ff; color: #7c3aed; }

.drawer-grid-item.active {
  border-color: #fca5a5;
  background: #fff5f5;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
}
.drawer-grid-item.active .drawer-grid-ico {
  background: #dc2626;
  color: #ffffff;
}

.drawer-grid-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  margin-top: 4px;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}
.drawer-grid-item.active .drawer-grid-label {
  color: #dc2626;
}

.drawer-grid-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.4);
}

/* Decorated Categories Section */
.drawer-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
}
.drawer-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}
.drawer-section-head .drawer-group-label {
  margin-bottom: 0;
  padding: 0;
}
.drawer-view-all {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  background: #fee2e2;
  padding: 3px 9px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.drawer-view-all:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateX(2px);
}

.drawer-cats {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.drawer-cat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
.drawer-cat-item:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateX(4px);
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.drawer-cat-thumb {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: block;
}
.drawer-cat-thumb img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.drawer-cat-thumb .cat-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(var(--tint, 200) 70% 94%), hsl(var(--tint, 200) 60% 88%));
  color: hsl(var(--tint, 200) 65% 30%);
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.drawer-cat-name {
  flex: 1;
}
.drawer-cat-arrow {
  display: flex;
  align-items: center;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}
.drawer-cat-item:hover .drawer-cat-arrow {
  transform: translateX(3px);
  color: var(--primary);
}

/* Drawer Footer */
.drawer-footer {
  padding: 14px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.drawer-footer-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
}
.drawer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
}
.drawer-social svg {
  width: 16px;
  height: 16px;
}
.drawer-social:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.drawer-social-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.drawer-social-instagram:hover { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; border-color: #dc2743; }
.drawer-social-tiktok:hover { background: #000000; color: #fff; border-color: #000000; }
.drawer-social-youtube:hover { background: #ff0000; color: #fff; border-color: #ff0000; }
.drawer-social-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }
