/* Snooby Store Kit — slide-out cart drawer and hide-on-scroll header. */

/* =====================================================================
   Hide-on-scroll header (Flatsome sticky header)
   ===================================================================== */
.snb-hdr-ready #header .header-wrapper.stuck {
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease;
  will-change: transform;
}
body.snb-hdr-hidden #header .header-wrapper.stuck {
  /* the extra 50px also clears the WordPress admin bar when you are logged in */
  transform: translate3d(0, calc(-100% - 50px), 0);
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  .snb-hdr-ready #header .header-wrapper.stuck { transition: none; }
}

/* =====================================================================
   Slide-out cart drawer
   ===================================================================== */
.snb-cd {
  --cd-ink: var(--snb-ink, #2a2d33);
  --cd-text: var(--snb-text, #3d4246);
  --cd-muted: var(--snb-muted, #6b6f78);
  --cd-line: var(--snb-line, #ebe8f0);
  --cd-soft: var(--snb-soft, #f5f3f9);
  --cd-accent: var(--snb-purple, #8224e3);
  --cd-accent-d: var(--snb-purple-d, #6a17c2);
  --cd-on-accent: #fff;
  --cd-good: #0f7a4a;
  --cd-sale: var(--snb-sale, #d6334c);
  --cd-font: var(--snb-font, Montserrat, "Helvetica Neue", Arial, sans-serif);
  --cd-w: 440px;
  position: fixed;
  inset: 0;
  z-index: 100050;
  font-family: var(--cd-font);
  color: var(--cd-text);
  -webkit-font-smoothing: antialiased;
}
/* Black Friday colours while the sale is on */
.snb-bf-live .snb-cd {
  --cd-ink: var(--snb-bf-1, #0f0b0c);
  --cd-accent: var(--snb-bf-2, #e4345b);
  --cd-accent-d: color-mix(in srgb, var(--snb-bf-2, #e4345b) 82%, #000);
  --cd-soft: color-mix(in srgb, var(--snb-bf-acc, #fbf3ea) 70%, #fff);
  --cd-sale: var(--snb-bf-2, #e4345b);
}
.snb-cd[hidden] { display: none !important; }
.snb-cd *, .snb-cd *::before, .snb-cd *::after { box-sizing: border-box; }

html.snb-cd-lock, html.snb-cd-lock body { overflow: hidden !important; }
html.snb-cd-lock body { padding-right: var(--snb-cd-sb, 0); }

.snb-cd__veil {
  position: absolute;
  inset: 0;
  background: rgba(15, 11, 12, 0.48);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.snb-cd__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--cd-w), 100vw);
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 11, 12, 0.18);
  transform: translate3d(104%, 0, 0);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
  overscroll-behavior: contain;
}
.snb-cd.is-open .snb-cd__veil { opacity: 1; }
.snb-cd.is-open .snb-cd__panel { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .snb-cd__veil, .snb-cd__panel { transition: none; }
}
/* Phones: nearly full width, with a strip of page left to tap to close */
@media (max-width: 549px) {
  .snb-cd__panel { width: calc(100vw - 36px); }
}

/* Reset the theme's global button / link / heading styles inside the drawer */
.snb-cd button {
  margin: 0;
  padding: 0;
  min-height: 0;
  width: auto;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  letter-spacing: normal;
  line-height: 1;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.snb-cd a { text-decoration: none; }
.snb-cd p { margin: 0; }
.snb-cd ul { margin: 0; padding: 0; list-style: none; }
.snb-cd li { margin: 0; }
.snb-cd :focus-visible { outline: 2px solid var(--cd-accent); outline-offset: 2px; }
.snb-cd .snb-cd__panel:focus, .snb-cd .snb-cd__panel:focus-visible { outline: none; }
.snb-cd svg { flex: none; }

/* ---------- Heading ---------- */
.snb-cd__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 16px 24px;
  border-bottom: 1px solid var(--cd-line);
}
.snb-cd .snb-cd__title {
  margin: 0;
  padding: 0;
  font: 700 19px/1.2 var(--cd-font);
  letter-spacing: -0.2px;
  color: var(--cd-ink);
  text-transform: none;
}
.snb-cd__count { font-weight: 500; color: var(--cd-muted); }
.snb-cd .snb-cd__x {
  width: 44px;
  height: 44px;
  margin-right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--cd-ink);
  transition: background-color 0.15s ease;
}
.snb-cd .snb-cd__x:hover { background: var(--cd-soft); }

/* ---------- Body ---------- */
.snb-cd__inner {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.snb-cd__msg {
  flex: none;
  margin: 12px 20px 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecee;
  color: #8f1d2c;
  font-size: 13px;
  line-height: 1.4;
}

/* Free delivery */
.snb-cd__free {
  flex: none;
  padding: 14px 24px 16px;
  background: var(--cd-soft);
  border-bottom: 1px solid var(--cd-line);
}
.snb-cd__free-t {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--cd-ink);
}
.snb-cd__free-t strong { font-weight: 700; }
.snb-cd__free.is-done .snb-cd__free-t { color: var(--cd-good); font-weight: 600; }
.snb-cd__track {
  margin-top: 9px;
  height: 6px;
  border-radius: 99px;
  background: rgba(42, 45, 51, 0.1);
  overflow: hidden;
}
.snb-cd__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--cd-accent);
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.snb-cd__free.is-done .snb-cd__fill { background: var(--cd-good); }

/* Items */
.snb-cd .snb-cd__items {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 4px 24px;
}
.snb-cd__item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--cd-line);
  transition: opacity 0.2s ease;
}
.snb-cd__item:last-child { border-bottom: 0; }
.snb-cd__item.is-busy { opacity: 0.55; pointer-events: none; }
.snb-cd__item.is-leaving { opacity: 0.25; }
.snb-cd__item.is-child { padding-left: 24px; }
.snb-cd__thumb {
  flex: none;
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cd-soft);
}
.snb-cd__item.is-child .snb-cd__thumb { width: 56px; height: 56px; }
.snb-cd .snb-cd__thumb img,
.snb-cd .snb-cd__img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}
.snb-cd__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.snb-cd__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.snb-cd .snb-cd__name {
  font: 600 14px/1.35 var(--cd-font);
  color: var(--cd-ink);
  overflow-wrap: anywhere;
}
.snb-cd a.snb-cd__name:hover { text-decoration: underline; }
.snb-cd__price {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font: 600 14px/1.35 var(--cd-font);
  color: var(--cd-ink);
  white-space: nowrap;
  text-align: right;
}
.snb-cd__price del, .snb-cd__was { font-weight: 500; font-size: 12.5px; color: var(--cd-muted); }
.snb-cd__was + .snb-cd__now { color: var(--cd-sale); }
.snb-cd__price .woocommerce-Price-amount { color: inherit; }
.snb-cd__meta { font-size: 12.5px; line-height: 1.4; color: var(--cd-muted); }
.snb-cd__meta + .snb-cd__meta { margin-top: -2px !important; }
.snb-cd__meta--x { color: var(--cd-sale); font-weight: 600; }
.snb-cd__meta dl, .snb-cd__meta dt, .snb-cd__meta dd, .snb-cd__meta p { display: inline; margin: 0; padding: 0; font: inherit; }
.snb-cd__ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 6px; }
.snb-cd__q {
  display: inline-flex;
  align-items: center;
  height: 36px;
  border: 1px solid var(--cd-line);
  border-radius: 99px;
  background: #fff;
}
.snb-cd .snb-cd__qb {
  width: 36px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  color: var(--cd-ink);
}
.snb-cd .snb-cd__qb:hover:not([disabled]) { background: var(--cd-soft); }
.snb-cd .snb-cd__qb[disabled] { opacity: 0.3; cursor: default; }
.snb-cd__qn { min-width: 22px; text-align: center; font: 600 14px/1 var(--cd-font); color: var(--cd-ink); }
.snb-cd__q-fixed { font-size: 12.5px; color: var(--cd-muted); }
.snb-cd .snb-cd__rm {
  padding: 8px 0;
  font-size: 12.5px;
  color: var(--cd-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.snb-cd .snb-cd__rm:hover { color: var(--cd-ink); }

/* Footer */
.snb-cd__foot {
  flex: none;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--cd-line);
  background: #fff;
  box-shadow: 0 -10px 24px rgba(15, 11, 12, 0.05);
}
.snb-cd__sum { display: flex; flex-direction: column; gap: 6px; }
.snb-cd__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.35; }
.snb-cd__row.is-off { color: var(--cd-good); }
.snb-cd__row.is-total { font-weight: 700; font-size: 16px; color: var(--cd-ink); }
.snb-cd__row .woocommerce-Price-amount { color: inherit; }
.snb-cd__save {
  align-self: flex-start;
  margin-top: 2px !important;
  padding: 3px 10px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--cd-sale) 12%, #fff);
  color: var(--cd-sale);
  font-size: 12.5px;
  font-weight: 700;
}
.snb-cd__ship { margin-top: 8px !important; font-size: 12.5px; color: var(--cd-muted); }
.snb-cd__note {
  margin-top: 10px !important;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--cd-soft);
  font-size: 12px;
  line-height: 1.45;
  color: var(--cd-text);
}
.snb-cd .snb-cd__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--cd-accent);
  color: var(--cd-on-accent);
  font: 700 15px/1 var(--cd-font);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.snb-cd .snb-cd__btn:hover { background: var(--cd-accent-d); color: var(--cd-on-accent); }
.snb-cd .snb-cd__btn:active { transform: scale(0.99); }
.snb-cd .snb-cd__link {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 0 4px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cd-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.snb-cd .snb-cd__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--cd-muted);
}
.snb-cd__trust li { display: inline-flex; align-items: center; gap: 5px; }
.snb-cd__trust li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Empty cart */
.snb-cd__inner.is-empty { justify-content: center; }
.snb-cd__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 32px 80px;
  text-align: center;
}
.snb-cd__empty-ico { color: var(--cd-muted); opacity: 0.55; }
.snb-cd__empty-t { margin-top: 14px !important; font: 700 18px/1.3 var(--cd-font); color: var(--cd-ink); }
.snb-cd__empty .snb-cd__btn { max-width: 280px; margin-top: 22px; }

