@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/assistant-400.ttf") format("truetype");
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/assistant-600.ttf") format("truetype");
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/assistant-700.ttf") format("truetype");
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/assistant-800.ttf") format("truetype");
}
:root {
  --ts-primary: #0068ef;
  --ts-navy: #0b2247;
  --ts-cyan: #18b4ed;
  --ts-ink: #17243a;
  --ts-muted: #64728a;
  --ts-bg: #f4f7fa;
  --ts-line: #e4eaf1;
  --ts-width: 1280px;
  --ts-radius: 10px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}
body {
  margin: 0;
  color: var(--ts-ink);
  background: #fff;
  font-family: "Assistant", Arial, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
h1,
h2,
h3,
h4 {
  color: var(--ts-navy);
  line-height: 1.2;
  margin: 0 0 0.65em;
  font-weight: 750;
}
h1 {
  font-size: clamp(30px, 3.4vw, 48px);
}
h2 {
  font-size: clamp(24px, 2.3vw, 30px);
}
h3 {
  font-size: 18px;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--ts-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
input,
textarea,
select {
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ts-ink);
}
input:focus,
textarea:focus {
  border-color: var(--ts-primary);
}
:focus-visible {
  outline: 3px solid var(--ts-cyan);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
svg {
  flex-shrink: 0;
}
.ts-icon {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  display: inline-block;
}
.ts-wrap {
  max-width: var(--ts-width);
  width: calc(100% - 64px);
  margin-inline: auto;
}
.ts-page {
  padding-block: 45px 70px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 10px;
  right: 10px;
  padding: 12px;
  background: #fff;
  z-index: 9999;
}
.ts-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--ts-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: filter 0.2s, transform 0.2s;
}
.ts-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--ts-primary);
  color: #fff;
  filter: brightness(0.92);
  text-decoration: none;
  transform: translateY(-1px);
}
.ts-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.ts-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--ts-cyan);
  margin-bottom: 14px;
}
.ts-text-link {
  font-weight: 600;
  font-size: 14px;
}
.ts-empty {
  padding: 35px;
  text-align: center;
  background: var(--ts-bg);
  border-radius: var(--ts-radius);
}
.ts-header {
  background: #fff;
  position: relative;
  z-index: 50;
  box-shadow: 0 1px 8px #0b224708;
}
.ts-sticky .ts-header {
  position: sticky;
  top: 0;
}
.admin-bar.ts-sticky .ts-header {
  top: 32px;
}
.ts-top {
  min-height: 25px;
  display: flex;
  justify-content: center;
}
.ts-top ul {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 5px 0;
  font-size: 12px;
}
.ts-top a {
  color: var(--ts-navy);
}
.ts-header-main {
  display: grid;
  grid-template-columns: 330px minmax(200px, 1fr) 220px;
  grid-template-areas: "actions search logo";
  gap: 48px;
  align-items: center;
  padding-block: 8px 20px;
  direction: ltr;
}
.ts-header-main > * {
  direction: rtl;
}
.ts-logo {
  grid-area: logo;
  text-align: right;
}
.ts-search-wrap {
  grid-area: search;
}
.ts-header-actions {
  grid-area: actions;
}
.ts-wordmark {
  display: inline-flex;
  flex-direction: column;
  color: var(--ts-navy);
  text-decoration: none;
  direction: ltr;
  line-height: 1.05;
}
.ts-wordmark:hover {
  text-decoration: none;
}
.ts-wordmark > span {
  font-size: 36px;
  letter-spacing: -2px;
  font-weight: 900;
}
.ts-wordmark b {
  color: var(--ts-cyan);
}
.ts-wordmark small {
  font-size: 13px;
  letter-spacing: 0;
  direction: rtl;
  margin-top: 4px;
}
.custom-logo-link img {
  max-width: 210px;
  max-height: 75px;
  object-fit: contain;
}
.ts-search-wrap {
  position: relative;
}
.ts-search {
  display: flex;
  position: relative;
  background: var(--ts-bg);
  border: 1px solid var(--ts-line);
  border-radius: 7px;
  overflow: hidden;
}
.ts-search input[type="search"] {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 8px 14px;
}
.ts-search button {
  border: 0;
  background: var(--ts-primary);
  color: white;
  min-width: 52px;
}
.ts-search-wrap > small {
  font-size: 11px;
  color: var(--ts-muted);
}
.ts-header-actions {
  display: flex;
  justify-content: space-between;
}
.ts-header-actions > a,
.ts-header-actions > button {
  background: none;
  border: 0;
  border-inline-start: 1px solid var(--ts-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--ts-navy);
  font-size: 12px;
  text-decoration: none;
  min-height: 44px;
}
.ts-header-actions > :first-child {
  border: 0;
}
.ts-cart-count,
[data-ts-compare-count] {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 1px 4px;
  border-radius: 20px;
  background: var(--ts-primary);
  color: #fff;
  font-size: 11px;
}
.ts-nav-border {
  border-top: 1px solid #f4f7fa;
  background: linear-gradient(#fff, #f7f9fb);
}
.ts-nav-row {
  display: flex;
  align-items: stretch;
  gap: 25px;
  position: relative;
}
.ts-mega > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 14px 24px;
  background: #0067bd;
  color: #fff;
  font-weight: 700;
  border-radius: 5px 5px 0 0;
  font-size: 14px;
  min-width: 195px;
}
.ts-mega > summary::-webkit-details-marker {
  display: none;
}
.ts-mega-panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: #fff;
  box-shadow: 0 18px 40px #071c3430;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 30px;
  max-height: 65vh;
  overflow: auto;
  border: 1px solid var(--ts-line);
  border-radius: 0 0 12px 12px;
}
.ts-mega-panel a {
  display: block;
  padding: 5px 0;
  color: var(--ts-ink);
  font-size: 14px;
}
.ts-mega-panel .ts-mega-parent {
  font-weight: 700;
  color: var(--ts-primary);
  font-size: 16px;
  margin-bottom: 8px;
}
#ts-main-nav {
  flex: 1;
}
#ts-main-nav > ul {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
}
#ts-main-nav li {
  position: relative;
}
#ts-main-nav a {
  display: block;
  padding: 16px 9px;
  color: var(--ts-navy);
  font-size: 14px;
  font-weight: 700;
}
#ts-main-nav .sub-menu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  padding: 8px;
  background: #fff;
  min-width: 220px;
  border: 1px solid var(--ts-line);
  box-shadow: 0 10px 25px #00153520;
}
#ts-main-nav .sub-menu .sub-menu {
  top: 0;
  inset-inline-start: 100%;
}
#ts-main-nav li:hover > .sub-menu,
#ts-main-nav li:focus-within > .sub-menu {
  display: block;
}
.ts-mobile-toggle {
  display: none;
}
.ts-footer {
  background: #091b31;
  color: #b8c7dc;
  margin-top: 40px;
  padding-top: 48px;
  font-size: 14px;
}
.ts-footer h2,
.ts-footer h3 {
  color: #fff;
}
.ts-footer a {
  color: #ccdcf0;
}
.ts-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 35px;
  border-bottom: 1px solid #ffffff1a;
}
.ts-footer-cta p {
  margin-bottom: 0;
}
.ts-footer-cta .ts-button {
  color: white;
}
.ts-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 55px;
  padding-block: 45px;
}
.ts-footer-grid .ts-wordmark {
  color: #fff;
  margin-bottom: 24px;
}
.ts-footer-grid h3 {
  font-size: 17px;
}
.ts-footer-grid ul {
  padding: 0;
  list-style: none;
  margin: 0;
}
.ts-footer-grid li {
  margin-bottom: 9px;
}
.ts-footer-bottom {
  border-top: 1px solid #ffffff1a;
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.ts-whatsapp {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: #168445;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px #0002;
  z-index: 45;
}
.ts-shop-layout.has-sidebar {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 35px;
}
.ts-filter {
  background: var(--ts-bg);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: var(--ts-radius);
}
.woocommerce ul.products li.product {
  border: 1px solid var(--ts-line);
  padding: 16px;
  border-radius: var(--ts-radius);
  background: white;
  text-align: center;
}
.woocommerce ul.products li.product a img {
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 18px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  color: var(--ts-navy);
}
.woocommerce ul.products li.product .price {
  font-size: 22px;
  font-weight: 700;
  color: var(--ts-navy);
}
.woocommerce ul.products li.product .price del {
  font-size: 14px;
}
.woocommerce ul.products li.product .star-rating {
  margin: 10px auto;
  color: #f1a20c;
}
.woocommerce span.onsale {
  background: var(--ts-primary);
  color: #fff;
  min-height: 0;
  min-width: 0;
  line-height: 1.6;
  padding: 3px 10px;
  border-radius: 5px;
  top: 10px;
  left: 10px;
}
.woocommerce div.product p.price {
  color: var(--ts-navy);
  font-size: 30px;
}
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--ts-primary);
  color: #fff;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: var(--ts-bg);
  border-color: var(--ts-line);
}
.woocommerce table.shop_table {
  border-color: var(--ts-line);
  border-radius: 8px;
}
.woocommerce .quantity .qty {
  padding: 9px 4px;
  min-width: 65px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.woocommerce .woocommerce-ordering select {
  font-size: 14px;
}
.woocommerce-message {
  border-top-color: var(--ts-primary);
}
.ts-post {
  padding: 30px 0;
  border-bottom: 1px solid var(--ts-line);
}
.ts-post img {
  margin-bottom: 20px;
}
.ts-comments {
  padding-block: 30px;
}
.ts-comments textarea {
  display: block;
  width: 100%;
}
@media (max-width: 1100px) {
  .ts-header-main {
    grid-template-columns: 180px 1fr 280px;
    gap: 20px;
  }
  .ts-header-actions > a,
  .ts-header-actions > button {
    padding-inline: 10px;
  }
  .ts-wordmark > span {
    font-size: 30px;
  }
  .ts-nav-row {
    gap: 12px;
  }
  #ts-main-nav a {
    font-size: 12px;
    padding-inline: 6px;
  }
  .ts-footer-grid {
    gap: 28px;
  }
  .ts-wrap {
    width: calc(100% - 40px);
  }
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 160px;
  }
  .ts-wrap {
    width: calc(100% - 15px);
  }
  .ts-header-main {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
    gap: 14px;
    padding-block: 12px;
  }
  .ts-logo {
    text-align: right;
    order: 0;
    grid-column: 2;
  }
  .ts-header-actions {
    order: 0;
    grid-column: 1;
    grid-row: 1;
  }
  .ts-header-actions > a,
  .ts-header-actions > button {
    font-size: 10px;
    padding-inline: 8px;
  }
  .ts-header-actions .ts-icon {
    width: 22px;
    height: 22px;
  }
  .ts-search-wrap {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .ts-search-wrap > small {
    display: none;
  }
  .ts-top {
    display: none;
  }
  .ts-wordmark > span {
    font-size: 27px;
  }
  .ts-wordmark small {
    font-size: 10px;
  }
  .custom-logo-link img {
    max-width: 150px;
  }
  .ts-mega > summary {
    min-width: 0;
    font-size: 13px;
    padding: 10px 14px;
  }
  .ts-nav-row {
    justify-content: space-between;
  }
  .ts-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    font-weight: 700;
  }
  #ts-main-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #fff;
    box-shadow: 0 12px 20px #0002;
    max-height: 60vh;
    overflow: auto;
  }
  #ts-main-nav.is-open {
    display: block;
  }
  #ts-main-nav > ul {
    display: block;
  }
  #ts-main-nav a {
    font-size: 15px;
    padding: 12px 18px;
  }
  #ts-main-nav .sub-menu,
  #ts-main-nav .sub-menu .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: 0;
    padding-inline-start: 18px;
  }
  .ts-mega-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
  }
  .ts-footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .ts-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ts-footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .ts-footer-bottom {
    display: block;
  }
  .ts-footer-bottom > * {
    display: block;
    margin-bottom: 10px;
  }
  .ts-shop-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
  .ts-shop-layout > aside {
    max-height: 300px;
    overflow: auto;
  }
  .ts-page {
    padding-block: 28px;
  }
  .ts-sticky.admin-bar .ts-header {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .ts-sticky.admin-bar .ts-header {
    top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* AJAX Side Cart */
body.ts-sidecart-open {
  overflow: hidden;
}
.ts-sidecart-overlay {
  position: fixed;
  inset: 0;
  background: #07152580;
  backdrop-filter: blur(2px);
  z-index: 99990;
}
.ts-sidecart {
  position: fixed;
  z-index: 99991;
  top: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: #fff;
  transition: transform 0.28s ease;
  overflow: hidden;
  direction: rtl;
  will-change: transform;
}
.ts-sidecart-right {
  right: 0;
  left: auto;
  transform: translate3d(105%, 0, 0);
  box-shadow: -15px 0 45px #07152525;
}
.ts-sidecart-left {
  left: 0;
  right: auto;
  transform: translate3d(-105%, 0, 0);
  box-shadow: 15px 0 45px #07152525;
}
.ts-sidecart.is-open {
  transform: translate3d(0, 0, 0);
}
.ts-sidecart-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ts-sidecart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--ts-line);
}
.ts-sidecart-head small {
  color: var(--ts-muted);
}
.ts-sidecart-head h2 {
  font-size: 22px;
  margin: 2px 0 0;
}
.ts-sidecart-badge {
  display: inline-grid;
  place-items: center;
  background: var(--ts-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  min-width: 23px;
  height: 23px;
}
.ts-sidecart-close {
  border: 0;
  background: var(--ts-bg);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.ts-sidecart-close .ts-icon {
  width: 20px;
}
.ts-sidecart-items {
  overflow: auto;
  padding: 8px 24px;
  flex: 1;
}
.ts-sidecart-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 16px 24px 16px 0;
  border-bottom: 1px solid var(--ts-line);
}
.ts-sidecart-thumb img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 1px solid var(--ts-line);
  border-radius: 9px;
}
.ts-sidecart-name {
  font-weight: 700;
  color: var(--ts-navy);
  display: block;
  line-height: 1.25;
  margin-bottom: 7px;
}
.ts-sidecart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.ts-sidecart-qty {
  display: flex;
  border: 1px solid var(--ts-line);
  border-radius: 7px;
  overflow: hidden;
}
.ts-sidecart-qty button {
  border: 0;
  background: var(--ts-bg);
  width: 29px;
}
.ts-sidecart-qty input {
  width: 38px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  text-align: center;
  -moz-appearance: textfield;
}
.ts-sidecart-qty input::-webkit-inner-spin-button {
  display: none;
}
.ts-sidecart-remove {
  position: absolute;
  inset-inline-end: 0;
  top: 16px;
  border: 0;
  background: none;
  color: #9aa6b5;
  font-size: 23px;
  line-height: 1;
}
.ts-sidecart-upsells {
  padding: 16px 24px;
  border-top: 1px solid var(--ts-line);
  background: #f8fafc;
}
.ts-sidecart-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ts-sidecart-section-title h3 {
  font-size: 16px;
  margin: 0;
}
.ts-sidecart-section-title small {
  color: var(--ts-muted);
}
.ts-sidecart-upsell-list {
  display: grid;
  gap: 8px;
}
.ts-sidecart-upsell-list article {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--ts-line);
  border-radius: 9px;
  padding: 7px;
}
.ts-sidecart-upsell-list article > a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ts-ink);
}
.ts-sidecart-upsell-list img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ts-sidecart-upsell-list span {
  font-size: 13px;
  line-height: 1.2;
}
.ts-sidecart-upsell-list b {
  display: block;
  color: var(--ts-navy);
  margin-top: 4px;
}
.ts-sidecart-upsell-list button {
  border: 0;
  background: var(--ts-primary);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 20px;
}
.ts-sidecart-foot {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--ts-line);
  box-shadow: 0 -8px 20px #07152508;
}
.ts-sidecart-total {
  display: flex;
  justify-content: space-between;
  font-size: 19px;
}
.ts-sidecart-note {
  text-align: center;
  color: var(--ts-muted);
  font-size: 12px;
  margin: 4px 0 12px;
}
.ts-sidecart-checkout {
  display: flex;
  width: 100%;
}
.ts-sidecart-cartlink {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
}
.ts-sidecart-empty {
  margin: auto;
  text-align: center;
  padding: 35px;
}
.ts-sidecart-empty > .ts-icon {
  width: 55px;
  height: 55px;
  color: var(--ts-primary);
  margin-bottom: 15px;
}
.ts-sidecart.is-loading .ts-sidecart-inner {
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 600px) {
  .ts-sidecart {
    width: 100vw;
  }
  .ts-sidecart-head,
  .ts-sidecart-items,
  .ts-sidecart-upsells,
  .ts-sidecart-foot {
    padding-inline: 18px;
  }
}
/* Side Cart 1.1.8 */
.ts-sidecart-unit-price {
  font-size: 12px;
  color: #77839a;
  margin-top: 4px;
  direction: rtl;
}

/* 1.1.11 - polished header actions + stable AJAX cart badge */
.ts-header-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
}
.ts-header-actions > .ts-header-action {
  position: relative;
  min-width: 86px;
  min-height: 58px;
  padding: 4px 18px !important;
  gap: 6px !important;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.ts-header-actions > .ts-header-action:hover {
  color: var(--ts-primary);
  background: #f8fbff;
  text-decoration: none;
}
.ts-header-actions > .ts-header-action:active {
  transform: translateY(1px);
}
.ts-header-actions > .ts-header-action + .ts-header-action {
  border-inline-start: 1px solid var(--ts-line);
}
.ts-header-actions > .ts-header-action:first-child {
  border-inline-start: 0;
}
.ts-action-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  line-height: 1;
}
.ts-action-icon .ts-icon {
  width: 25px;
  height: 25px;
}
.ts-action-label {
  display: block;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.25;
}
.ts-action-badge,
.ts-action-icon > .ts-cart-count,
.ts-cart-count.ts-action-badge,
[data-ts-compare-count].ts-action-badge {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -11px;
  display: grid;
  place-items: center;
  min-width: 19px;
  width: auto;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ts-primary);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.14);
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
}
.ts-action-badge:empty {
  display: none;
}

/* Product with no configured WooCommerce price: keep custom actions (quote etc.)
   but hide the regular quantity + Add to cart controls on the single page. */
body.single-product.d4s-product-no-price
  form.cart
  > button.single_add_to_cart_button {
  display: none !important;
}
/* Quote-only products still use WooCommerce's native quantity field. */
body.single-product.d4s-product-no-price form.cart > .quantity {
  display: flex !important;
}
.woocommerce a.button.d4s-more-info {
  cursor: pointer;
}

@media (max-width: 767px) {
  .ts-header-actions > .ts-header-action {
    min-width: 58px;
    min-height: 50px;
    padding: 3px 8px !important;
  }
  .ts-action-icon {
    width: 27px;
    height: 27px;
  }
  .ts-action-icon .ts-icon {
    width: 22px;
    height: 22px;
  }
  .ts-action-label {
    font-size: 10px;
  }
  .ts-action-badge,
  .ts-action-icon > .ts-cart-count,
  .ts-cart-count.ts-action-badge,
  [data-ts-compare-count].ts-action-badge {
    top: -6px;
    right: -9px;
  }
}

/* 1.1.12 - Professional blog/archive cards */
.ts-post-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid #e3e9f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(11, 34, 71, 0.035);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ts-post-card:hover {
  border-color: #d3dce7;
  box-shadow: 0 12px 34px rgba(11, 34, 71, 0.09);
  transform: translateY(-2px);
}
.ts-post-image {
  display: block;
  min-height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ts-bg);
  text-decoration: none;
}
.ts-post-image:hover {
  text-decoration: none;
}
.ts-post-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  max-height: 220px;
  margin: 0 !important;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.ts-post-card:hover .ts-post-image img {
  transform: scale(1.025);
}
.ts-post-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, #f3f6f9, #e8eef5);
}
.ts-post-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 5px 4px 3px;
}
.ts-post-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
}
.ts-post-title a {
  color: var(--ts-navy);
  text-decoration: none;
}
.ts-post-title a:hover {
  color: var(--ts-primary);
  text-decoration: none;
}
.ts-post-excerpt {
  color: var(--ts-muted);
  font-size: 16px;
  line-height: 1.75;
}
.ts-post-excerpt p {
  margin: 0;
}
.ts-post-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 122px;
  margin-top: auto;
  padding: 10px 20px;
  border: 1px solid var(--ts-navy);
  border-radius: 7px;
  background: #fff;
  color: var(--ts-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}
.ts-post-more:hover {
  background: var(--ts-navy);
  border-color: var(--ts-navy);
  color: #fff;
  text-decoration: none;
  transform: translateX(-2px);
}
.ts-post-more-arrow {
  font-size: 17px;
  line-height: 1;
}
.ts-post-single {
  padding: 0;
  border-bottom: 0;
}
.navigation.pagination {
  margin-top: 34px;
}
@media (max-width: 800px) {
  .ts-post-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
  }
  .ts-post-image,
  .ts-post-image img,
  .ts-post-image-placeholder {
    min-height: 175px;
  }
  .ts-post-image img {
    max-height: 190px;
  }
}
@media (max-width: 600px) {
  .ts-archive-title {
    margin-bottom: 24px;
  }
  .ts-post-card {
    display: block;
    padding: 14px;
    border-radius: 12px;
  }
  .ts-post-image {
    margin-bottom: 18px;
  }
  .ts-post-image,
  .ts-post-image img,
  .ts-post-image-placeholder {
    min-height: 210px;
  }
  .ts-post-image img {
    height: 210px;
    max-height: none;
  }
  .ts-post-content {
    padding: 0 3px 3px;
  }
  .ts-post-title {
    font-size: 22px;
  }
  .ts-post-excerpt {
    font-size: 15px;
  }
  .ts-post-more {
    margin-top: 20px;
  }
}

/* 1.1.13 - Modern single article */
.single-post .ts-page {
  max-width: 1120px;
  padding-top: 50px;
  padding-bottom: 80px;
}
.ts-post-single {
  max-width: 100%;
  margin: 0 auto;
  color: var(--ts-navy);
}
.ts-article-header {
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}
.ts-article-kicker {
  margin-bottom: 12px;
  color: var(--ts-primary);
  font-size: 14px;
  font-weight: 800;
}
.ts-article-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.ts-article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ts-muted);
  font-size: 14px;
}
.ts-article-hero {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ts-bg);
  box-shadow: 0 12px 40px rgba(11, 34, 71, 0.08);
}
.ts-article-hero img {
  display: block;
  width: 100%;
  max-height: 590px;
  margin: 0 !important;
  object-fit: cover;
}
.ts-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 38px;
  padding: 14px 16px;
  border: 1px solid #e4e9f0;
  border-radius: 12px;
  background: #fff;
}
.ts-share-label {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.ts-share-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ts-share-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ts-navy);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s ease;
}
.ts-share-btn:hover {
  border-color: var(--ts-navy);
  background: var(--ts-navy);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.ts-share-whatsapp:hover {
  border-color: #128c7e;
  background: #128c7e;
}
.ts-share-facebook:hover {
  border-color: #1877f2;
  background: #1877f2;
}
.ts-share-linkedin:hover {
  border-color: #0a66c2;
  background: #0a66c2;
}
.ts-share-copy.is-copied {
  border-color: #15803d;
  background: #15803d;
  color: #fff;
}
.ts-article-content {
  max-width: 820px;
  margin: 0 auto;
  color: #27364d;
  font-size: 18px;
  line-height: 1.9;
}
.ts-article-content > p {
  margin: 0 0 1.35em;
}
.ts-article-content h2 {
  margin: 2em 0 0.7em;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.25;
  color: var(--ts-navy);
}
.ts-article-content h3 {
  margin: 1.7em 0 0.65em;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.3;
  color: var(--ts-navy);
}
.ts-article-content h4 {
  margin: 1.5em 0 0.6em;
  font-size: 21px;
  color: var(--ts-navy);
}
.ts-article-content ul,
.ts-article-content ol {
  margin: 0 0 1.5em;
  padding-right: 24px;
}
.ts-article-content li {
  margin-bottom: 0.45em;
}
.ts-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.ts-article-content figure {
  margin: 2em 0;
}
.ts-article-content figcaption {
  margin-top: 8px;
  color: var(--ts-muted);
  font-size: 13px;
  text-align: center;
}
.ts-article-content blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  border-right: 4px solid var(--ts-primary);
  border-radius: 0 10px 10px 0;
  background: #f5f8fc;
  color: #34445c;
  font-size: 19px;
}
.ts-article-content table {
  width: 100%;
  margin: 2em 0;
  border-collapse: collapse;
}
.ts-article-content th,
.ts-article-content td {
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  text-align: right;
}
.ts-article-content th {
  background: #f6f8fb;
  color: var(--ts-navy);
}
.ts-article-content a {
  font-weight: 600;
}
.ts-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 900px;
  margin: 55px auto 0;
  padding: 25px;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: #f7f9fc;
}
.ts-article-footer > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ts-article-footer strong {
  font-size: 18px;
}
.ts-article-footer span {
  color: var(--ts-muted);
  font-size: 14px;
}
@media (max-width: 700px) {
  .single-post .ts-page {
    padding: 30px 15px 55px;
  }
  .ts-article-header {
    margin-bottom: 24px;
  }
  .ts-article-title {
    font-size: 34px;
  }
  .ts-article-hero {
    border-radius: 12px;
  }
  .ts-share-bar,
  .ts-article-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .ts-share-bar {
    margin-bottom: 28px;
  }
  .ts-share-buttons {
    width: 100%;
  }
  .ts-share-btn {
    flex: 1 1 calc(50% - 8px);
  }
  .ts-article-content {
    font-size: 16.5px;
    line-height: 1.85;
  }
  .ts-article-footer {
    margin-top: 40px;
    padding: 20px;
  }
}

