/* Cart icon badge + slide-out cart panel */
.nav-util .icon, .tb-util .icon { position: relative; }
.cart-badge {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-family: var(--font-ui); font-weight: 500; font-size: 11px; line-height: 18px; text-align: center;
}
.cart-badge[hidden] { display: none; }
.cart-lock, .cart-lock body { overflow: hidden; }
.cart-root { position: fixed; inset: 0; z-index: 90; pointer-events: none; color: #1d1a1b; }
.cart-shade { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s ease; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
  background: #fff; box-shadow: -12px 0 40px rgba(0,0,0,.18); outline: none;
  transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
}
.cart-root.open { pointer-events: auto; }
.cart-root.open .cart-shade { opacity: 1; }
.cart-root.open .cart-panel { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 28px; border-bottom: 1px solid #e5e3e3; }
.cart-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: .005em; }
.cart-x { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; color: inherit; display: flex; align-items: center; justify-content: center; margin-right: -8px; }
.cart-x svg { width: 24px; height: 24px; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid #ece9e9; }
.cart-thumb { width: 84px; height: 84px; background: #fff; overflow: hidden; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cart-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.cart-name { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .01em; text-transform: uppercase; line-height: 1.25; }
.cart-name:hover { text-decoration: underline; }
.cart-unit { font-family: var(--font-ui); font-weight: 300; font-size: 14px; color: #5a5557; }
.cart-qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid #1d1a1b; border-radius: 2px; }
.cart-qty button { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; font-size: 18px; color: inherit; }
.cart-qty button:hover { background: #f4f0f1; }
.cart-qty span { min-width: 30px; text-align: center; font-family: var(--font-ui); font-size: 15px; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-total { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.cart-remove { border: 0; background: none; padding: 0; cursor: pointer; font-family: var(--font-ui); font-size: 13px; color: #5a5557; text-decoration: underline; text-underline-offset: 3px; }
.cart-remove:hover { color: var(--accent); }
.cart-empty { padding: 56px 0; text-align: center; }
.cart-empty p { margin: 0 0 24px; font-family: var(--font-ui); font-weight: 300; font-size: 20px; }
.cart-foot { padding: 0 28px 28px; border-top: 1px solid #e5e3e3; }
.cart-foot:empty { display: none; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 6px; font-family: var(--font-ui); font-size: 16px; }
.cart-sub strong { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.cart-note { margin: 0 0 18px; font-family: var(--font-ui); font-weight: 300; font-size: 13.5px; line-height: 1.45; color: #5a5557; }
.cart-btn {
  display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 17px; letter-spacing: .01em; text-transform: uppercase;
  transition: background-color .15s ease;
}
.cart-btn:hover { background: var(--accent-hover); }
.cart-empty .cart-btn { display: inline-flex; }
.cart-link { display: block; margin: 14px auto 0; border: 0; background: none; cursor: pointer; font-family: var(--font-ui); font-size: 14px; color: #1d1a1b; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .cart-head, .cart-body, .cart-foot { padding-left: 16px; padding-right: 16px; } .cart-line { grid-template-columns: 72px 1fr auto; } .cart-thumb { width: 72px; height: 72px; } }

/* pop-up message */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 95; display: flex; align-items: center; gap: 18px; max-width: calc(100% - 32px);
  padding: 14px 22px; background: #1d1a1b; color: #fff; border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  font-family: var(--font-ui); font-size: 15px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

.cart-var { display: block; font-family: var(--font-ui); font-weight: 300; font-size: 13px; line-height: 18px; color: #5a5557; margin: 2px 0 2px; }

/* Search suggestions (the pop-up list under the search box) */
.sg {
  position: absolute; z-index: 60; top: calc(100% + 6px); right: -1px;
  width: min(380px, calc(100vw - 32px)); max-height: min(72vh, 520px); overflow-y: auto;
  background: #fff; color: #1d1a1b; border: 1px solid #2a2627; border-radius: 4px;
  box-shadow: 0 14px 36px rgba(0,0,0,.22); font-family: var(--font-ui); text-align: left;
}
.sg[hidden] { display: none; }
.sg ul { list-style: none; margin: 0; padding: 0; }
.sg-list { list-style: none; margin: 0; padding: 4px 0; }
.sg-head { padding: 12px 16px 6px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #6b6566; }
.sg-list a { display: flex; align-items: center; gap: 12px; padding: 8px 16px; color: inherit; text-decoration: none; }
.sg-list li.on a { background: #f4f0f1; }
.sg-img { flex: none; width: 48px; height: 48px; background: #fff; overflow: hidden; display: block; }
.sg-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sg-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-name { font-family: var(--font-display); font-weight: 500; font-size: 14px; letter-spacing: .01em; text-transform: uppercase; line-height: 1.25; }
.sg-meta { font-size: 12.5px; color: #6b6566; line-height: 1.3; }
.sg mark { background: none; color: var(--accent); font-weight: 600; }
.sg-none { padding: 14px 16px 6px; font-size: 14px; color: #6b6566; }
.sg-list .sg-all { margin-top: 4px; border-top: 1px solid #e5e3e3; }
.sg-list .sg-all a { justify-content: space-between; padding: 14px 16px; font-size: 14px; font-weight: 500; }
.sg-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) {
  .sg { left: -1px; right: -1px; width: auto; }
}
/* keep the header (and the suggestions hanging from it) above the banner text and page content */
.header { z-index: 6; }
/* the sticky bar has a 1px line under it; let the logo square run over it so no white strip shows under the logo */
.tb-brand { height: 73px; }
