/* ─── Desktop: cart badge ───────────────────────────────────── */
.other-links-list li:first-child {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -12px;
  background-color: #e67e22;
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  line-height: 1;
}

/* ─── Offcanvas shell ───────────────────────────────────────── */
/*
 * The bar itself scrolls as one tall column.
 * Brand header is sticky at the top via position:sticky.
 * Everything else (nav + footer) flows naturally and scrolls.
 */
.uk-offcanvas-bar {
  padding: 0;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* UIkit sets width/height — we just need scroll to work */
}
body.dm-light .uk-offcanvas-bar {
  background-color: #ffffff !important;
  color: #222 !important;
}
body.dm-light .uk-offcanvas-bar a {
  color: #222 !important;
}
body.dm-light .uk-offcanvas-bar span,
body.dm-light .uk-offcanvas-bar div,
body.dm-light .uk-offcanvas-bar p {
  color: #222 !important;
}

/* ─── Offcanvas: sticky brand header ───────────────────────── */
/*
 * position:sticky keeps the brand visible at the top while the
 * rest of the content (nav + footer) scrolls beneath it.
 * This works because the bar itself is the scroll container.
 */
.oc-brand {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}
body.dm-dark .oc-brand {
  background-color: inherit; /* picks up the bar's dark bg */
}
body.dm-light .oc-brand {
  background-color: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}
.oc-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(255, 60, 60, 0.1);
  border: 0.5px solid rgba(255, 60, 60, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff5555 !important;
  cursor: pointer;
}
.oc-logo-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(197, 160, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  overflow: hidden;
}
body.dm-light .oc-logo-ring {
  background: rgba(0, 0, 0, 0.04);
}
.oc-logo-ring img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.oc-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 3px;
}
body.dm-dark .oc-brand-name {
  color: rgba(255, 255, 255, 0.92) !important;
}
body.dm-light .oc-brand-name {
  color: #222 !important;
}
.oc-brand-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
body.dm-dark .oc-brand-tag {
  color: rgba(255, 255, 255, 0.35) !important;
}
body.dm-light .oc-brand-tag {
  color: rgba(0, 0, 0, 0.45) !important;
}

/* ─── Offcanvas: nav (no special scroll needed) ─────────────── */
.oc-nav-scroll {
  padding: 8px 0;
}

/* ─── Nav items ─────────────────────────────────────────────── */
.uk-nav-default > li > a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 20px;
  margin: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}
body.dm-dark .uk-nav-default > li > a {
  color: rgba(255, 255, 255, 0.82) !important;
}
body.dm-light .uk-nav-default > li > a {
  color: #333 !important;
}
.uk-nav-default > li > a:hover {
  background: rgba(197, 160, 40, 0.09);
  color: #c5a028 !important;
  transform: none;
}
.uk-nav-default > li > a [data-uk-icon] {
  opacity: 0.42;
  flex-shrink: 0;
}
body.dm-light .uk-nav-default > li > a [data-uk-icon] {
  opacity: 0.55;
  color: #333 !important;
}
.uk-nav-default > li > a:hover [data-uk-icon] {
  opacity: 1;
  color: #c5a028 !important;
}
.oc-nav-badge {
  margin-left: auto;
  background: rgba(197, 160, 40, 0.15);
  color: #c5a028 !important;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.3px;
}
.uk-nav-divider {
  margin: 5px 20px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
}
body.dm-light .uk-nav-divider {
  border-top-color: rgba(0, 0, 0, 0.09);
}

/* ─── Offcanvas: footer (scrolls with content) ──────────────── */
.oc-footer {
  padding: 14px 16px 20px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.07);
}
body.dm-light .oc-footer {
  border-top-color: rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}
