/*
Theme Name: Smart Jontro
Theme URI: https://example.com
Author: Smart Jontro
Author URI: https://example.com
Description: Smart Jontro — smart gadgets for modern living. WooCommerce theme for a Bangladesh online store.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartjontro
Tags: custom-logo, custom-menu, featured-images, translation-ready, responsive-layout
*/

:root {
  --ss-white: #ffffff; /* 94 uses */
  --ss-ink: #0f172a; /* 60 uses */
  --ss-brand: #0e7490; /* logo cyan, deep (AA with white text) */
  --ss-muted-alt: #6b7280; /* 22 uses */
  --ss-surface: #f8fafc; /* 17 uses */
  --ss-muted: #64748b; /* 17 uses */
  --ss-ink-soft: #374151; /* 14 uses */
  --ss-border: #e7eaef; /* 12 uses */
  --ss-brand-alt: #0891b2; /* logo cyan, mid */
  --ss-border-warm: #e5e7eb; /* 9 uses */
  --ss-border-cool: #e2e8f0; /* 9 uses */
  --ss-brand-dark: #155e75; /* hover / pressed */
  --ss-warning: #f59e0b; /* 8 uses */
  --ss-info: #2563eb; /* 7 uses */
  --ss-success: #166534; /* 7 uses */
  --ss-c-4b5563: #4b5563; /* 7 uses */
  --ss-c-dddddd: #dddddd; /* 6 uses */
  --ss-c-d6001c: #0891b2; /* legacy name; now brand cyan */
  --ss-brand-logo: #06b6d4; /* exact logo cyan: accents on dark */
  --ss-navy: #0f172a; /* logo navy */
  --ss-danger: #0e7490; /* errors only */
  --ss-radius: 5px; /* 73 uses */

  /* Type scale — 6 sizes cover 68% of all font-size declarations. */
  --ss-text-2xs: 12px; /* a11y floor: no body text under 12px */
  --ss-text-xs: 12px;
  --ss-text-sm: 13px;
  --ss-text-base: 14px;
  --ss-text-md: 15px;
  --ss-text-lg: 16px;

  /* Container widths. */
  --ss-container: min(1440px, calc(100% - 32px));
  --ss-container-flush: min(1440px, 100%);
  --ss-container-narrow: min(960px, calc(100% - 32px));
}

:root {
  color-scheme: light;
  /* System UI stack — no render-blocking webfont request */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  font-size: 100%;
  color: #111827;
  background: var(--ss-surface);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ss-surface);
  color: #111827;
  overflow-x: clip;
}

a {
  color: #0f7a3d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-content {
  width: var(--ss-container-flush);
  margin: 0 auto;
  padding: 40px 30px;
}

/* ===== Site Header ===== */
.sft-header {
  position: relative;
  z-index: 100;
  background: var(--ss-white);
  border-bottom: 1px solid #eef0f3;
}

.sft-header-main {
  width: var(--ss-container-flush);
  margin: 0 auto;
  padding: 11px 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

/* Hidden on desktop; shown inside the header grid on ≤1024px */
.sft-header-main .mobile-menu-trigger {
  display: none;
}

/* Brand */
.sft-header-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  text-decoration: none;
  color: var(--ss-ink);
}

.sft-header-brand:hover {
  text-decoration: none;
  color: var(--ss-ink);
}

/* Horizontal SVG logo (~4.8:1): size it by height only, width follows. */
.sft-header .sft-header-brand-logo {
  display: block;
  flex-shrink: 0;
  height: 44px;
  width: auto;
  max-width: none;
  max-height: 44px;
  min-height: 44px;
  object-fit: contain;
}

/* Search */
.sft-header-search {
  justify-self: center;
  width: min(600px, 96vw);
  display: flex;
  align-items: stretch;
  height: 42px;
  background: var(--ss-white);
  border: 1px solid var(--ss-border-warm);
  border-radius: 999px;
  overflow: visible;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sft-header-search-cat-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  border-right: 1px solid var(--ss-border-warm);
  border-radius: 999px 0 0 999px;
}

/* Custom category dropdown (replaces native select) */
.sft-search-cat {
  flex-shrink: 0;
}

.sft-search-cat__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px 0 18px;
  margin: 0;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: var(--ss-text-md);
  font-weight: 600;
  color: var(--ss-ink);
  white-space: nowrap;
}

.sft-search-cat__trigger:focus {
  outline: 0;
}

.sft-search-cat__value {
  max-width: 172px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sft-search-cat__chevron {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--ss-muted);
  transition: transform 0.22s ease;
}

.sft-search-cat__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: max(100%, 296px);
  max-height: min(384px, 74vh);
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  background: var(--ss-white);
  border: 1px solid #e8ecf2;
  border-radius: var(--ss-radius);
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.14),
    0 6px 16px rgba(15, 23, 42, 0.08);
  z-index: 300;
  -webkit-overflow-scrolling: touch;
}

.sft-search-cat__panel::-webkit-scrollbar {
  width: 8px;
}

.sft-search-cat__panel::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd5e1;
}

.sft-search-cat__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sft-search-cat__item {
  margin: 0;
  padding: 0;
}

.sft-search-cat__option {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--ss-radius);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: var(--ss-text-md);
  font-weight: 500;
  color: #1e293b;
  text-align: left;
  line-height: 1.35;
  transition: background 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
}

