/* ================= HEADER ================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px; /* MOBILE HEIGHT */

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO LEFT */
.header-logo {
  display: flex;
  align-items: center;
}



.store-logo {
  height: 70px; /* Mobile logo size */
  object-fit: contain;
}
/* ================= DESKTOP NAV ================= */

.desktop-nav {
  display: none;
  align-items: center;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

/* ================= MOBILE HAMBURGER ================= */

.mobile-only {
  display: block;
}

.menu-btn {
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
}

/* ================= DRAWER ================= */

/* ================= PREMIUM DRAWER ================= */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  z-index: 150;
  animation: overlayFadeIn 0.25s ease forwards;
}

.drawer-overlay.fade-out {
  animation: overlayFadeOut 0.25s ease forwards;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;

  background: linear-gradient(
    180deg,
    var(--color-surface),
    #f8fafc
  );

  box-shadow: 12px 0 40px rgba(0,0,0,0.18);

  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;

  z-index: 200;

  animation: drawerSlideIn 0.28s cubic-bezier(.25,.8,.25,1) forwards;
}

.mobile-drawer.closing {
  animation: drawerSlideOut 0.25s ease forwards;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.05);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: var(--color-primary);
  color: white;
}

/* Drawer Links */
.mobile-drawer a {
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;

  color: var(--color-primary);   /* from DB */

  padding: 14px 4px;
  border-radius: 10px;
  position: relative;

  transition: all 0.25s ease;
}

.mobile-drawer a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0%;
  height: 2px;

  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-accent)
  );

  transition: width 0.3s ease;
}

.mobile-drawer a:hover::after {
  width: 100%;
}

.mobile-drawer a:hover {
  color: var(--color-primary);
}

/* ================= ANIMATIONS ================= */

@keyframes drawerSlideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes drawerSlideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overlayFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ================= DESKTOP BREAKPOINT ================= */

@media (min-width: 1024px) {

  .desktop-nav {
    display: flex;
  }

  .mobile-only {
    display: none;
  }

}

@media (min-width: 1024px) {

  .header-inner {
    height: 80px; /* Slightly taller desktop header */
    padding: 0 32px;
  }

  .store-logo {
    height: 80px; /* Bigger desktop logo */
  }

}



.delivery-selector {
  position: relative;
}

.delivery-trigger {
  background: none;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

.delivery-popup {
  position: fixed;
  top: 64px; /* header height */
  left: var(--page-padding);
  right: var(--page-padding);

  display: flex;
  justify-content: center;

  z-index: 999;
  pointer-events: none;
}

.delivery-card {
  width: 260px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.12);

  display: flex;
  flex-direction: column;
  gap: 10px;
}

.delivery-popup-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.delivery-popup-row {
  display: flex;
  gap: 8px;
}


.delivery-popup-input {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.delivery-popup-input:focus {
  border-color: var(--color-primary);
}

.delivery-popup-apply {
  border: none;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: 10px;
  padding: 0 14px;
  cursor: pointer;
}

.delivery-popup-hint {
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}

@keyframes deliveryPopupIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}



.hidden {
  display: none;
}

:root {
  --page-padding: 16px;
}


.delivery-card {
  pointer-events: auto;
}

.delivery-card {
  width: 100%;
  max-width: 360px;
}