/* 1.1.14 - Article sharing icons, reading progress and recommended products */
.ts-reading-progress {
  position: fixed;
  top: var(--ts-reading-progress-top, 0px);
  left: 0;
  right: 0;
  height: 4px;
  z-index: 99999;
  pointer-events: none;
  background: rgba(7, 26, 61, 0.06);
  transition: top 0.12s ease;
}
.admin-bar .ts-reading-progress {
  top: var(--ts-reading-progress-top, 32px);
}
.ts-reading-progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ts-primary);
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(40, 100, 220, 0.28);
}
.ts-share-btn {
  gap: 8px;
}
.ts-share-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
}
.ts-share-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.ts-share-copy .ts-share-icon svg {
  fill: none;
}
.ts-share-whatsapp {
  color: #128c7e;
}
.ts-share-facebook {
  color: #1877f2;
}
.ts-share-linkedin {
  color: #0a66c2;
}
.ts-share-copy {
  color: #334155;
}
.ts-share-whatsapp:hover,
.ts-share-facebook:hover,
.ts-share-linkedin:hover,
.ts-share-copy:hover {
  color: #fff;
}
.ts-article-products {
  max-width: 1120px;
  margin: 60px auto 0;
  padding: 30px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: #f8fafc;
  overflow: hidden;
}
.ts-article-products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.ts-products-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--ts-primary);
  font-size: 12px;
  font-weight: 800;
}
.ts-article-products-head h2 {
  margin: 0;
  font-size: 28px;
  color: var(--ts-navy);
}
.ts-product-carousel-nav {
  display: flex;
  gap: 8px;
}
.ts-product-carousel-nav button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3eb;
  border-radius: 9px;
  background: #fff;
  color: var(--ts-navy);
  cursor: pointer;
  transition: 0.2s;
}
.ts-product-carousel-nav button:hover {
  border-color: var(--ts-navy);
  background: var(--ts-navy);
  color: #fff;
}
.ts-product-carousel-nav button:first-child .ts-icon {
  transform: rotate(180deg);
}
.ts-product-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.ts-product-carousel::-webkit-scrollbar {
  display: none;
}
.ts-article-product-card {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  border: 1px solid #e4e9f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: 0.2s;
}
.ts-article-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(7, 26, 61, 0.08);
}
.ts-article-product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  padding: 14px;
  background: #fff;
}
.ts-article-product-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ts-article-product-body {
  padding: 16px;
  border-top: 1px solid #eef1f5;
}
.ts-article-product-body h3 {
  min-height: 44px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}
.ts-article-product-body h3 a {
  color: var(--ts-navy);
  text-decoration: none;
}
.ts-article-product-price {
  min-height: 28px;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--ts-navy);
}
.ts-article-product-btn {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--ts-navy);
  border-radius: 8px;
  background: var(--ts-navy);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: 0.2s;
}
.ts-article-product-btn:hover {
  background: var(--ts-primary);
  border-color: var(--ts-primary);
}
@media (max-width: 900px) {
  .ts-article-product-card {
    flex-basis: calc((100% - 32px) / 3);
  }
}
@media (max-width: 700px) {
  .admin-bar .ts-reading-progress {
    top: var(--ts-reading-progress-top, 46px);
  }
  .ts-share-btn {
    min-width: 0;
  }
  .ts-share-icon {
    width: 19px;
    height: 19px;
  }
  .ts-article-products {
    margin-top: 42px;
    padding: 20px 15px;
    border-radius: 14px;
  }
  .ts-article-products-head {
    align-items: center;
  }
  .ts-article-products-head h2 {
    font-size: 22px;
  }
  .ts-product-carousel-nav button {
    width: 36px;
    height: 36px;
  }
  .ts-article-product-card {
    flex-basis: 78%;
  }
  .ts-article-product-image {
    height: 175px;
  }
}

/* 1.1.16 - Premium WooCommerce single product */
.single-product .ts-shop-layout {
  display: block;
}
.single-product .ts-shop-content {
  max-width: 100%;
}
.single-product div.product {
  position: relative;
}
.single-product div.product .summary {
  padding: 10px 0 0;
}
.single-product div.product .product_title {
  margin-bottom: 12px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.single-product div.product .woocommerce-product-rating {
  margin-bottom: 16px;
  color: #64748b;
}
.single-product div.product p.price {
  margin: 12px 0 18px;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ts-navy);
}
.single-product div.product p.price del {
  font-size: 17px;
  font-weight: 500;
  color: #94a3b8;
}
.single-product div.product p.price ins {
  text-decoration: none;
}
.single-product .woocommerce-product-details__short-description {
  margin-bottom: 22px;
  color: #475569;
  font-size: 16.5px;
  line-height: 1.8;
}
.single-product div.product form.cart {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px !important;
  padding: 18px 0;
  border-top: 1px solid #e8edf3;
  border-bottom: 1px solid #e8edf3;
}
.single-product div.product form.cart .quantity {
  position: relative;
  display: flex;
  align-items: center;
  width: 126px;
  height: 48px;
  margin: 0 !important;
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.single-product div.product form.cart .quantity .qty {
  width: 48px !important;
  min-width: 48px;
  height: 46px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  text-align: center;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}
.single-product div.product form.cart .quantity .qty::-webkit-outer-spin-button,
.single-product
  div.product
  form.cart
  .quantity
  .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.ts-product-qty-btn {
  width: 38px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  padding: 0;
  border: 0;
  background: #f7f9fc;
  color: var(--ts-navy);
  font-size: 20px;
  font-weight: 500;
  transition: 0.2s;
}
.ts-product-qty-btn:hover {
  background: #edf3fa;
  color: var(--ts-primary);
}
.single-product div.product form.cart .single_add_to_cart_button {
  min-height: 48px;
  padding-inline: 30px;
  border-radius: 9px !important;
  font-size: 16px;
  box-shadow: 0 7px 18px rgba(0, 104, 239, 0.16);
}
.single-product div.product form.cart .d4s-quote-button,
.single-product
  div.product
  form.cart
  button:not(.single_add_to_cart_button):not(.ts-product-qty-btn) {
  min-height: 48px;
  border-radius: 9px !important;
}
/* Meta: one clean row per value */
.single-product .product_meta {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 22px;
  padding: 16px 0 0;
  border-top: 1px solid #e8edf3;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}
.single-product .product_meta > span {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 7px 0;
  border: 0;
}
.single-product .product_meta a {
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}
.single-product .product_meta a:hover {
  color: var(--ts-primary);
}
/* Value proposition */
.ts-product-value {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 12px;
}
.ts-product-value-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid #e5eaf0;
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ts-product-value-item:hover {
  border-color: #cfd9e6;
  box-shadow: 0 7px 22px rgba(11, 34, 71, 0.06);
  transform: translateY(-1px);
}
.ts-product-value-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  border-radius: 10px;
  background: #f0f6ff;
  color: var(--ts-primary);
}
.ts-product-value-icon svg {
  width: 22px;
  height: 22px;
}
.ts-product-value-item > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.ts-product-value-item strong {
  color: var(--ts-navy);
  font-size: 14px;
  line-height: 1.3;
}
.ts-product-value-item small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.35;
}
.ts-product-project-note {
  margin: 8px 0 4px;
  padding: 11px 14px;
  border-radius: 9px;
  background: #f7f9fc;
  color: #475569;
  font-size: 13.5px;
}
.ts-product-project-note a {
  font-weight: 800;
}
/* Gallery: vertical thumbnails on the right in RTL */
@media (min-width: 769px) {
  .single-product div.product div.images.woocommerce-product-gallery {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-areas: "thumbs main";
    gap: 16px;
    align-items: start;
  }
  .single-product .woocommerce-product-gallery__wrapper {
    grid-area: main;
    min-width: 0;
    margin: 0 !important;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }
  .single-product .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 24px;
  }
  .single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    max-height: 540px;
    object-fit: contain;
    margin: 0 !important;
  }
  .single-product .flex-viewport {
    grid-area: main;
    border: 1px solid #e7ebf0;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }
  .single-product .flex-viewport .woocommerce-product-gallery__wrapper {
    border: 0;
    border-radius: 0;
  }
  .single-product .flex-control-thumbs {
    grid-area: thumbs;
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    margin: 0 !important;
    padding: 0 3px 0 0 !important;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
  .single-product .flex-control-thumbs li {
    width: 72px !important;
    float: none !important;
    margin: 0 !important;
    flex: 0 0 72px;
  }
  .single-product .flex-control-thumbs img {
    width: 72px !important;
    height: 72px !important;
    padding: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    opacity: 0.7 !important;
    transition: 0.2s;
  }
  .single-product .flex-control-thumbs img:hover,
  .single-product .flex-control-thumbs img.flex-active {
    border-color: var(--ts-primary);
    box-shadow: 0 0 0 2px rgba(0, 104, 239, 0.08);
    opacity: 1 !important;
  }
}
.single-product .woocommerce-product-gallery__trigger {
  top: 14px !important;
  left: 14px !important;
  right: auto !important;
  width: 42px !important;
  height: 42px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
  z-index: 8;
}
/* Tabs / related products */
.single-product .woocommerce-tabs {
  margin-top: 55px;
  padding-top: 10px;
}
.single-product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  padding: 0 !important;
  border-bottom: 1px solid #e3e8ef !important;
}
.single-product .woocommerce-tabs ul.tabs:before {
  display: none !important;
}
.single-product .woocommerce-tabs ul.tabs li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px 9px 0 0 !important;
  background: transparent !important;
}
.single-product .woocommerce-tabs ul.tabs li:before,
.single-product .woocommerce-tabs ul.tabs li:after {
  display: none !important;
}
.single-product .woocommerce-tabs ul.tabs li a {
  padding: 13px 18px !important;
  color: #64748b !important;
}
.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--ts-navy) !important;
  border-bottom: 2px solid var(--ts-primary);
}
.single-product .woocommerce-tabs .panel {
  padding: 25px 0;
  color: #475569;
  line-height: 1.85;
}
.single-product .related.products {
  margin-top: 55px;
}
.single-product .related.products > h2 {
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .single-product .ts-page {
    padding-top: 24px;
  }
  .single-product div.product .summary {
    padding-top: 22px;
  }
  .single-product .woocommerce-product-gallery__wrapper,
  .single-product .flex-viewport {
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
  }
  .single-product .woocommerce-product-gallery__image a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 16px;
  }
  .single-product .woocommerce-product-gallery__image img {
    max-height: 380px;
    object-fit: contain;
  }
  .single-product .flex-control-thumbs {
    display: flex !important;
    flex-direction: row;
    gap: 9px;
    margin: 12px 0 0 !important;
    padding: 2px 0 5px !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .single-product .flex-control-thumbs::-webkit-scrollbar {
    display: none;
  }
  .single-product .flex-control-thumbs li {
    width: 68px !important;
    float: none !important;
    flex: 0 0 68px;
    scroll-snap-align: start;
  }
  .single-product .flex-control-thumbs img {
    width: 68px !important;
    height: 68px !important;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    object-fit: contain;
    opacity: 0.72 !important;
  }
  .single-product .flex-control-thumbs img.flex-active {
    border-color: var(--ts-primary);
    opacity: 1 !important;
  }
  .ts-product-value {
    grid-template-columns: 1fr;
  }
  .ts-product-value-item {
    min-height: 68px;
  }
  .single-product div.product form.cart {
    gap: 8px;
  }
  .single-product div.product form.cart .single_add_to_cart_button {
    flex: 1 1 180px;
  }
  .single-product .woocommerce-tabs ul.tabs {
    overflow-x: auto;
    white-space: nowrap;
  }
  .single-product .woocommerce-tabs ul.tabs li a {
    padding: 12px 13px !important;
  }
}

/* 1.1.17 - Product meta labels + two-line archive product titles */
.single-product .product_meta .sku_wrapper,
.single-product .product_meta .posted_in,
.single-product .product_meta .tagged_as {
  font-weight: 600;
}
.single-product .product_meta .sku_wrapper .sku,
.single-product .product_meta .posted_in a,
.single-product .product_meta .tagged_as a {
  font-weight: 400;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  max-height: 2.9em;
  line-height: 1.45;
}

/* 1.1.19 - Modern WooCommerce product cards */
.woocommerce ul.products li.product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.025);
  overflow: visible;
  transition: border-color 0.22s ease, box-shadow 0.22s ease,
    transform 0.22s ease;
}
.woocommerce ul.products li.product:hover {
  border-color: #d5deea;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
  transform: translateY(-2px);
}
.woocommerce
  ul.products
  li.product
  .woocommerce-LoopProduct-link.woocommerce-loop-product__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.woocommerce ul.products li.product a img {
  transition: transform 0.28s ease;
}
.woocommerce ul.products li.product:hover .woocommerce-LoopProduct-link img {
  transform: scale(1.025);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0 0 8px;
  font-weight: 600;
}

/* Brand under product title */
.d4s-product-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  margin: 0 0 7px;
}
.d4s-product-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 120px;
  height: 30px;
  padding: 2px 6px;
  border-radius: 6px;
  text-decoration: none !important;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.d4s-product-brand-link:hover {
  background: #f7f9fc;
}
.d4s-product-brand-logo {
  display: block !important;
  width: auto !important;
  max-width: 105px !important;
  height: auto !important;
  max-height: 25px !important;
  margin: 0 !important;
  object-fit: contain !important;
}
.d4s-product-brand-name {
  color: #667085;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
}

/* Price / quote message keeps exactly the WooCommerce price typography */
.woocommerce ul.products li.product .price {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 5px 0 12px;
}
.woocommerce ul.products li.product .price .d4s-quote-price {
  color: inherit;
  font: inherit;
  line-height: inherit;
}

/* Main product action centered and visually consistent */
.woocommerce ul.products li.product > a.button,
.woocommerce ul.products li.product > .button {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 42px;
  margin: 0 auto 5px !important;
  padding: 10px 18px !important;
  text-align: center;
  border-radius: 8px;
}

/* Compare becomes a compact icon action instead of a text button */
.woocommerce ul.products li.product .ts-compare-add {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #475569 !important;
  box-shadow: 0 4px 13px rgba(15, 23, 42, 0.08);
  font-size: 0 !important;
  line-height: 1 !important;
  cursor: pointer;
  overflow: visible;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s,
    transform 0.2s;
}
.woocommerce ul.products li.product .ts-compare-add::before {
  content: "";
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14'/%3E%3Cpath d='m15 4 3 3-3 3'/%3E%3Cpath d='M20 17H6'/%3E%3Cpath d='m9 14-3 3 3 3'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h14'/%3E%3Cpath d='m15 4 3 3-3 3'/%3E%3Cpath d='M20 17H6'/%3E%3Cpath d='m9 14-3 3 3 3'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.woocommerce ul.products li.product .ts-compare-add:hover {
  color: var(--ts-primary) !important;
  border-color: rgba(0, 104, 239, 0.35) !important;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
.woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
  color: #fff !important;
  background: var(--ts-primary) !important;
  border-color: var(--ts-primary) !important;
}
.woocommerce ul.products li.product .ts-compare-add::after {
  content: "הוספה להשוואה";
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%) translateX(3px);
  width: max-content;
  max-width: 150px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.18s ease;
}
.woocommerce
  ul.products
  li.product
  .ts-compare-add[aria-pressed="true"]::after {
  content: "נוסף להשוואה";
}
.woocommerce ul.products li.product .ts-compare-add:hover::after,
.woocommerce ul.products li.product .ts-compare-add:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product {
    padding: 13px;
  }
  .woocommerce ul.products li.product .ts-compare-add {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }
  .woocommerce ul.products li.product .ts-compare-add::after {
    display: none;
  }
  .woocommerce ul.products li.product > a.button,
  .woocommerce ul.products li.product > .button {
    min-width: 130px;
  }
}
\n\n/* 1.1.20 - SKU placement and single-product no-price cleanup */
.woocommerce ul.products li.product .d4s-product-sku {
  min-height: 20px;
  margin: -2px 0 5px;
  color: #7a8699;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  direction: rtl;
}
.woocommerce ul.products li.product .d4s-product-sku span {
  color: #5b6678;
  font-weight: 600;
}
.single-product .d4s-single-product-sku {
  margin: -3px 0 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.single-product .d4s-single-product-sku span {
  color: #475569;
  font-weight: 600;
}
/* SKU is now shown directly under the product title, so remove the duplicate
   from WooCommerce's metadata block at the bottom of the summary. */
.single-product .product_meta .sku_wrapper {
  display: none !important;
}

/* 1.1.21 - Tighter modern product grid */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 14px !important;
  row-gap: 20px !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}
.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px !important;
    row-gap: 14px !important;
  }
}

/* Compact, centered archive actions */
.woocommerce ul.products li.product > a.button:not(.ts-compare-add),
.woocommerce ul.products li.product > .button:not(.ts-compare-add) {
  align-self: center;
  width: auto !important;
  min-width: 122px !important;
  min-height: 36px !important;
  padding: 7px 14px !important;
  margin: 0 auto 4px !important;
  gap: 6px;
  border-radius: 7px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}
/* Cart icon for purchasable products */
.woocommerce ul.products li.product .add_to_cart_button::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2ZM1 2v2h2l3.6 7.59-1.35 2.45A2 2 0 0 0 7 17h12v-2H7.42a.25.25 0 0 1-.22-.37L8.1 13h7.45a2 2 0 0 0 1.75-1.03L20.88 5H5.21l-.94-2H1Zm16 16c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2Z'/%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 24 24'%3E%3Cpath fill='black' d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2ZM1 2v2h2l3.6 7.59-1.35 2.45A2 2 0 0 0 7 17h12v-2H7.42a.25.25 0 0 1-.22-.37L8.1 13h7.45a2 2 0 0 0 1.75-1.03L20.88 5H5.21l-.94-2H1Zm16 16c-1.1 0-1.99.9-1.99 2S15.9 22 17 22s2-.9 2-2-.9-2-2-2Z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
/* Eye icon for products that lead to more information */
.woocommerce ul.products li.product .d4s-more-info::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%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 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E")
    center/contain no-repeat;
}

/* Product category/tag description: regular readable copy */
.woocommerce .term-description {
  margin: 0 0 24px;
  color: #475569;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
}
.woocommerce .term-description p {
  margin: 0 0 10px;
  font: inherit;
  color: inherit;
}
.woocommerce .term-description p:last-child {
  margin-bottom: 0;
}

/* 1.1.22 - Clickable quote price */
.woocommerce ul.products li.product a.d4s-quote-price {
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}
.woocommerce ul.products li.product a.d4s-quote-price:hover {
  opacity: 0.78;
  text-decoration: none !important;
}

/* Visual rating below SKU on single product */
.single-product .review-star-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 14px;
  direction: rtl;
  font-size: 14px;
  line-height: 1;
}
.review-star-rating .stars {
  display: inline-flex;
  direction: ltr;
  gap: 1px;
}
.review-star-rating .star {
  position: relative;
  color: #d9dee7;
  font-size: 18px;
  line-height: 1;
}
.review-star-rating .star.full {
  color: #f5a623;
}
.review-star-rating .star.half {
  color: #d9dee7;
}
.review-star-rating .star.half::after {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #f5a623;
  white-space: nowrap;
}
.review-star-rating .review-count {
  color: #7a8699;
  font-size: 13px;
  font-weight: 500;
}

/* Lazy YouTube slides inside WooCommerce gallery */
.d4s-product-video-slide {
  position: relative;
  background: #f7f9fc;
  overflow: hidden;
}
.d4s-product-video-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  padding: 0;
  border: 0;
  background: #f7f9fc;
  cursor: pointer;
  overflow: hidden;
}
.d4s-product-video-play > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  margin: 0 !important;
}
.d4s-video-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.22);
  transition: 0.2s ease;
}
.d4s-video-play-icon::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 21px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid #fff;
}
.d4s-product-video-play:hover .d4s-video-play-icon {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--ts-primary);
}
.d4s-product-video-frame {
  width: 100%;
  aspect-ratio: 1/1;
  border: 0;
  display: block;
  background: #000;
}

/* Brands directory */
.d4s-brands-directory {
  width: 100%;
  margin: 24px auto;
  direction: rtl;
}
.d4s-brands-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 520px;
  margin: 0 auto 28px;
}
.d4s-brands-search {
  width: 100%;
  height: 50px;
  padding: 0 48px 0 90px !important;
  border: 1px solid #dfe5ed !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
  font-size: 15px !important;
  outline: none;
  transition: 0.2s ease;
}
.d4s-brands-search:focus {
  border-color: var(--ts-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 104, 239, 0.1);
}
.d4s-brands-search-icon {
  position: absolute;
  right: 17px;
  width: 19px;
  height: 19px;
  background: #64748b;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16.5 16.5 5 5' stroke='black' stroke-width='2' stroke-linecap='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 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m16.5 16.5 5 5' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.d4s-brands-results {
  position: absolute;
  left: 15px;
  color: #94a3b8;
  font-size: 12px;
}
.d4s-brands-grid {
  display: grid;
  grid-template-columns: repeat(var(--d4s-brand-columns), minmax(0, 1fr));
  gap: 14px;
}
.d4s-brand-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 15px 18px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
  color: #172033 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
    border-color 0.22s ease;
}
.d4s-brand-card:hover {
  transform: translateY(-4px);
  border-color: #d3dce8;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}
.d4s-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 78px;
  margin-bottom: 13px;
}
.d4s-brand-logo-wrap img {
  display: block;
  max-width: 145px !important;
  max-height: 68px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.d4s-brand-card:hover .d4s-brand-logo-wrap img {
  transform: scale(1.055);
}
.d4s-brand-title {
  max-width: 100%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d4s-brand-count {
  margin-top: 5px;
  color: #8491a4;
  font-size: 12.5px;
}
.d4s-brand-arrow {
  position: absolute;
  left: 13px;
  bottom: 12px;
  color: var(--ts-primary);
  font-size: 17px;
  opacity: 0;
  transform: translateX(5px);
  transition: 0.2s ease;
}
.d4s-brand-card:hover .d4s-brand-arrow {
  opacity: 1;
  transform: translateX(0);
}
.d4s-brands-no-results {
  text-align: center;
  padding: 35px;
  color: #64748b;
}
@media (max-width: 1100px) {
  .d4s-brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .d4s-brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .d4s-brands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .d4s-brand-card {
    min-height: 150px;
    padding: 16px 10px;
  }
  .d4s-brand-logo-wrap {
    height: 62px;
  }
  .d4s-brand-logo-wrap img {
    max-width: 110px !important;
    max-height: 55px !important;
  }
}

/* D4S 1.1.33 - category cards: show the complete image and hide counts. */
.woocommerce ul.products li.product-category mark.count {
  display: none !important;
}
.woocommerce ul.products li.product-category > a > img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
}
@media (max-width: 600px) {
  .woocommerce ul.products li.product-category > a > img {
    height: 150px !important;
  }
}

/* Featured brands carousel */
.d4s-featured-brands {
  position: relative;
  overflow: hidden;
}
.d4s-featured-brands-viewport {
  overflow: hidden;
  width: 100%;
}
.d4s-featured-brands-track {
  display: flex;
  gap: 14px;
  direction: rtl;
  will-change: transform;
  transition: transform 0.45s ease;
}
.d4s-featured-brand-slide {
  flex: 0 0
    calc(
      (100% - (var(--d4s-brand-desktop) - 1) * 14px) / var(--d4s-brand-desktop)
    );
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 125px;
  padding: 16px;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  background: #fff;
  color: #172033 !important;
  text-decoration: none !important;
}
.d4s-featured-brand-slide span {
  height: 62px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d4s-featured-brand-slide img {
  max-width: 135px !important;
  max-height: 58px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
.d4s-featured-brand-slide strong {
  font-size: 13px;
  text-align: center;
}
.d4s-brand-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 1px solid #dbe3ec;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  color: #334155;
  transform: translateY(-10%);
}
.d4s-brand-prev {
  right: 5px;
}
.d4s-brand-next {
  left: 5px;
}
@media (max-width: 600px) {
  .d4s-featured-brand-slide {
    flex-basis: calc(
      (100% - (var(--d4s-brand-mobile) - 1) * 10px) / var(--d4s-brand-mobile)
    );
    min-height: 110px;
    padding: 12px;
  }
  .d4s-featured-brands-track {
    gap: 10px;
  }
  .d4s-featured-brand-slide img {
    max-width: 110px !important;
    max-height: 52px !important;
  }
  .d4s-brand-nav {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
}

/* D4S 1.1.34 - WooCommerce My Account */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  width: auto !important;
  float: none !important;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 18px;
  padding: 10px;
  box-shadow: 0 12px 35px rgba(18, 42, 74, 0.06);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation li {
  margin: 3px 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 11px;
  color: #33455e;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: #f5f8fc;
  color: var(--ts-primary);
}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  background: var(--ts-primary);
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-content {
  width: auto !important;
  float: none !important;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 35px rgba(18, 42, 74, 0.06);
}
.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type,
.woocommerce-account .woocommerce-MyAccount-content > p:nth-of-type(2) {
  display: none;
}
.d4s-account-welcome {
  margin-bottom: 24px;
}
.d4s-account-welcome > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--ts-primary);
  letter-spacing: 0.02em;
}
.d4s-account-welcome h2 {
  margin: 5px 0 6px;
  font-size: 26px;
  color: var(--ts-navy);
}
.d4s-account-welcome p {
  margin: 0;
  color: #718096;
}
.d4s-account-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.d4s-account-card {
  display: grid;
  grid-template-columns: 46px 1fr 18px;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e5eaf1;
  border-radius: 15px;
  text-decoration: none;
  background: #fff;
  transition: 0.2s;
}
.d4s-account-card:hover {
  transform: translateY(-2px);
  border-color: var(--ts-primary);
  box-shadow: 0 10px 24px rgba(18, 42, 74, 0.08);
}
.d4s-account-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f1f6fb;
  display: grid;
  place-items: center;
}
.d4s-account-card-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--ts-primary);
}
.d4s-account-card strong {
  display: block;
  color: var(--ts-navy);
  font-size: 15px;
}
.d4s-account-card small {
  display: block;
  color: #7a8798;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}
.d4s-account-card > b {
  color: var(--ts-primary);
  font-size: 18px;
}
.woocommerce-account .woocommerce-orders-table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 8px;
}
.woocommerce-account .woocommerce-orders-table th {
  border: 0 !important;
  background: #f6f8fb;
  padding: 12px !important;
}
.woocommerce-account .woocommerce-orders-table td {
  padding: 14px 12px !important;
  border-top: 1px solid #e8edf3 !important;
  border-bottom: 1px solid #e8edf3 !important;
  background: #fff;
}
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button {
  border-radius: 9px !important;
}
@media (max-width: 900px) {
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    overflow-x: auto;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex;
    min-width: max-content;
    gap: 4px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation li {
    margin: 0;
  }
  .d4s-account-cards {
    grid-template-columns: 1fr;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    padding: 20px;
  }
}