.sft-search-cat__option:focus {
  outline: 0;
}

.sft-search-cat__option:hover {
  background: var(--ss-surface);
  color: var(--ss-ink);
}

.sft-search-cat__option.is-selected {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.07) 0%, rgba(15, 23, 42, 0.03) 100%);
  color: var(--ss-ink);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--ss-ink);
}

.sft-search-cat__option-label {
  flex: 1;
  min-width: 0;
}

.sft-header-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  font-size: var(--ss-text-md);
  color: var(--ss-ink);
  background: transparent;
  min-width: 0;
}

.sft-header-search-input::placeholder {
  color: var(--ss-muted-alt);
}

.sft-header-search-btn {
  width: 60px;
  flex-shrink: 0;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: var(--ss-ink);
  color: var(--ss-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sft-header-search-btn:hover {
  background: #1f2937;
}

.sft-header-search-btn svg {
  width: 21px;
  height: 21px;
}

/* Actions (account / wishlist / cart) */
.sft-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sft-header-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ss-ink);
  position: relative;
}

.sft-header-action:hover {
  text-decoration: none;
  color: var(--ss-brand);
}

.sft-header-action-icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

.sft-header-action-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
}

.sft-header-action-eyebrow {
  font-size: var(--ss-text-2xs);
  color: var(--ss-muted-alt);
  font-weight: 400;
}

.sft-header-action-label {
  font-size: var(--ss-text-sm);
  font-weight: 600;
  color: var(--ss-ink);
}

.sft-header-action-label--single {
  font-size: var(--ss-text-sm);
}

.sft-header-cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sft-header-cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ss-brand);
  color: var(--ss-white);
  font-size: var(--ss-text-2xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Category nav row */
.sft-header-nav {
  background: var(--ss-white);
  border-top: 1px solid #f3f4f6;
}

.sft-header-nav-inner {
  width: var(--ss-container-flush);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 46px;
}

.sft-header-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

.sft-header-nav-list a {
  color: var(--ss-ink-soft);
  text-decoration: none;
  font-size: var(--ss-text-base);
  font-weight: 500;
  padding: 14px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.sft-header-nav-list a:hover {
  color: var(--ss-brand);
  text-decoration: none;
}

.sft-header-deal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ss-brand);
  font-size: var(--ss-text-base);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.sft-header-deal:hover {
  color: var(--ss-brand-dark);
  text-decoration: none;
}

.sft-header-deal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ss-brand);
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

@media (max-width: 1080px) {

  .sft-header-action-text {
    display: none;
  }

  .sft-header-actions {
    gap: 18px;
  }

  .sft-header-action-icon {
    width: 24px;
    height: 24px;
  }

  .sft-header-cart-badge {
    top: -8px;
    right: -10px;
  }

  .sft-header-nav-list {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .sft-header-nav-list a {
    white-space: nowrap;
  }
}

@media (max-width: 767px) {

  .sft-header-main {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 12px 10px;
    padding: 10px 14px;
  }

  .sft-header-main .mobile-menu-trigger {
    grid-column: 1;
    grid-row: 1;
  }

  .sft-header-brand {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .sft-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    gap: 12px;
  }

  .sft-header-search {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
  }

  .sft-header-search-cat-wrap {
    display: none;
  }

  .sft-header .sft-header-brand-logo {
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .sft-header-nav-inner {
    padding: 0 18px;
    gap: 16px;
  }

  .sft-header-action {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
}

.entry-content {
  max-width: 100%;
  /*   max-width: 860px; */
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  margin-top: 0;
}

.entry-content p {
  margin: 1.25em 0;
}

/* ===== About page (Template Name: About) ===== */
.sft-about {
  padding-bottom: clamp(40px, 6vw, 64px);
}

.sft-about-hero {
  background: linear-gradient(155deg, var(--ss-ink) 0%, #1e293b 52%, var(--ss-ink) 100%);
  color: var(--ss-surface);
  padding: clamp(40px, 7vw, 72px) 24px clamp(44px, 6vw, 64px);
  margin-bottom: 0;
}

.sft-about-hero-inner {
  width: var(--ss-container-narrow);
  margin: 0 auto;
  max-width: 640px;
}

.sft-about-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ss-white);
}

.sft-about-lede {
  margin: 0 0 22px;
  font-size: var(--ss-text-lg);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 560px;
}

.sft-about-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: var(--ss-radius);
  font-size: var(--ss-text-base);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.sft-about-btn:hover {
  text-decoration: none;
}

.sft-about-btn--primary {
  background: var(--ss-brand);
  color: var(--ss-white);
  box-shadow: 0 6px 20px rgba(14, 116, 144, 0.35);
}

.sft-about-btn--primary:hover {
  background: var(--ss-brand-dark);
  color: var(--ss-white);
}

.sft-about-btn--ghost {
  background: rgba(248, 250, 252, 0.08);
  color: #f1f5f9;
  border-color: rgba(248, 250, 252, 0.22);
}

.sft-about-btn--ghost:hover {
  background: rgba(248, 250, 252, 0.14);
  color: var(--ss-white);
  border-color: rgba(248, 250, 252, 0.35);
}

.sft-ship-pay-label {
  font-size: var(--ss-text-sm);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f1f5f9;
}

.sft-pay--cod .sft-ship-pay-label {
  color: #86efac;
}

.sft-pay--bkash .sft-ship-pay-label {
  color: #f472b6;
}

.sft-pay--nagad .sft-ship-pay-label {
  color: #fdba74;
}

/* Brand column */

/* Footer social — brand-tinted soft tiles + stronger brand on hover */

/* Link columns */

/* Footer contact column is built from the shared .sft-contact-item component. */

/* Outline field marker — grouped with the value on the left. */

/* Value + copy sit tight together; the action chip is pushed to the far right. */

.sft-contact-emails {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-width: 100%;
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

.sft-contact-emails__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
}

.sft-contact-emails__link {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease;
}

.sft-contact-emails__link:hover,
.sft-contact-emails__link:focus-visible {
  color: var(--sft-contact-accent, var(--ss-info));
  text-decoration: none;
}

.sft-contact-emails__link:focus-visible {
  outline: 2px solid var(--sft-contact-accent, var(--ss-info));
  outline-offset: 2px;
  border-radius: 2px;
}

.sft-contact-emails__item .sft-copy-btn {
  position: relative;
  z-index: 2;
}

/* Small caret signals “menu” vs a direct one-address mailto action. */

/* Static (non-clickable) variant — address, opening hours */

/* Payment + cert row */

.sft-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border-radius: var(--ss-radius);
  background: var(--ss-white);
  border: 1px solid var(--ss-border-warm);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.sft-pay:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.sft-pay--bkash {
  border-color: rgba(226, 19, 110, 0.25);
}

.sft-pay--nagad {
  border-color: rgba(245, 130, 31, 0.30);
}

.sft-pay--cod {
  border-color: rgba(22, 163, 74, 0.25);
}

/* Bottom row */

.woocommerce .woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid var(--ss-border-warm);
  border-radius: var(--ss-radius);
  background: var(--ss-white);
  color: var(--ss-ink);
  font-size: var(--ss-text-sm);
  cursor: pointer;
}

.sft-shop ul.products li.product,
.sft-shop ul.products li.sft-product-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: none !important;
  list-style: none;
  background: transparent;
  border: 0;
  text-align: left;
  background: var(--ss-white);
  border-radius: var(--ss-radius);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* ----- Product card ----- */

.sft-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0;
  background: var(--ss-white);
  border: 1px solid #e6ebf2;
  border-radius: var(--ss-radius);
  padding: 14px 14px 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.sft-product-card:hover {
  border-color: #dbe2ec;
  box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.22), 0 6px 14px -8px rgba(15, 23, 42, 0.10);
  transform: translateY(-5px);
}

