/* ==========================================================================
   SNUSLAB — Header, Footer, Mobile Menu, Search
   Used globally across all pages via the custom header.php / footer.php.
   ========================================================================== */

/* ---------- Header ---------- */
.sl-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sl-border, #e4e6e8);
  height: 60px;
}
.sl-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sl-logo {
  display: inline-block;
  background: #0a0a0a;
  color: #ffffff;
  padding: 7px 13px 5px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}
.sl-logo span { color: #c8f03c; }

/* Desktop nav */
.sl-nav-desktop { flex: 1; display: none; }
.sl-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.sl-nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sl-ink, #0a0a0a);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s;
}
.sl-nav-list li a:hover { background: var(--sl-mist, #f4f5f6); }
.sl-nav-list li.current-menu-item a,
.sl-nav-list li.current_page_item a { font-weight: 700; }

.sl-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sl-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--sl-ink, #0a0a0a);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.sl-icon-btn:hover { background: var(--sl-mist, #f4f5f6); }

.sl-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--sl-ink, #0a0a0a);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Burger: hidden on desktop */
.sl-burger { display: flex; }

/* ---------- Search overlay ---------- */
.sl-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 20px;
  transform: translateY(-100%);
  transition: transform .25s ease;
}
.sl-search-overlay.open { transform: translateY(0); }
.sl-search-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sl-search-form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--sl-mist, #f4f5f6);
  border: 1px solid var(--sl-border, #e4e6e8);
  border-radius: 12px;
  overflow: hidden;
}
.sl-search-input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--sl-ink, #0a0a0a);
  outline: none;
}
.sl-search-input::placeholder { color: #9aa0a6; }
.sl-search-submit {
  border: none;
  background: none;
  padding: 8px 12px;
  color: var(--sl-ink, #0a0a0a);
  cursor: pointer;
  display: flex;
}
.sl-search-close {
  border: none;
  background: none;
  color: var(--sl-muted, #6b7280);
  cursor: pointer;
  display: flex;
  padding: 4px;
}

/* ---------- Mobile menu drawer ---------- */
.sl-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 1200;
  background: #ffffff;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sl-mobile-menu.open { transform: translateX(0); }
.sl-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.sl-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.sl-mobile-nav-list li a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--sl-ink, #0a0a0a);
  text-decoration: none;
  border-bottom: 1px solid var(--sl-border, #e4e6e8);
}
.sl-mobile-menu-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 16px;
}
.sl-mobile-menu-foot a {
  font-size: 12px;
  color: var(--sl-muted, #6b7280);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* backdrop */
.sl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sl-overlay.open { opacity: 1; pointer-events: auto; }

/* ---------- Footer ---------- */
.sl-footer {
  background: var(--sl-mist, #f4f5f6);
  border-top: 1px solid var(--sl-border, #e4e6e8);
  padding: 40px 20px 30px;
  margin-top: 40px;
}
.sl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.sl-footer-top { margin-bottom: 28px; }
.sl-footer-logo { margin-bottom: 10px; }
.sl-footer-desc {
  font-size: 13px;
  color: var(--sl-muted, #6b7280);
  line-height: 1.6;
  margin: 10px 0 0;
}
.sl-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin-bottom: 28px;
}
.sl-footer-col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sl-ink, #0a0a0a);
  margin-bottom: 10px;
}
.sl-footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--sl-muted, #6b7280);
  text-decoration: none;
  padding: 3px 0;
}
.sl-footer-cols a:hover { color: var(--sl-ink, #0a0a0a); }
.sl-footer-bottom {
  border-top: 1px solid var(--sl-border, #e4e6e8);
  padding-top: 16px;
}
.sl-footer-bottom p {
  font-size: 11px;
  color: #9aa0a6;
  line-height: 1.7;
  margin: 0 0 4px;
}

/* ---------- SVG icon base ---------- */
.sl-ic {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Desktop breakpoint ---------- */
@media (min-width: 768px) {
  .sl-nav-desktop { display: block; }
  .sl-burger { display: none; }
  .sl-footer-cols { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   1. OVERRIDE ASTRA'S GLOBAL PALETTE
   Astra colours every button, link and form control from these variables.
   Setting them on <body> beats Astra's own :root definitions for everything
   inside the page — so default WooCommerce pages (cart, checkout, account)
   also lose the blue.
   ========================================================================== */
body {
  --ast-global-color-0: #0a0a0a;  /* primary: buttons, links   */
  --ast-global-color-1: #2c2f33;  /* primary hover             */
  --ast-global-color-2: #0a0a0a;  /* headings                  */
  --ast-global-color-3: #374151;  /* body text                 */
  --ast-global-color-4: #f4f5f6;  /* light background          */
  --ast-global-color-5: #ffffff;  /* background                */
  --ast-global-color-6: #e4e6e8;  /* borders                   */
  --ast-global-color-7: #f4f5f6;
  --ast-global-color-8: #6b7280;  /* muted                     */

  --sl-ink: #0a0a0a;
  --sl-muted: #6b7280;
  --sl-border: #e4e6e8;
  --sl-mist: #f4f5f6;

  color: #374151;
}
a { color: #0a0a0a; }
a:hover, a:focus { color: #2c2f33; }

/* WooCommerce default buttons (cart, checkout, account pages) */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button:not(.is-link),
.wp-block-button__link {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
  border-color: #0a0a0a !important;
  border-radius: 12px !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.wc-block-components-button:not(.is-link):hover,
.wp-block-button__link:hover {
  background-color: #2c2f33 !important;
  color: #ffffff !important;
}
.woocommerce-message, .woocommerce-info { border-top-color: #0a0a0a !important; }
.woocommerce-message::before, .woocommerce-info::before { color: #0a0a0a !important; }

/* ==========================================================================
   2. HARD RESET FOR OUR OWN BUTTONS
   Astra styles bare <button> and form buttons (incl. :hover / :focus) with
   selectors that can outrank a single class. These lock our components.
   ========================================================================== */
.sl-icon-btn, .sl-icon-btn:hover, .sl-icon-btn:focus,
.sl-search-submit, .sl-search-submit:hover, .sl-search-submit:focus,
.sl-search-close, .sl-search-close:hover, .sl-search-close:focus {
  background: transparent !important;
  color: #0a0a0a !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-transform: none !important;
}
.sl-icon-btn:hover { background: #f4f5f6 !important; }
.sl-search-close { color: #6b7280 !important; }

.sl-variant-btn, .sl-variant-btn:focus,
.sl-bundle-btn, .sl-bundle-btn:focus {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border: 2px solid #e4e6e8 !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.sl-bundle-btn, .sl-bundle-btn:focus { border-width: 1px !important; }
.sl-variant-btn:hover, .sl-bundle-btn:hover {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-color: #9aa0a6 !important;
}
.sl-variant-btn.active, .sl-variant-btn.active:hover {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border-color: #0a0a0a !important;
}
.sl-bundle-pct { color: #16a34a !important; }

.sl-atc-btn, .sl-atc-btn:focus,
.sl-nl-btn, .sl-nl-btn:focus,
form button.sl-nl-btn[type="submit"] {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.sl-atc-btn:hover, .sl-nl-btn:hover, form button.sl-nl-btn[type="submit"]:hover {
  background: #2c2f33 !important;
  color: #ffffff !important;
}
.sl-atc-btn:disabled { background: #c7cbd0 !important; cursor: not-allowed; }

.sl-qty-btn, .sl-qty-btn:hover, .sl-qty-btn:focus {
  background: transparent !important;
  color: #0a0a0a !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.sl-qty-btn:hover { background: #f4f5f6 !important; }

.sl-thumb, .sl-thumb:hover, .sl-thumb:focus {
  background: #f4f5f6 !important;
  border: 1px solid #e4e6e8 !important;
  padding: 4px !important;
  box-shadow: none !important;
}
.sl-thumb:hover, .sl-thumb:focus { border-color: #0a0a0a !important; }

.sl-btn--outline, .sl-btn--outline:focus {
  background: transparent !important;
  color: #6b7280 !important;
  border: 1px solid #e4e6e8 !important;
  box-shadow: none !important;
  text-transform: none !important;
}
.sl-btn--outline:hover { color: #0a0a0a !important; border-color: #0a0a0a !important; }

/* links inside our components never turn blue */
a.sl-btn { color: #0a0a0a !important; border: 1px solid #0a0a0a; }
a.sl-btn:hover { background: #0a0a0a !important; color: #ffffff !important; }
a.sl-card-name, a.sl-card-name:hover { color: #0a0a0a !important; }
a.sl-sec-link, a.sl-sec-link:hover { color: #6b7280 !important; }
a.sl-chip { color: #0a0a0a !important; }
a.sl-chip:hover { background: #0a0a0a !important; color: #ffffff !important; border-color: #0a0a0a !important; }
a.sl-cat, a.sl-cat:hover { color: #0a0a0a !important; }
a.sl-add-btn, a.sl-add-btn:hover, a.sl-add-btn:focus { color: #ffffff !important; }
.sl-footer-cols a { color: #6b7280 !important; }
.sl-footer-cols a:hover { color: #0a0a0a !important; }

/* inputs */
.sl-nl-input, .sl-search-input {
  color: #0a0a0a !important;
  box-shadow: none !important;
}
.sl-nl-input { background: #ffffff !important; border: 1px solid #e4e6e8 !important; }
.sl-nl-input:focus { border-color: #0a0a0a !important; outline: none !important; }

/* headings inside our sections keep ink colour */
.sl-sec-title, .sl-finder-q, .sl-nl-title, .sl-step h3,
.sl-product-title, .sl-desc-title { color: #0a0a0a !important; }
.sl-finder-sub, .sl-nl-sub, .sl-step p, .sl-finder-result-sub { color: #6b7280 !important; }

/* ==========================================================================
   3. SHARED PRODUCT GRID + CARD
   Lives here (loaded on every page) so the related-products grid on the
   product page looks identical to the shop and homepage grids.
   ========================================================================== */
.sl-sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin: 34px 0 16px;
}
.sl-sec-title {
  font-size: 26px; letter-spacing: .8px; text-transform: uppercase;
  font-weight: 800; margin: 0;
}
.sl-sec-link {
  font-size: 13px; border-bottom: 1px solid #e4e6e8;
  padding-bottom: 2px; text-decoration: none; white-space: nowrap;
}
.sl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sl-card {
  display: flex; flex-direction: column; background: #ffffff;
  border: 1px solid #e4e6e8; border-radius: 14px;
  overflow: hidden; position: relative;
}
.sl-card:hover { border-color: #c7cbd0; }
.sl-card-media {
  position: relative; aspect-ratio: 1; background: #f4f5f6;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.sl-card-media img { width: 78%; height: 78%; object-fit: contain; }
.sl-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px; color: #ffffff;
}
.sl-badge--sold { background: #9aa0a6; }
.sl-card--sold .sl-card-media img { opacity: .55; }
.sl-card-body { padding: 13px 13px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sl-card-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; text-decoration: none; flex: 1; }
.sl-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto; padding-top: 4px;
}
.sl-card-price { font-size: 19px; font-weight: 800; color: #0a0a0a; }
.sl-card-price del { color: #9aa0a6; font-weight: 400; font-size: 14px; margin-right: 4px; }
.sl-card-price ins { text-decoration: none; }
.sl-add-btn {
  width: 34px; height: 34px; border-radius: 50%; background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none; transition: background .15s;
}
.sl-add-btn:hover { background: #2c2f33; }
.sl-add-btn .sl-ic { width: 16px; height: 16px; }
/* WooCommerce appends a "View cart" link after AJAX adds — keep it tidy */
.sl-card-foot .added_to_cart { display: none !important; }

@media (min-width: 700px) {
  .sl-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1000px) {
  .sl-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.sl-chip--static, .sl-chip--static:hover {
  background: #f4f5f6 !important;
  color: #0a0a0a !important;
  border: 1px solid #e4e6e8 !important;
  cursor: default !important;
}

/* ---------- Cart drawer controls (locked against Astra) ---------- */
.sl-ci-btn, .sl-ci-btn:focus {
  background: transparent !important;
  color: #0a0a0a !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-transform: none !important;
}
.sl-ci-btn:hover { background: #f4f5f6 !important; }
.sl-ci-btn:disabled { color: #c7cbd0 !important; cursor: not-allowed; }
.sl-ci-remove, .sl-ci-remove:focus {
  background: transparent !important;
  color: #9aa0a6 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.sl-ci-remove:hover { background: #f4f5f6 !important; color: #dc2626 !important; }
a.sl-cart-checkout, a.sl-cart-checkout:hover { color: #ffffff !important; background: #0a0a0a !important; }
a.sl-cart-checkout:hover { background: #2c2f33 !important; }
a.sl-cart-viewcart, a.sl-cart-viewcart:hover { color: #6b7280 !important; background: transparent !important; }
a.sl-cart-viewcart:hover { border-color: #0a0a0a !important; color: #0a0a0a !important; }

a.sl-banner-btn, a.sl-banner-btn:hover { color: #0a0a0a !important; }


/* ==========================================================================
   NAVIGATION SUBMENUS
   Desktop: hover/focus dropdown. Mobile: tap-to-expand accordion.
   ========================================================================== */

/* ---------- desktop dropdown ---------- */
.sl-nav-list { position: relative; }
.sl-nav-list li { position: relative; }
.sl-nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.sl-nav-list li.menu-item-has-children:hover > a::after {
  transform: translateY(1px) rotate(225deg);
}
.sl-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1200;
  min-width: 210px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e4e6e8;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.sl-nav-list li:hover > .sub-menu,
.sl-nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sl-nav-list .sub-menu li a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0a0a0a !important;
  white-space: nowrap;
  text-decoration: none;
}
.sl-nav-list .sub-menu li a:hover { background: #f4f5f6; }
/* keeps the dropdown reachable while the pointer travels down to it */
.sl-nav-list li.menu-item-has-children::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

/* ---------- mobile accordion ---------- */
.sl-mobile-nav-list li.menu-item-has-children > a { padding-right: 44px; }
.sl-mobile-nav-list li { position: relative; }
.sl-sub-toggle {
  position: absolute;
  top: 4px;
  right: 0;
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #6b7280 !important;
  cursor: pointer;
}
.sl-sub-toggle .sl-ic { width: 16px; height: 16px; transition: transform .2s; }
.sl-sub-toggle[aria-expanded="true"] .sl-ic { transform: rotate(180deg); }
.sl-mobile-nav-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.sl-mobile-nav-list .sub-menu.open { max-height: 600px; }
.sl-mobile-nav-list .sub-menu li a {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
  padding: 11px 0 !important;
  border-bottom: 1px solid #f0f1f2 !important;
}
.sl-mobile-nav-list .sub-menu li:last-child a { border-bottom: none !important; }


/* ==========================================================================
   SEARCH OVERLAY — fixes
   ========================================================================== */

/* the admin bar pushes the page down; keep the overlay below it */
body.admin-bar .sl-search-overlay { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .sl-search-overlay { top: 46px; }
}
.sl-search-overlay {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid #e4e6e8;
}

/* the field must stay white in every state - the black came from the theme
   taking over on focus/typing */
.sl-search-input,
.sl-search-input:focus,
.sl-search-input:active,
.sl-search-input:hover,
input[type="search"].sl-search-input {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  caret-color: #0a0a0a !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.sl-search-input::placeholder { color: #9aa0a6 !important; -webkit-text-fill-color: #9aa0a6 !important; }
.sl-search-input:-webkit-autofill,
.sl-search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #f4f5f6 inset !important;
  -webkit-text-fill-color: #0a0a0a !important;
}
.sl-search-form { background: #f4f5f6 !important; border: 1px solid #e4e6e8 !important; }
.sl-search-form:focus-within { border-color: #0a0a0a !important; }

/* Finder circle in the category row: outlined so it reads as a tool,
   not as another product category */
.sl-cat .sl-disc--outline {
  background: #ffffff !important;
  border: 1.5px solid #0a0a0a;
  color: #0a0a0a !important;
}
.sl-cat .sl-disc--outline .sl-ic { stroke: #0a0a0a !important; }
.sl-cat--finder:hover .sl-disc--outline { background: #0a0a0a !important; color: #ffffff !important; }
.sl-cat--finder:hover .sl-disc--outline .sl-ic { stroke: #ffffff !important; }
.sl-cat .sl-disc { transition: background .15s, color .15s; }

/* iPhones zoom into any form field with text smaller than 16px — that makes
   pages look oversized and shifted after the first tap. */
@media (max-width: 767px) {
  input[type="text"], input[type="email"], input[type="search"], input[type="tel"],
  input[type="url"], input[type="number"], input[type="password"], select, textarea {
    font-size: 16px !important;
  }
}

/* easter egg: floating hearts */
.sl-heart {
  position: fixed;
  z-index: 2000;
  pointer-events: none;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: slHeartUp 2.2s ease-out forwards;
  opacity: 0;
}
@keyframes slHeartUp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  12%  { opacity: 1; transform: translate(-50%, -80%) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), -380%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .sl-heart { animation-duration: .01s; }
}


/* ==========================================================================
   CART + CHECKOUT: undo Astra's "wide alignment" offsets
   Both blocks are saved as alignwide. Astra gives wide blocks negative side
   margins so they bleed past the content column — on phones that shifts the
   whole cart/checkout off to the left. Pin them to the normal column instead.
   ========================================================================== */
body.woocommerce-cart,
body.woocommerce-checkout { overflow-x: hidden; }

.woocommerce-cart .entry-content .alignwide,
.woocommerce-cart .entry-content .alignfull,
.woocommerce-checkout .entry-content .alignwide,
.woocommerce-checkout .entry-content .alignfull,
.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-cart.alignfull,
.wp-block-woocommerce-checkout.alignwide,
.wp-block-woocommerce-checkout.alignfull {
  margin-left: auto !important;
  margin-right: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 1200px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Astra's page wrapper: one even side padding, no extra boxes */
.woocommerce-cart .site-content > .ast-container,
.woocommerce-checkout .site-content > .ast-container {
  max-width: 1232px !important;
  margin: 0 auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
.woocommerce-cart #primary,
.woocommerce-cart .ast-article-single,
.woocommerce-cart article.page,
.woocommerce-cart .entry-content,
.woocommerce-checkout #primary,
.woocommerce-checkout .ast-article-single,
.woocommerce-checkout article.page,
.woocommerce-checkout .entry-content {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  /* stacked columns, both full width */
  .wc-block-cart,
  .wc-block-components-sidebar-layout {
    flex-direction: column !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-components-sidebar-layout .wc-block-components-sidebar,
  .wc-block-cart__main,
  .wc-block-cart__sidebar {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .wc-block-cart__sidebar { padding: 14px !important; margin-top: 8px !important; }

  /* the injected progress bar gets the same side alignment */
  .sl-cartpage-progress { margin-left: 0; margin-right: 0; }
}


/* ==========================================================================
   CART + CHECKOUT: nothing wider than the screen
   width:100% + padding + border overflowed by ~30px without border-box.
   ========================================================================== */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout *,
.wp-block-woocommerce-checkout *::before,
.wp-block-woocommerce-checkout *::after,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-cart *,
.wp-block-woocommerce-cart *::before,
.wp-block-woocommerce-cart *::after,
.sl-cartpage-progress,
.sl-cartpage-progress * {
  box-sizing: border-box;
}

/* flex/grid children may shrink below their content width */
.wc-block-components-sidebar-layout > *,
.wc-block-checkout__form,
.wc-block-components-checkout-step,
.wc-block-components-checkout-step__container,
.wc-block-components-checkout-step__content,
.wc-block-components-address-form,
.wc-block-components-radio-control,
.wc-block-components-radio-control__option,
.wc-block-components-radio-control-accordion-option {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* fields, embedded payment frames (Stripe, PayPal, Viva) and images */
.wp-block-woocommerce-checkout input,
.wp-block-woocommerce-checkout select,
.wp-block-woocommerce-checkout textarea,
.wp-block-woocommerce-checkout iframe,
.wp-block-woocommerce-checkout img,
.wp-block-woocommerce-cart iframe,
.wp-block-woocommerce-cart img {
  max-width: 100% !important;
}
.wc-block-components-text-input,
.wc-block-components-combobox,
.wc-block-components-select,
.wc-block-components-state-input,
.wc-block-components-country-input {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 767px) {
  /* two-column address rows (first/last name, postcode/city) -> one column */
  .wc-block-components-address-form {
    display: flex !important;
    flex-direction: column !important;
  }
  .wc-block-components-address-form > * {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* slightly slimmer inner spacing so boxes breathe inside the screen */
  .wc-block-checkout__sidebar,
  .wc-block-cart__sidebar { padding: 12px !important; }
  .wc-block-components-radio-control__option,
  .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option {
    padding-left: 44px !important;
    padding-right: 12px !important;
  }
  .wc-block-components-order-summary-item { gap: 10px; }
}