/* D4S 1.1.35 - refined My Account shell */
.woocommerce-account #content > .ts-wrap.ts-page {
  padding-top: 38px;
  padding-bottom: 56px;
}
.woocommerce-account .ts-page > .woocommerce {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  direction: rtl;
}
.woocommerce-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 24px;
  border: 1px solid #e7ebf0 !important;
  border-radius: 16px !important;
  padding: 8px !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.045) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a {
  position: relative;
  min-height: 50px !important;
  padding: 0 44px 0 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation a:before {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}
.woocommerce-account
  .woocommerce-MyAccount-navigation-link--dashboard
  a:before {
  content: "⌂";
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a:before {
  content: "▣";
}
.woocommerce-account
  .woocommerce-MyAccount-navigation-link--edit-address
  a:before {
  content: "⌖";
}
.woocommerce-account
  .woocommerce-MyAccount-navigation-link--edit-account
  a:before {
  content: "○";
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout {
  border-top: 1px solid #edf0f4;
  margin-top: 9px !important;
  padding-top: 8px;
}
.woocommerce-account
  .woocommerce-MyAccount-navigation-link--customer-logout
  a:before {
  content: "↪";
}
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #b42318 !important;
}
.woocommerce-account
  .woocommerce-MyAccount-navigation-link--customer-logout
  a:hover {
  background: #fff4f2 !important;
  color: #b42318 !important;
}
.woocommerce-account .woocommerce-MyAccount-content {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.d4s-account-dashboard {
  display: grid;
  gap: 18px;
}
.d4s-account-hero {
  min-height: 180px;
  padding: 30px 32px;
  border: 1px solid #e5eaf0;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f7faff 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: hidden;
  position: relative;
}
.d4s-account-hero:after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ts-primary) 8%, transparent);
}
.d4s-account-eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5fc;
  color: var(--ts-primary);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}
.d4s-account-hero h1 {
  font-size: 30px !important;
  line-height: 1.2 !important;
  margin: 0 0 8px !important;
  color: var(--ts-navy) !important;
}
.d4s-account-hero p {
  margin: 0;
  max-width: 570px;
  color: #66758a;
  font-size: 14px;
  line-height: 1.7;
}
.d4s-account-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}
.d4s-account-card {
  min-height: 150px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  position: relative;
  gap: 12px !important;
  padding: 20px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
.d4s-account-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07) !important;
}
.d4s-account-card-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
}
.d4s-account-card-icon svg {
  width: 21px !important;
  height: 21px !important;
  fill: currentColor !important;
  color: var(--ts-primary);
}
.d4s-account-card-copy strong {
  font-size: 15px !important;
  margin-bottom: 4px;
}
.d4s-account-card-copy small {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}
.d4s-account-card-arrow {
  position: absolute;
  left: 18px;
  top: 20px;
  color: #a3afbf;
  font-size: 18px;
  transition: 0.2s;
}
.d4s-account-card:hover .d4s-account-card-arrow {
  left: 14px;
  color: var(--ts-primary);
}
.d4s-account-helpbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #e8ecf1;
  border-radius: 13px;
  background: #fff;
  color: #718096;
  font-size: 13px;
}
.d4s-account-helpbar a {
  font-weight: 800;
  color: #b42318;
  text-decoration: none;
}
@media (max-width: 900px) {
  .woocommerce-account .ts-page > .woocommerce {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation {
    position: static;
    overflow-x: auto;
  }
  .woocommerce-account .woocommerce-MyAccount-navigation a {
    padding: 0 40px 0 12px !important;
  }
  .d4s-account-hero {
    min-height: 0;
    padding: 24px;
  }
  .d4s-account-hero h1 {
    font-size: 25px !important;
  }
  .d4s-account-cards {
    grid-template-columns: 1fr !important;
  }
  .d4s-account-card {
    min-height: 112px !important;
  }
}
@media (max-width: 600px) {
  .woocommerce-account #content > .ts-wrap.ts-page {
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .d4s-account-hero {
    padding: 20px;
  }
  .d4s-account-hero h1 {
    font-size: 23px !important;
  }
  .d4s-account-helpbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* D4S 1.1.36 - My Account layout hardening */
body.woocommerce-account #content > .ts-wrap.ts-page > .woocommerce {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
  direction: rtl !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin-inline: auto !important;
}
body.woocommerce-account #content > .ts-wrap.ts-page > .woocommerce:before,
body.woocommerce-account #content > .ts-wrap.ts-page > .woocommerce:after {
  content: none !important;
  display: none !important;
}
body.woocommerce-account
  #content
  > .ts-wrap.ts-page
  > .woocommerce
  > .woocommerce-MyAccount-navigation {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
body.woocommerce-account
  #content
  > .ts-wrap.ts-page
  > .woocommerce
  > .woocommerce-MyAccount-content {
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  direction: rtl !important;
}
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info {
  margin: 0 0 18px !important;
  border-radius: 12px !important;
}
body.woocommerce-account
  .woocommerce-MyAccount-content
  .woocommerce-orders-table {
  width: 100% !important;
  margin: 0 !important;
  background: transparent !important;
}
body.woocommerce-account .woocommerce-orders-table .woocommerce-button.button {
  padding: 9px 16px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--ts-primary) !important;
  color: #fff !important;
  border: 0 !important;
}
body.woocommerce-account .woocommerce-orders-table__cell-order-status {
  font-weight: 800 !important;
}
body.woocommerce-account .woocommerce-pagination {
  margin-top: 18px !important;
  display: flex !important;
  gap: 8px !important;
}
@media (max-width: 900px) {
  body.woocommerce-account #content > .ts-wrap.ts-page > .woocommerce {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
  }
  body.woocommerce-account
    #content
    > .ts-wrap.ts-page
    > .woocommerce
    > .woocommerce-MyAccount-navigation,
  body.woocommerce-account
    #content
    > .ts-wrap.ts-page
    > .woocommerce
    > .woocommerce-MyAccount-content {
    grid-column: 1 !important;
    grid-row: auto !important;
    width: 100% !important;
  }
}

/* D4S refinements v1.1.40 */
.ts-sidecart-cartlink {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ts-primary);
  border-radius: 7px;
  background: #fff;
  color: var(--ts-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ts-sidecart-cartlink:hover,
.ts-sidecart-cartlink:focus-visible {
  background: var(--ts-bg);
  color: var(--ts-navy);
  border-color: var(--ts-navy);
  text-decoration: none;
}
.ts-live-results .d4s-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 20px);
  margin: 10px;
  padding: 11px 14px;
  border: 1px solid var(--ts-primary);
  border-radius: 7px;
  background: #fff;
  color: var(--ts-primary);
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}
.ts-live-results .d4s-search-view-all:hover {
  background: var(--ts-primary);
  color: #fff;
  text-decoration: none;
}
@media (max-width: 767px) {
  .ts-header-main {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "actions logo" "search search" !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
    width: 100%;
    min-width: 0;
  }
  .ts-logo {
    grid-area: logo !important;
    min-width: 0;
    max-width: 145px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
  }
  .ts-logo .custom-logo-link {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: flex-end;
  }
  .ts-logo .custom-logo-link img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }
  .ts-header-actions {
    grid-area: actions !important;
    min-width: 0;
    justify-content: flex-start;
    gap: 0;
  }
  .ts-header-actions > a,
  .ts-header-actions > button {
    min-width: 0;
    flex: 1 1 0;
    padding-inline: 7px !important;
    white-space: nowrap;
  }
  .ts-search-wrap {
    grid-area: search !important;
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0;
    width: 100%;
  }
  .ts-search {
    width: 100%;
    box-sizing: border-box;
  }
  .ts-search input[type="search"] {
    min-width: 0;
  }
}
@media (max-width: 390px) {
  .ts-logo {
    max-width: 118px;
  }
  .ts-logo .custom-logo-link img {
    max-height: 50px !important;
  }
  .ts-header-actions > a,
  .ts-header-actions > button {
    padding-inline: 5px !important;
    font-size: 9px !important;
  }
}

/* D4S 1.1.41 - announcement bar + mobile header/search */
.d4s-topbar {
  height: 34px;
  background: var(--ts-navy);
  color: #fff;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.d4s-topbar-track {
  height: 100%;
  position: relative;
  max-width: var(--ts-width);
  margin: auto;
}
.d4s-topbar-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.d4s-topbar-message.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.d4s-topbar-message a,
.d4s-topbar-message span {
  color: #fff;
  text-decoration: none;
}
.d4s-topbar-message a:hover {
  text-decoration: underline;
}
.ts-mobile-search-toggle {
  display: none !important;
}
.ts-mobile-search-panel {
  display: none;
}
@media (max-width: 767px) {
  body.ts-sticky .ts-header {
    position: sticky !important;
    top: 0 !important;
  }
  .admin-bar.ts-sticky .ts-header {
    top: 46px !important;
  }
  .ts-top {
    display: none !important;
  }
  .ts-header-main {
    display: grid !important;
    grid-template-columns: minmax(110px, 1fr) auto !important;
    grid-template-areas: "logo actions" !important;
    gap: 8px !important;
    padding-block: 8px !important;
    direction: rtl !important;
  }
  .ts-logo {
    grid-area: logo !important;
    max-width: 180px !important;
    justify-content: flex-start !important;
    text-align: right !important;
  }
  .ts-logo .custom-logo-link {
    justify-content: flex-start !important;
  }
  .ts-logo .custom-logo-link img {
    max-width: 125px !important;
    max-height: 54px !important;
	padding-right:10px
  }
  .ts-header-actions {
    grid-area: actions !important;
    justify-content: flex-end !important;
  }
  .ts-header-actions > .ts-header-action {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    padding: 4px !important;
    border: 0 !important;
  }
  .ts-header-actions .ts-action-label {
    display: none !important;
  }
  .ts-mobile-search-toggle {
    display: flex !important;
  }
  .ts-search-wrap {
    display: none !important;
  }
  .ts-mobile-search-panel {
    display: block;
    background: #fff;
    border-top: 1px solid var(--ts-line);
    padding: 0 16px;
    max-height: 0;
    opacity: 0;
    overflow: visible;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }
  .ts-mobile-search-panel[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
  }
  .ts-mobile-search-panel.is-open {
    max-height: 430px;
    opacity: 1;
    padding: 10px 16px 14px;
    visibility: visible;
    pointer-events: auto;
  }
  .ts-mobile-search-panel .ts-search-wrap {
    display: block !important;
  }
  .ts-mobile-search-panel .ts-search-wrap > small {
    display: none;
  }
  .ts-mobile-search-panel .ts-live-results {
    max-height: 310px;
    overflow: auto;
  }
  .d4s-topbar {
    height: 32px;
  }
  .d4s-topbar-message {
    font-size: 12px;
    padding-inline: 12px;
  }
}

/* D4S 1.1.43 - topbar sizing and navigation arrows */
.d4s-topbar {
  height: 40px;
}
.d4s-topbar-track {
  display: flex;
  align-items: center;
  padding: 0 8px;
  box-sizing: border-box;
}
.d4s-topbar-messages {
  position: relative;
  height: 100%;
  flex: 1;
  min-width: 0;
}
.d4s-topbar-message {
  font-size: 16px;
  font-weight: 600;
  padding: 0 48px;
}
.d4s-topbar-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.18s ease, background 0.18s ease;
}
.d4s-topbar-arrow:hover,
.d4s-topbar-arrow:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}
.d4s-topbar-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.d4s-topbar-prev {
  left: 8px;
}
.d4s-topbar-next {
  right: 8px;
}
@media (max-width: 767px) {
  .d4s-topbar {
    height: 40px;
  }
  .d4s-topbar-message {
    font-size: 14px;
    font-weight: 600;
    padding: 0 38px;
  }
  .d4s-topbar-arrow {
    width: 30px;
    height: 30px;
  }
  .d4s-topbar-arrow svg {
    width: 16px;
    height: 16px;
  }
  .d4s-topbar-prev {
    left: 4px;
  }
  .d4s-topbar-next {
    right: 4px;
  }
}

/* D4S Product Filter Drawer v1.1.44 */
.d4s-open-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  margin: 0 0 18px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  color: var(--ts-navy);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(11, 34, 71, 0.06);
  transition: 0.2s ease;
}
.d4s-open-filter:hover {
  border-color: var(--ts-primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 34, 71, 0.1);
}
.d4s-open-filter > b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 20px;
  background: var(--ts-primary);
  color: #fff;
  font-size: 11px;
}
.d4s-filter-icon {
  width: 20px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.d4s-filter-icon i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
}
.d4s-filter-icon i:nth-child(1) {
  width: 100%;
}
.d4s-filter-icon i:nth-child(2) {
  width: 72%;
}
.d4s-filter-icon i:nth-child(3) {
  width: 45%;
}
.d4s-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(5, 18, 38, 0.52);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.28s ease;
}
.d4s-filter-drawer {
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  width: min(440px, 94vw);
  height: 100dvh;
  background: #fff;
  box-shadow: -25px 0 70px rgba(5, 18, 38, 0.18);
  transform: translateX(105%);
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1);
  display: flex;
  flex-direction: column;
  color: var(--ts-navy);
  direction: rtl;
}
.d4s-filter-is-open .d4s-filter-overlay {
  opacity: 1;
  visibility: visible;
}
.d4s-filter-is-open .d4s-filter-drawer {
  transform: none;
}
.d4s-filter-is-open {
  overflow: hidden;
}
.d4s-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #edf1f6;
}
.d4s-filter-head span {
  font-size: 11px;
  color: #78879a;
}
.d4s-filter-head h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.2;
}
.d4s-filter-head > button {
  width: 40px;
  height: 40px;
  border: 1px solid #e1e7ef;
  border-radius: 50%;
  background: #f8fafc;
  color: var(--ts-navy);
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.d4s-filter-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 24px;
  background: #f6f9fd;
  border-bottom: 1px solid #e8eef6;
  font-size: 12px;
}
.d4s-filter-active strong {
  display: flex;
  gap: 7px;
  align-items: center;
}
.d4s-filter-active strong b {
  background: var(--ts-primary);
  color: #fff;
  border-radius: 20px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.d4s-filter-active button,
.d4s-filter-more {
  border: 0;
  background: none;
  color: var(--ts-primary);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.d4s-filter-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 24px 24px;
  overscroll-behavior: contain;
}
.d4s-filter-group {
  border-bottom: 1px solid #edf1f5;
}
.d4s-filter-group-title {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ts-navy);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.d4s-filter-group-title i {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: 0.2s;
}
.d4s-filter-group:not(.is-open) .d4s-filter-group-title i {
  transform: rotate(45deg);
}
.d4s-filter-group-body {
  padding: 0 0 18px;
}
.d4s-filter-group:not(.is-open) .d4s-filter-group-body {
  display: none;
}
.d4s-filter-term-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 0 11px;
  margin-bottom: 10px;
  background: #fbfcfe;
}
.d4s-filter-term-search input {
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 13px;
}
.d4s-filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.d4s-filter-option {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 5px 7px;
  cursor: pointer;
  transition: 0.15s;
}
.d4s-filter-option:hover {
  background: #f6f9fd;
}
.d4s-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.d4s-filter-check {
  width: 19px;
  height: 19px;
  border: 1.5px solid #c8d2df;
  border-radius: 5px;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.d4s-filter-option input:checked + .d4s-filter-check {
  background: var(--ts-primary);
  border-color: var(--ts-primary);
}
.d4s-filter-option input:checked + .d4s-filter-check:after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.d4s-filter-name {
  font-size: 13px;
  flex: 1;
}
.d4s-filter-option small {
  font-size: 11px;
  color: #8491a1;
  background: #f2f5f9;
  border-radius: 15px;
  padding: 2px 7px;
}
.d4s-filter-option.is-extra {
  display: none;
}
.d4s-filter-options.show-all .d4s-filter-option.is-extra {
  display: flex;
}
.d4s-filter-more {
  padding: 8px 7px 0;
  font-size: 12px;
}
.d4s-filter-footer {
  padding: 15px 24px max(15px, env(safe-area-inset-bottom));
  border-top: 1px solid #e8edf4;
  background: #fff;
  box-shadow: 0 -8px 25px rgba(11, 34, 71, 0.06);
}
.d4s-filter-apply {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 9px;
  background: var(--ts-primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.d4s-price-labels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.d4s-price-labels label {
  font-size: 11px;
  color: #7b899a;
}
.d4s-price-labels label > span {
  margin-top: 5px;
  height: 42px;
  border: 1px solid #dce4ed;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #fbfcfe;
}
.d4s-price-labels b {
  font-size: 13px;
  color: #667589;
}
.d4s-price-labels input {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  font: inherit;
  font-weight: 700;
  color: var(--ts-navy);
  direction: ltr;
}
.d4s-range {
  position: relative;
  height: 28px;
  margin: 0 7px 3px;
}
.d4s-range-track {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 5px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    #e4eaf1 0,
    #e4eaf1 var(--from),
    var(--ts-primary) var(--from),
    var(--ts-primary) var(--to),
    #e4eaf1 var(--to),
    #e4eaf1 100%
  );
}
.d4s-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  pointer-events: none;
  appearance: none;
  background: transparent;
}
.d4s-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--ts-primary);
  box-shadow: 0 2px 8px rgba(0, 104, 239, 0.28);
  pointer-events: auto;
  cursor: grab;
}
.d4s-range input[type="range"]::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid var(--ts-primary);
  box-shadow: 0 2px 8px rgba(0, 104, 239, 0.28);
  pointer-events: auto;
  cursor: grab;
}
.d4s-products-loading .products {
  opacity: 0.32;
  filter: grayscale(0.15);
  pointer-events: none;
  transition: 0.18s;
}
.d4s-products-loading .ts-shop-content {
  position: relative;
}
.d4s-products-loading .ts-shop-content:after {
  content: "";
  position: absolute;
  top: 120px;
  left: 50%;
  width: 34px;
  height: 34px;
  border: 3px solid #dce6f2;
  border-top-color: var(--ts-primary);
  border-radius: 50%;
  animation: d4sSpin 0.7s linear infinite;
}
@keyframes d4sSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 767px) {
  .d4s-filter-drawer {
    width: 100%;
    max-width: none;
  }
  .d4s-filter-head {
    padding: 17px 18px 14px;
  }
  .d4s-filter-head h2 {
    font-size: 21px;
  }
  .d4s-filter-scroll {
    padding: 0 18px 20px;
  }
  .d4s-filter-footer {
    padding-inline: 18px;
  }
  .d4s-open-filter {
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
  }
  .d4s-filter-group-title {
    height: 56px;
  }
}
/* D4S Product Filters refinements v1.1.45 */
.d4s-filter-overlay {
  display: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.d4s-filter-is-open {
  overflow: auto;
}
.d4s-filter-active {
  display: block;
  padding: 12px 24px;
  background: #f8fafc;
}
.d4s-filter-active-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.d4s-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.d4s-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  color: var(--ts-navy);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}
.d4s-filter-chip:hover {
  border-color: var(--ts-primary);
  color: var(--ts-primary);
}
.d4s-filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.d4s-filter-chip i {
  font-style: normal;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
}
/* D4S Product Filters refinements v1.1.46 */
.d4s-filter-overlay {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
.d4s-filter-is-open .d4s-filter-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.d4s-filter-is-open {
  overflow: auto;
}
.d4s-filter-chip {
  background: #f1f3f5 !important;
  border-color: #e2e6ea !important;
  padding: 7px 8px 7px 11px !important;
  gap: 9px !important;
}
.d4s-filter-chip:hover {
  background: #e9edf1 !important;
  border-color: #d4dae1 !important;
  color: var(--ts-navy) !important;
}
.d4s-filter-chip i {
  display: grid !important;
  place-items: center;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 50%;
  background: #d7dce2;
  color: #26384d;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  transition: 0.15s ease;
}
.d4s-filter-chip:hover i {
  background: #c9d0d8;
  color: #111827;
}

/* D4S 1.1.50 - homepage hero navigation refinements */
.d4s-hero-nav-fixed {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 18px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  z-index: 20 !important;
  width: auto !important;
}
.d4s-hero-nav-fixed button {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  pointer-events: auto !important;
  z-index: 21 !important;
}
.d4s-hero-nav-fixed .d4s-hero-pause-hidden {
  display: none !important;
}
.ts-hero-slide,
.ts-hero-inner,
.ts-hero-copy,
.ts-hero-art {
  pointer-events: auto;
}

/* D4S 1.1.51 */
.d4s-product-brand-logo {
  max-height: 70px !important;
}
\n\n/* D4S refinements v1.1.52 */
.d4s-filter-group-title {
  font-weight: 700;
}
.d4s-filter-apply {
  font-weight: 700;
}
.ts-sidecart-name {
  font-weight: 600;
  line-height: 1.1;
  padding-inline-end: 38px;
}
.ts-sidecart-item {
  padding: 16px 0 12px 0;
}
.ts-sidecart-head {
  padding: 20px 15px;
}
.ts-sidecart-remove {
  position: absolute;
  inset-inline-end: 0;
  top: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  z-index: 3;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.18s ease;
}
.ts-sidecart-remove svg {
  display: block;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.ts-sidecart-remove:hover,
.ts-sidecart-remove:focus-visible {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
  transform: scale(1.05);
  outline: none;
}
.d4s-product-brand--empty {
  visibility: hidden;
  pointer-events: none;
}
.d4s-product-brand-logo {
  max-height: 70px !important;
}

/* D4S Mega Menu v1.1.53 */
.ts-mega {
  position: static;
}
.ts-mega > summary {
  height: 100%;
}
.d4s-mega-shell {
  position: absolute;
  z-index: 80;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 440px;
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 24px 60px rgba(15, 35, 60, 0.18);
  overflow: hidden;
}
.d4s-mega-cats {
  background: #f6f8fb;
  border-left: 1px solid #e8edf3;
  padding: 12px 0;
}
.d4s-mega-cat {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  color: #26364c;
  font-weight: 700;
  font-size: 14px;
  transition: 0.18s;
}
.d4s-mega-cat:hover,
.d4s-mega-cat.is-active {
  background: #fff;
  color: var(--ts-primary);
  box-shadow: inset -3px 0 0 var(--ts-primary);
}
.d4s-mega-cat b {
  font-size: 22px;
  font-weight: 400;
}
.d4s-mega-content {
  min-width: 0;
}
.d4s-mega-pane {
  height: 100%;
  padding: 26px;
  grid-template-columns: minmax(260px, 1.1fr) minmax(210px, 0.72fr);
  grid-template-areas: "sub promo" "products products";
  gap: 22px;
}
.d4s-mega-pane.is-active {
  display: grid;
}
.d4s-mega-pane[hidden] {
  display: none !important;
}
.d4s-mega-subcats {
  grid-area: sub;
}
.d4s-mega-section-head,
.d4s-mega-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.d4s-mega-section-head strong,
.d4s-mega-products-head strong {
  font-size: 16px;
  color: var(--ts-navy);
}
.d4s-mega-section-head a {
  font-size: 12px;
  font-weight: 700;
}
.d4s-mega-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 18px;
}
.d4s-mega-subgrid a {
  padding: 7px 0;
  color: #435269;
  font-size: 14px;
  border-bottom: 1px solid #f1f3f6;
}
.d4s-mega-subgrid a:hover {
  color: var(--ts-primary);
  text-decoration: none;
}
.d4s-mega-promo {
  grid-area: promo;
  background: linear-gradient(135deg, #071f43, #0d4e8f);
  color: #fff;
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.d4s-mega-promo:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #fff1;
  left: -50px;
  bottom: -80px;
}
.d4s-mega-promo > span {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #7dd3fc;
  font-weight: 800;
}
.d4s-mega-promo h3 {
  color: #fff;
  font-size: 21px;
  margin: 8px 0;
}
.d4s-mega-promo p {
  font-size: 13px;
  color: #dce9f7;
  line-height: 1.55;
  margin-bottom: 18px;
}
.d4s-mega-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  position: relative;
  z-index: 2;
}
.d4s-mega-products {
  grid-area: products;
  min-width: 0;
  border-top: 1px solid #edf1f5;
  padding-top: 17px;
}
.d4s-mega-products-head > div {
  display: flex;
  gap: 6px;
}
.d4s-mega-products-head button {
  width: 30px;
  height: 30px;
  border: 1px solid #dfe5ec;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}
.d4s-mega-track {
  display: flex;
  gap: 12px;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.d4s-mega-product {
  flex: 0 0 210px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e9edf2;
  border-radius: 10px;
  background: #fff;
  scroll-snap-align: start;
}
.d4s-mega-product-img {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
}
.d4s-mega-product-img img {
  max-width: 100%;
  max-height: 66px;
  object-fit: contain;
}
.d4s-mega-product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #26364c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.d4s-mega-product-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--ts-primary);
  margin-top: 5px;
}
.d4s-mega-product-price del {
  font-size: 10px;
  color: #94a3b8;
}
.d4s-mega-product-price ins {
  text-decoration: none;
}
.ts-mega:not([open]) .d4s-mega-shell {
  display: none;
}
@media (min-width: 768px) {
  .ts-mega:hover > summary {
    filter: brightness(0.96);
  }
}
@media (max-width: 767px) {
  .ts-mega {
    position: static;
  }
  .ts-mega > summary {
    border-radius: 6px;
    min-height: 44px;
  }
  .d4s-mega-shell {
    position: fixed;
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    height: min(76vh, 680px);
    grid-template-columns: 1fr;
    border-radius: 18px 18px 0 0;
    display: block;
    overflow: auto;
    box-shadow: 0 -15px 50px rgba(15, 35, 60, 0.22);
  }
  .d4s-mega-cats {
    padding: 8px;
    background: #f7f9fc;
    border: 0;
    display: flex;
    overflow-x: auto;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 4;
  }
  .d4s-mega-cat {
    width: auto;
    min-width: max-content;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e6ebf1;
  }
  .d4s-mega-cat b {
    display: none;
  }
  .d4s-mega-cat.is-active {
    background: var(--ts-primary);
    color: #fff;
    box-shadow: none;
  }
  .d4s-mega-pane {
    padding: 18px;
    grid-template-columns: 1fr;
    grid-template-areas: "sub" "promo" "products";
    gap: 18px;
  }
  .d4s-mega-subgrid {
    grid-template-columns: 1fr 1fr;
  }
  .d4s-mega-promo {
    min-height: 150px;
  }
  .d4s-mega-track {
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .d4s-mega-product {
    flex-basis: 200px;
  }
  .d4s-mega-products-head button {
    display: none;
  }
}

/* D4S Mega Menu v1.1.54 - compact, WordPress-menu driven */
.d4s-mega-shell {
  min-height: 360px;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}
.d4s-mega-home {
  padding: 14px;
  width: 290px;
  background: #f7f9fc;
  border-left: 1px solid #e7edf4;
}
.d4s-mega-level-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.d4s-mega-link {
  min-height: 38px;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  color: #26364c !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.d4s-mega-link:hover {
  background: #fff;
  color: var(--ts-primary) !important;
  text-decoration: none;
}
.d4s-mega-link b {
  font-size: 19px;
  font-weight: 400;
}
.d4s-mega-branch {
  position: absolute;
  top: 0;
  right: 290px;
  left: 0;
  bottom: 0;
  background: #fff;
  padding: 16px 18px;
  overflow: auto;
}
.d4s-mega-branch[hidden] {
  display: none !important;
}
.d4s-mega-branch-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf1f5;
}
.d4s-mega-branch-head > a {
  font-size: 15px;
  font-weight: 800;
  color: var(--ts-navy);
}
.d4s-mega-branch-head button {
  display: none;
}
.d4s-mega-branch-body > .d4s-mega-level {
  max-width: 330px;
  float: right;
  width: 38%;
  padding-left: 16px;
}
.d4s-mega-branch-body > .d4s-mega-products {
  float: left;
  width: 62%;
  border-top: 0;
  padding: 0 16px 0 0;
}
.d4s-mega-branch .d4s-mega-branch {
  position: static;
  padding: 10px 16px;
  margin: 6px 0;
  border-right: 2px solid #e8edf3;
}
.d4s-mega-branch .d4s-mega-branch-head {
  display: none;
}
.d4s-mega-branch .d4s-mega-branch-body > .d4s-mega-level {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
}
.d4s-mega-branch .d4s-mega-branch-body > .d4s-mega-products {
  float: none;
  width: 100%;
  padding: 10px 0 0;
}
.d4s-mega-product {
  flex-basis: 190px;
}
.d4s-mega-promo {
  display: none !important;
}
@media (max-width: 767px) {
  .d4s-mega-shell {
    height: min(82vh, 720px);
    overflow: hidden;
    padding: 0;
  }
  .d4s-mega-home {
    width: 100%;
    height: 100%;
    padding: 12px;
    overflow: auto;
    border: 0;
    transition: transform 0.25s ease;
  }
  .d4s-mega-link {
    min-height: 46px !important;
    padding: 11px 12px !important;
    font-size: 14px !important;
    border-bottom: 1px solid #edf1f5;
    border-radius: 0;
  }
  .d4s-mega-branch {
    position: absolute;
    inset: 0;
    background: #fff;
    padding: 0;
    overflow: auto;
    z-index: 5;
  }
  .d4s-mega-branch-head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
    padding: 12px 14px;
    margin: 0;
    border-bottom: 1px solid #e7edf4;
  }
  .d4s-mega-branch-head button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    font-size: 18px;
  }
  .d4s-mega-branch-head > a {
    font-size: 16px;
  }
  .d4s-mega-branch-body {
    padding: 8px 12px 18px;
  }
  .d4s-mega-branch-body > .d4s-mega-level,
  .d4s-mega-branch-body > .d4s-mega-products {
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
  }
  .d4s-mega-branch .d4s-mega-branch {
    position: absolute;
    inset: 0;
    margin: 0;
    border: 0;
    padding: 0;
    z-index: 6;
    background: #fff;
  }
  .d4s-mega-branch .d4s-mega-branch-head {
    display: flex;
  }
  .d4s-mega-products {
    margin-top: 14px;
    padding-top: 12px !important;
    border-top: 1px solid #edf1f5 !important;
  }
  .d4s-mega-track {
    overflow-x: auto;
  }
  .d4s-mega-product {
    flex-basis: 180px;
  }
}