.sft-product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f7f9fc;
  border-radius: var(--ss-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.sft-product-card__media-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.sft-product-card__img,
.sft-product-card__media-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 12px;
  box-sizing: border-box;
  transition: transform .4s ease;
}

.sft-product-card:hover .sft-product-card__img,
.sft-product-card:hover .sft-product-card__media-link img,
.sft-product-card:focus-within .sft-product-card__img,
.sft-product-card:focus-within .sft-product-card__media-link img {
  transform: scale(1.04);
}

.sft-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 5px 11px;
  border-radius: var(--ss-radius);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: var(--ss-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 14px -4px rgba(21, 128, 61, 0.42);
}

/* Top-left badge stack: HOT above the savings badge. */
.sft-product-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.sft-product-card__badges .sft-product-card__badge {
  position: static;
  max-width: 100%;
}

/* HOT badge — shared by shop cards and the product gallery (inc/hot-badge.php). */
.sft-hot-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4 0%, #0e7490 100%);
  color: var(--ss-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 14px -4px rgba(14, 116, 144, 0.5);
}

.sft-hot-badge__icon {
  flex: 0 0 auto;
  color: #fde68a;
}

/* ----- Card footer: Add to cart over image (WooCommerce loop hook), bottom-left ----- */

.sft-product-card__footer {
  margin-top: auto;
  padding-top: 0;
  /* width: 100%; */
  display: flex;
  align-items: center;
  padding-bottom: 10px;
}

