/* GLOG shop: header search and bag buttons, the bag drawer, the search overlay (js/shop.js). Every page. */
:root { --glog-ink: #000; --glog-muted: rgb(119 113 105); --glog-faint: rgb(165 159 151); --glog-line: rgb(0 0 0 / 0.06); --glog-hover: rgb(245 243 241); --glog-page: #fdfcfc; --glog-cream: rgb(245 243 241);
  --glog-ease: cubic-bezier(0.25, 0.1, 0.35, 1);
  --glog-float: rgba(0,0,0,0.04) 0 10px 20px 1px, rgba(0,0,0,0.02) 0 48px 48px -24px, rgba(0,0,0,0.04) 0 24px 24px -12px, rgba(0,0,0,0.04) 0 12px 12px -6px, rgba(0,0,0,0.06) 0 6px 6px -3px, rgba(0,0,0,0.06) 0 3px 3px -1.5px, rgba(0,0,0,0.06) 0 1px 1px -0.5px, rgba(0,0,0,0.06) 0 0 0 1px; }

/* header tools */
.glog-tools { display: flex; align-items: center; gap: 0.125rem; }
.glog-tool, .glog-icon-btn { position: relative; display: inline-flex; flex: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 9999px; color: var(--glog-ink); transition: background-color 0.15s; }
.glog-tool:hover, .glog-icon-btn:hover { background: rgb(0 0 0 / 0.05); }
.glog-tool:focus-visible, .glog-icon-btn:focus-visible { outline: 1.5px solid #000; outline-offset: 2px; }
.glog-tool svg { width: 1.375rem; height: 1.375rem; }
.glog-icon-btn svg { width: 1.5rem; height: 1.5rem; }
.glog-bag-n { display: none; position: absolute; top: 0.0625rem; right: -0.0625rem; min-width: 1.0625rem; height: 1.0625rem; padding: 0 0.25rem; border-radius: 9999px; background: #000; color: #fff; box-shadow: 0 0 0 2px var(--glog-page); font: 500 0.6875rem/1.0625rem var(--font-inter), system-ui, sans-serif; text-align: center; font-variant-numeric: tabular-nums; pointer-events: none; }
html[data-bag] .glog-bag-n { display: block; }
.glog-bag-n::after { counter-reset: bag var(--bag-n, 0); content: counter(bag); }
[data-nav-variant] > .glog-tools { margin-right: -0.25rem; }
/* phones: the bar holds wordmark, tools, the client button and the menu button */
/* phones: the header keeps search, bag and the menu (Apply as a client is in the menu's bar and the contextual bar);
   the contextual bar's wordmark steps down so search, bag and Apply fit; the menu's own bar keeps Apply and Close */
@media (max-width: 639px) {
  [data-nav-variant] { column-gap: 0.75rem !important; }
  [data-nav-variant] [data-nav-cta="loggedout"] { display: none !important; }
  .glog-tools { gap: 0; }
  .glog-tool { width: 2rem; height: 2rem; }
  .glog-wm-ctx .glog-wm { font-size: 1.25rem; }
  .contextual-nav-root ul.tw-gap-x-2 { column-gap: 0.375rem; }
  [data-trigger="DialogTrigger"] .glog-tools { display: none; }
}
@media (max-width: 379px) { .contextual-nav-root [data-glog-search] { display: none; } }

/* shared overlay pieces */
.glog-scrim { position: fixed; inset: 0; z-index: 100040; background: rgb(28 25 23 / 0.18); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--glog-ease); }
.glog-scrim.is-open { opacity: 1; pointer-events: auto; }

/* bag drawer */
.glog-drawer { position: fixed; z-index: 100050; top: 0.5rem; right: 0.5rem; bottom: 0.5rem; width: min(27rem, calc(100vw - 1rem)); display: flex; flex-direction: column; background: #fff; border-radius: 1.25rem; box-shadow: var(--glog-float); transform: translateX(calc(100% + 1rem)); visibility: hidden; transition: transform 0.4s var(--glog-ease), visibility 0s linear 0.4s; }
.glog-drawer.is-open { transform: none; visibility: visible; transition: transform 0.4s var(--glog-ease), visibility 0s; }
.glog-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1rem 1rem 1.5rem; }
.glog-drawer-body { flex: auto; overflow-y: auto; padding: 0 1.5rem; overscroll-behavior: contain; }
.glog-drawer-foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--glog-line); display: grid; gap: 0.875rem; }
.glog-bag-list { border-top: 1px solid var(--glog-line); }
.glog-bag-item { display: grid; grid-template-columns: 5rem 1fr auto; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--glog-line); }
.glog-bag-photo { position: relative; display: block; width: 5rem; height: 5rem; border-radius: 0.75rem; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.glog-bag-photo img, .glog-search-thumb img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.glog-bag-text { display: grid; gap: 0.375rem; align-content: start; min-width: 0; padding-top: 0.125rem; }
.glog-bag-name { text-wrap: pretty; transition: color 0.15s; }
.glog-bag-name:hover { color: var(--glog-muted); }
.glog-bag-remove { justify-self: start; margin-top: 0.25rem; text-decoration: underline; text-decoration-color: rgb(0 0 0 / 0.15); text-underline-offset: 0.2em; transition: color 0.15s, text-decoration-color 0.15s; }
.glog-bag-remove:hover { color: #000; text-decoration-color: currentColor; }
.glog-bag-price { padding-top: 0.125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.glog-bag-total { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.glog-bag-ship { margin-top: -0.375rem; }
.glog-checkout-note { text-align: center; }
.glog-bag-empty { min-height: 60%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; text-align: center; padding: 2rem 0; }

/* search overlay */
.glog-search { position: fixed; z-index: 100050; top: 4.5rem; left: 50%; width: min(46rem, calc(100vw - 1rem)); max-height: calc(100vh - 6rem); display: flex; flex-direction: column; background: #fff; border-radius: 1.25rem; box-shadow: var(--glog-float); opacity: 0; transform: translate(-50%, -0.75rem); visibility: hidden; transition: opacity 0.25s var(--glog-ease), transform 0.3s var(--glog-ease), visibility 0s linear 0.3s; }
.glog-search.is-open { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition: opacity 0.25s var(--glog-ease), transform 0.3s var(--glog-ease), visibility 0s; }
.glog-search-bar { display: flex; align-items: center; gap: 0.875rem; padding: 0.75rem 0.75rem 0.75rem 1.5rem; border-bottom: 1px solid var(--glog-line); }
.glog-search-icon { width: 1.75rem; height: 1.75rem; flex: none; color: var(--glog-ink); }
.glog-search-bar input { flex: auto; min-width: 0; height: 3.5rem; border: 0; outline: 0; background: transparent; color: #000; font-family: var(--font-waldenburg); font-weight: 425; font-size: 2rem; line-height: 1.1; letter-spacing: -0.01em; }
.glog-search-bar input::placeholder { color: var(--glog-faint); opacity: 1; }
.glog-search-bar input::-webkit-search-cancel-button { display: none; }
.glog-search-results { overflow-y: auto; padding: 0.5rem 0.75rem 0.75rem; overscroll-behavior: contain; }
.glog-search-label { padding: 1rem 0.75rem 0.5rem; font-size: 0.8125rem; line-height: 1.25rem; font-weight: 500; color: var(--glog-muted); }
.glog-search-row { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.75rem; border-radius: 0.875rem; color: #000; outline: none; }
.glog-search-row[data-active] { background: var(--glog-hover); }
.glog-search-thumb { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; overflow: hidden; background: var(--glog-cream); box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.075); }
.glog-search-text { display: grid; gap: 0.125rem; min-width: 0; }
.glog-search-name { font-size: 1.1875rem; line-height: 1.5rem; font-weight: 500; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.glog-search-meta { font-size: 0.9375rem; line-height: 1.375rem; color: var(--glog-muted); font-variant-numeric: tabular-nums; }
.glog-search-all { justify-content: space-between; margin-top: 0.5rem; padding-top: 0.875rem; padding-bottom: 0.875rem; }
.glog-search-all .glog-search-name { font-size: 1.0625rem; }
.glog-search-all svg { width: 1.375rem; height: 1.375rem; flex: none; }
.glog-search-none { padding: 1.25rem 0.75rem 0.25rem; font-size: 1.0625rem; color: var(--glog-muted); }
.glog-search-groups { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.25rem 0.75rem 0.75rem; }
@media (max-width: 639px) {
  .glog-search { top: 0.5rem; max-height: calc(100dvh - 1rem); }
  .glog-search-bar { padding-left: 1rem; gap: 0.625rem; }
  .glog-search-bar input { font-size: 1.5rem; height: 3rem; }
  .glog-search-icon { width: 1.5rem; height: 1.5rem; }
  .glog-search-name { font-size: 1.0625rem; }
  .glog-search-thumb { width: 3rem; height: 3rem; }
  .glog-search-results { padding: 0.25rem 0.5rem 0.5rem; }
}
@media (prefers-reduced-motion: reduce) { .glog-drawer, .glog-search, .glog-scrim { transition: none !important; } }