/* D4S Mega Menu v1.1.55 */
.d4s-topbar-message a,
.d4s-topbar-message span {
  color: var(--ts-navy);
}
.d4s-topbar {
  background: #f2f2f2;
}
.d4s-mega-link,
#ts-main-nav a {
  font-size: 17px !important;
  font-weight: 600 !important;
}
.ts-mega > summary {
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
}
.d4s-mega-shell {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}
.d4s-mega-desktop {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  width: 100%;
}
.d4s-mega-maincats {
  background: #f6f8fb;
  border-left: 1px solid #e7edf4;
  padding: 8px 0;
}
.d4s-mega-maincat {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px !important;
  color: #26364c !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.d4s-mega-maincat:hover,
.d4s-mega-maincat.is-active {
  background: #fff;
  color: var(--ts-primary) !important;
  box-shadow: inset -3px 0 0 var(--ts-primary);
}
.d4s-mega-maincat b {
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
  transform: none;
}
.d4s-mega-panes {
  min-width: 0;
  background: #fff;
}
.d4s-mega-pane {
  display: none !important;
  height: auto !important;
  padding: 18px 20px !important;
  grid-template: none !important;
  gap: 0 !important;
}
.d4s-mega-pane.is-active {
  display: block !important;
}
.d4s-mega-pane[hidden] {
  display: none !important;
}
.d4s-mega-pane-top {
  display: grid;
  grid-template-columns: minmax(0, 70%) minmax(0, 30%);
  gap: 24px;
  align-items: start;
}
.d4s-mega-categories {
  min-width: 0;
}
.d4s-mega-groups {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.d4s-mega-group-col {
  flex: 1;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.d4s-mega-group {
  break-inside: avoid;
}
.d4s-mega-group-title {
  display: block !important;
  color: var(--ts-navy) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin-bottom: 5px;
  padding: 0 !important;
}
.d4s-mega-group-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.d4s-mega-group-children a {
  display: block !important;
  padding: 3px 0 !important;
  color: #556579 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35;
}
.d4s-mega-group-children a:hover {
  color: var(--ts-primary) !important;
}
.d4s-mega-group-children a.is-deep {
  padding-inline-start: 10px !important;
  font-size: 12px !important;
  color: #718096 !important;
}
.d4s-mega-pane-top > .d4s-mega-products {
  width: auto !important;
  float: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0;
}
.d4s-mega-products-head {
  margin-bottom: 10px;
}
.d4s-mega-slider {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 34px;
}
.d4s-mega-track {
  width: 100%;
  gap: 10px;
  overflow: hidden;
}
.d4s-mega-product {
  flex: 0 0 calc((100% - 10px) / 2);
  width: calc((100% - 10px) / 2);
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 7px;
}
.d4s-mega-product-img {
  width: 58px;
  height: 58px;
}
.d4s-mega-product-img img {
  max-height: 58px;
}
.d4s-mega-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #dfe5ec;
  border-radius: 50%;
  background: #fff;
  color: var(--ts-navy);
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s;
}
.d4s-mega-slider-arrow:hover {
  background: var(--ts-navy);
  border-color: var(--ts-navy);
  color: #fff;
}
.d4s-mega-slider-prev {
  right: 0;
}
.d4s-mega-slider-next {
  left: 0;
}
.d4s-mega-banner {
  clear: both;
  width: 100%;
  margin-top: 16px;
}
.d4s-mega-banner a {
  display: block;
}
.d4s-mega-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
}
.d4s-mega-banner-mobile {
  display: none !important;
}
.d4s-mega-mobile {
  display: none;
}
@media (min-width: 768px) {
  .d4s-mega-shell {
    transition: height 0.22s ease;
  }
  .ts-mega[open] > .d4s-mega-shell {
    display: block !important;
  }
}
@media (max-width: 767px) {
  .ts-nav-row {
    position: relative;
  }
  .ts-mega {
    display: block !important;
    position: static !important;
  }
  .ts-mega > summary {
    display: flex !important;
    font-size: 16px !important;
    min-width: 0 !important;
    padding: 11px 15px !important;
    border-radius: 6px !important;
  }
  .ts-mega[open] > .d4s-mega-shell {
    display: block !important;
  }
  .d4s-mega-shell {
    position: fixed !important;
    z-index: 100001 !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }
  .d4s-mega-desktop {
    display: none !important;
  }
  .d4s-mega-mobile {
    display: block !important;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
  }
  .d4s-mega-mobile-level {
    position: absolute;
    inset: 0;
    display: block;
    background: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .d4s-mega-mobile-level[hidden] {
    display: none !important;
  }
  .d4s-mega-mobile-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    min-height: 58px;
    padding: 8px 10px;
    background: #fff;
    border-bottom: 1px solid #e7edf4;
  }
  .d4s-mega-mobile-head strong {
    grid-column: 2;
    text-align: center;
    font-size: 16px;
    color: var(--ts-navy);
  }
  .d4s-mega-mobile-head button {
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: var(--ts-navy);
    font-size: 25px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .d4s-mega-mobile-all {
    display: flex !important;
    align-items: center;
    min-height: 50px;
    margin: 10px 12px 4px;
    padding: 11px 13px !important;
    border-radius: 9px;
    background: #eef6ff;
    color: var(--ts-primary) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
  }
  .d4s-mega-mobile-list {
    padding: 6px 12px 24px;
  }
  .d4s-mega-mobile-list > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 49px;
    padding: 11px 5px !important;
    border-bottom: 1px solid #edf1f5;
    color: #26364c !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    text-decoration: none !important;
  }
  .d4s-mega-mobile-list > a b {
    font-size: 25px;
    line-height: 1;
    font-weight: 400;
    color: #64748b;
  }
  .d4s-mega-banner-desktop {
    display: none !important;
  }
  .d4s-mega-banner-mobile {
    display: block !important;
  }
  body.d4s-mega-mobile-open {
    overflow: hidden !important;
  }
}
@media (max-width: 767px) {
  .d4s-mega-mobile-level > .d4s-mega-products,
  .d4s-mega-mobile-level > .d4s-mega-banner {
    margin: 12px;
  }
  .d4s-mega-mobile-level > .d4s-mega-products {
    padding-top: 14px !important;
  }
  .d4s-mega-mobile-level > .d4s-mega-banner img {
    max-height: none;
    border-radius: 10px;
  }
}

/* D4S Mega Menu v1.1.57 */
.d4s-topbar-arrow {
  color: var(--ts-navy) !important;
}
.d4s-mega-maincat {
  font-size: 16px !important;
  font-weight: 600 !important;
}
.d4s-mega-group-title {
  font-size: 16px !important;
  font-weight: 600 !important;
}
.d4s-mega-panes {
  height: auto !important;
  min-height: 0 !important;
  align-self: start;
}
.d4s-mega-pane {
  height: auto !important;
  min-height: 0 !important;
}
.d4s-mega-maincat.is-link-only {
  cursor: pointer;
}
.d4s-mega-maincat.is-link-only:hover {
  box-shadow: none;
}

/* D4S Mega Menu v1.1.58 - balanced columns + truly dynamic panes */
@media (min-width: 768px) {
  .d4s-mega-shell {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    transition: none !important;
  }
  .d4s-mega-desktop {
    display: grid !important;
    grid-template-columns: 245px minmax(0, 1fr);
    align-items: start !important;
    width: 100%;
  }
  .d4s-mega-maincats {
    align-self: start;
    height: auto !important;
    min-height: 0 !important;
  }
  .d4s-mega-panes {
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  .d4s-mega-pane,
  .d4s-mega-pane.is-active {
    height: auto !important;
    min-height: 0 !important;
  }
  .d4s-mega-pane-top {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }
  .d4s-mega-categories {
    width: 100% !important;
    min-width: 0 !important;
  }
  .d4s-mega-groups {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px 30px !important;
    align-items: start !important;
    width: 100% !important;
  }
  .d4s-mega-group-col {
    min-width: 0 !important;
    width: auto !important;
    gap: 13px !important;
  }
  .d4s-mega-pane-top > .d4s-mega-products {
    width: 100% !important;
    min-width: 0 !important;
  }
  .d4s-mega-slider {
    padding: 0 36px !important;
  }
  .d4s-mega-track {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .d4s-mega-product {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    width: calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
  }
  .d4s-mega-desktop.is-link-only-active {
    grid-template-columns: 245px !important;
    width: 245px !important;
    margin-right: 0;
    margin-left: auto;
  }
  .d4s-mega-desktop.is-link-only-active .d4s-mega-panes {
    display: none !important;
  }
  .d4s-mega-shell.is-link-only-active {
    left: auto !important;
    width: 245px !important;
    min-width: 245px !important;
  }
}
@media (min-width: 768px) and (max-width: 1100px) {
  .d4s-mega-pane-top {
    grid-template-columns: minmax(0, 65fr) minmax(280px, 35fr) !important;
    gap: 20px !important;
  }
  .d4s-mega-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* D4S Mega Menu v1.1.59 - child links + product carousel */
.d4s-mega-group-children a {
  font-size: 16px !important;
  margin-right: 10px !important;
}
@media (max-width: 767px) {
  .d4s-mega-group-children a {
    margin-right: 10px !important;
  }
}

/* D4S Mega Menu v1.1.60 - stable 70/30 layout + finite product pager */
@media (min-width: 768px) {
  .d4s-mega-pane-top {
    display: grid !important;
    grid-template-columns: minmax(280px, 30%) minmax(0, 70%) !important;
    grid-template-areas: "products categories" !important;
    gap: 28px !important;
    direction: ltr !important;
    align-items: start !important;
    width: 100% !important;
  }
  .d4s-mega-pane-top > .d4s-mega-categories {
    grid-area: categories !important;
    direction: rtl !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .d4s-mega-pane-top > .d4s-mega-products {
    grid-area: products !important;
    direction: rtl !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .d4s-mega-groups {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 30px !important;
    width: 100% !important;
    align-items: start !important;
  }
  .d4s-mega-group-col {
    width: auto !important;
    min-width: 0 !important;
  }
  .d4s-mega-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    overflow: visible !important;
    width: 100% !important;
  }
  .d4s-mega-product {
    display: grid !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }
  .d4s-mega-product[hidden] {
    display: none !important;
  }
}
.d4s-mega-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  min-height: 12px;
}
.d4s-mega-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.d4s-mega-dot.is-active {
  background: var(--ts-primary);
  transform: scale(1.35);
}
.d4s-mega-slider-arrow:disabled,
.d4s-mega-slider-arrow.is-disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
@media (min-width: 768px) and (max-width: 1100px) {
  .d4s-mega-pane-top {
    grid-template-columns: minmax(260px, 35%) minmax(0, 65%) !important;
  }
  .d4s-mega-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* D4S v1.1.61 - filter typography + one recommended product per page */
.d4s-filter-group-title {
  font-weight: 700 !important;
}
.d4s-filter-name {
  font-size: 15px !important;
}
@media (min-width: 768px) {
  .d4s-mega-track {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .d4s-mega-product {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* D4S v1.1.62 - filter typography + force exactly one recommended product */
.d4s-filter-group-title {
  font-size: 16px !important;
}
.d4s-filter-name {
  font-size: 16px !important;
}
@media (min-width: 768px) {
  .d4s-mega-pane-top > .d4s-mega-products .d4s-mega-track {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .d4s-mega-pane-top > .d4s-mega-products .d4s-mega-product {
    display: grid !important;
    box-sizing: border-box !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
  }
  .d4s-mega-pane-top > .d4s-mega-products .d4s-mega-product[hidden] {
    display: none !important;
  }
}

/* D4S Mega Menu v1.1.63 - keep banner pinned to bottom of panes */
@media (min-width: 768px) {
  .d4s-mega-panes {
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
  }
  .d4s-mega-pane.is-active {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .d4s-mega-pane-top {
    flex: 0 0 auto !important;
  }
  .d4s-mega-pane > .d4s-mega-banner {
    margin-top: auto !important;
    padding-top: 16px !important;
    flex: 0 0 auto !important;
  }
  .d4s-mega-pane[hidden] {
    display: none !important;
  }
  .d4s-mega-desktop.is-link-only-active .d4s-mega-panes {
    display: none !important;
  }
}

/* D4S Mega Products v1.1.64 - vertical product card */
@media (min-width: 768px) {
  .d4s-mega-pane-top > .d4s-mega-products .d4s-mega-product {
    display: block !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .d4s-mega-product-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid #e9edf2 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: inherit !important;
    text-decoration: none !important;
    transition: box-shadow 0.18s ease, border-color 0.18s ease,
      transform 0.18s ease;
  }
  .d4s-mega-product-link:hover {
    border-color: #d8e1ec !important;
    box-shadow: 0 8px 24px rgba(15, 35, 60, 0.08) !important;
    transform: translateY(-1px);
  }
  .d4s-mega-product-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 118px !important;
    margin: 0 0 8px !important;
  }
  .d4s-mega-product-img img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 118px !important;
    object-fit: contain !important;
  }
  .d4s-mega-product-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .d4s-mega-product-name {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    color: #26364c !important;
  }
  .d4s-mega-product-brand {
    display: block !important;
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: #7b8798 !important;
  }
  .d4s-mega-product-price {
    display: block !important;
    margin-top: 7px !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: var(--ts-primary) !important;
  }
  .d4s-mega-dots {
    margin-top: 10px !important;
  }
}

/* D4S Mega Products v1.1.65 - equal card height regardless of title lines */
@media (min-width: 768px) {
  .d4s-mega-product-link {
    min-height: 224px !important;
    box-sizing: border-box !important;
  }
  .d4s-mega-product-name {
    height: 36.4px !important;
    min-height: 36.4px !important;
    max-height: 36.4px !important;
  }
  .d4s-mega-product-brand {
    min-height: 15.6px !important;
  }
  .d4s-mega-product-price {
    margin-top: auto !important;
    padding-top: 7px !important;
  }
}

/* D4S Product Gallery Video Thumbnail v1.1.66 */
.flex-control-thumbs li {
  position: relative;
}
.flex-control-thumbs li.d4s-video-thumb {
  overflow: hidden;
}
.flex-control-thumbs li.d4s-video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(3, 23, 56, 0.18);
  pointer-events: none;
  transition: background 0.2s ease;
}
.flex-control-thumbs li.d4s-video-thumb::after {
  content: "▶";
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-left: 3px;
  border-radius: 50%;
  background: #fff;
  color: #031738;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.flex-control-thumbs li.d4s-video-thumb:hover::before {
  background: rgba(3, 23, 56, 0.3);
}
.flex-control-thumbs li.d4s-video-thumb:hover::after {
  transform: translate(-50%, -50%) scale(1.08);
  background: #2f6fc2;
  color: #fff;
}

/* D4S TechStore 1.1.67 - mobile mega menu, RTL price range, video play */
.flex-control-thumbs li.d4s-video-thumb::after {
  width: 25px !important;
  height: 25px !important;
  font-size: 15px !important;
  padding-left: 1px !important;
}

/* Price slider: minimum starts on the right in RTL */
.d4s-range {
  direction: rtl;
}
.d4s-range-track {
  background: linear-gradient(
    to left,
    #e4eaf1 0,
    #e4eaf1 var(--from),
    var(--ts-primary) var(--from),
    var(--ts-primary) var(--to),
    #e4eaf1 var(--to),
    #e4eaf1 100%
  ) !important;
}
.d4s-range input[type="range"] {
  direction: rtl;
}

@media (max-width: 767px) {
  .d4s-mega-mobile {
    padding-top: 64px !important;
    background: #f6f8fb !important;
  }
  .d4s-mega-mobile-top {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 64px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid #e5eaf1;
    box-shadow: 0 4px 18px rgba(11, 34, 71, 0.06);
  }
  .d4s-mega-mobile-top strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--ts-navy);
  }
  .d4s-mega-mobile-top button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #dfe6ef;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--ts-navy);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }
  .d4s-mega-mobile-level {
    top: 64px !important;
    height: calc(100% - 64px) !important;
    padding: 8px 12px 22px;
    background: #f6f8fb !important;
  }
  .d4s-mega-mobile-level[data-mobile-level]:not([data-mobile-level="0"]) {
    z-index: 20;
    background: #fff !important;
    padding: 0 12px 22px;
  }
  .d4s-mega-mobile-head {
    top: 0 !important;
    margin: 0 -12px 8px;
    padding: 8px 12px;
    min-height: 58px;
    box-shadow: 0 3px 12px rgba(11, 34, 71, 0.05);
  }
  .d4s-mega-mobile-head button {
    grid-column: 3 !important;
    font-size: 0 !important;
  }
  .d4s-mega-mobile-head button:after {
    content: "←";
    font-size: 20px;
  }
  .d4s-mega-mobile-list {
    padding: 6px 0 18px !important;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .d4s-mega-mobile-list > a {
    min-height: 54px !important;
    padding: 12px 14px !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(11, 34, 71, 0.035);
    font-size: 16px !important;
    font-weight: 650 !important;
  }
  .d4s-mega-mobile-list > a b {
    transform: rotate(180deg);
    font-size: 22px !important;
    color: var(--ts-primary) !important;
  }
  .d4s-mega-mobile-all {
    margin: 10px 0 !important;
    min-height: 52px !important;
    border: 1px solid #d8e9ff;
    background: #eef6ff !important;
    font-size: 15px !important;
  }
  .d4s-mega-mobile-level > .d4s-mega-products,
  .d4s-mega-mobile-level > .d4s-mega-banner {
    margin: 12px 0 !important;
  }
}

/* D4S TechStore 1.1.68 - edge-to-edge RTL range, clean video thumb, smooth mobile drill-down */
.flex-control-thumbs li.d4s-video-thumb::before {
  background: transparent !important;
}
.flex-control-thumbs li.d4s-video-thumb:hover::before {
  background: transparent !important;
}

/* Price range: allow the thumb circles to physically reach both outer edges. */
.d4s-range {
  margin-left: 0 !important;
  margin-right: 0 !important;
  direction: ltr !important;
  overflow: visible;
}
.d4s-range-track {
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(
    to right,
    #e4eaf1 0,
    #e4eaf1 var(--from),
    var(--ts-primary) var(--from),
    var(--ts-primary) var(--to),
    #e4eaf1 var(--to),
    #e4eaf1 100%
  ) !important;
}
.d4s-range input[type="range"] {
  left: -10px !important;
  right: auto !important;
  width: calc(100% + 20px) !important;
  direction: ltr !important;
  background: transparent !important;
}
.d4s-range input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
  border: 0;
}
.d4s-range input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
  border: 0;
}

@media (max-width: 767px) {
  .d4s-mega-mobile {
    overflow: hidden !important;
  }
  .d4s-mega-mobile-level,
  .d4s-mega-mobile-level[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1),
      opacity 0.18s ease, visibility 0s linear 0.28s;
    will-change: transform;
    z-index: 10 !important;
  }
  .d4s-mega-mobile-level[data-mobile-level="0"] {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1 !important;
  }
  .d4s-mega-mobile-level.is-active {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.24, 1),
      opacity 0.18s ease, visibility 0s !important;
    z-index: 30 !important;
  }
  .d4s-mega-mobile-level.is-closing {
    transform: translateX(-100%) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    z-index: 30 !important;
  }
  .d4s-mega-mobile-head {
    grid-template-columns: 42px 1fr 42px !important;
  }
  .d4s-mega-mobile-head button {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  .d4s-mega-mobile-head button:after {
    content: "→" !important;
    font-size: 21px !important;
  }
  .d4s-mega-mobile-list > a {
    transition: background 0.18s ease, border-color 0.18s ease,
      transform 0.18s ease !important;
  }
  .d4s-mega-mobile-list > a:active {
    background: #eef6ff !important;
    border-color: #cfe3fb !important;
    transform: scale(0.99);
  }
  .d4s-mega-mobile-list > a b {
    transform: none !important;
    font-size: 0 !important;
  }
  .d4s-mega-mobile-list > a b:after {
    content: "‹";
    font-size: 24px;
    line-height: 1;
    color: var(--ts-primary);
  }
}

/* 1.1.69 - Compare action anchored to the product image */
@media (min-width: 769px) {
  .woocommerce ul.products li.product .ts-compare-add {
    top: var(--d4s-compare-top, 220px) !important;
    right: var(--d4s-compare-right, 28px) !important;
    bottom: auto !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease,
      color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  }
  .woocommerce ul.products li.product:hover .ts-compare-add,
  .woocommerce ul.products li.product:focus-within .ts-compare-add {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
}
.woocommerce ul.products li.product .ts-compare-add::before {
  width: 18px;
  height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v14h3l-4 4-4-4h3V3Zm9 0 4 4h-3v14h-2V7h-3l4-4Z'/%3E%3C/svg%3E")
    center/contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M7 3h2v14h3l-4 4-4-4h3V3Zm9 0 4 4h-3v14h-2V7h-3l4-4Z'/%3E%3C/svg%3E")
    center/contain no-repeat !important;
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product .ts-compare-add {
    display: none !important;
  }
}

/* 1.1.73 - Refined product actions: equal sizing, subtle hover, click-only loader */
a.added_to_cart.wc-forward {
  display: none !important;
}
.single-product div.product form.cart > .d4s-product-action {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 20px !important;
}
.d4s-product-action {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease, filter 0.16s ease !important;
  isolation: isolate;
}
.d4s-product-action:hover {
  transform: none !important;
  filter: brightness(0.975);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1) !important;
}
.d4s-product-action--cart {
  background: var(--ts-primary, #0068ef) !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(0, 104, 239, 0.14) !important;
}
.d4s-product-action--quote {
  background: #071a38 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(3, 23, 56, 0.12) !important;
}
.d4s-action-icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
  transform: none !important;
}
.d4s-action-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.d4s-product-action.loading {
  pointer-events: none;
  cursor: wait;
  filter: none !important;
  opacity: 0.94;
}
.d4s-product-action.loading .d4s-action-icon {
  font-size: 0;
}
.d4s-product-action.loading .d4s-action-icon svg {
  display: none;
}
.d4s-product-action.loading .d4s-action-icon:after {
  content: "";
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: d4sActionSpinner 0.7s linear infinite;
}
@keyframes d4sActionSpinner {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .single-product div.product form.cart {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .single-product div.product form.cart > .quantity {
    grid-column: 1/-1;
    width: 126px !important;
    height: 48px !important;
  }
  .single-product div.product form.cart > .d4s-product-action {
    grid-column: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    border-radius: 9px !important;
  }
  .single-product div.product form.cart > input[type="hidden"],
  .single-product div.product form.cart > .pofw-product-options-wrapper,
  .single-product div.product form.cart > script {
    grid-column: 1/-1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d4s-product-action,
  .d4s-action-icon {
    transition: none !important;
  }
  .d4s-product-action.loading .d4s-action-icon:after {
    animation-duration: 1.2s;
  }
}

/* 1.1.74 - Mobile stacked actions + suppress WooCommerce default loader */
/* WooCommerce adds its own :after font spinner to .loading buttons. D4S uses the custom icon loader instead. */
.woocommerce .d4s-product-action.loading::after,
.woocommerce .d4s-product-action.loading:after,
.woocommerce a.button.loading::after,
.woocommerce a.button.loading:after,
.woocommerce button.button.loading::after,
.woocommerce button.button.loading:after,
.woocommerce input.button.loading::after,
.woocommerce input.button.loading:after {
  content: none !important;
  display: none !important;
  animation: none !important;
  font-family: inherit !important;
}
.woocommerce .d4s-product-action.loading {
  padding-right: 20px !important;
  padding-left: 20px !important;
}
@media (max-width: 768px) {
  .single-product div.product form.cart {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .single-product div.product form.cart > .quantity,
  .single-product div.product form.cart > .d4s-product-action,
  .single-product div.product form.cart > input[type="hidden"],
  .single-product div.product form.cart > .pofw-product-options-wrapper,
  .single-product div.product form.cart > script {
    grid-column: 1/-1 !important;
  }
  .single-product div.product form.cart > .d4s-product-action {
    width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    font-size: 15px !important;
    padding: 0 16px !important;
  }
}

/* 1.1.75 - Product action height */
.single-product div.product form.cart > .d4s-product-action {
  height: 48px !important;
  min-height: 48px !important;
}
@media (max-width: 768px) {
  .single-product div.product form.cart > .d4s-product-action {
    height: 48px !important;
    min-height: 48px !important;
  }
}

/* 1.1.78 - Quote-only product action sizing */
@media (min-width: 769px) {
  .single-product
    div.product
    form.cart.d4s-quote-only-form
    > .d4s-product-action--quote {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 210px !important;
    max-width: 260px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 24px !important;
  }
}
@media (max-width: 768px) {
  .single-product
    div.product
    form.cart.d4s-quote-only-form
    > .d4s-product-action--quote {
    width: 100% !important;
    max-width: none !important;
  }
}

/* 1.1.79 - Product meta typography + quote-only layout */
.single-product .product_meta {
  font-size: 16px !important;
  line-height: 1.3 !important;
}
@media (min-width: 769px) {
  .single-product div.product form.cart.d4s-quote-only-form {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .single-product div.product form.cart.d4s-quote-only-form > .quantity {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  .single-product
    div.product
    form.cart.d4s-quote-only-form
    > .d4s-product-action--quote {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 210px !important;
    max-width: 260px !important;
    margin: 0 !important;
  }
}

/* 1.1.81 - restore original product columns; arrows belong to thumbnails only */
.single-product div.product div.images.woocommerce-product-gallery {
  min-width: 0;
  box-sizing: border-box;
  position: relative;
}
/* Do not override FlexSlider's inline slide widths. Keep the image contained in its own slide. */
.single-product .woocommerce-product-gallery__image > a {
  box-sizing: border-box;
  max-width: 100%;
}
.single-product .woocommerce-product-gallery__image img:not(.zoomImg) {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

.single-product .d4s-thumb-arrow {
  position: absolute;
  z-index: 14;
  display: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #dbe3ec;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #0b2247;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.1);
  cursor: pointer;
}
.single-product .d4s-thumb-arrow.is-visible {
  display: flex;
}
.single-product .d4s-thumb-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}
.single-product .d4s-thumb-arrow:hover {
  background: #fff;
  border-color: #bfcbd8;
}
@media (min-width: 769px) {
  .single-product .d4s-thumb-arrow {
    right: 27px;
    transform: rotate(90deg);
  }
  .single-product .d4s-thumb-arrow--prev {
    top: 6px;
  }
  .single-product .d4s-thumb-arrow--next {
    top: 486px;
  }
  .single-product .flex-control-thumbs.d4s-has-thumb-nav {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
    scroll-behavior: smooth;
  }
}
@media (max-width: 768px) {
  .single-product .d4s-thumb-arrow {
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .single-product .d4s-thumb-arrow--prev {
    right: 4px;
  }
  .single-product .d4s-thumb-arrow--next {
    left: 4px;
  }
  .single-product .flex-control-thumbs.d4s-has-thumb-nav {
    padding-right: 40px !important;
    padding-left: 40px !important;
    scroll-behavior: smooth;
  }
}

/* Quote button: whenever a quote action exists without a quantity control, JS injects one. */
@media (min-width: 769px) {
  .single-product div.product form.cart.d4s-quote-only-form > .quantity,
  .single-product div.product form.cart .d4s-quote-only-quantity {
    flex: 0 0 126px !important;
    width: 126px !important;
    margin: 0 !important;
  }
  .single-product
    div.product
    form.cart.d4s-quote-only-form
    > .d4s-product-action--quote {
    width: auto !important;
    max-width: 260px !important;
    min-width: 210px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
}

/* 1.1.83 - product actions + gallery containment */
/* D4S buttons already contain their own SVG icon; do not add the legacy pseudo cart icon. */
.woocommerce
  ul.products
  li.product
  .add_to_cart_button.d4s-product-action::before {
  content: none !important;
  display: none !important;
}

/* Keep the custom loading indicator perfectly circular. */
.d4s-product-action.loading .d4s-action-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  flex: 0 0 20px !important;
  aspect-ratio: 1/1 !important;
}
.d4s-product-action.loading .d4s-action-icon:after {
  content: "" !important;
  display: block !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  box-sizing: border-box !important;
  border: 2px solid rgba(255, 255, 255, 0.38) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  aspect-ratio: 1/1 !important;
  animation: d4sActionSpinner 0.7s linear infinite !important;
}

/* Let both desktop product columns shrink correctly without making the gallery full-page width. */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  min-width: 0 !important;
  box-sizing: border-box;
}
.single-product div.product .woocommerce-product-gallery {
  max-width: 100%;
  overflow: hidden;
}
.single-product div.product .woocommerce-product-gallery .flex-viewport {
  max-width: 100%;
  overflow: hidden !important;
}
.single-product div.product .woocommerce-product-gallery__image > a {
  max-width: 100%;
  box-sizing: border-box;
}
.single-product
  div.product
  .woocommerce-product-gallery__image
  img:not(.zoomImg) {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Quote-only quantity must remain visible next to the quote action on desktop. */
.single-product
  div.product
  form.cart.d4s-quote-only-form
  > .quantity.d4s-quote-only-quantity {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 1.1.84 - mobile WooCommerce FlexSlider width synchronization */
@media (max-width: 768px) {
  .single-product div.product .woocommerce-product-gallery,
  .single-product div.product .woocommerce-product-gallery .flex-viewport {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .single-product div.product .woocommerce-product-gallery__image,
  .single-product div.product .woocommerce-product-gallery__image > a {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 1.1.85 - mobile product gallery containment and real column width */
@media (max-width: 768px) {
  .single-product .ts-wrap {
    width: calc(100% - 15px) !important;
  }
  .single-product div.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .single-product div.product div.images.woocommerce-product-gallery,
  .single-product div.product div.summary {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    clear: both !important;
  }
  .single-product
    div.product
    div.images.woocommerce-product-gallery
    .flex-viewport {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .single-product
    div.product
    div.images.woocommerce-product-gallery
    .woocommerce-product-gallery__image,
  .single-product
    div.product
    div.images.woocommerce-product-gallery
    .woocommerce-product-gallery__image
    > a {
    box-sizing: border-box !important;
    max-width: 100% !important;
  }
}
\n\n/* 1.1.86 - requested typography + AJAX WooCommerce error lightbox */
.ts-product-value-item strong {
  font-size: 15px;
}
.ts-product-value-item small {
  font-size: 13.5px;
}
.ts-benefits h3 {
  font-size: 16px;
}
.ts-benefits p {
  font-size: 15px;
}
body.d4s-error-modal-open {
  overflow: hidden;
}
.d4s-cart-error-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  direction: rtl;
}
.d4s-cart-error-modal.is-open {
  display: flex;
}
.d4s-cart-error-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 23, 56, 0.58);
  backdrop-filter: blur(3px);
}
.d4s-cart-error-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 30px 28px 24px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(3, 23, 56, 0.24);
}
.d4s-cart-error-x {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f3f6fa;
  color: #243a59;
  font-size: 25px;
  line-height: 1;
}
.d4s-cart-error-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff1f1;
  color: #c62828;
  font-size: 25px;
  font-weight: 800;
}
.d4s-cart-error-dialog h3 {
  margin: 0 0 9px;
  font-size: 20px;
  color: var(--ts-navy);
}
.d4s-cart-error-message {
  font-size: 15px;
  line-height: 1.55;
  color: #536278;
  white-space: pre-line;
}
.d4s-cart-error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.d4s-cart-error-actions .button {
  min-height: 44px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  padding: 10px 18px !important;
  text-decoration: none !important;
}
.d4s-cart-error-close {
  background: #eef3f8 !important;
  color: #243a59 !important;
}
.d4s-cart-error-cart {
  background: var(--ts-primary) !important;
  color: #fff !important;
}
@media (max-width: 600px) {
  .d4s-cart-error-dialog {
    padding: 28px 18px 20px;
  }
  .d4s-cart-error-actions {
    flex-direction: column;
  }
  .d4s-cart-error-actions .button {
    width: 100% !important;
  }
  .d4s-cart-error-dialog h3 {
    font-size: 18px;
  }
}

/* 1.1.87 - thumbnail arrows: CSS shape, no SVG dependency */
.single-product .d4s-thumb-arrow {
  color: var(--ts-navy) !important;
}
.single-product .d4s-thumb-arrow svg {
  display: none !important;
}
.single-product .d4s-thumb-arrow::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  box-sizing: border-box;
}
@media (min-width: 769px) {
  /* Buttons themselves are rotated for the vertical rail; compensate here. */
  .single-product .d4s-thumb-arrow--prev::before {
    transform: rotate(225deg);
  }
  .single-product .d4s-thumb-arrow--next::before {
    transform: rotate(45deg);
  }
}
@media (max-width: 768px) {
  .single-product .d4s-thumb-arrow--prev::before {
    transform: rotate(225deg);
  }
  .single-product .d4s-thumb-arrow--next::before {
    transform: rotate(45deg);
  }
}

/* The slide width is synchronized by JS to .flex-viewport. Do not let media intrinsic width expand it. */
.single-product .woocommerce-product-gallery .flex-viewport {
  min-width: 0 !important;
}
.single-product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__image {
  min-width: 0 !important;
  overflow: hidden;
}

/* 1.1.88 - Product gallery: SVG lightbox trigger + disable hover zoom */
.single-product .woocommerce-product-gallery__trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--ts-navy) !important;
  font-size: 0 !important;
  line-height: 1 !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b2247' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 22px !important;
}
.single-product .woocommerce-product-gallery__trigger::before,
.single-product .woocommerce-product-gallery__trigger::after {
  content: none !important;
  display: none !important;
}
.single-product .woocommerce-product-gallery .zoomImg {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* 1.1.90 - Brand archive logo (full attachment size) */
.d4s-brand-archive-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 10px 0 25px;
}
.d4s-brand-archive-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 1.1.90 - Compare: center and style the clear-all action */
.d4s-compare-clear {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin: 24px auto !important;
  padding: 10px 24px !important;
  border: 1px solid var(--ts-navy, #14213d) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--ts-navy, #14213d) !important;
  font: 600 15px/1.2 inherit !important;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}
.d4s-compare-clear:hover {
  background: var(--ts-navy, #14213d) !important;
  color: #fff !important;
}

/* 1.1.95 - Single product brand logo: direct gallery child, centered below FlexSlider */
.single-product .d4s-single-product-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 16px 0 22px;
  clear: both;
}
.single-product .d4s-single-product-brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
}
.single-product .d4s-single-product-brand-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 110px;
  max-height: 50px;
  margin: 0;
  padding: 0;
  object-fit: contain;
}
@media (max-width: 767px) {
  .single-product .d4s-single-product-brand-logo-wrap {
    margin: 12px 0 18px;
  }
  .single-product .d4s-single-product-brand-logo-image {
    max-width: 100px;
    max-height: 46px;
  }
}

/* 1.1.96 - Center brand logo exactly below the large product image column. */
@media (min-width: 769px) {
  .single-product div.product div.images.woocommerce-product-gallery {
    grid-template-areas:
      "thumbs main"
      ". brand" !important;
  }
  .single-product .d4s-single-product-brand-logo-wrap {
    grid-area: brand;
    width: 100%;
    margin: 14px 0 22px;
    justify-self: stretch;
    align-self: start;
  }
}
@media (max-width: 768px) {
  .single-product .d4s-single-product-brand-logo-wrap {
    width: 100%;
    margin: 12px 0 18px;
  }
}

/* ==========================================
   PRODUCT ARCHIVES - UNCROPPED IMAGES
   Shop, product categories, tags and brands
   ========================================== */

.woocommerce
  ul.products
  li.product
  .woocommerce-LoopProduct-link.woocommerce-loop-product__link
  > img {
  display: block;
  width: 100%;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto 18px;
}

@media (max-width: 1024px) {
  .woocommerce
    ul.products
    li.product
    .woocommerce-LoopProduct-link.woocommerce-loop-product__link
    > img {
    height: 190px;
  }
}

@media (max-width: 767px) {
  .woocommerce
    ul.products
    li.product
    .woocommerce-LoopProduct-link.woocommerce-loop-product__link
    > img {
    height: 160px;
  }
}

/* ============================================================
   D4S TechStore - Product Comparison Dialog
   Scoped to the comparison modal; does not change other tables.
   ============================================================ */

.ts-compare-dialog {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  max-height: min(90dvh, 950px);
  margin: auto;
  padding: 0;
  border: 1px solid #e5ebf4;
  border-radius: 20px;
  background: #ffffff;
  color: #14213d;
  box-shadow: 0 24px 80px rgba(12, 32, 66, 0.24);
  direction: rtl;
  overflow: auto;
  overscroll-behavior: contain;
}

.ts-compare-dialog::backdrop {
  background: rgba(12, 26, 49, 0.66);
  backdrop-filter: blur(4px);
}

.ts-compare-dialog .ts-dialog-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px 12px;
  background: #ffffff;
}

.ts-compare-dialog .ts-dialog-head h2 {
  margin: 0;
  color: #14213d;
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}

.ts-compare-dialog [data-ts-compare-close] {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e3eaf3;
  border-radius: 12px;
  background: #f4f7fb;
  color: #253858;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ts-compare-dialog [data-ts-compare-close]:hover {
  background: #e8eef8;
  color: #163d85;
}

.ts-compare-dialog > p {
  margin: 0;
  padding: 0 28px 20px;
  color: #6b7890;
  font-size: 13px;
  line-height: 1.6;
}

.ts-compare-dialog [data-ts-compare-content] {
  padding: 0 28px 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ts-compare-dialog [data-ts-compare-content] > table {
  width: 100%;
  min-width: 660px;
  margin: 0;
  border: 1px solid #e5ebf4;
  border-spacing: 0;
  border-collapse: separate;
  border-radius: 14px;
  table-layout: fixed;
  overflow: hidden;
  background: #ffffff;
}

.ts-compare-dialog table th,
.ts-compare-dialog table td {
  box-sizing: border-box;
  padding: 15px 16px;
  border: 0;
  border-inline-start: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
  vertical-align: middle;
  text-align: right;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.ts-compare-dialog table tr > :first-child {
  border-inline-start: 0;
}

.ts-compare-dialog table tr:last-child > * {
  border-bottom: 0;
}

.ts-compare-dialog table th[scope="row"] {
  width: 135px;
  background: #f3f6fb;
  color: #253858;
  font-weight: 700;
  white-space: normal;
}

.ts-compare-dialog table tr:not(:first-child):nth-child(odd) td {
  background: #fbfcff;
}

.ts-compare-dialog table tr:first-child td {
  padding: 18px 14px 20px;
  text-align: center;
  vertical-align: top;
  background: #ffffff;
}

.ts-compare-dialog table tr:first-child td img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: 125px;
  margin: 0 auto 12px;
  object-fit: contain;
  object-position: center;
}

.ts-compare-dialog table tr:first-child td > a {
  display: -webkit-box;
  min-height: 58px;
  margin: 0 auto 12px;
  overflow: hidden;
  color: #14213d;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.ts-compare-dialog table tr:first-child td > a:hover {
  color: var(--ts-primary, #3563ee);
}

.ts-compare-dialog table tr:first-child td > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #e3e9f2;
  border-radius: 8px;
  background: #f7f9fc;
  color: #67758b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ts-compare-dialog table tr:first-child td > button:hover {
  border-color: #f5caca;
  background: #fff1f1;
  color: #b42330;
}

.ts-compare-dialog .d4s-compare-clear {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 22px auto 0 !important;
  padding: 9px 22px !important;
  border: 1px solid #e0e6f0 !important;
  border-radius: 9px !important;
  background: #f7f9fc !important;
  color: #394b69 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.ts-compare-dialog .d4s-compare-clear:hover {
  background: #eaf0f9 !important;
  color: #14213d !important;
}

@media (max-width: 767px) {
  .ts-compare-dialog {
    width: calc(100% - 16px);
    max-height: 92dvh;
    border-radius: 14px;
  }

  .ts-compare-dialog .ts-dialog-head {
    padding: 16px 16px 10px;
  }

  .ts-compare-dialog > p {
    padding: 0 16px 16px;
  }

  .ts-compare-dialog [data-ts-compare-content] {
    padding: 0 12px 20px;
  }

  .ts-compare-dialog table th[scope="row"] {
    width: 105px;
  }

  .ts-compare-dialog table th,
  .ts-compare-dialog table td {
    padding: 11px 10px;
    font-size: 12px;
  }

  .ts-compare-dialog table tr:first-child td img {
    height: 100px;
  }
}

/* ==========================================
   D4S TECHSTORE - BRAND ARCHIVE
   ========================================== */

.d4s-brand-archive-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 16px 28px;
  margin-bottom: 22px;
  text-align: center;
}

.d4s-brand-archive-header .d4s-brand-archive-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  width: 100%;
}

.d4s-brand-archive-header .d4s-brand-archive-logo-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(220px, 70%);
  max-height: 105px;
  object-fit: contain;
}

.d4s-brand-archive-title {
  margin: 0;
  color: var(--ts-navy);
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.5;
}

.d4s-brand-archive-description {
  clear: both;
  margin: 38px 0 20px;
  padding: 28px 32px;
  border: 1px solid #e5ebf4;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--ts-navy);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.d4s-brand-archive-description h2 {
  margin: 0 0 16px;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
}

.d4s-brand-archive-description p:last-child {
  margin-bottom: 0;
}

/* D4S Direct B2B contact page — Elementor 3.11.7 legacy sections */
.d4s-contact-hero,
.d4s-contact-services-heading,
.d4s-contact-services-grid,
.d4s-contact-main,
.d4s-contact-bottom {
  direction: rtl;
  color: #15284a;
}
.d4s-contact-hero {
  background: #f3f7ff;
  border-radius: 22px;
  padding: 50px 16px;
  text-align: center;
  margin: 18px auto 0;
}
.d4s-contact-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  margin: 8px 0 16px;
}
.d4s-contact-hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
}
.d4s-contact-hero .d4s-kicker {
  color: #3464ee;
  font-size: 13px;
  font-weight: 800;
}
.d4s-contact-services-heading {
  padding: 48px 0 12px;
  text-align: center;
}
.d4s-contact-services-grid {
  padding-bottom: 32px;
}
.d4s-contact-services-grid > .elementor-container {
  gap: 16px;
}
.d4s-contact-services-grid .elementor-column {
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  padding: 22px 12px;
}
.d4s-contact-services-grid .elementor-icon,
.d4s-contact-info-card .elementor-icon {
  color: #3464ee;
}
.d4s-contact-main {
  padding: 12px 0 52px;
}
.d4s-contact-main > .elementor-container {
  gap: 22px;
  align-items: stretch;
}
.d4s-contact-form-card,
.d4s-contact-info-card {
  background: #fff;
  border: 1px solid #e5eaf3;
  border-radius: 20px;
  padding: 28px 20px;
  box-shadow: 0 10px 32px rgba(18, 39, 76, 0.045);
}
.d4s-contact-info-card {
  background: #f8faff;
}
.d4s-contact-info-card .elementor-widget-icon-box {
  margin-bottom: 12px;
}
.d4s-contact-form .elementor-field {
  border: 1px solid #dce4f1;
  border-radius: 10px;
  background: #fbfcff;
  min-height: 46px;
}
.d4s-contact-form textarea.elementor-field {
  min-height: 130px;
}
.d4s-contact-form .elementor-button {
  background: #3464ee;
  border-radius: 10px;
  min-height: 48px;
  font-weight: 700;
}
.d4s-contact-form .elementor-button:hover {
  background: #244dca;
}
.d4s-contact-bottom {
  text-align: center;
  padding: 30px 16px;
  border-radius: 18px;
  background: #edf3ff;
  margin-bottom: 38px;
}
@media (max-width: 767px) {
  .d4s-contact-hero {
    padding: 35px 10px;
  }
  .d4s-contact-services-grid > .elementor-container,
  .d4s-contact-main > .elementor-container {
    gap: 14px;
  }
  .d4s-contact-form-card,
  .d4s-contact-info-card {
    padding: 20px 12px;
  }
}