.sft-product-card__footer .screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Wins over WooCommerce `.woocommerce a.button` / block theme button presets */
.woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn,
.woocommerce-page ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn,
.sft-product-card__footer a.button.sft-product-card__cart-btn {
  position: relative;
  box-sizing: border-box;
  margin: 0;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 36px;
  /* width: 100%; */
  min-width: 0;
  /* max-width: 100%; */
  padding: 9px 15px;
  line-height: 1.1;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: var(--ss-white) !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  background: #ef4a23 !important;
  background-color: #ef4a23 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  opacity: 1;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.woocommerce ul.products li.product.sft-product-card:hover .sft-product-card__footer a.button.sft-product-card__cart-btn,
.woocommerce-page ul.products li.product.sft-product-card:hover .sft-product-card__footer a.button.sft-product-card__cart-btn,
.sft-product-card:hover .sft-product-card__footer a.button.sft-product-card__cart-btn,
.woocommerce ul.products li.product.sft-product-card:focus-within .sft-product-card__footer a.button.sft-product-card__cart-btn,
.woocommerce-page ul.products li.product.sft-product-card:focus-within .sft-product-card__footer a.button.sft-product-card__cart-btn,
.sft-product-card:focus-within .sft-product-card__footer a.button.sft-product-card__cart-btn {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none) {

  .woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn,
  .woocommerce-page ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn,
  .sft-product-card__footer a.button.sft-product-card__cart-btn {
    opacity: 1;
    pointer-events: auto;
  }
}

.sft-product-card__cart-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.sft-product-card__cart-label {
  display: inline-flex;
  align-items: center;
}

.woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn:hover,
.sft-product-card__footer a.button.sft-product-card__cart-btn:hover {
  color: var(--ss-white) !important;
  background: #cd3f1e !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px rgba(239, 74, 35, 0.45);
}

.woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn:active,
.sft-product-card__footer a.button.sft-product-card__cart-btn:active {
  transform: translateY(0);
  background: #b5381a !important;
}

.sft-product-card__footer a.button.sft-product-card__cart-btn:focus-visible {
  outline: 2px solid var(--ss-ink);
  outline-offset: 3px;
}

/* Ajax loading / added (WooCommerce adds classes on the same node) */
.woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn.loading,
.woocommerce-page ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn.loading,
.woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn.added,
.woocommerce-page ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn.added,
.sft-product-card__footer a.button.sft-product-card__cart-btn.loading,
.sft-product-card__footer a.button.sft-product-card__cart-btn.added {
  opacity: 1;
}

.sft-product-card__cart-btn.loading {
  cursor: wait;
  pointer-events: none;
}

.sft-product-card__cart-btn.loading .sft-product-card__cart-icon,
.sft-product-card__cart-btn.loading .sft-product-card__cart-label {
  visibility: hidden;
}

/* Must out-rank WooCommerce's `.woocommerce a.button.loading::after`
   (icon-font glyph pinned at top:.618em / right:1em), so every property it
   sets is reset here. */
.woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn.loading::after,
.woocommerce-page ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn.loading::after,
.woocommerce .sft-product-card__footer a.button.sft-product-card__cart-btn.loading::after,
.sft-product-card__footer a.button.sft-product-card__cart-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  padding: 0;
  font-family: inherit;
  font-size: 0;
  line-height: 0;
  vertical-align: middle;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--ss-white);
  border-radius: 50%;
  animation: sft-cart-spin 0.65s linear infinite;
}

@keyframes sft-cart-spin {
  to {
    transform: rotate(360deg);
  }
}

.sft-product-card__cart-btn.added {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
  background-color: #15803d !important;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1),
    0 10px 24px rgba(21, 128, 61, 0.35) !important;
}

.sft-product-card__cart-btn.added::after {
  content: none;
}

/* ----- Card body ----- */

.sft-product-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 9px;
  padding: 15px 10px 5px;
}

/* ----- Category (max 2 lines, ellipsis, Show more / less) ----- */

.sft-product-card__cat-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.sft-product-card__cat {
  font-size: var(--ss-text-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #525965;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sft-product-card__cat-wrap.is-expanded .sft-product-card__cat {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

.sft-product-card__cat-toggle {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ss-brand);
  cursor: pointer;
  transition: color 0.15s ease;
}

.sft-product-card__cat-toggle:hover {
  color: var(--ss-brand-dark);
  text-decoration: underline;
}

.sft-product-card__cat-toggle:focus-visible {
  outline: 2px solid var(--ss-brand);
  outline-offset: 2px;
  border-radius: var(--ss-radius);
}

/* ----- Price (a primary visual element) ----- */

.sft-product-card__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ss-brand);
  /* brand primary — the price is the hero */
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.sft-product-card__price .woocommerce-Price-amount,
.sft-product-card__price ins .woocommerce-Price-amount {
  font-weight: 800;
  color: var(--ss-brand);
}

.sft-product-card__price del,
.sft-product-card__price del .woocommerce-Price-amount {
  color: #545961;
  font-weight: 500;
  text-decoration: line-through;
  font-size: var(--ss-text-sm);
}

.sft-product-card__price ins {
  background: transparent;
  text-decoration: none;
}

/* ----- Title (max 2 lines, ellipsis, full name in title tooltip) ----- */

.woocommerce ul.products li.product .sft-product-card__title,
.sft-product-card__title {
  margin: 0;
  padding: 0;
  font-size: var(--ss-text-md);
  font-weight: 600;
  line-height: 1.4;
  color: #1f2937;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  /* don't let the flex column shrink it */
  min-height: calc(1.4em * 2);
  /* reserve two lines → equal-height cards */
  max-height: calc(1.4em * 2);
  /* cap at two lines → no clipped third line */
}

.sft-product-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.sft-product-card__title a:hover {
  color: var(--ss-brand);
}