/* Smaller phones */
@media (max-width: 380px) {
  .snb-cd__head { padding: 14px 12px 12px 18px; }
  .snb-cd__free, .snb-cd .snb-cd__items, .snb-cd__foot { padding-left: 18px; padding-right: 18px; }
  .snb-cd__thumb { width: 72px; height: 72px; }
}

/* Short screens (most phones): keep the footer compact so the items get the room */
@media (max-height: 820px) {
  .snb-cd__head { padding-top: 12px; padding-bottom: 10px; }
  .snb-cd__free { padding-top: 10px; padding-bottom: 12px; }
  .snb-cd__item { padding: 12px 0; }
  .snb-cd__foot { padding-top: 12px; }
  .snb-cd__ship { display: none; }
  .snb-cd__note { margin-top: 8px !important; padding: 7px 10px; font-size: 11.5px; line-height: 1.4; }
  .snb-cd .snb-cd__btn { min-height: 50px; margin-top: 10px; }
  .snb-cd .snb-cd__link { margin-top: 2px; padding: 8px 0 2px; }
  .snb-cd .snb-cd__trust { flex-wrap: nowrap; gap: 12px; margin-top: 4px; white-space: nowrap; font-size: 11px; }
}
@media (max-height: 820px) and (max-width: 380px) {
  .snb-cd .snb-cd__trust { flex-wrap: wrap; gap: 2px 12px; }
}