/* Contact details: refined interactive panel */
.d4s-contact-info-card--premium {
  padding: 0 !important;
  overflow: hidden;
  background: #fff !important;
}
.d4s-contact-panel {
  font-family: inherit;
  color: #15284a;
  text-align: right;
}
.d4s-contact-panel * {
  box-sizing: border-box;
}
.d4s-contact-panel__header {
  padding: 30px 28px 20px;
  background: linear-gradient(145deg, #f0f5ff 0%, #ffffff 100%);
}
.d4s-contact-panel__eyebrow {
  display: inline-block;
  color: #3563df;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 9px;
}
.d4s-contact-panel__header h2 {
  font-size: clamp(23px, 2vw, 29px);
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 10px;
  color: #172a4e;
}
.d4s-contact-panel__header p {
  font-size: 17px;
  line-height: 1.85;
  color: #64718a;
  margin: 0;
}
.d4s-contact-panel__links {
  padding: 20px 22px 12px;
  display: grid;
  gap: 11px;
}
.d4s-contact-method {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 14px;
  border: 1px solid #e4eaf4;
  border-radius: 14px;
  background: #fff;
  text-decoration: none !important;
  color: #1b2c4b !important;
  transition: border-color 0.2s, background 0.2s, transform 0.2s,
    box-shadow 0.2s;
  min-width: 0;
}
.d4s-contact-method:hover,
.d4s-contact-method:focus-visible {
  border-color: #9fb6f7;
  background: #f7faff;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(34, 75, 153, 0.08);
}
.d4s-contact-method__icon {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 13px;
  background: #eaf1ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #315fdf;
}
.d4s-contact-method__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.d4s-contact-method__body strong {
  font-size: 17px;
  font-weight: 800;
}
.d4s-contact-method__body > span {
  font-size: 15px;
  color: #64718a;
  text-align: right;
  overflow-wrap: anywhere;
}
.d4s-contact-method__arrow {
  color: #315fdf;
  font-size: 20px;
}
.d4s-contact-panel__meta {
  display: grid;
  gap: 0;
  margin: 6px 22px 0;
  border-top: 1px solid #e8edf6;
}
.d4s-contact-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 19px 3px;
}
.d4s-contact-detail + .d4s-contact-detail {
  border-top: 1px solid #edf1f7;
}
.d4s-contact-detail__icon {
  color: #315fdf;
  font-size: 24px;
  width: 28px;
  flex: 0 0 28px;
  line-height: 1.2;
}
.d4s-contact-detail strong {
  font-size: 17px;
  font-weight: 800;
}
.d4s-contact-detail p {
  margin: 5px 0 2px;
  font-size: 15px;
  color: #384a69;
  line-height: 1.6;
}
.d4s-contact-detail small {
  display: block;
  font-size: 14px;
  color: #78859b;
  line-height: 1.6;
}
.d4s-contact-panel__notice {
  margin: 5px 22px 24px;
  border-radius: 13px;
  background: #eff5ff;
  border-right: 3px solid #4273e9;
  padding: 15px 17px;
}
.d4s-contact-panel__notice strong {
  font-size: 15px;
  color: #254fae;
}
.d4s-contact-panel__notice p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: #536681;
}
@media (max-width: 767px) {
  .d4s-contact-panel__header {
    padding: 25px 20px 19px;
  }
  .d4s-contact-panel__links {
    padding: 17px 15px 10px;
  }
  .d4s-contact-panel__meta {
    margin-inline: 15px;
  }
  .d4s-contact-panel__notice {
    margin-inline: 15px;
  }
  .d4s-contact-method__icon {
    flex-basis: 42px;
    height: 42px;
  }
}

/* WhatsApp contact action: opens the existing D4S floating chat */
.d4s-contact-method--whatsapp {
  width: 100%;
  font: inherit;
  text-align: right;
  cursor: pointer;
  appearance: none;
}

.d4s-contact-method--whatsapp .d4s-contact-method__icon {
  color: #128c59;
  background: #e8f8ef;
}

.d4s-contact-method--whatsapp:hover,
.d4s-contact-method--whatsapp:focus-visible {
  border-color: #8bd9af;
  background: #f3fcf7;
}

.d4s-contact-method--whatsapp .d4s-contact-method__arrow {
  color: #128c59;
}

/* ==========================================
   DIRECT B2B - RETURNS & CANCELLATIONS
   ========================================== */

.d4s-returns {
  --d4s-primary: #202c47;
  --d4s-accent: #2874d0;
  --d4s-text: #334155;
  --d4s-muted: #64748b;
  --d4s-border: #e5eaf1;
  --d4s-light: #f6f9fd;

  direction: rtl;
  font-family: "Assistant", Arial, sans-serif;
  color: var(--d4s-text);
  line-height: 1.85;
  padding: 35px 0 70px;
}

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

/* Header */

.d4s-returns-header {
  text-align: center;
  margin-bottom: 45px;
}

.d4s-returns-eyebrow {
  display: inline-block;
  color: var(--d4s-accent);
  background: #edf5ff;
  padding: 5px 17px;
  border-radius: 30px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 15px;
}

.d4s-returns-header h1 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.3;
  font-weight: 800;
  color: var(--d4s-primary);
  margin: 0 0 14px;
}

.d4s-returns-header p {
  font-size: 17px;
  color: var(--d4s-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Intro */

.d4s-returns-intro {
  padding: 24px 28px;
  border: 1px solid #dce8f8;
  border-right: 4px solid var(--d4s-accent);
  background: var(--d4s-light);
  border-radius: 12px;
  margin-bottom: 35px;
}

.d4s-returns-intro p {
  margin: 0;
  font-size: 16px;
}

/* Steps */

.d4s-returns-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 45px;
}

.d4s-returns-step {
  padding: 26px 23px;
  background: #fff;
  border: 1px solid var(--d4s-border);
  border-radius: 15px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.d4s-returns-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(25, 47, 80, 0.07);
}

.d4s-returns-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf5ff;
  color: var(--d4s-accent);
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 17px;
}

.d4s-returns-step h3 {
  color: var(--d4s-primary);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

.d4s-returns-step p {
  font-size: 15px;
  color: var(--d4s-muted);
  line-height: 1.8;
  margin: 0;
}

/* Content */

.d4s-returns-section {
  margin-bottom: 32px;
}

.d4s-returns-section h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--d4s-primary);
  margin: 0 0 18px;
}

.d4s-returns-panel {
  background: #fff;
  border: 1px solid var(--d4s-border);
  border-radius: 15px;
  padding: 27px 30px;
  margin-bottom: 16px;
}

.d4s-returns-panel h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--d4s-primary);
  margin: 0 0 12px;
}

.d4s-returns-panel p {
  margin: 0 0 12px;
  font-size: 16px;
}

.d4s-returns-panel p:last-child {
  margin-bottom: 0;
}