/* Made in Bangladesh — shop / loop card */
.origin-badge {
  --sft-origin-bd-bg: #ecfdf5;
  --sft-origin-bd-ink: var(--ss-success);
  --sft-origin-bd-border: #86efac;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--sft-origin-bd-border);
  background: var(--sft-origin-bd-bg);
  color: var(--sft-origin-bd-ink);
  font-family: inherit;
  font-size: var(--ss-text-2xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.origin-badge.badge-bd .origin-badge__flag {
  font-size: var(--ss-text-xs);
  line-height: 1;
}

/* ----- Stars ----- */

.sft-product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.sft-stars {
  position: relative;
  display: inline-block;
  font-size: var(--ss-text-base);
  line-height: 1;
  letter-spacing: 1px;
  font-family: Arial, sans-serif;
}

.sft-stars__row {
  display: block;
  white-space: nowrap;
}

.sft-stars__row--empty {
  color: var(--ss-border-warm);
}

.sft-stars__row--filled {
  position: absolute;
  inset: 0 auto 0 0;
  color: var(--ss-ink-soft);
  overflow: hidden;
}

.sft-rating-count {
  font-size: var(--ss-text-xs);
  font-weight: 500;
  color: var(--ss-muted-alt);
}

@media (max-width: 480px) {

  .sft-product-card {
    padding: 8px 8px 12px;
    border-radius: var(--ss-radius);
  }

  .sft-product-card__media {
    border-radius: var(--ss-radius);
  }

  .sft-product-card__badge {
    top: 8px;
    left: 8px;
    font-size: 12px;
    padding: 4px 8px;
  }

  .sft-product-card__badges {
    top: 8px;
    left: 8px;
    gap: 4px;
    max-width: calc(100% - 16px);
  }

  .sft-product-card__badges .sft-hot-badge {
    padding: 4px 8px 4px 7px;
    font-size: 12px;
  }

  .sft-product-card__title {
    font-size: var(--ss-text-sm);
  }

  .origin-badge {
    font-size: 12px;
    padding: 2px 7px;
    margin-top: 4px;
  }

  .woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn,
  .sft-product-card__footer a.button.sft-product-card__cart-btn {
    min-height: 40px;
    font-size: var(--ss-text-2xs);
    padding: 10px 12px;
    letter-spacing: 0.06em;
  }

  .sft-product-card__cart-icon {
    width: 15px;
    height: 15px;
  }
}

/* Slider chrome, injected by JS. Shown only in the mobile block below. */

/* Made in Bangladesh — PDP trust line (after price) */
.single-origin-badge {
  --sft-origin-bd-bg: #ecfdf5;
  --sft-origin-bd-ink: var(--ss-success);
  --sft-origin-bd-border: #86efac;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--sft-origin-bd-border);
  background: var(--sft-origin-bd-bg);
  color: var(--sft-origin-bd-ink);
  font-family: inherit;
  font-size: var(--ss-text-sm);
  font-weight: 600;
  line-height: 1.3;
}

.single-origin-badge.bd span:first-child {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--ss-text-2xs);
  color: #15803d;
}

.single-origin-badge__flag {
  font-size: var(--ss-text-base);
  line-height: 1;
}

/* Headings */
.woocommerce h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #222;
}

/* Form Fields */
.woocommerce form .form-row {
  margin-bottom: 18px;
}

.woocommerce form .form-row label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.woocommerce form .input-text,
.woocommerce select,
.select2-container--default .select2-selection--single {
  height: 50px;
  border: 1px solid var(--ss-c-dddddd);
  border-radius: var(--ss-radius);
  background: var(--ss-white);
  padding: 0 15px;
  font-size: var(--ss-text-md);
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
  padding: 0.7em;
  border-radius: var(--ss-radius);
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
  box-shadow: none;
  border: none;
  border: 1px solid var(--ss-c-dddddd);
}

:where(.woocommerce) .select2-container .select2-selection--single .select2-selection__rendered {
  padding: 1em;
}

.woocommerce textarea {
  border: 1px solid var(--ss-c-dddddd);
  border-radius: var(--ss-radius);
  padding: 15px;
  min-height: 120px;
}

/* Focus */
.woocommerce form .input-text:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--ss-c-d6001c);
  box-shadow: 0 0 0 3px rgba(214, 0, 28, .12);
}

.woocommerce-terms-and-conditions-wrapper .woocommerce-privacy-policy-text p {
  display: none;
}

.woocommerce .woocommerce-notices-wrapper:first-child {
  flex: 0 0 100%;
}

.woocommerce-message,
.woocommerce-info {
  padding-left: 46px !important;
}

.button:hover,
button.button:hover,
input.button:hover {
  background: #b50018 !important;
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
  border-left: 4px solid var(--ss-c-d6001c);
  background: var(--ss-white);
  border-radius: var(--ss-radius);
  padding: 18px 20px;
}

@media (max-width: 767px) {

  .woocommerce ul.products li.product.sft-product-card .sft-product-card__footer a.button.sft-product-card__cart-btn,
  .sft-product-card__footer a.button.sft-product-card__cart-btn {
    min-height: 32px;
  }

  .sft-product-card__footer .button,
  button.button,
  input.button {
    padding: 8px 12px !important;
  }

  .sft-product-card__footer {
    left: unset;
  }

  .sft-product-card__title {
    font-weight: 600 !important;
  }

  
}