.uk-button-whatsapp {
  background-color: #25d366 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  margin-bottom: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
}
.oc-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 6px;
}
.oc-contact-row:last-child {
  margin-bottom: 0;
}
body.dm-light .oc-contact-row {
  border-color: rgba(0, 0, 0, 0.09);
  background: rgba(0, 0, 0, 0.03);
}
.oc-contact-row [data-uk-icon] {
  opacity: 0.35;
}
body.dm-light .oc-contact-row [data-uk-icon] {
  opacity: 0.5;
  color: #333 !important;
}
.oc-contact-row a,
.oc-contact-row span {
  font-size: 12px;
}
body.dm-dark .oc-contact-row a,
body.dm-dark .oc-contact-row span {
  color: rgba(255, 255, 255, 0.7) !important;
}
body.dm-light .oc-contact-row a,
body.dm-light .oc-contact-row span {
  color: rgba(0, 0, 0, 0.65) !important;
}
.oc-admin-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255, 60, 60, 0.1);
  border: 0.5px solid rgba(255, 60, 60, 0.25);
  color: #ff5555 !important;
  text-decoration: none;
  margin-top: 10px;
}
.oc-admin-link [data-uk-icon] {
  opacity: 0.9;
}

/* ─── Mobile top bar ────────────────────────────────────────── */
.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 54px;
  gap: 8px;
}
.mobile-top-bar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.mobile-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 0.5px solid rgba(255, 255, 255, 0.13);
  color: #eee;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  transition: background 0.15s;
}
body.dm-light .mobile-icon-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #222;
}
.mobile-icon-btn .cart-badge {
  top: -4px;
  right: -4px;
  padding: 1px 4px;
  font-size: 9px;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 1;
  justify-content: center;
}
.mobile-brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(197, 160, 40, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dm-dark .mobile-brand-logo {
  background: rgba(255, 255, 255, 0.06);
}
body.dm-light .mobile-brand-logo {
  background: #f0f0f0;
}
.mobile-brand-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.mobile-brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
body.dm-dark .mobile-brand-name {
  color: #fff;
}
body.dm-light .mobile-brand-name {
  color: #222;
}

/* ─── Mobile bottom action bar ──────────────────────────────── */
.mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding-bottom: env(safe-area-inset-bottom);
}
body.dm-dark .mobile-action-bar {
  background-color: rgba(22, 22, 22, 0.98);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}
body.dm-light .mobile-action-bar {
  background-color: rgba(245, 245, 245, 0.98);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.mobile-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 68px;
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none !important;
  position: relative;
  padding: 10px 0 0;
}
.mobile-nav-item [data-uk-icon] {
  opacity: 0.45;
}
.mobile-nav-item div {
  font-size: 9.5px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.45;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
body.dm-dark .mobile-nav-item,
body.dm-dark .mobile-nav-item div {
  color: #fff;
}
body.dm-light .mobile-nav-item,
body.dm-light .mobile-nav-item div {
  color: #000;
}
.mobile-nav-item.is-active [data-uk-icon],
.mobile-nav-item.is-active div {
  opacity: 1;
  color: #c5a028 !important;
}
.mobile-nav-item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  background: #c5a028;
  border-radius: 0 0 3px 3px;
}
.mobile-nav-item--order [data-uk-icon],
.mobile-nav-item--order div {
  color: #25d366 !important;
  opacity: 1 !important;
}
body.dm-dark .mobile-nav-item--order {
  border-left: 0.5px solid rgba(255, 255, 255, 0.06);
  border-right: 0.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(37, 211, 102, 0.07);
}
body.dm-light .mobile-nav-item--order {
  border-left: 0.5px solid rgba(0, 0, 0, 0.06);
  border-right: 0.5px solid rgba(0, 0, 0, 0.06);
  background: rgba(37, 211, 102, 0.07);
}
.mobile-cart-badge {
  position: absolute;
  top: 7px;
  left: calc(50% + 4px);
  background: #e67e22;
  color: #fff !important;
  font-size: 8.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 5px;
  min-width: 15px;
  text-align: center;
  line-height: 1.4;
}
.custom-mobile-offcanvas {
  z-index: 999999999 !important;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 639px) {
  body {
    padding-bottom: 70px !important;
  }
  .oc-footer {
    padding-bottom: calc(env(safe-area-inset-bottom) + 20px);
  }
  body.dm-light .page-header__top,
  body.dm-light .mobile-offcanvas {
    background-color: #f5f5f5;
  }
  body.dm-dark .page-header__top,
  body.dm-dark .mobile-offcanvas {
    background-color: #1a1a1a;
  }
}

.page-header__top,
.mobile-offcanvas {
  background-color: #333230;
}