.d4s-returns-note {
  background: #f8fafc;
  border: 1px solid var(--d4s-border);
  border-radius: 12px;
  padding: 21px 25px;
  margin-top: 20px;
}

.d4s-returns-note strong {
  color: var(--d4s-primary);
}

/* CTA */

.d4s-returns-cta {
  text-align: center;
  background: var(--d4s-light);
  border-radius: 18px;
  padding: 35px 25px;
  margin-top: 45px;
}

.d4s-returns-cta h2 {
  color: var(--d4s-primary);
  font-size: 24px;
  margin: 0 0 8px;
}

.d4s-returns-cta p {
  color: var(--d4s-muted);
  margin: 0 0 22px;
}

.d4s-returns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9px;
  background: var(--d4s-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.25s ease, transform 0.25s ease;
}

.d4s-returns-button:hover {
  background: var(--d4s-accent);
  transform: translateY(-2px);
}

.d4s-terms {
  --navy: #202c47;
  --blue: #2874d0;
  --ink: #334155;
  --muted: #64748b;
  --line: #e4eaf2;
  --soft: #f5f8fd;
  direction: rtl;
  font-family: "Assistant", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.9;
  padding: 26px 0 70px;
}
.d4s-terms * {
  box-sizing: border-box;
}
.d4s-terms a {
  color: #2468b7;
  text-underline-offset: 3px;
}
.d4s-terms .hero {
  background: linear-gradient(130deg, #f0f6ff, #fff 65%);
  border: 1px solid #e3edf9;
  border-radius: 22px;
  padding: 42px 35px;
  margin-bottom: 26px;
}
.d4s-terms .eyebrow {
  display: inline-block;
  background: #e7f1ff;
  color: #2468b7;
  border-radius: 99px;
  padding: 3px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.d4s-terms .hero h1 {
  font-size: clamp(27px, 3vw, 42px);
  line-height: 1.25;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 800;
}
.d4s-terms .hero p {
  margin: 0;
  max-width: 800px;
  color: var(--muted);
  font-size: 16px;
}
.d4s-terms .notice {
  border-right: 4px solid var(--blue);
  background: #f1f7ff;
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 15px;
}
.d4s-terms .layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.d4s-terms .toc {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.d4s-terms .toc h2 {
  font-size: 18px;
  color: var(--navy);
  margin: 0 0 12px;
}
.d4s-terms .toc a {
  display: block;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  text-decoration: none;
  color: #52647e;
  line-height: 1.5;
}
.d4s-terms .toc a:hover,
.d4s-terms .toc a:focus {
  background: #edf5ff;
  color: var(--blue);
}
.d4s-terms .content {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px;
  overflow-wrap: anywhere;
}
.d4s-terms .content h1 {
  font-size: 25px;
  color: var(--navy);
  margin: 20px 0;
}
.d4s-terms .content h2 {
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
  padding: 18px 18px 14px;
  margin: 38px 0 18px;
  background: var(--soft);
  border-right: 3px solid var(--blue);
  border-radius: 10px;
  scroll-margin-top: 110px;
}
.d4s-terms .content h3 {
  font-size: 19px;
  color: var(--navy);
  margin: 18px 0 9px;
}
.d4s-terms .content p,
.d4s-terms .content li {
  font-size: 15.5px;
  margin: 0 0 14px;
  line-height: 1.95;
}
.d4s-terms .content ol,
.d4s-terms .content ul {
  padding-right: 23px;
  margin: 10px 0 20px;
}
.d4s-terms .content strong {
  font-weight: 700;
}
.d4s-terms .footer {
  margin-top: 24px;
  border-radius: 16px;
  background: var(--soft);
  padding: 25px;
  text-align: center;
}
.d4s-terms .footer h2 {
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--navy);
}
.d4s-terms .footer a {
  font-weight: 700;
}
@media (max-width: 900px) {
  .d4s-terms .layout {
    grid-template-columns: 1fr;
  }
  .d4s-terms .toc {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }
  .d4s-terms .toc h2 {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .d4s-terms .wrap {
    padding: 0 12px;
  }
  .d4s-terms .hero {
    padding: 25px 20px;
  }
  .d4s-terms .content {
    padding: 17px 16px;
  }
  .d4s-terms .content h2 {
    font-size: 19px;
    padding: 13px;
  }
  .d4s-terms .toc {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .d4s-terms .toc a {
    transition: background 0.2s, color 0.2s;
  }
}

.d4s-access {
  --ink: #202c47;
  --blue: #2874d0;
  --muted: #64748b;
  --line: #e5eaf1;
  --soft: #f6f9fd;
  direction: rtl;
  font-family: Assistant, Arial, sans-serif;
  color: #334155;
  line-height: 1.85;
  padding: 35px 0 65px;
}
.d4s-access * {
  box-sizing: border-box;
}
.d4s-access__hero {
  text-align: center;
  margin-bottom: 35px;
}
.d4s-access__eyebrow {
  display: inline-block;
  padding: 5px 17px;
  border-radius: 30px;
  background: #edf5ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.d4s-access h1 {
  font-size: clamp(29px, 3.4vw, 43px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 800;
}
.d4s-access__hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}
.d4s-access__intro {
  background: var(--soft);
  border: 1px solid #dce8f8;
  border-right: 4px solid var(--blue);
  border-radius: 14px;
  padding: 25px 28px;
  margin-bottom: 28px;
}
.d4s-access__intro p {
  margin: 0 0 12px;
}
.d4s-access__intro p:last-child {
  margin: 0;
}
.d4s-access__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 34px;
}
.d4s-access__feature {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  background: #fff;
}
.d4s-access__feature strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 5px;
}
.d4s-access__feature p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.d4s-access__number {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  color: var(--blue);
  font-weight: 800;
  margin-bottom: 12px;
}
.d4s-access__section {
  margin: 0 0 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 27px 30px;
  scroll-margin-top: 100px;
}
.d4s-access__section h2 {
  font-size: 23px;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 800;
}
.d4s-access__section p {
  margin: 0 0 12px;
}
.d4s-access__section p:last-child {
  margin-bottom: 0;
}
.d4s-access__section ul {
  padding: 0 22px 0 0;
  margin: 10px 0;
  columns: 2;
  column-gap: 36px;
}
.d4s-access__section li {
  break-inside: avoid;
  margin: 0 0 9px;
  padding-right: 3px;
}
.d4s-access__keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.d4s-access__key {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 10px;
  padding: 12px 15px;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.d4s-access kbd {
  font: 600 13px Arial, sans-serif;
  direction: ltr;
  display: inline-block;
  white-space: nowrap;
  border: 1px solid #d6dfeb;
  border-bottom-width: 2px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--ink);
}
.d4s-access__contact {
  text-align: center;
  background: var(--soft);
  border-radius: 18px;
  padding: 33px 25px;
  margin-top: 30px;
}
.d4s-access__contact h2 {
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
}
.d4s-access__contact p {
  margin: 0 0 20px;
  color: var(--muted);
}
.d4s-access__button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 9px;
  padding: 12px 25px;
  font-weight: 700;
  transition: background 0.2s;
}
.d4s-access__button:hover,
.d4s-access__button:focus-visible {
  background: var(--blue);
}
.d4s-access a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.d4s-access__small {
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 767px) {
  .d4s-access {
    padding: 20px 0 45px;
  }
  .d4s-access__grid,
  .d4s-access__keys {
    grid-template-columns: 1fr;
  }
  .d4s-access__section,
  .d4s-access__intro {
    padding: 20px;
  }
  .d4s-access__section ul {
    columns: 1;
  }
  .d4s-access__contact {
    padding: 27px 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d4s-access__button {
    transition: none;
  }
}

/* Direct B2B | Shipping & Returns Policy */
.d4s-shipping {
  --ink: #202c47;
  --blue: #2874d0;
  --muted: #64748b;
  --line: #e5eaf1;
  --pale: #f6f9fd;
  direction: rtl;
  font-family: "Assistant", Arial, sans-serif;
  color: #334155;
  line-height: 1.85;
  padding: 35px 0 65px;
}
.d4s-shipping * {
  box-sizing: border-box;
}
.d4s-shipping .hero {
  text-align: center;
  margin-bottom: 36px;
}
.d4s-shipping .eyebrow {
  display: inline-block;
  background: #edf5ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 14px;
}
.d4s-shipping h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 800;
}
.d4s-shipping .hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
  margin: 0 auto;
}
.d4s-shipping .alert {
  border: 1px solid #dce8f8;
  border-right: 4px solid var(--blue);
  background: var(--pale);
  padding: 20px 25px;
  border-radius: 12px;
  margin-bottom: 26px;
}
.d4s-shipping .alert strong {
  color: var(--ink);
}
.d4s-shipping .quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
.d4s-shipping .quick-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.d4s-shipping .quick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(25, 47, 80, 0.07);
}
.d4s-shipping .symbol {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: #edf5ff;
  border-radius: 12px;
  color: var(--blue);
  font-size: 22px;
  margin-bottom: 12px;
}
.d4s-shipping .quick-card h2 {
  font-size: 19px;
  margin: 0 0 5px;
  color: var(--ink);
}
.d4s-shipping .quick-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.d4s-shipping .section {
  margin: 0 0 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 27px 30px;
  scroll-margin-top: 110px;
}
.d4s-shipping .section h2 {
  font-size: 23px;
  color: var(--ink);
  margin: 0 0 15px;
  font-weight: 800;
}
.d4s-shipping .section ul {
  padding: 0 22px 0 0;
  margin: 0;
}
.d4s-shipping .section li {
  padding: 5px 0;
  font-size: 16px;
}
.d4s-shipping .section li::marker {
  color: var(--blue);
}
.d4s-shipping .section li + li {
  border-top: 1px solid #f0f3f7;
}
.d4s-shipping .section p {
  margin: 0 0 10px;
}
.d4s-shipping .section p:last-child {
  margin-bottom: 0;
}
.d4s-shipping .cta {
  background: var(--pale);
  border-radius: 18px;
  text-align: center;
  padding: 32px 20px;
  margin-top: 35px;
}
.d4s-shipping .cta h2 {
  color: var(--ink);
  font-size: 24px;
  margin: 0 0 8px;
}
.d4s-shipping .cta p {
  color: var(--muted);
  margin: 0 0 20px;
}
.d4s-shipping .cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff !important;
  padding: 11px 26px;
  border-radius: 9px;
  text-decoration: none !important;
  font-weight: 700;
  transition: background 0.2s;
}
.d4s-shipping .cta a:hover {
  background: var(--blue);
}
@media (max-width: 767px) {
  .d4s-shipping {
    padding: 20px 0 40px;
  }
  .d4s-shipping .quick {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .d4s-shipping .section {
    padding: 20px;
  }
  .d4s-shipping .alert {
    padding: 18px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d4s-shipping .quick-card,
  .d4s-shipping .cta a {
    transition: none;
  }
}

.d4s-privacy-page {
  --dp-ink: #172744;
  --dp-accent: #3563ee;
  --dp-line: #e3eaf3;
  --dp-muted: #64748b;
  direction: rtl;
  font-family: Assistant, Arial, sans-serif;
  color: var(--dp-ink);
  line-height: 1.85;
}
.d4s-privacy-page * {
  box-sizing: border-box;
}
.d4s-privacy-hero {
  background: linear-gradient(135deg, #f0f5ff, #fff);
  border: 1px solid var(--dp-line);
  border-radius: 22px;
  padding: 42px 36px;
  margin-bottom: 25px;
}
.d4s-privacy-eyebrow {
  color: var(--dp-accent);
  font-size: 14px;
  font-weight: 700;
}
.d4s-privacy-hero h1 {
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.3;
  margin: 10px 0;
  color: var(--dp-ink);
  font-weight: 800;
}
.d4s-privacy-hero p {
  margin: 0;
  color: var(--dp-muted);
  font-size: 17px;
}
.d4s-privacy-note {
  background: #f8fafc;
  border-right: 3px solid var(--dp-accent);
  padding: 15px 20px;
  border-radius: 9px;
  margin: 0 0 26px;
}
.d4s-privacy-toc {
  border: 1px solid var(--dp-line);
  border-radius: 18px;
  padding: 25px 28px;
  margin-bottom: 26px;
  background: #fff;
}
.d4s-privacy-toc h2 {
  margin: 0 0 15px;
  font-size: 23px;
  color: var(--dp-ink);
}
.d4s-privacy-toc ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px 28px;
  margin: 0;
  padding: 0 22px 0 0;
}
.d4s-privacy-toc li {
  padding: 2px 0;
}
.d4s-privacy-page a {
  color: #2856d9;
  text-decoration: none;
}
.d4s-privacy-page a:hover {
  text-decoration: underline;
}
.d4s-privacy-section {
  scroll-margin-top: 110px;
  border: 1px solid var(--dp-line);
  border-radius: 17px;
  padding: 27px 32px;
  margin: 0 0 16px;
  background: #fff;
}
.d4s-privacy-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dp-ink);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dp-line);
}
.d4s-privacy-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dp-ink);
  margin: 20px 0 5px;
}
.d4s-privacy-section p {
  margin: 0 0 12px;
  color: #42536b;
  font-size: 16px;
}
.d4s-privacy-section p:last-child {
  margin-bottom: 0;
}
.d4s-privacy-contact {
  background: #f2f6ff;
  border: 1px solid #dce7ff;
  border-radius: 12px;
  padding: 16px 20px;
}
.d4s-privacy-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--dp-muted);
  font-size: 14px;
}
@media (max-width: 767px) {
  .d4s-privacy-page {
    padding: 12px 8px 45px;
  }
  .d4s-privacy-hero {
    padding: 27px 20px;
  }
  .d4s-privacy-toc {
    padding: 20px;
  }
  .d4s-privacy-toc ol {
    grid-template-columns: 1fr 1fr;
  }
  .d4s-privacy-section {
    padding: 21px 19px;
    scroll-margin-top: 30px;
  }
  .d4s-privacy-section h2 {
    font-size: 21px;
  }
}
@media (max-width: 480px) {
  .d4s-privacy-toc ol {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .d4s-privacy-page a {
    transition: color 0.2s ease;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .d4s-returns {
    padding: 20px 0 45px;
  }

  .d4s-returns-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .d4s-returns-step {
    padding: 20px;
  }

  .d4s-returns-intro,
  .d4s-returns-panel {
    padding: 20px;
  }

  .d4s-returns-cta {
    padding: 28px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d4s-returns-step,
  .d4s-returns-button {
    transition: none;
  }
}

@media (max-width: 767px) {
  .d4s-brand-archive-header {
    padding: 16px 12px 22px;
    margin-bottom: 14px;
  }

  .d4s-brand-archive-header .d4s-brand-archive-logo-image {
    max-width: min(170px, 70%);
    max-height: 80px;
  }

  .d4s-brand-archive-description {
    margin-top: 28px;
    padding: 20px 18px;
  }
}

/* 1.2.0 - Optional gallery image swap on WooCommerce archive product hover. */
.d4s-ts-gallery-hover-enabled
  .woocommerce
  ul.products
  li.product
  .d4s-ts-hover-media {
  display: block;
  position: relative;
  width: 100%;
  height: 220px;
  margin: 0 auto 18px;
  overflow: hidden;
  background: #fff;
}
.d4s-ts-gallery-hover-enabled
  .woocommerce
  ul.products
  li.product
  .d4s-ts-hover-primary,
.d4s-ts-gallery-hover-enabled
  .woocommerce
  ul.products
  li.product
  .d4s-ts-hover-secondary {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}
.d4s-ts-gallery-hover-enabled
  .woocommerce
  ul.products
  li.product
  .d4s-ts-hover-secondary {
  opacity: 0;
}
.d4s-ts-gallery-hover-enabled
  .woocommerce
  ul.products
  li.product
  .d4s-ts-hover-media
  img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
  object-position: center;
  margin: 0 !important;
}
@media (hover: hover) and (pointer: fine) {
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product:hover
    .d4s-ts-hover-primary,
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product:focus-within
    .d4s-ts-hover-primary {
    opacity: 0;
  }
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product:hover
    .d4s-ts-hover-secondary,
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product:focus-within
    .d4s-ts-hover-secondary {
    opacity: 1;
  }
}
@media (max-width: 1024px) {
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-media {
    height: 190px;
  }
}
@media (max-width: 767px) {
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-media {
    height: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-primary,
  .d4s-ts-gallery-hover-enabled
    .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-secondary {
    transition: none;
  }
}

/* 1.2.1 - Robust archive hover image layers; independent of body class. */
.woocommerce ul.products li.product .d4s-ts-hover-media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1/1;
  height: auto !important;
  margin: 0 auto 12px !important;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
}
.woocommerce ul.products li.product .d4s-ts-hover-media > .d4s-ts-hover-primary,
.woocommerce
  ul.products
  li.product
  .d4s-ts-hover-media
  > .d4s-ts-hover-secondary {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transition: opacity 0.35s ease;
}
.woocommerce
  ul.products
  li.product
  .d4s-ts-hover-media
  > .d4s-ts-hover-primary {
  opacity: 1 !important;
  z-index: 1;
}
.woocommerce
  ul.products
  li.product
  .d4s-ts-hover-media
  > .d4s-ts-hover-secondary {
  opacity: 0 !important;
  z-index: 2;
  pointer-events: none;
}
.woocommerce ul.products li.product .d4s-ts-hover-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  margin: 0 !important;
  transform: none !important;
}
@media (hover: hover) and (pointer: fine) {
  .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-media:hover
    > .d4s-ts-hover-primary,
  .woocommerce
    ul.products
    li.product
    .woocommerce-LoopProduct-link:focus-visible
    .d4s-ts-hover-media
    > .d4s-ts-hover-primary {
    opacity: 0 !important;
  }
  .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-media:hover
    > .d4s-ts-hover-secondary,
  .woocommerce
    ul.products
    li.product
    .woocommerce-LoopProduct-link:focus-visible
    .d4s-ts-hover-media
    > .d4s-ts-hover-secondary {
    opacity: 1 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-media
    > .d4s-ts-hover-primary,
  .woocommerce
    ul.products
    li.product
    .d4s-ts-hover-media
    > .d4s-ts-hover-secondary {
    transition: none;
  }
}

/* D4S 1.2.4 - smooth two-row featured brands marquee */
.d4s-brands-marquee .d4s-featured-brands-track {
  display: flex;
  direction: rtl;
  gap: 0;
  width: max-content;
  max-width: none;
  transition: none !important;
  will-change: transform;
  align-items: stretch;
}
.d4s-brands-marquee .d4s-brand-marquee-group {
  display: grid;
  grid-template-rows: repeat(var(--d4s-brand-rows, 2), minmax(0, 1fr));
  grid-auto-flow: column;
  grid-auto-columns: clamp(
    140px,
    calc((100vw - 120px) / var(--d4s-brand-desktop, 6)),
    220px
  );
  gap: 14px;
  padding-inline-end: 14px;
  flex: 0 0 auto;
  align-content: start;
}
.d4s-brands-marquee .d4s-featured-brand-slide {
  width: 100%;
  min-width: 0;
  min-height: 112px;
  flex: none;
  box-sizing: border-box;
}
.d4s-brands-marquee .d4s-featured-brands-viewport {
  overflow: hidden;
  direction: rtl;
}
.d4s-brands-marquee .d4s-brand-nav {
  top: calc(50% + 12px);
}
@media (max-width: 600px) {
  .d4s-brands-marquee .d4s-brand-marquee-group {
    grid-auto-columns: calc((100vw - 45px) / var(--d4s-brand-mobile, 2));
    gap: 10px;
    padding-inline-end: 10px;
  }
  .d4s-brands-marquee .d4s-featured-brand-slide {
    min-height: 100px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .d4s-brands-marquee .d4s-featured-brands-track {
    will-change: auto;
  }
}

/* D4S 1.2.5 - independently scrolling brand rows */
.d4s-brands-marquee .d4s-featured-brands-track.d4s-brand-rows-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 14px;
  transform: none !important;
  will-change: auto !important;
  direction: ltr !important;
}
.d4s-brands-marquee .d4s-brand-moving-row {
  position: relative;
  width: 100%;
  overflow: hidden;
  direction: ltr;
}
.d4s-brands-marquee .d4s-brand-moving-rail {
  display: flex;
  width: max-content;
  max-width: none;
  gap: 0;
  will-change: transform;
  direction: ltr;
}
.d4s-brands-marquee .d4s-brand-moving-unit {
  display: flex;
  flex: none;
  width: max-content;
  gap: 14px;
  padding-right: 14px;
  box-sizing: border-box;
  direction: ltr;
}
.d4s-brands-marquee .d4s-brand-moving-unit > .d4s-featured-brand-slide {
  flex: 0 0
    clamp(140px, calc((100vw - 120px) / var(--d4s-brand-desktop, 6)), 220px);
  width: clamp(
    140px,
    calc((100vw - 120px) / var(--d4s-brand-desktop, 6)),
    220px
  );
}
@media (max-width: 600px) {
  .d4s-brands-marquee .d4s-brand-moving-unit {
    gap: 10px;
    padding-right: 10px;
  }
  .d4s-brands-marquee .d4s-brand-moving-unit > .d4s-featured-brand-slide {
    flex-basis: calc((100vw - 45px) / var(--d4s-brand-mobile, 2));
    width: calc((100vw - 45px) / var(--d4s-brand-mobile, 2));
  }
}
@media (prefers-reduced-motion: reduce) {
  .d4s-brands-marquee .d4s-brand-moving-rail {
    will-change: auto;
  }
}

/* 1.2.6: row containers are authored by PHP, prevent inherited carousel clipping. */
.d4s-brands-marquee .d4s-featured-brands-viewport {
  overflow: hidden !important;
}
.d4s-brands-marquee .d4s-brand-moving-row {
  min-width: 0;
  min-height: 1px;
}
.d4s-brands-marquee .d4s-brand-moving-unit > .d4s-featured-brand-slide {
  box-sizing: border-box;
}

/* D4S 1.2.8: each moving row fills the viewport independently.
   Override the legacy single-rail width:max-content rule. */
.d4s-brands-marquee .d4s-featured-brands-track {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 14px !important;
  transform: none !important;
  will-change: auto !important;
  direction: ltr !important;
}
.d4s-brands-marquee .d4s-brand-moving-row {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
.d4s-brands-marquee .d4s-brand-moving-rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  gap: 0 !important;
}
.d4s-brands-marquee .d4s-brand-moving-unit {
  flex: 0 0 auto !important;
  min-width: 0;
  white-space: normal;
}

/* D4S 1.2.9 - independent marquee sizing and stock badge */
.d4s-brands-marquee .d4s-brand-moving-rail {
  direction: ltr !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
}
.d4s-brands-marquee .d4s-brand-moving-unit {
  display: flex !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  max-width: none !important;
  gap: 14px !important;
  padding-right: 14px !important;
  box-sizing: border-box !important;
}
.d4s-brands-marquee .d4s-brand-moving-unit > .d4s-featured-brand-slide {
  flex-shrink: 0 !important;
}
@media (max-width: 600px) {
  .d4s-brands-marquee .d4s-brand-moving-unit {
    gap: 10px !important;
    padding-right: 10px !important;
  }
}
.woocommerce p.stock.out-of-stock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #9f1239;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: none;
}
.woocommerce p.stock.out-of-stock::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  background: #e11d48;
  border-radius: 50%;
}
@media (max-width: 767px) {
  .woocommerce p.stock.out-of-stock {
    padding: 8px 12px;
    font-size: 13px !important;
    gap: 7px;
  }
}

/* D4S 1.3.0: every marquee row owns exactly one rail; never inherit the old flex track dimensions. */
.d4s-brands-marquee .d4s-featured-brands-track.d4s-brand-rows-container,
.d4s-brands-marquee .d4s-featured-brands-track {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 14px !important;
  direction: ltr !important;
  transform: none !important;
}
.d4s-brands-marquee .d4s-featured-brands-track > .d4s-brand-moving-row {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.d4s-brands-marquee
  .d4s-featured-brands-track
  > .d4s-brand-moving-row
  > .d4s-brand-moving-rail {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  max-width: none !important;
  gap: 0 !important;
  direction: ltr !important;
  justify-content: flex-start !important;
}
.d4s-brands-marquee .d4s-brand-moving-rail > .d4s-brand-moving-unit {
  display: flex !important;
  flex: 0 0 auto !important;
  width: max-content !important;
  gap: 14px !important;
  padding-right: 14px !important;
}

/* 1.3.1 — Premium compare action: upper-left image corner, balanced icon */
.woocommerce ul.products li.product .ts-compare-add {
  top: var(--d4s-compare-top, 16px) !important;
  left: var(--d4s-compare-left, 16px) !important;
  right: auto !important;
  bottom: auto !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  color: #334155 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.09) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.woocommerce ul.products li.product .ts-compare-add::before {
  width: 21px !important;
  height: 21px !important;
  /* Symmetrical scales of justice */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M5 21h14M8 6h8M4 9l4-3 4 3M12 9l4-3 4 3M4 9l-2 5h8L8 9M16 9l-2 5h8l-2-5M2 14c0 2 2 3 4 3s4-1 4-3M14 14c0 2 2 3 4 3s4-1 4-3'/%3E%3C/g%3E%3C/svg%3E")
    center/contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v17M5 21h14M8 6h8M4 9l4-3 4 3M12 9l4-3 4 3M4 9l-2 5h8L8 9M16 9l-2 5h8l-2-5M2 14c0 2 2 3 4 3s4-1 4-3M14 14c0 2 2 3 4 3s4-1 4-3'/%3E%3C/g%3E%3C/svg%3E")
    center/contain no-repeat !important;
}
.woocommerce ul.products li.product .ts-compare-add:hover,
.woocommerce ul.products li.product .ts-compare-add:focus-visible {
  color: #1657bd !important;
  border-color: #b8d4ff !important;
  background: #f3f8ff !important;
  box-shadow: 0 6px 18px rgba(21, 87, 189, 0.16) !important;
}
.woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
  background: #1657bd !important;
  color: white !important;
  border-color: #1657bd !important;
}
.woocommerce ul.products li.product .ts-compare-add::after {
  right: auto !important;
  left: calc(100% + 8px) !important;
  transform: translateY(-50%) translateX(-3px);
}
.woocommerce ul.products li.product .ts-compare-add:hover::after,
.woocommerce ul.products li.product .ts-compare-add:focus-visible::after {
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product .ts-compare-add {
    display: none !important;
  }
}