@media (min-width: 320px) and (max-width:767px) {

  .woocommerce-shipping-destination {
    display: none;
  }

  .entry-content h1 {
    text-align: center;
  }

  :where(.woocommerce) .select2-container .select2-selection--single .select2-selection__rendered {
    padding: .9em;
  }

  .woocommerce form .form-row .input-text:focus,
  .woocommerce form .form-row select:focus {
    outline: none;
  }

  .site-content {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 767px) {

  .sft-header-main .mobile-menu-trigger,
  .mobile-menu-trigger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: var(--ss-white);
    border: 1px solid var(--ss-border-cool);
    border-radius: var(--ss-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    padding: 12px 10px;
    margin: 0;
    z-index: 100;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-menu-trigger:active {
    border-color: var(--ss-brand);
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
  }

  .hamburger-bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--ss-ink);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    transform-origin: center;
  }

  .mobile-menu-trigger.is-open .hamburger-bar:nth-child(1) {
    transform: translateY(6.75px) rotate(45deg);
  }

  .mobile-menu-trigger.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-trigger.is-open .hamburger-bar:nth-child(3) {
    transform: translateY(-6.75px) rotate(-45deg);
  }

  /* Compact Left Sliding Drawer for Phone Displays */
  #offcanvas-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    max-width: 50%;
    max-width: 220px;
    height: 100vh;
    background-color: var(--ss-white);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    z-index: 999999;
    transform: translateX(-100%);
    /* Closed drawer leaves the tab order. Mirrors css/mobile-nav.css. */
    visibility: hidden;
    transition:
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.3s;
  }

  #offcanvas-menu.is-active {
    transform: translateX(0);
    visibility: visible;
    transition:
      transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s;
  }

  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  .offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f2f2f2;
    font-size: var(--ss-text-lg);
    font-weight: 700;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #555555;
    cursor: pointer;
    line-height: 1;
  }

  .offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0px 0px 30px 0px;
  }

  /* --- Mobile Structural Accordion Formats --- */
  #offcanvas-menu .sft-header-nav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  #offcanvas-menu .sft-header-nav-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0;
    list-style: none !important;
  }

  #offcanvas-menu .menu-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }

  #offcanvas-menu .menu-item a {
    display: block !important;
    padding: 14px 0 !important;
    font-size: 15px !important;
    /* color: #2c3e50 !important; */
    border-bottom: 1px solid #f9f9f9 !important;
    text-decoration: none;
  }

  #offcanvas-menu .menu-item a:active {
    color: var(--ss-brand-alt);
  }

  #offcanvas-menu .menu-item-has-children>a {
    padding-right: 46px !important;
  }

  /* Phone View Absolute Arrow Positioning */
  #offcanvas-menu .dropdown-toggle-btn {
    display: flex !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  #offcanvas-menu .dropdown-toggle-btn::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid #666666;
    border-bottom: 2px solid #666666;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  #offcanvas-menu .menu-item.sub-menu-open>.dropdown-toggle-btn::after {
    transform: rotate(-135deg);
    color: var(--ss-brand-alt);
  }

  #offcanvas-menu .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0 12px !important;
    background-color: #fafafa !important;
    border-left: 2px solid #eeeeee !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #offcanvas-menu .menu-item.sub-menu-open>.sub-menu {
    max-height: 1000px;
  }

  /* Compact Phone Deals Button */
  #offcanvas-menu .sft-header-deal {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    padding: 12px;
    background-color: var(--ss-brand-alt);
    color: var(--ss-white) !important;
    text-decoration: none;
    border-radius: var(--ss-radius);
    font-weight: 600;
    font-size: var(--ss-text-base);
  }

  #offcanvas-menu .sft-header-deal-dot {
    width: 6px;
    height: 6px;
    background: var(--ss-white);
    border-radius: 50%;
    margin-right: 6px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {

  .sft-header-main {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .sft-header-search {
    width: min(500px, 96vw);
    justify-self: stretch;
  }

  .sft-header-main .mobile-menu-trigger,
  .mobile-menu-trigger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 44px;
    background: var(--ss-white);
    border: 1px solid var(--ss-border-cool);
    border-radius: var(--ss-radius);
    cursor: pointer;
    padding: 11px 10px;
    margin: 0;
    z-index: 100;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  }

  .hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #333333;
    border-radius: 2px;
  }

  /* Wider Panel Optimization for Tablet Devices */
  #offcanvas-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    /* Slides open exactly half-width on tablets */
    max-width: 380px;
    height: 100vh;
    background-color: var(--ss-white);
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #offcanvas-menu.is-active {
    transform: translateX(0);
  }

  .menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }

  .menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
  }

  .offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eef0f2;
    font-size: 18px;
    font-weight: 700;
  }

  .mobile-menu-close {
    background: none;
    border: none;
    font-size: 34px;
    color: #444444;
    cursor: pointer;
    line-height: 1;
  }

  .offcanvas-body {
    flex-grow: 1;
    overflow-y: auto;
    /* padding: 15px 24px 40px 24px; */
  }

  /* --- Tablet Structural Accordion Engine --- */
  #offcanvas-menu .sft-header-nav-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: space-between;
    align-items: flex-start;
  }

  #offcanvas-menu .sft-header-nav-list {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0;
  }

  #offcanvas-menu .menu-item {
    position: relative !important;
    display: block !important;
    width: 100% !important;
  }

  #offcanvas-menu .menu-item a {
    display: block !important;
    padding: 16px 0 !important;
    font-size: 16px !important;
    /* color: #2c3e50 !important; */
    border-bottom: 1px solid #f5f5f5 !important;
    text-decoration: none;
  }

  #offcanvas-menu .menu-item-has-children>a {
    padding-right: 50px !important;
  }

  /* Tablet Absolute Size Triggers */
  #offcanvas-menu .dropdown-toggle-btn {
    display: flex !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 52px;
    background: none;
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  #offcanvas-menu .dropdown-toggle-btn::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid #555555;
    border-bottom: 2px solid #555555;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
  }

  #offcanvas-menu .menu-item.sub-menu-open>.dropdown-toggle-btn::after {
    transform: rotate(-135deg);
    color: var(--ss-brand-alt);
  }

  #offcanvas-menu .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 0 0 16px !important;
    background-color: #fafafa !important;
    border-left: 2px solid var(--ss-c-dddddd) !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  #offcanvas-menu .menu-item.sub-menu-open>.sub-menu {
    max-height: 1200px;
  }

  /* Tablet Conversion Button Box */
  #offcanvas-menu .sft-header-deal {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    padding: 14px;
    background-color: var(--ss-brand-alt);
    color: var(--ss-white) !important;
    text-decoration: none;
    border-radius: var(--ss-radius);
    font-weight: 600;
    font-size: var(--ss-text-md);
  }

  #offcanvas-menu .sft-header-deal-dot {
    width: 7px;
    height: 7px;
    background: var(--ss-white);
    border-radius: 50%;
    margin-right: 8px;
  }
}

