/* Shared shop header + bottom nav for dyqani subpages (cookies, privacy, …) */
:root {
  --ink: #1A1A1A;
  --muted: #6B7280;
  --line: #E6E8EB;
  --border: #E6E8EB;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --bg-chip: #F3F4F6;
  --navy: #0B1F4D;
  --blue: #0094E0;
  --orange: #FF7A00;
  --accent: #FF7A00;
  --menu-hover: #0B1F4D;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

.shop-chrome-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-t);
}

.shop-chrome-header-inner {
  width: min(1180px, calc(100% - 1.7rem));
  margin-inline: auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.shop-chrome-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: min(180px, 42vw);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 0.95rem;
}

.shop-chrome-logo img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.shop-chrome-logo span.is-hidden { display: none; }

.shop-chrome-search {
  justify-self: stretch;
  min-width: 0;
}

.shop-chrome-search a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 0.9rem 0 2.4rem;
  border-radius: 999px;
  border: 0;
  background: var(--bg-chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230B1F4D' stroke-width='1.75'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 0.85rem center / 18px no-repeat;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.shop-chrome-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.shop-chrome-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: transparent;
  border: 0;
  text-decoration: none;
}

.shop-chrome-icon:hover { background: var(--bg-soft); }
.shop-chrome-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }

.shop-chrome-bottom {
  display: none;
}

@media (max-width: 860px) {
  .shop-chrome-header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: 52px;
  }
  .shop-chrome-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.35rem 0.25rem calc(0.45rem + var(--safe-b));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
  }
  .shop-chrome-bottom::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--safe-b);
    background: #fff;
    pointer-events: none;
  }
  .shop-chrome-bottom a,
  .shop-chrome-bottom button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 48px;
    padding: 0.25rem 0.15rem;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
  }
  .shop-chrome-bottom a.is-active,
  .shop-chrome-bottom button.is-active {
    color: var(--blue);
  }
  .shop-chrome-bottom svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
  }
  body.has-shop-chrome {
    padding-bottom: calc(62px + var(--safe-b));
  }
  .site-footer {
    padding-bottom: calc(1.1rem + 62px + var(--safe-b)) !important;
  }
}