/* 1.3.2 - Compare control: chart-bars icon, image lower-right, selected always visible. */
.woocommerce ul.products li.product .ts-compare-add {
  top: var(--d4s-compare-top, 16px) !important;
  right: var(--d4s-compare-right, 12px) !important;
  left: auto !important;
  bottom: auto !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  border-radius: 9px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #e1e7f0 !important;
  color: #253d65 !important;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.09) !important;
}
.woocommerce ul.products li.product .ts-compare-add::before {
  width: 21px !important;
  height: 21px !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='13' width='5' height='9' rx='1.2' fill='black'/%3E%3Crect x='9.5' y='3' width='5' height='19' rx='1.2' fill='black'/%3E%3Crect x='17' y='8' width='5' height='14' rx='1.2' fill='black'/%3E%3C/svg%3E")
    center/contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='13' width='5' height='9' rx='1.2' fill='black'/%3E%3Crect x='9.5' y='3' width='5' height='19' rx='1.2' fill='black'/%3E%3Crect x='17' y='8' width='5' height='14' rx='1.2' fill='black'/%3E%3C/svg%3E")
    center/contain no-repeat !important;
}
.woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
  background: #1657bd !important;
  border-color: #1657bd !important;
  color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}
@media (min-width: 769px) {
  .woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
    display: grid !important;
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
    min-height: 31px !important;
  }
}

/* 1.3.3 - Price filter: correctly aligned RTL dual slider and swapped fields */
.d4s-filter-drawer .d4s-price-labels {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) !important;
  align-items: end;
  gap: 8px !important;
  direction: rtl;
  margin-bottom: 18px !important;
}
.d4s-filter-drawer .d4s-price-labels label {
  min-width: 0;
  display: block;
}
.d4s-filter-drawer .d4s-price-labels label > span {
  min-width: 0;
  gap: 5px;
  padding: 0 9px !important;
}
.d4s-filter-drawer .d4s-price-labels input {
  min-width: 0;
  width: 100% !important;
  box-sizing: border-box;
}
.d4s-filter-drawer .d4s-price-separator {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  font-size: 17px;
  color: #8190a6;
}
.d4s-filter-drawer .d4s-range {
  position: relative;
  box-sizing: border-box;
  direction: rtl !important;
  width: calc(100% - 20px) !important;
  height: 30px !important;
  margin: 0 10px 6px !important;
  overflow: visible !important;
}
.d4s-filter-drawer .d4s-range-track {
  position: absolute;
  left: 0 !important;
  right: 0 !important;
  top: 12px !important;
  height: 5px !important;
  border-radius: 8px;
  background: linear-gradient(
    to left,
    #e4eaf1 0%,
    #e4eaf1 var(--from),
    var(--ts-primary) var(--from),
    var(--ts-primary) var(--to),
    #e4eaf1 var(--to),
    #e4eaf1 100%
  ) !important;
  pointer-events: none;
}
.d4s-filter-drawer .d4s-range input[type="range"] {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
}
.d4s-filter-drawer
  .d4s-range
  input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
  border: 0;
}
.d4s-filter-drawer .d4s-range input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
  border: 0;
}
.d4s-filter-drawer .d4s-range input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
  cursor: grab;
}
.d4s-filter-drawer .d4s-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  cursor: grab;
}

/* 1.3.3 - Small compare control, centered below the image */
.woocommerce ul.products li.product .ts-compare-add,
.woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
  top: var(--d4s-compare-top, 180px) !important;
  left: var(--d4s-compare-center, 50%) !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  padding: 0 !important;
  border-radius: 7px !important;
  align-items: center !important;
  justify-content: center !important;
}
.woocommerce ul.products li.product .ts-compare-add::before {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .woocommerce ul.products li.product .ts-compare-add[aria-pressed="true"] {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
  }
}

/* 1.3.4 - Price fields: minimum first (RTL), currency symbol at the physical left */
.d4s-filter-drawer .d4s-price-labels label > span {
  direction: rtl !important;
}
.d4s-filter-drawer .d4s-price-labels label > span input {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right !important;
}
.d4s-filter-drawer .d4s-price-labels label > span b {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 1.3.5 - Single product comparison and refined available-stock status */
.single-product .summary .d4s-single-compare-wrap {
  margin: 12px 0 20px;
  clear: both;
}
.single-product .summary .d4s-single-compare.ts-compare-add {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 9px 16px !important;
  border: 1px solid #d8e2ee !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #20334f !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}
.single-product .summary .d4s-single-compare.ts-compare-add:hover,
.single-product .summary .d4s-single-compare.ts-compare-add:focus-visible {
  background: #f3f7ff !important;
  border-color: #8ab4ff !important;
  color: #005dd7 !important;
}
.single-product
  .summary
  .d4s-single-compare.ts-compare-add[aria-pressed="true"] {
  background: #eaf2ff !important;
  border-color: #90b8ff !important;
  color: #0757b7 !important;
}
.single-product .summary .d4s-single-compare-icon {
  width: 15px;
  height: 15px;
  display: block;
  flex: 0 0 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='10' width='4' height='11' rx='1'/%3E%3Crect x='10' y='3' width='4' height='18' rx='1'/%3E%3Crect x='17' y='7' width='4' height='14' rx='1'/%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 24 24'%3E%3Crect x='3' y='10' width='4' height='11' rx='1'/%3E%3Crect x='10' y='3' width='4' height='18' rx='1'/%3E%3Crect x='17' y='7' width='4' height='14' rx='1'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.single-product .summary .d4s-single-compare.ts-compare-add::before,
.single-product .summary .d4s-single-compare.ts-compare-add::after {
  display: none !important;
  content: none !important;
}
.single-product .summary p.stock.in-stock {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  padding: 10px 15px !important;
  margin: 10px 0 14px !important;
  background: #f0faf5 !important;
  border: 1px solid #c7ead7 !important;
  border-radius: 9px !important;
  color: #166534 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}
.single-product .summary p.stock.in-stock::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  animation: d4s-stock-pulse 2.2s ease-in-out infinite;
}
@keyframes d4s-stock-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .single-product .summary p.stock.in-stock::before {
    animation: none;
  }
}
@media (max-width: 767px) {
  .single-product .summary p.stock.in-stock {
    font-size: 13px !important;
    padding: 9px 12px !important;
  }
}

/* 1.3.7 - Single product compare: stable three-bar icon and readable state labels.
   The Core compare script replaces button.textContent, so use pseudo-elements
   to keep the icon and chosen wording intact after its sync. */
.single-product .summary button.d4s-single-compare.ts-compare-add {
  font-size: 0 !important;
  gap: 9px !important;
  direction: rtl;
}
.single-product .summary button.d4s-single-compare.ts-compare-add::before {
  content: "" !important;
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='10' width='4' height='11' rx='1'/%3E%3Crect x='10' y='3' width='4' height='18' rx='1'/%3E%3Crect x='17' y='7' width='4' height='14' rx='1'/%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 24 24'%3E%3Crect x='3' y='10' width='4' height='11' rx='1'/%3E%3Crect x='10' y='3' width='4' height='18' rx='1'/%3E%3Crect x='17' y='7' width='4' height='14' rx='1'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.single-product .summary button.d4s-single-compare.ts-compare-add::after {
  content: "השוואת מוצר" !important;
  display: block !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.35;
  pointer-events: none;
}
.single-product
  .summary
  button.d4s-single-compare.ts-compare-add[aria-pressed="true"]::after {
  content: "נוסף להשוואה" !important;
}

/* 1.3.8 - Article recommendations aligned with WooCommerce product cards. */
.ts-article-product-card {
  display: flex;
  flex-direction: column;
}
.ts-article-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}
.ts-article-product-body h3 {
  min-height: 44px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.ts-article-product-brand {
  height: 62px;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
}
.ts-article-product-brand--empty {
  visibility: hidden;
}
.ts-article-product-brand .d4s-product-brand-link {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  height: 100%;
  padding: 4px 10px;
}
.ts-article-product-brand .d4s-product-brand-logo {
  max-width: 130px !important;
  max-height: 52px !important;
  width: auto;
  height: auto;
  object-fit: contain;
}
.ts-article-product-price {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}
.ts-article-product-price .woocommerce-Price-amount {
  display: inline-flex;
  direction: ltr;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-size: inherit;
  font-weight: inherit;
}
.ts-article-product-price .woocommerce-Price-amount bdi {
  display: inline-flex;
  direction: ltr;
  align-items: baseline;
  gap: 4px;
}
.ts-article-product-price .woocommerce-Price-currencySymbol {
  font-size: inherit;
  font-weight: inherit;
}
.ts-article-product-price del {
  font-size: 0.8em;
  opacity: 0.6;
  margin-inline: 5px;
}
.ts-article-product-price ins {
  text-decoration: none;
}
.ts-article-product-price .d4s-quote-price {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.ts-article-product-body .ts-article-product-btn {
  margin-top: auto;
}
/* Single product compare: compact spacing and green check on selected state. */
.single-product .summary button.d4s-single-compare.ts-compare-add {
  gap: 4px !important;
}
.single-product
  .summary
  button.d4s-single-compare.ts-compare-add[aria-pressed="true"]::before {
  background-color: #16a34a !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/contain no-repeat !important;
}

/* 1.3.9 - Product warranty and special-order details below the price */
.single-product .summary .d4s-product-meta-notices {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  direction: rtl;
  clear: both;
}
.single-product .summary .d4s-product-meta-notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid #dbe6f1;
  border-radius: 10px;
  background: #f8fbff;
  color: #334155;
  box-sizing: border-box;
}
.single-product .summary .d4s-product-meta-notice--special {
  background: #fffbf3;
  border-color: #f2dfb9;
}
.single-product .summary .d4s-product-meta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #1768ad;
  background: #e7f2fd;
}
.single-product
  .summary
  .d4s-product-meta-notice--special
  .d4s-product-meta-icon {
  color: #9a6519;
  background: #fff0d1;
}
.single-product .summary .d4s-product-meta-icon svg {
  width: 19px;
  height: 19px;
}
.single-product .summary .d4s-product-meta-content {
  min-width: 0;
  flex: 1;
}
.single-product .summary .d4s-product-meta-content strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: #18324f;
  font-weight: 700;
}
.single-product .summary .d4s-product-meta-notice--special strong {
  color: #875b1b;
}
.single-product .summary .d4s-product-meta-description {
  font-size: 13px;
  line-height: 1.65;
  color: #566579;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .single-product .summary .d4s-product-meta-notice {
    padding: 11px 12px;
    gap: 9px;
  }
}

/* D4S 1.3.10 - approved compact marketing notices */
.single-product .summary .d4s-product-meta-notices {
  display: grid !important;
  gap: 8px !important;
  margin: 12px 0 16px !important;
  direction: rtl;
}
.single-product .summary .d4s-product-meta-notice {
  --card-bg: #ecfdf3;
  --card-border: #b8e9cb;
  --card-icon-bg: #d1f5df;
  --card-icon: #15803d;
  --card-title: #166534;
  --card-text: #246b45;
  position: relative;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 11px 14px !important;
  margin: 0 !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.035) !important;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.single-product .summary .d4s-product-meta-notice::before {
  content: none !important;
  display: none !important;
}
.single-product .summary .d4s-product-meta-notice::after {
  content: "";
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 0;
  width: 3px;
  background: var(--card-icon);
  border-radius: 3px 0 0 3px;
}
.single-product .summary .d4s-product-meta-icon,
.single-product
  .summary
  .d4s-product-meta-notice--special
  .d4s-product-meta-icon {
  position: relative;
  z-index: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: var(--card-icon-bg) !important;
  color: var(--card-icon) !important;
}
.single-product .summary .d4s-product-meta-icon svg {
  width: 21px !important;
  height: 21px !important;
  stroke-width: 1.9;
}
.single-product .summary .d4s-product-meta-content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.single-product .summary .d4s-product-meta-content strong,
.single-product .summary .d4s-product-meta-notice--special strong {
  display: block;
  margin: 0 0 2px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: var(--card-title) !important;
}
.single-product .summary .d4s-product-meta-description {
  margin: 0 !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  color: var(--card-text) !important;
  overflow-wrap: anywhere;
}
.single-product .summary .d4s-product-meta-notice--warranty {
  --card-bg: #ecfdf3;
  --card-border: #b8e9cb;
  --card-icon-bg: #d1f5df;
  --card-icon: #15803d;
  --card-title: #166534;
  --card-text: #246b45;
}
.single-product .summary .d4s-product-meta-notice--special {
  --card-bg: #fff5e8;
  --card-border: #f8d5a4;
  --card-icon-bg: #ffe6c2;
  --card-icon: #c76a12;
  --card-title: #9a4d0b;
  --card-text: #87551f;
}
@media (hover: hover) {
  .single-product .summary .d4s-product-meta-notice:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.065) !important;
  }
}
@media (max-width: 767px) {
  .single-product .summary .d4s-product-meta-notices {
    gap: 8px !important;
    margin: 10px 0 15px !important;
  }
  .single-product .summary .d4s-product-meta-notice {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 10px !important;
    align-items: flex-start !important;
  }
  .single-product .summary .d4s-product-meta-icon,
  .single-product
    .summary
    .d4s-product-meta-notice--special
    .d4s-product-meta-icon {
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 8px !important;
  }
  .single-product .summary .d4s-product-meta-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .single-product .summary .d4s-product-meta-content strong {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  .single-product .summary .d4s-product-meta-description {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}
/* D4S 1.3.10 - approved 4-benefit cards */
.single-product .summary .ts-product-value {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin: 20px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  direction: rtl;
}
.single-product .summary .ts-product-value-item {
  --benefit-color: #2563eb;
  --benefit-bg: #eff6ff;
  --benefit-border: #dbeafe;
  position: relative;
  display: flex !important;
  align-items: flex-start !important;
  gap: 11px !important;
  min-width: 0;
  padding: 15px 13px !important;
  margin: 0 !important;
  background: var(--benefit-bg) !important;
  border: 1px solid var(--benefit-border) !important;
  border-radius: 13px !important;
  box-shadow: none !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.single-product .summary .ts-product-value-item::before,
.single-product .summary .ts-product-value-item::after {
  content: none !important;
  display: none !important;
}
.single-product .summary .ts-product-value-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--benefit-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.035);
  transition: transform 0.25s ease;
}
.single-product .summary .ts-product-value-icon svg {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor;
  stroke-width: 1.8;
}
.single-product .summary .ts-product-value-item > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.single-product .summary .ts-product-value-item strong {
  display: block;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: #1e293b !important;
}
.single-product .summary .ts-product-value-item small {
  display: block;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: #64748b !important;
}
.single-product .summary .ts-product-value-item:nth-child(1) {
  --benefit-color: #2563eb;
  --benefit-bg: #eff6ff;
  --benefit-border: #dbeafe;
}
.single-product .summary .ts-product-value-item:nth-child(2) {
  --benefit-color: #16a34a;
  --benefit-bg: #f0fdf4;
  --benefit-border: #dcfce7;
}
.single-product .summary .ts-product-value-item:nth-child(3) {
  --benefit-color: #ea580c;
  --benefit-bg: #fff7ed;
  --benefit-border: #ffedd5;
}
.single-product .summary .ts-product-value-item:nth-child(4) {
  --benefit-color: #7c3aed;
  --benefit-bg: #f5f3ff;
  --benefit-border: #ede9fe;
}
@media (hover: hover) {
  .single-product .summary .ts-product-value-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07) !important;
  }
  .single-product .summary .ts-product-value-item:hover .ts-product-value-icon {
    transform: scale(1.07);
  }
}
@media (max-width: 767px) {
  .single-product .summary .ts-product-value {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    margin: 16px 0 !important;
  }
  .single-product .summary .ts-product-value-item {
    flex-direction: column !important;
    gap: 9px !important;
    padding: 12px !important;
    border-radius: 11px !important;
  }
  .single-product .summary .ts-product-value-icon {
    width: 35px !important;
    height: 35px !important;
    flex: 0 0 35px !important;
  }
  .single-product .summary .ts-product-value-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
  .single-product .summary .ts-product-value-item strong {
    font-size: 14px !important;
  }
  .single-product .summary .ts-product-value-item small {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
}
@media (max-width: 360px) {
  .single-product .summary .ts-product-value {
    grid-template-columns: 1fr;
  }
  .single-product .summary .ts-product-value-item {
    flex-direction: row !important;
    align-items: center !important;
  }
}
/* D4S 1.3.10 - contact CTA */
.single-product .summary .d4s-contact-cta {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 12px 0 18px;
  padding: 15px 17px;
  border: 1px solid #d9e7f8;
  border-radius: 14px;
  background: linear-gradient(110deg, #f1f7ff, #fff);
  direction: rtl;
  box-shadow: 0 4px 18px rgba(20, 66, 130, 0.045);
}
.single-product .summary .d4s-contact-cta-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #1769c8;
  background: #dcecff;
}
.single-product .summary .d4s-contact-cta-icon svg {
  width: 25px;
  height: 25px;
}
.single-product .summary .d4s-contact-cta-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}
.single-product .summary .d4s-contact-cta-copy strong {
  font-size: 16px;
  line-height: 1.35;
  color: #12365d;
  font-weight: 800;
}
.single-product .summary .d4s-contact-cta-copy small {
  font-size: 13.5px;
  line-height: 1.55;
  color: #52677e;
}
.single-product .summary .d4s-contact-cta-button {
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  background: #1267d2;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.single-product .summary .d4s-contact-cta-button:hover {
  background: #0c4fa7;
  transform: translateY(-1px);
}
/* Contact dialog */
.d4s-contact-modal[hidden] {
  display: none !important;
}
.d4s-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  direction: rtl;
}
.d4s-contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 26, 51, 0.68);
  backdrop-filter: blur(4px);
}
.d4s-contact-modal-panel {
  position: relative;
  width: min(100%, 500px);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.25);
  padding: 0 28px 25px;
  outline: none;
  font-family: inherit;
}
.d4s-contact-close {
  position: absolute;
  left: 15px;
  top: 13px;
  z-index: 1;
  border: 0;
  background: #f0f4f9;
  color: #45566c;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.d4s-contact-modal-head {
  text-align: center;
  padding: 27px 0 18px;
}
.d4s-contact-head-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 0 auto 10px;
  background: #e8f2ff;
  color: #1769cf;
  border-radius: 13px;
  font-size: 25px;
}
.d4s-contact-eyebrow {
  font-size: 12px;
  color: #1769cf;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.d4s-contact-modal-head h2 {
  margin: 5px 0 7px !important;
  color: #132b4a;
  font-size: 24px !important;
  line-height: 1.3;
  font-weight: 800;
}
.d4s-contact-modal-head p {
  margin: 0;
  color: #66778b;
  font-size: 14px;
  line-height: 1.6;
}
.d4s-contact-product {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  margin: 0 0 17px;
  background: #f4f8fe;
  border: 1px solid #e3ecf9;
  border-radius: 11px;
}
.d4s-contact-product span {
  font-size: 12px;
  color: #6b7d93;
}
.d4s-contact-product strong {
  font-size: 15px;
  color: #163d69;
  line-height: 1.45;
}
.d4s-contact-form {
  display: grid;
  gap: 12px;
}
.d4s-contact-field {
  display: grid;
  gap: 5px;
}
.d4s-contact-field label {
  font-size: 13px;
  color: #263e58;
  font-weight: 700;
}
.d4s-contact-field label span {
  color: #e45151;
}
.d4s-contact-field input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 13px !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 9px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #1f2937 !important;
  font: inherit;
  font-size: 14px !important;
  text-align: right;
  outline: none;
}
.d4s-contact-field input:focus {
  border-color: #2179df !important;
  box-shadow: 0 0 0 3px rgba(33, 121, 223, 0.11) !important;
}
.d4s-contact-field input[dir="ltr"] {
  text-align: left;
}
.d4s-contact-optin {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #57697e;
  cursor: pointer;
}
.d4s-contact-optin input {
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: #1769cf;
}
.d4s-contact-optin a {
  color: #1769cf;
  text-decoration: underline;
}
.d4s-contact-submit {
  width: 100%;
  min-height: 47px;
  border: 0;
  border-radius: 10px;
  background: #1267d2;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.d4s-contact-submit:hover {
  background: #0b55b5;
}
.d4s-contact-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.d4s-contact-feedback {
  font-size: 13px;
  line-height: 1.5;
}
.d4s-contact-feedback:empty {
  display: none;
}
.d4s-contact-feedback.is-success {
  color: #166534;
  background: #ecfdf3;
  padding: 10px;
  border-radius: 8px;
}
.d4s-contact-feedback.is-error {
  color: #9f1b1b;
  background: #fff0f0;
  padding: 10px;
  border-radius: 8px;
}
.d4s-contact-assurance {
  font-size: 11.5px;
  color: #8090a1;
  text-align: center;
  margin: 0;
}
.d4s-contact-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.d4s-contact-open {
  overflow: hidden;
}
@media (max-width: 767px) {
  .single-product .summary .d4s-contact-cta {
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px;
  }
  .single-product .summary .d4s-contact-cta-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }
  .single-product .summary .d4s-contact-cta-copy strong {
    font-size: 15px;
  }
  .single-product .summary .d4s-contact-cta-copy small {
    font-size: 13px;
  }
  .single-product .summary .d4s-contact-cta-button {
    width: 100%;
  }
  .d4s-contact-modal {
    padding: 10px;
  }
  .d4s-contact-modal-panel {
    padding: 0 18px 20px;
    border-radius: 14px;
    max-height: 95dvh;
  }
  .d4s-contact-modal-head h2 {
    font-size: 21px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .single-product .summary .d4s-product-meta-notice,
  .single-product .summary .ts-product-value-item,
  .single-product .summary .ts-product-value-icon {
    transition: none !important;
  }
}

/* D4S 1.3.11 - contact form alignment, question and icon */
.single-product .summary .d4s-contact-cta-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.single-product .summary .d4s-contact-cta-icon svg {
  display: block !important;
  width: 25px !important;
  height: 25px !important;
  max-width: none !important;
  flex: 0 0 25px !important;
  overflow: visible;
  vertical-align: middle;
}
.d4s-contact-modal-panel,
.d4s-contact-form,
.d4s-contact-field {
  min-width: 0;
}
.d4s-contact-form {
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.d4s-contact-form .d4s-contact-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
  left: auto !important;
  right: 0 !important;
  top: 0 !important;
}
.d4s-contact-form .d4s-contact-hp input {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}
.d4s-contact-field textarea {
  display: block;
  width: 100% !important;
  min-height: 96px;
  max-width: 100% !important;
  resize: vertical;
  box-sizing: border-box;
  padding: 11px 13px !important;
  border: 1px solid #d9e2ec !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #1f2937 !important;
  font: inherit;
  font-size: 14px !important;
  line-height: 1.6;
  text-align: right;
  outline: none;
}
.d4s-contact-field textarea:focus {
  border-color: #2179df !important;
  box-shadow: 0 0 0 3px rgba(33, 121, 223, 0.11) !important;
}

/* D4S 1.3.12 - compact product inquiry popup */
.d4s-contact-modal-panel {
  width: min(100%, 470px);
  padding: 0 22px 20px;
}
.d4s-contact-modal-head {
  text-align: right;
  padding: 23px 0 12px;
}
.d4s-contact-modal-head h2 {
  font-size: 21px !important;
  line-height: 1.35 !important;
  margin: 0 0 4px !important;
  padding-left: 34px;
}
.d4s-contact-modal-head p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.d4s-contact-close {
  top: 14px;
  left: 14px;
}
.d4s-contact-product {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 9px 12px !important;
  margin: 0 0 12px !important;
  border-radius: 9px !important;
}
.d4s-contact-product > span {
  display: none !important;
}
.d4s-contact-product > strong {
  display: block !important;
  min-width: 0;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}
.d4s-contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px 10px;
}
.d4s-contact-form
  > .d4s-contact-field:not(.d4s-contact-field--name):not(
    .d4s-contact-field--phone
  ),
.d4s-contact-form > .d4s-contact-optin,
.d4s-contact-form > .d4s-contact-feedback,
.d4s-contact-form > .d4s-contact-submit,
.d4s-contact-form > .d4s-contact-assurance {
  grid-column: 1/-1;
}
.d4s-contact-field {
  gap: 4px;
}
.d4s-contact-field input {
  min-height: 40px !important;
  padding: 8px 11px !important;
}
.d4s-contact-field textarea {
  min-height: 70px !important;
  padding: 8px 11px !important;
}
.d4s-contact-optin {
  margin-top: 0;
  line-height: 1.5;
}
.d4s-contact-submit {
  min-height: 42px;
}
@media (max-width: 480px) {
  .d4s-contact-modal-panel {
    padding: 0 16px 16px;
    max-height: 95dvh;
  }
  .d4s-contact-modal-head {
    padding: 20px 0 10px;
  }
  .d4s-contact-modal-head h2 {
    font-size: 19px !important;
  }
  .d4s-contact-form {
    gap: 8px;
  }
  .d4s-contact-field--name,
  .d4s-contact-field--phone {
    grid-column: 1/-1;
  }
}

/* D4S 1.3.13 - compact inquiry dialog header icon */
.d4s-contact-modal-head {
  position: relative;
  padding-top: 20px;
}
.d4s-contact-modal-head .d4s-contact-head-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 19px;
  right: 0;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
  background: #e8f2ff;
  color: #1769cf;
  font-size: initial;
}
.d4s-contact-modal-head .d4s-contact-head-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.d4s-contact-modal-head h2,
.d4s-contact-modal-head p {
  padding-right: 45px;
}
@media (max-width: 480px) {
  .d4s-contact-modal-head .d4s-contact-head-icon {
    top: 17px;
    width: 32px;
    height: 32px;
  }
  .d4s-contact-modal-head h2,
  .d4s-contact-modal-head p {
    padding-right: 42px;
  }
}

/* Contact icon SVG alignment */
.d4s-contact-cta-icon svg,
.d4s-contact-head-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  overflow: visible;
}

/* D4S 1.3.18 - product contact CTA outlined button */
.single-product .summary .d4s-contact-cta-button {
  background: #ffffff;
  color: #1267d2;
  border: 1px solid #1267d2;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.2s ease;
}
.single-product .summary .d4s-contact-cta-button:hover,
.single-product .summary .d4s-contact-cta-button:focus-visible {
  background: #1267d2;
  color: #ffffff;
  border-color: #1267d2;
}
.single-product .summary .d4s-contact-cta-button span {
  color: inherit;
}

/* D4S TechStore 1.3.27 - Compact header / navigation */
.ts-header .ts-top {
  display: none !important;
}
.ts-header .ts-header-main {
  padding-block: 8px 8px !important;
}
.ts-header .ts-nav-row {
  height: 45px !important;
  min-height: 45px !important;
  max-height: 45px !important;
  align-items: stretch !important;
}
.ts-header .ts-nav-row .ts-mega {
  align-self: stretch !important;
  display: flex !important;
  align-items: stretch !important;
}
.ts-header .ts-nav-row .ts-mega > summary {
  font-size: 16px !important;
  height: 100% !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
}
@media (max-width: 767px) {
  .ts-header .ts-nav-row {
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
  }
  .ts-header .ts-header-main {
    padding-block: 8px 8px !important;
  }
}