@media screen and (min-width: 1025px) {

  /* Guarantee mobile systems vanish completely from large viewports */
  .mobile-menu-trigger,
  .offcanvas-header,
  .menu-overlay,
  .dropdown-toggle-btn {
    display: none !important;
  }

  /* Unscoped Reset to keep horizontal layouts from compressing or distorting */
  .sft-header-nav,
  .sft-header-nav-inner,
  .sft-menu-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    /* width: auto !important; */
    /* height: auto !important; */
    position: relative !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* Core Main Desktop List */
  .sft-header-nav-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center !important;
  }

  /* Spacing on the link, not the item, so the gap is part of the target. */
  .sft-header-nav-list>.menu-item {
    position: relative !important;
    display: inline-block !important;
    float: none !important;
  }

  .sft-header-nav-list>.menu-item>a {
    display: block !important;
    padding: 16px 13px !important;
    white-space: nowrap !important; /* one line per label, never a 2-line item */
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s ease !important;
  }

  .sft-header-nav-list>.menu-item>a:hover,
  .sft-header-nav-list .menu-item a:active {
    color: var(--ss-brand-alt) !important;
  }

  /* Visual Dropdown Indicators on Desktop Tiers */
  .sft-header-nav-list .menu-item-has-children>a::after {
    content: " ▾";
    font-size: var(--ss-text-lg);
    color: #888888;
    vertical-align: middle;
  }

  /* --- DESKTOP HOVER DROP PANELS --- */
  .sft-header-nav-list .sub-menu {
    display: block !important;
    /* Keep block format active for operational visibility transitions */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background-color: var(--ss-white) !important;
    min-width: 210px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #eaeaea !important;
    border-radius: 5px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 999 !important;
    width: auto !important;

    /* Clean Smooth Entry Animation States */
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    max-height: none !important;

    /* Clears mobile accordion height rules */
    overflow: visible !important;
    transition: opacity 0.2s ease;
    transform: 0.2s ease;
  }

  /* Support Deep Multi-Level Child Popouts on Desktop (Flips out horizontally) */
  .sft-header-nav-list .sub-menu .sub-menu {
    top: 0 !important;
    left: 100% !important;
    margin-left: 2px !important;
  }

  /* Activate Panels smoothly on Hover */
  .sft-header-nav-list .menu-item:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .sft-header-nav-list .sub-menu .menu-item {
    width: 100% !important;
  }

  .sft-header-nav-list .sub-menu .menu-item a {
    display: block !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    color: #555555 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border-bottom: none !important;
    transition: background-color 0.2s ease;
  }

  .sft-header-nav-list .sub-menu .menu-item a:hover,
  .sft-header-nav-list .sub-menu .menu-item a:active {
    background-color: #f8f9fa !important;
    color: var(--ss-brand-alt) !important;
  }

  /* --- Desktop Format Minimalist Conversion Links --- */
  .sft-header-deal {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 18px !important;
    background-color: var(--ss-brand-alt) !important;
    color: var(--ss-white) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border-radius: 5px !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
  }

  .sft-header-deal:hover {
    background-color: #c92402 !important;
  }

  .sft-header-deal-dot {
    width: 6px;
    height: 6px;
    background-color: var(--ss-white);
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
  }
}

/* Highlights the active main menu link */
.sft-header-nav-list>.current-menu-item>a,
.sft-header-nav-list>.current-menu-ancestor>a,
.sft-header-nav-list>.current_page_item>a {
  color: var(--ss-brand-alt) !important;
  font-weight: 700 !important;
  /* Bold active state */
}

/* Highlights the active link inside a dropdown panel */
.sft-header-nav-list .sub-menu .current-menu-item>a,
.sft-header-nav-list .sub-menu .current_page_item>a {
  color: var(--ss-brand-alt) !important;
  background-color: #fff5f3 !important;
}

/* ACR Menu Custom CSS End */

/* Hamburger -> X morph (applies at every breakpoint where the trigger is visible) */
.mobile-menu-trigger .hamburger-bar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
}

.mobile-menu-trigger.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(6.75px) rotate(45deg);
}

.mobile-menu-trigger.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-trigger.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-6.75px) rotate(-45deg);
}

/* Clearance so the floating WhatsApp button never covers footer legal links */

@media (hover: none), (pointer: coarse) {

  .sft-product-card:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  }
}

@media (max-width: 1024px) {

  /* Keep off-canvas drawer out of the document flow until opened */
  .menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .menu-overlay.is-active {
    pointer-events: auto;
  }
}