/* D4S TechStore 1.3.28 - Equal-height desktop navigation links */
@media (min-width: 768px) {
  .ts-header .ts-nav-row #ts-main-nav {
    height: 45px;
    min-height: 0;
    align-self: stretch;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul {
    height: 100%;
    align-items: stretch;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li {
    height: 100%;
    display: flex;
    align-items: stretch;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 12px !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    border-radius: 0 !important;
    text-decoration: none;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li > a:hover,
  .ts-header .ts-nav-row #ts-main-nav > ul > li:hover > a {
    background: #f2f7ff !important;
    color: #2563c7 !important;
  }
}

/* D4S TechStore 1.3.29 - Enterprise navigation V4 restored, 45px unified */
.ts-header .custom-logo-link img {
  max-height: 70px !important;
  height: auto;
  width: auto;
  object-fit: contain;
}
.ts-header .ts-nav-border {
  --d4s-nav-blue: #3478e8;
  --d4s-nav-text: #1d2d49;
  --d4s-nav-muted: #66758d;
  position: relative;
  background: #fff !important;
  border-top: 1px solid #edf0f5 !important;
  border-bottom: 1px solid #e4eaf2 !important;
  box-shadow: 0 3px 12px rgba(21, 42, 76, 0.035);
}
.ts-header .ts-nav-row {
  gap: 18px !important;
  align-items: stretch !important;
}
.ts-header .ts-nav-row .ts-mega {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  align-self: stretch;
}
.ts-header .ts-nav-row .ts-mega > summary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 0 22px !important;
  min-height: 0 !important;
  height: 100% !important;
  background: #edf4ff !important;
  border: 0 !important;
  border-right: 3px solid #3478e8 !important;
  border-radius: 0 !important;
  color: #255eae !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ts-header .ts-nav-row .ts-mega > summary:hover,
.ts-header .ts-nav-row .ts-mega[open] > summary {
  background: #dfeeff !important;
  border-right-color: #2563eb !important;
  color: #174d9f !important;
  transform: none !important;
}
.ts-header .ts-nav-row .ts-mega > summary svg,
.ts-header .ts-nav-row .ts-mega > summary i {
  color: currentColor !important;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .ts-header .ts-nav-row #ts-main-nav {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    min-width: 0;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: stretch;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li > a {
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 1 auto;
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--d4s-nav-text) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    left: 50%;
    height: 2px;
    background: var(--d4s-nav-blue);
    opacity: 0;
    transition: right 0.25s ease, left 0.25s ease, opacity 0.25s ease;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li > a:hover,
  .ts-header .ts-nav-row #ts-main-nav > ul > li:hover > a {
    color: var(--d4s-nav-blue) !important;
    background: #f8fbff !important;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li > a:hover::after,
  .ts-header .ts-nav-row #ts-main-nav > ul > li:hover > a::after {
    right: 22%;
    left: 22%;
    opacity: 1;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li.current-menu-item > a,
  .ts-header .ts-nav-row #ts-main-nav > ul > li.current-menu-ancestor > a {
    color: #2563eb !important;
    background: #f8fbff !important;
  }
  .ts-header .ts-nav-row #ts-main-nav > ul > li.current-menu-item > a::after,
  .ts-header
    .ts-nav-row
    #ts-main-nav
    > ul
    > li.current-menu-ancestor
    > a::after {
    right: 22%;
    left: 22%;
    opacity: 1;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .ts-header .ts-nav-row {
    gap: 10px !important;
  }
  .ts-header .ts-nav-row .ts-mega > summary {
    padding: 0 12px !important;
  }
}
@media (max-width: 767px) {
  .ts-header .ts-nav-row {
    gap: 8px !important;
	margin: 0px;
  }
  .ts-header .ts-nav-row .ts-mega > summary {
    padding: 0 14px !important;
  }
  .ts-header .ts-nav-row .ts-mega > summary svg {
    width: 16px;
    height: 16px;
  }
}
.ts-header .ts-nav-row a:focus-visible,
.ts-header .ts-nav-row summary:focus-visible {
  outline: 2px solid #3478e8;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .ts-header .ts-nav-row a,
  .ts-header .ts-nav-row a::after,
  .ts-header .ts-nav-row summary {
    transition: none !important;
  }
}

/* D4S TechStore 1.3.30 - Navigation type scale and editorial headings */
.ts-header .ts-nav-row #ts-main-nav > ul > li > a {
  font-size: 16px !important;
}
.ts-header .ts-nav-row .ts-mega > summary {
  font-size: 17px !important;
}
body.tax-product_cat.woocommerce .woocommerce-products-header .page-title,
body.tax-product_cat.woocommerce h1.page-title,
body.tax-product_cat h1.woocommerce-products-header__title {
  text-align: center !important;
}
/* Editorial header for standard content pages; exclude WooCommerce/Elementor */
body.page:not(.woocommerce-page) #content > .ts-wrap.ts-page > h1,
body.page:not(.woocommerce-page) #content > .ts-wrap.ts-page > h1:first-child,
body.blog #content > .ts-wrap.ts-page > h1.ts-archive-title {
  text-align: center;
  position: relative;
  max-width: 920px;
  margin: 0 auto 36px;
  padding: 0 12px 24px;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 750;
  letter-spacing: -0.4px;
  color: #1d2d49;
  line-height: 1.25;
}
body.page:not(.woocommerce-page) #content > .ts-wrap.ts-page > h1::after,
body.blog #content > .ts-wrap.ts-page > h1.ts-archive-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 52px;
  height: 3px;
  background: #3478e8;
  border-radius: 1px;
}
.d4s-category-long-description {
  margin: 42px 0 10px;
  padding: 28px 32px;
  background: #f8faff;
  border: 1px solid #e4ebf6;
  border-right: 3px solid #3478e8;
  border-radius: 4px;
  color: #334155;
  line-height: 1.85;
  clear: both;
}
.d4s-category-long-description > :last-child {
  margin-bottom: 0;
}
.d4s-category-long-description h2 {
  font-size: clamp(21px, 2vw, 27px);
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .d4s-category-long-description {
    margin-top: 28px;
    padding: 20px 18px;
  }
  body.page:not(.woocommerce-page) #content > .ts-wrap.ts-page > h1,
  body.blog #content > .ts-wrap.ts-page > h1.ts-archive-title {
    margin-bottom: 26px;
    padding-bottom: 19px;
  }
}

/* D4S Elementor footer navigation */
.d4s-footer-menu {
  font-family: "Assistant", Arial, sans-serif;
  text-align: right;
  direction: rtl;
}
.d4s-footer-menu__title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 13px;
}
.d4s-footer-menu__list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.d4s-footer-menu__list > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.d4s-footer-menu__list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #cbd7ec;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease;
}
.d4s-footer-menu__list > li > a::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-left: 2px solid #7da9db;
  border-bottom: 2px solid #7da9db;
  transform: rotate(45deg);
  margin-left: 2px;
}
.d4s-footer-menu__list > li > a:hover,
.d4s-footer-menu__list > li.current-menu-item > a {
  color: #fff;
}
@media (max-width: 767px) {
  .d4s-footer-menu__title {
    font-size: 17px;
  }
  .d4s-footer-menu__list > li > a {
    font-size: 15px;
    padding: 9px 0;
  }
}
/* D4S Footer Menu: Elementor icon and style controls */
.d4s-footer-menu__list > li > a.d4s-footer-menu__link::after {
  content: none !important;
  display: none !important;
}
.d4s-footer-menu__list > li > a.d4s-footer-menu__link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}
.d4s-footer-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #7da9db;
  font-size: 13px;
  line-height: 1;
  transition: color 0.2s ease;
}
.d4s-footer-menu__icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}
.d4s-footer-menu--icon-end .d4s-footer-menu__icon {
  margin-inline-start: auto;
}
.d4s-footer-menu--icon-start .d4s-footer-menu__text {
  margin-inline-end: auto;
}
.d4s-footer-menu__text {
  min-width: 0;
}

/* D4S Conditional Products: reuse native WooCommerce/theme product cards. */
.d4s-conditional-products ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.d4s-conditional-products ul.products::before,
.d4s-conditional-products ul.products::after {
  display: none !important;
}
.d4s-conditional-products ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
}
@media (max-width: 1024px) {
  .d4s-conditional-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .d4s-conditional-products ul.products {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* Conditional products: WooCommerce-style pagination. */
.d4s-conditional-products .d4s-conditional-pagination {
  margin-top: 30px;
  clear: both;
}

/* D4S 1.3.35: only show non-zero header badges */
.ts-action-badge[hidden], .ts-cart-count[hidden], [data-ts-compare-count][hidden] { display:none !important; }
/* Single-product sticky purchase action */
.d4s-sticky-product{position:fixed;inset:auto 0 0;z-index:9991;background:rgba(255,255,255,.97);border-top:1px solid #e5eaf0;box-shadow:0 -8px 28px rgba(15,23,42,.09);backdrop-filter:blur(12px);transform:translateY(110%);opacity:0;visibility:hidden;transition:transform .25s ease,opacity .25s ease,visibility .25s;pointer-events:none}
.d4s-sticky-product.is-visible{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto}
.d4s-sticky-product-inner{max-width:1200px;margin:auto;padding:12px 22px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.d4s-sticky-product-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.d4s-sticky-product-info>strong{font-size:15px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.d4s-sticky-product-price{font-size:17px;font-weight:750;color:#152e4a}
.d4s-sticky-product-price del{font-size:13px;color:#84909e;margin-inline-end:8px}
.d4s-sticky-product-button{border:0;border-radius:11px;background:#1467b9;color:white;font:inherit;font-size:15px;font-weight:700;padding:13px 27px;min-width:175px;cursor:pointer;transition:background .2s,transform .2s}
.d4s-sticky-product-button:hover{background:#0b4d8f;transform:translateY(-1px)}
@media(max-width:600px){.d4s-sticky-product-inner{padding:10px 14px;gap:12px}.d4s-sticky-product-info>strong{font-size:13px}.d4s-sticky-product-price{font-size:14px}.d4s-sticky-product-button{min-width:140px;padding:12px 14px;font-size:13px}}

/* D4S 1.3.36 — refined quick-purchase bar */
.d4s-sticky-product{background:rgba(255,255,255,.96);border-top:1px solid rgba(210,221,235,.9);box-shadow:0 -12px 44px rgba(16,38,69,.12);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.d4s-sticky-product-inner{max-width:1200px;padding:14px 26px;gap:28px;min-height:82px}
.d4s-sticky-product-info{gap:5px;flex:1;min-width:0;padding-inline-start:14px;border-inline-start:3px solid #1974c8}
.d4s-sticky-product-info>strong{font-size:15px;font-weight:700;color:#213650;line-height:1.45}
.d4s-sticky-product-price{font-size:21px;font-weight:800;color:#0d5ba5;line-height:1.3}
.d4s-sticky-product-price ins{text-decoration:none}
.d4s-sticky-product-price del{font-size:14px;font-weight:500;color:#8b98a9}
.d4s-sticky-product-action{flex-shrink:0}
.d4s-sticky-product-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:190px;border-radius:13px;background:linear-gradient(135deg,#1677d2,#0954a0);box-shadow:0 5px 14px rgba(12,91,171,.2);font-weight:750;letter-spacing:0;transition:transform .2s,box-shadow .2s,background .2s}
.d4s-sticky-product-button:hover{background:linear-gradient(135deg,#0d65ba,#073f7c);box-shadow:0 8px 20px rgba(12,91,171,.28)}
.d4s-sticky-product-button:focus-visible{outline:3px solid #7ab8ff;outline-offset:3px}
.d4s-sticky-product[data-in-stock="false"]{display:none!important}
@media(max-width:600px){.d4s-sticky-product-inner{padding:11px 14px;gap:12px;min-height:72px}.d4s-sticky-product-info{padding-inline-start:10px;gap:3px}.d4s-sticky-product-info>strong{font-size:12px;max-width:100%;line-height:1.4}.d4s-sticky-product-price{font-size:16px}.d4s-sticky-product-price del{font-size:11px}.d4s-sticky-product-button{min-width:128px;min-height:44px;padding:10px 13px;font-size:13px;border-radius:11px}}
@media(prefers-reduced-motion:reduce){.d4s-sticky-product,.d4s-sticky-product-button{transition:none}}

/* D4S 1.3.38 */
.d4s-sticky-product-button.is-loading{opacity:.82;cursor:progress;pointer-events:none}
.d4s-sticky-btn-spinner{display:none;width:17px;height:17px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:d4s-sticky-spin .7s linear infinite;margin-inline-start:9px}
.d4s-sticky-product-button.is-loading .d4s-sticky-btn-spinner{display:inline-block}
@keyframes d4s-sticky-spin{to{transform:rotate(360deg)}}
.ts-sidecart-foot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.ts-sidecart-foot>.ts-sidecart-total,.ts-sidecart-foot>.ts-sidecart-note{grid-column:1/-1}
.ts-sidecart-foot>.ts-sidecart-checkout,.ts-sidecart-foot>.ts-sidecart-cartlink{width:100%;min-width:0;margin:0;min-height:46px;display:flex;align-items:center;justify-content:center;text-align:center;padding:10px 8px;font-size:13px}

/* D4S 1.3.39 refinements */
.d4s-sticky-product-button{direction:rtl}
.d4s-sticky-btn-spinner{order:-1;margin-inline-start:0!important;margin-inline-end:9px}
.ts-sidecart-unit-price{font-size:14px}
.ts-sidecart .woocommerce-Price-currencySymbol{font-size:12px}
/* Keep numeric amount visually to the right of the shekel sign in RTL. */
.woocommerce-Price-amount bdi{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.woocommerce-Price-amount .woocommerce-Price-currencySymbol{direction:ltr;unicode-bidi:isolate}

/* 1.3.40: consistent RTL price layout, including bdi auto direction */
.woocommerce .woocommerce-Price-amount bdi,
.woocommerce-Price-amount bdi,
.ts-sidecart .woocommerce-Price-amount bdi {
  direction: rtl !important;
  unicode-bidi: isolate;
  white-space: nowrap;
}
.woocommerce .woocommerce-Price-currencySymbol,
.woocommerce-Price-currencySymbol { direction: rtl; unicode-bidi: isolate; }
/* Gold to orange sale badge gradient */
.woocommerce span.onsale {
  background: linear-gradient(105deg, #f8d43e 0%, #f6a525 52%, #ec692a 100%);
  color: #15213b;
  border: 0;
}

/* 1.3.41 — Mobile category drill-down */
@media (max-width:767px){
 body.d4s-mega-mobile-open{overflow:hidden}
 .ts-mega[open] .d4s-mega-shell{z-index:1000}
 .d4s-mega-mobile-level{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
 .d4s-mega-mobile-head{position:sticky!important;top:0!important;z-index:4;background:#fff!important;border-bottom:1px solid #e8edf5}
 .d4s-mega-mobile-head strong{font-size:17px;line-height:1.35}
 .d4s-mega-mobile-list{padding-bottom:8px!important}
 .d4s-mega-mobile-list>a{display:flex;align-items:center;justify-content:space-between;gap:12px;text-decoration:none}
 .d4s-mega-mobile-list>a:focus-visible,.d4s-mega-mobile-all:focus-visible{outline:2px solid #2c66e8;outline-offset:2px}
 .d4s-mega-mobile-all{display:flex!important;align-items:center;justify-content:center;gap:10px;position:relative!important;inset:auto!important;transform:none!important;width:100%;margin:18px 0 22px!important;padding:14px 16px!important;min-height:54px!important;border:1px solid #c8dafb!important;border-radius:12px!important;background:#edf4ff!important;color:#1551a4!important;text-align:center;font-size:15px!important;font-weight:750!important;text-decoration:none;box-shadow:0 3px 12px rgba(30,86,165,.07)}
 .d4s-mega-mobile-all span{font-size:20px;line-height:1}
 .d4s-mega-mobile-all:active{background:#dceaff!important}
}
@media (prefers-reduced-motion:reduce){.d4s-mega-mobile-level{transition:none!important}}

/* 1.3.42: mobile full-viewport drill-down portal and correct RTL arrows */
@media(max-width:767px){
 body.d4s-mega-mobile-open > .d4s-mega-shell{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;z-index:2147483000!important;transform:none!important;border-radius:0!important;overflow:hidden!important;background:#fff!important;box-sizing:border-box!important}
 body > .d4s-mega-shell:not(:has(.d4s-mega-mobile)){display:none}
 body > .d4s-mega-shell .d4s-mega-mobile{width:100%!important;height:100%!important;direction:rtl}
 body > .d4s-mega-shell .d4s-mega-mobile-level{width:100%!important;right:0!important;left:0!important;box-sizing:border-box!important}
 .d4s-mega-mobile-head button:after{content:"→"!important}
 .d4s-mega-mobile-list > a b{transform:none!important;font-size:19px!important}
 .d4s-mega-mobile-list > a{display:flex!important;justify-content:space-between!important;align-items:center!important}
 .d4s-mega-mobile-all{display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important}
 .d4s-mega-mobile-level > .d4s-mega-products,.d4s-mega-mobile-level > .d4s-mega-banner{display:none!important}
}

/* D4S 1.3.43 - clean, isolated full-screen mobile category navigation */
@media(max-width:767px){
 body.d4s-mega-mobile-open{overflow:hidden!important}
 body.d4s-mega-mobile-open>.d4s-mega-shell{display:block!important;position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;z-index:2147483000!important;overflow:hidden!important;background:#fff!important;transform:none!important;border:0!important;border-radius:0!important}
 body>.d4s-mega-shell .d4s-mega-mobile{display:block!important;position:relative!important;box-sizing:border-box!important;width:100%!important;height:100%!important;padding:64px 0 0!important;overflow:hidden!important;background:#fff!important;direction:rtl!important}
 body>.d4s-mega-shell .d4s-mega-mobile-top{position:absolute!important;inset:0 0 auto!important;height:64px!important;z-index:50!important}
 body>.d4s-mega-shell .d4s-mega-mobile-level,
 body>.d4s-mega-shell .d4s-mega-mobile-level.is-active{position:absolute!important;top:64px!important;right:0!important;left:0!important;bottom:0!important;width:100%!important;height:calc(100% - 64px)!important;max-height:none!important;margin:0!important;padding:12px 16px 32px!important;overflow-x:hidden!important;overflow-y:auto!important;box-sizing:border-box!important;background:#fff!important;transform:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;transition:none!important;z-index:1!important}
 body>.d4s-mega-shell .d4s-mega-mobile-level[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list{padding:0!important;display:flex!important;flex-direction:column!important;gap:0!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list>a{min-height:54px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:13px 4px!important;margin:0!important;border:0!important;border-bottom:1px solid #e8edf4!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;font-size:15px!important;text-decoration:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list>a b{font-size:19px!important;transform:none!important;direction:ltr!important}
 body>.d4s-mega-shell .d4s-mega-mobile-head{position:sticky!important;top:-12px!important;z-index:4!important;margin:-12px -16px 10px!important;padding:8px 16px!important;min-height:58px!important;display:flex!important;flex-direction:row-reverse!important;justify-content:flex-end!important;gap:12px!important;background:#fff!important;border-bottom:1px solid #e8edf4!important;box-shadow:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-head button{position:static!important;flex:0 0 40px!important;width:40px!important;height:40px!important}
 body>.d4s-mega-shell .d4s-mega-mobile-head button:after{content:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-all{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;margin:22px 0 0!important;padding:15px 12px!important;transform:none!important}
}

/* v1.3.44 mobile category menu: single clean header, no duplicate arrows */
@media(max-width:1024px){
 body>.d4s-mega-shell .d4s-mega-mobile{padding:0!important;background:#fff!important}
 body>.d4s-mega-shell .d4s-mega-mobile-top{display:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-close{position:absolute!important;top:13px!important;left:18px!important;right:auto!important;z-index:100!important;display:grid!important;place-items:center!important;width:39px!important;height:39px!important;border:1px solid #e0e5ed!important;border-radius:50%!important;background:#fff!important;color:#5e6879!important;font-size:23px!important;line-height:1!important;cursor:pointer!important}
 body>.d4s-mega-shell .d4s-mega-mobile-level,body>.d4s-mega-shell .d4s-mega-mobile-level.is-active{top:0!important;height:100%!important;padding:0 20px 28px!important;overflow-y:auto!important;overflow-x:hidden!important}
 body>.d4s-mega-shell #d4s-mobile-mega-root:before{content:'כל הקטגוריות';display:flex;align-items:center;height:64px;border-bottom:1px solid #e7eaf0;font-size:17px;font-weight:750;color:#14254a;padding-left:54px}
 body>.d4s-mega-shell .d4s-mega-mobile-head{position:sticky!important;top:0!important;margin:0 0 6px!important;padding:0 54px 0 0!important;height:64px!important;min-height:64px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;border-bottom:1px solid #e7eaf0!important;background:#fff!important;gap:10px!important}
 body>.d4s-mega-shell .d4s-mega-mobile-head strong{font-size:16px!important;color:#172a4e!important}
 body>.d4s-mega-shell .d4s-mega-mobile-head button{position:static!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;flex:0 0 38px!important;border:1px solid #dfe5ef!important;border-radius:50%!important;background:#f8fafc!important;color:#182d54!important;font-size:19px!important;cursor:pointer!important}
 body>.d4s-mega-shell .d4s-mega-mobile-head button:before,body>.d4s-mega-shell .d4s-mega-mobile-head button:after{content:none!important;display:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list>a{min-height:60px!important;padding:14px 4px!important;color:#23314a!important;font-size:15px!important;font-weight:500!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list>a b{display:grid!important;place-items:center!important;font-size:0!important;width:28px!important;height:28px!important;color:#66758e!important;transform:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list>a b:before{content:none!important;display:none!important}
 body>.d4s-mega-shell .d4s-mega-mobile-list>a b:after{content:'‹'!important;display:block!important;font-size:26px!important;font-family:Arial,sans-serif!important;line-height:1!important;color:#66758e!important}
 body>.d4s-mega-shell .d4s-mega-mobile-all{margin-top:24px!important;margin-bottom:20px!important;border:0!important;background:#edf2fa!important;color:#172a4e!important;font-size:14px!important;font-weight:750!important}
}

/* v1.3.45: mobile menu interaction and spacing */
@media (max-width:1024px){
 body > .d4s-mega-shell .d4s-mega-mobile-head{padding:0 !important}
 body > .d4s-mega-shell .d4s-mega-mobile-list > a{min-height:45px !important;padding:0 2px !important;font-size:17px !important;font-weight:500 !important}
 body > .d4s-mega-shell .d4s-mega-mobile-head button[data-mobile-mega-back]{
   appearance:none !important;width:40px !important;height:40px !important;flex:0 0 40px !important;
   display:grid !important;place-items:center !important;background:#edf3ff !important;
   border:1px solid #d5e3ff !important;border-radius:12px !important;
   color:#1c55b5 !important;box-shadow:0 2px 6px rgba(20,62,120,.07) !important;
   transition:background .2s ease,transform .2s ease !important;
 }
 body > .d4s-mega-shell .d4s-mega-mobile-head button[data-mobile-mega-back]:active{background:#dbe8ff !important;transform:scale(.96)}
 body > .d4s-mega-shell .d4s-mega-mobile-head button[data-mobile-mega-back] span{font-size:0 !important;display:block !important;width:18px;height:18px;position:relative}
 body > .d4s-mega-shell .d4s-mega-mobile-head button[data-mobile-mega-back] span:after{
   content:'';position:absolute;inset:3px 2px;border-top:2px solid currentColor;border-right:2px solid currentColor;
   width:9px;height:9px;transform:rotate(45deg);top:4px;right:4px;
 }
 body > .d4s-mega-shell .d4s-mega-mobile-close{z-index:2147483001 !important;pointer-events:auto !important;touch-action:manipulation !important}
}

/* 1.3.47: always-accessible close control above category levels */
@media(max-width:767px){
 body.d4s-mega-mobile-open>.d4s-mega-shell>[data-mobile-mega-close]{
  display:grid!important;place-items:center!important;position:fixed!important;
  top:calc(env(safe-area-inset-top, 0px) + 12px)!important;left:18px!important;right:auto!important;
  width:40px!important;height:40px!important;z-index:2147483640!important;
  pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important;
  border:1px solid #dfe5ee!important;border-radius:50%!important;
  background:#fff!important;color:#172a4e!important;font-size:24px!important;line-height:1!important;
 }
}

/* 1.3.48: independent fixed mobile menu close button */
@media(max-width:767px){
 body.d4s-mega-mobile-open > button[data-mobile-mega-close]{
  display:grid!important;place-items:center!important;position:fixed!important;
  top:calc(env(safe-area-inset-top, 0px) + 12px)!important;left:18px!important;right:auto!important;
  width:42px!important;height:42px!important;z-index:2147483647!important;
  pointer-events:auto!important;touch-action:manipulation!important;cursor:pointer!important;
  border:1px solid #dfe5ee!important;border-radius:50%!important;
  background:#fff!important;color:#172a4e!important;font-size:24px!important;line-height:1!important;
 }
}

/* v1.3.49 — Keep the WhatsApp floating button clear of the sticky product purchase bar. */
@media (min-width: 768px) {
  body:has(.d4s-sticky-product.is-visible) .d4s-wa-floating {
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
@media (max-width: 767px) {
  body:has(.d4s-sticky-product.is-visible) .d4s-wa-floating,
  body:has(.d4s-sticky-product.is-visible) > .d4s-wa-widget > .d4s-wa-floating {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* v1.3.50 — hide mobile close on desktop, adjust anchor offsets */
@media(min-width:768px){.d4s-mega-mobile-close,.d4s-mega-shell [data-mobile-mega-close],body>button[data-mobile-mega-close]{display:none!important;visibility:hidden!important;pointer-events:none!important}}
html{scroll-padding-top:var(--d4s-anchor-offset,150px)}
html :target{scroll-margin-top:var(--d4s-anchor-offset,150px)}

/* v1.3.53: lock is visual only; never insert SVG into a gateway title. */
.woocommerce-checkout #payment .payment_methods li.wc_payment_method.payment_method_icredit_payment > label::before {
  content: "🔒"; display: inline-block; margin-inline-end: 7px; font-size: 15px; vertical-align: middle;
}

/* v1.3.54 — Live-search sale price mirrors category cards. */
#ts-live-results a small del {
  color: #8a939f;
  font-weight: 400;
  text-decoration: line-through;
  margin-inline-end: 7px;
}
#ts-live-results a small ins {
  color: #d33c3c;
  font-weight: 700;
  text-decoration: none;
}
#ts-live-results a small .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}