@media (max-width: 720px) {

  .site-content {
    padding: 24px 14px;
  }

  /* Sticky-feel header actions for one-thumb shopping */
  .sft-header-action-icon {
    width: 22px;
    height: 22px;
  }

  .sft-header-search {
    height: 44px;
  }

  .sft-header-search-btn {
    min-width: 44px;
  }

  .sft-header-search-input {
    font-size: var(--ss-text-lg);
    /* prevents iOS zoom-on-focus */
  }

  
}

/* Avoid 100vw horizontal bleed from overlays/scrollbars */
.menu-overlay,
#offcanvas-menu {
  max-width: 100%;
}

/* Quantity input — cart, checkout and the PDP add-to-cart form. */
.quantity .qty {
  width: 5em !important;
  height: 48px;
  border-radius: var(--ss-radius);
  border: 1px solid var(--ss-c-dddddd);
  text-align: center;
}

@media (min-width: 320px) and (max-width: 767px) {
  .quantity .qty {
    width: 4em !important;
    height: 40px !important;
  }
}

/* Touch devices: no hover zoom on product-card imagery, wherever cards render. */
@media (hover: none), (pointer: coarse) {
  .sft-product-card:hover .sft-product-card__img,
  .sft-product-card:hover .sft-product-card__media-link img {
    transform: none;
  }
}

/* Shared page hero */
.sft-careers-hero,
.sft-contact-hero,
.sft-faq-hero {
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(28px, 4vw, 40px);
}

/* Shared inner container */
.sft-about-inner {
  width: var(--ss-container-narrow);
  margin: 0 auto;
}
/* Breadcrumb link hover */
.sft-pdp-breadcrumb a:hover,
.sft-shop-breadcrumb a:hover {
  color: var(--ss-ink);
  text-decoration: underline;
}

/* Body-content link */
.sft-faq-answer a,
.sft-privacy-content a,
.sft-terms-content a {
  color: #0f7a3d;
  font-weight: 600;
  text-decoration: none;
}

/* Visually hidden */
.screen-reader-text,
.sft-pdp-actions__live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header account widget (inc/header-account.php) ------------------------ */
.sft-header-account {
  position: relative;
  display: inline-flex;
}

button.sft-header-action--account {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sft-header-account__chev {
  display: inline-block;
  vertical-align: -1px;
  margin-left: 2px;
  transition: transform 0.15s ease;
}

.sft-header-action--account[aria-expanded="true"] .sft-header-account__chev {
  transform: rotate(180deg);
}

.sft-header-account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 99700;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.sft-header-account__menu[hidden] {
  display: none;
}

.sft-header-account__menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ss-ink);
  font-size: var(--ss-text-sm);
  font-weight: 500;
  text-decoration: none;
}

.sft-header-account__menu a:hover,
.sft-header-account__menu a:focus-visible {
  background: #f1f5f9;
  color: var(--ss-brand);
}

.sft-header-account__sep {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #eef0f3;
}

@media (max-width: 767px) {
  /* Bottom nav carries Account on phones (css/mobile-nav.css hides the link). */
  .sft-header-account {
    display: none;
  }
}

/* Mobile drawer extras (header.php) ------------------------------------- */
.sft-drawer-extra {
  display: none;
}

/* Same 18px gutter, 48px rows and divider colour as the category rows above,
   so the drawer reads as one list. */
@media screen and (max-width: 1024px) {
  .sft-drawer-extra {
    display: block;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 8px solid #f6f7f9;
  }

  .sft-drawer-extra .sft-drawer-extra__title {
    margin: 0;
    padding: 16px 18px 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .sft-drawer-extra__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .sft-drawer-extra__list li {
    margin: 0;
    border-bottom: 1px solid #f1f4f8;
  }

  .sft-drawer-extra__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 16px 12px 18px;
    color: #1f2937;
    font-size: 14.5px;
    line-height: 1.4;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sft-drawer-extra__list a:active {
    background: #f8fafc;
  }

  .sft-drawer-extra__list a:hover,
  .sft-drawer-extra__list a:focus-visible {
    color: var(--ss-brand);
  }

  .sft-drawer-extra__icon {
    flex: none;
    width: 19px;
    height: 19px;
    color: #94a3b8;
    transition: color 0.15s ease;
  }

  .sft-drawer-extra__list a:hover .sft-drawer-extra__icon,
  .sft-drawer-extra__list a:focus-visible .sft-drawer-extra__icon {
    color: var(--ss-brand);
  }

  .sft-drawer-extra__label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .sft-drawer-extra__chev {
    flex: none;
    width: 16px;
    height: 16px;
    color: #cbd5e1;
  }

  .sft-drawer-extra__call {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #16a34a;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
    color: #fff !important;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease;
  }

  .sft-drawer-extra__call:hover,
  .sft-drawer-extra__call:active {
    background: #15803d;
  }

  .sft-drawer-extra__call:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
  }

  .sft-drawer-extra__call-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
  }

  .sft-drawer-extra__call-icon svg {
    width: 18px;
    height: 18px;
  }

  .sft-drawer-extra__call-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .sft-drawer-extra__call-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
  }

  .sft-drawer-extra__call-num {
    font-weight: 600;
    white-space: nowrap;
  }

  .sft-drawer-extra__hours {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0.9;
  }

  /* Deals button now has a section break below it. */
  #offcanvas-menu .sft-header-nav .sft-header-deal {
    margin-bottom: 18px;
  }
}
