/*
 * Template 2 Pages Styles
 * Scope rules:
 * - All rules must be under body.template-2-active
 * - Use .tpl2-* classes only
 * - Do not target store_base globally
 * - Do not override JavaScript hooks
 */

/* صفحات داخلية — مساحة لشريط template_2 السفلي (جوال) */
body.template-2-active:not(.home-template-2-active) {
  padding-top: 0 !important;
  overflow-x: clip;
}

@supports selector(html:has(body)) {
  html[dir="rtl"]:has(body.template-2-active) {
    direction: ltr;
    overflow-x: clip;
  }

  html[dir="rtl"]:has(body.template-2-active) body.template-2-active {
    direction: rtl;
    overflow-x: clip;
  }
}

body.template-2-active:not(.home-template-2-active) > .container.py-3 {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

body.template-2-active:not(.home-template-2-active) .footer-banner,
body.template-2-active:not(.home-template-2-active) .footer-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: max-content;
  margin: 0 auto 1.5rem;
  overflow: visible;
  box-sizing: border-box;
  text-align: center;
}

body.template-2-active:not(.home-template-2-active) .footer-banner img,
body.template-2-active:not(.home-template-2-active) .footer-hero img {
  width: 59% !important;
  max-width: 99% !important;
  height: auto;
  flex: 0 0 auto;
  margin-inline: auto;
  object-fit: cover;
}

body.template-2-active:not(.home-template-2-active) .footer-banner > a,
body.template-2-active:not(.home-template-2-active) .footer-hero > a {
  display: block !important;
  width: 100%;
  text-align: center;
}

@media (max-width: 767.98px) {
  body.template-2-active:not(.home-template-2-active) {
    padding-bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.template-2-active:not(.home-template-2-active) .store-template-2-chrome.home-template-2 {
    padding-bottom: 0;
  }

  body.template-2-active:not(.home-template-2-active) .footer-banner,
  body.template-2-active:not(.home-template-2-active) .footer-hero {
    width: 100%;
    margin-bottom: 1.15rem;
    padding-inline: 0.5rem;
  }

  body.template-2-active:not(.home-template-2-active) .footer-banner img,
  body.template-2-active:not(.home-template-2-active) .footer-hero img,
  body.template-2-active:not(.home-template-2-active) .footer-banner a img,
  body.template-2-active:not(.home-template-2-active) .footer-hero a img {
    width: 95% !important;
    max-width: 95% !important;
  }
}

body.template-2-active .store-template-2-chrome.home-template-2 {
  margin: 0 0 0.5rem;
  padding: 0;
  background: transparent;
}

/* ==========================================================================
   Content pages — about / contact
   ========================================================================== */

body.template-2-active .container.py-3:has(.tpl2-page--content) {
  width: 100%;
  max-width: 100%;
  padding: 0 0.75rem !important;
}

body.template-2-active .container.py-3:has(.tpl2-page--faq) {
  direction: ltr;
}

body.template-2-active .tpl2-page--content {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0 1.35rem;
  overflow-x: clip;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}

body.template-2-active .tpl2-page--faq {
  direction: ltr;
}

body.template-2-active .tpl2-content-shell {
  width: 100%;
  max-width: min(1120px, calc(100vw - 1.5rem));
  margin: 0 auto;
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--faq .tpl2-content-shell {
  direction: ltr;
}

body.template-2-active .tpl2-page--faq .tpl2-content-hero,
body.template-2-active .tpl2-page--faq .tpl2-content-card {
  direction: rtl;
}

body.template-2-active .tpl2-content-hero {
  margin: 0 0 0.85rem;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 88%, var(--design-body-text-color, #0f172a) 12%);
}

body.template-2-active .tpl2-content-title {
  margin: 0;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--design-body-text-color, #18181b);
}

body.template-2-active .tpl2-content-subtitle {
  max-width: 760px;
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--design-muted-text, #64748b);
}

body.template-2-active .tpl2-content-card {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 90%, var(--design-body-text-color, #0f172a) 10%);
  border-radius: var(--home-t2-radius, 0px);
  background: var(--design-card-bg, #fff);
  box-shadow: none;
  box-sizing: border-box;
}

body.template-2-active .tpl2-content-body {
  min-width: 0;
  padding: 1.15rem 1.2rem;
  color: var(--design-body-text-color, #18181b);
  font-size: 0.98rem;
  line-height: 1.95;
  text-align: right;
  white-space: normal;
}

body.template-2-active .tpl2-contact-card {
  display: block;
  padding: 1rem;
}

body.template-2-active .tpl2-contact-card--no-visual {
  display: block;
}

body.template-2-active .tpl2-contact-intro {
  padding: 0.05rem 0.15rem 0.95rem;
  color: var(--design-body-text-color, #18181b);
  font-size: 0.98rem;
  line-height: 1.95;
  text-align: right;
  white-space: normal;
}

body.template-2-active .tpl2-contact-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

body.template-2-active .tpl2-contact-visual iframe {
  width: min(100%, 260px);
  height: 190px;
  border: 0;
  display: block;
}

body.template-2-active .tpl2-contact-links.contact-icons {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  justify-content: stretch;
  align-items: stretch;
  text-align: right;
}

body.template-2-active .tpl2-contact-links--with-intro.contact-icons {
  padding-top: 1rem;
}

body.template-2-active .tpl2-contact-links--with-intro.contact-icons::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 2.5%;
  height: 1px;
  background: color-mix(in srgb, var(--design-primary, #fcc316) 36%, transparent);
}

body.template-2-active .tpl2-contact-card--no-visual .tpl2-contact-links.contact-icons {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

body.template-2-active .tpl2-contact-link.contact-icon {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  width: 100% !important;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 82%, var(--design-body-text-color, #111827) 18%);
  border-radius: var(--home-t2-radius, 0px);
  background: color-mix(in srgb, var(--design-card-bg, #fff) 94%, var(--design-background-color, #f6f7f9) 6%);
  color: var(--design-body-text-color, #18181b);
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.template-2-active .tpl2-contact-link.contact-icon:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 45%, var(--design-card-border, #ececec) 55%);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 10%, var(--design-card-bg, #fff) 90%);
}

body.template-2-active .tpl2-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--design-primary, #fcc316);
  color: var(--design-button-text, #111827);
  font-size: 1rem;
}

body.template-2-active .tpl2-contact-icon i {
  margin: 0;
  font-size: 1rem;
  color: inherit;
}

body.template-2-active .tpl2-contact-label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: start;
}

@media (max-width: 767.98px) {
  body.template-2-active .container.py-3:has(.tpl2-page--content) {
    padding-inline: 0.65rem !important;
  }

  body.template-2-active .tpl2-page--content {
    padding-top: 0.35rem;
  }

  body.template-2-active .tpl2-content-body {
    padding: 0.9rem 0.85rem;
    font-size: 0.92rem;
  }

  body.template-2-active .tpl2-page--faq .tpl2-content-shell {
    width: min(320px, calc(100% - 2rem)) !important;
    max-width: 320px;
    margin-left: 0.75rem !important;
    margin-right: auto !important;
  }

  body.template-2-active .tpl2-contact-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.75rem;
  }

  body.template-2-active .tpl2-contact-visual iframe {
    height: 150px;
  }

  body.template-2-active .tpl2-contact-links.contact-icons {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========================================================================== 
   All categories page
   ========================================================================== */

body.template-2-active .container.py-3:has(.tpl2-page--categories-all) {
  width: 100%;
  max-width: 100%;
  padding: 0 0.75rem !important;
}

body.template-2-active .tpl2-page--categories-all {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 0 1.35rem;
  overflow-x: clip;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
}

body.template-2-active .tpl2-all-cats-shell {
  width: 100%;
  max-width: min(1120px, calc(100vw - 1.5rem));
  margin: 0 auto;
  box-sizing: border-box;
}

body.template-2-active .tpl2-all-cats-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0 0.8rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 88%, var(--design-body-text-color, #0f172a) 12%);
}

body.template-2-active .tpl2-all-cats-kicker {
  display: inline-flex;
  margin-bottom: 0.25rem;
  color: color-mix(in srgb, var(--design-primary, #fcc316) 82%, var(--design-body-text-color, #111827) 18%);
  font-size: 0.78rem;
  font-weight: 800;
}

body.template-2-active .tpl2-all-cats-title {
  margin: 0;
  color: var(--design-body-text-color, #18181b);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.3;
}

body.template-2-active .tpl2-all-cats-subtitle {
  max-width: 680px;
  margin: 0.38rem 0 0;
  color: var(--design-muted-text, #64748b);
  font-size: 0.92rem;
  line-height: 1.75;
}

body.template-2-active .tpl2-all-cats-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--design-primary, #fcc316) 38%, var(--design-card-border, #ececec) 62%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--design-primary, #fcc316) 10%, var(--design-card-bg, #fff) 90%);
  color: var(--design-body-text-color, #18181b);
  font-size: 0.84rem;
  font-weight: 800;
}

body.template-2-active .tpl2-all-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

body.template-2-active .tpl2-all-cat-card {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 5.35rem;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 88%, var(--design-body-text-color, #111827) 12%);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #18181b);
  text-decoration: none;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.template-2-active .tpl2-all-cat-card:hover,
body.template-2-active .tpl2-all-cat-card:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 52%, var(--design-card-border, #ececec) 48%);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 7%, var(--design-card-bg, #fff) 93%);
}

body.template-2-active .tpl2-all-cat-media {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: color-mix(in srgb, var(--design-background-color, #f6f7f9) 78%, var(--design-card-bg, #fff) 22%);
  color: color-mix(in srgb, var(--design-primary, #fcc316) 84%, var(--design-body-text-color, #111827) 16%);
  font-size: 1.22rem;
}

body.template-2-active .tpl2-all-cat-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.template-2-active .tpl2-all-cat-letter {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

body.template-2-active .tpl2-all-cat-body {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

body.template-2-active .tpl2-all-cat-body strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.template-2-active .tpl2-all-cat-body small {
  color: var(--design-muted-text, #64748b);
  font-size: 0.8rem;
  font-weight: 700;
}

body.template-2-active .tpl2-all-cat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--design-primary, #fcc316) 12%, var(--design-card-bg, #fff) 88%);
  color: color-mix(in srgb, var(--design-primary, #fcc316) 80%, var(--design-body-text-color, #111827) 20%);
  font-size: 0.78rem;
}

@media (max-width: 767.98px) {
  body.template-2-active .container.py-3:has(.tpl2-page--categories-all) {
    padding-inline: 0.65rem !important;
  }

  body.template-2-active .tpl2-page--categories-all {
    padding-top: 0.35rem;
  }

  body.template-2-active .tpl2-all-cats-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  body.template-2-active .tpl2-all-cats-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  body.template-2-active .tpl2-all-cat-card {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    min-height: 4.8rem;
    padding: 0.65rem;
  }

  body.template-2-active .tpl2-all-cat-media {
    width: 3rem;
    height: 3rem;
  }
}

body.template-2-active .tpl2-faq-accordion.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.template-2-active .tpl2-faq-item.accordion-item {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 88%, var(--design-body-text-color, #111827) 12%);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  overflow: hidden;
}

body.template-2-active .tpl2-faq-button.accordion-button {
  min-height: 3rem;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #18181b);
  font-weight: 700;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: none;
}

body.template-2-active .tpl2-faq-question {
  flex: 1 1 auto;
  display: block;
  min-width: 0;
  max-width: 100%;
  text-align: right;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.template-2-active .tpl2-faq-button.accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--design-primary, #fcc316) 12%, var(--design-card-bg, #fff) 88%);
  color: var(--design-heading-color, var(--design-body-text-color, #18181b));
}

body.template-2-active .tpl2-faq-button.accordion-button::after {
  flex-shrink: 0;
  margin-inline-start: 0.65rem;
  margin-inline-end: 0;
}

body.template-2-active .tpl2-faq-body.accordion-body {
  min-width: 0;
  padding: 0.8rem 0.9rem 0.95rem;
  border-top: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 90%, transparent);
  color: var(--design-muted-text, #64748b);
  line-height: 1.9;
  overflow-wrap: anywhere;
}

body.template-2-active .tpl2-empty-state {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.6rem 1rem;
  text-align: center;
  color: var(--design-muted-text, #64748b);
}

body.template-2-active .tpl2-empty-state i {
  color: inherit;
}

body.template-2-active .tpl2-empty-state > i,
body.template-2-active .tpl2-empty-code,
body.template-2-active .tpl2-thanks-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--design-primary, #fcc316);
  color: var(--design-button-text, #111827);
  font-size: 1.25rem;
  font-weight: 800;
}

body.template-2-active .tpl2-empty-code {
  width: auto;
  min-width: 4.25rem;
  padding-inline: 0.8rem;
  border-radius: 999px;
  font-size: 1rem;
}

body.template-2-active .tpl2-empty-state strong {
  color: var(--design-heading-color, var(--design-body-text-color, #18181b));
  font-size: 1.05rem;
}

body.template-2-active .tpl2-empty-action.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  margin-top: 0.25rem;
  padding-inline: 1rem;
  border-radius: var(--home-t2-radius, 0);
  font-weight: 700;
}

.tpl2-page--request-product {
  width: 100%;
  max-width: 100%;
  padding: clamp(1rem, 3vw, 2rem) 0 calc(4.75rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.request-product-shell {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
  direction: rtl;
}

.request-product-copy,
.request-product-card {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 86%, var(--design-body-text-color, #111827) 14%);
  border-radius: var(--home-t2-radius, 0.75rem);
  background: var(--design-card-bg, #fff);
}

.request-product-copy {
  padding: clamp(1.1rem, 2.8vw, 2rem);
}

.request-product-kicker {
  display: inline-flex;
  margin-bottom: 0.5rem;
  color: var(--design-primary, #fcc316);
  font-size: 0.82rem;
  font-weight: 800;
}

.request-product-copy h1 {
  margin: 0 0 0.55rem;
  color: var(--design-heading-color, var(--design-body-text-color, #111827));
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
}

.request-product-copy p {
  margin: 0;
  color: var(--design-muted-text, #64748b);
  line-height: 1.85;
}

.request-product-card {
  padding: clamp(1rem, 2.6vw, 1.4rem);
}

.request-product-form .form-control {
  border-radius: var(--home-t2-radius, 0.5rem);
}

.request-product-trap {
  position: absolute !important;
  inset-inline-start: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.request-product-form .btn-primary {
  border-radius: var(--home-t2-radius, 0.5rem);
  background: var(--design-button-bg, var(--design-primary, #fcc316));
  border-color: color-mix(in srgb, var(--design-button-bg, var(--design-primary, #fcc316)) 88%, #111 12%);
  color: var(--design-button-text, #fff);
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .request-product-shell {
    grid-template-columns: 1fr;
  }
}

/* Auth/account pages loaded outside storefront header */
body.template-2-active.tpl2-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: clamp(1rem, 3.5vw, 2.2rem) 0.75rem;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--design-primary, #fcc316) 10%, transparent), transparent 30%),
    var(--design-background-color, #f6f7f9) !important;
  color: var(--design-body-text-color, #18181b);
  font-family: var(--font-family-sans, inherit);
  direction: ltr;
}

body.template-2-active.tpl2-auth-page .user-card {
  width: min(100%, 440px);
  max-width: calc(100vw - 1.1rem);
  margin: 0 auto;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 84%, var(--design-body-text-color, #111827) 16%);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--design-body-text-color, #111827) 10%, transparent);
  overflow: hidden;
  box-sizing: border-box;
  direction: rtl;
}

body.template-2-active.tpl2-auth-page .user-card::before {
  background: var(--design-primary, #fcc316);
}

body.template-2-active.tpl2-auth-page .auth-brand {
  margin-bottom: 0.75rem;
}

body.template-2-active.tpl2-auth-page.tpl2-auth-page--forgot .auth-brand {
  margin-bottom: 1rem;
}

body.template-2-active.tpl2-auth-page.tpl2-auth-page--forgot .card-header {
  margin-top: 0;
}

body.template-2-active.tpl2-auth-page .auth-brand-logo {
  border-radius: var(--home-t2-radius, 0);
}

body.template-2-active.tpl2-auth-page .auth-brand-name,
body.template-2-active.tpl2-auth-page .title {
  color: var(--design-heading-color, var(--design-body-text-color, #18181b));
}

body.template-2-active.tpl2-auth-page .subtitle,
body.template-2-active.tpl2-auth-page .phone-hint,
body.template-2-active.tpl2-auth-page .recaptcha-note {
  color: var(--design-muted-text, #64748b);
}

body.template-2-active.tpl2-auth-page .input-style,
body.template-2-active.tpl2-auth-page select.input-style {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: var(--home-t2-radius, 0);
  border-color: color-mix(in srgb, var(--design-card-border, #d1d5db) 88%, var(--design-body-text-color, #111827) 12%);
  background: color-mix(in srgb, var(--design-card-bg, #fff) 96%, var(--design-background-color, #f6f7f9) 4%);
  color: var(--design-body-text-color, #18181b);
}

body.template-2-active.tpl2-auth-page .input-style:focus {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 64%, var(--design-body-text-color, #111827) 36%);
  box-shadow: 0 0 0 0.14rem color-mix(in srgb, var(--design-primary, #fcc316) 25%, transparent);
}

body.template-2-active.tpl2-auth-page .btn-primary {
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-button-bg, var(--design-primary, #fcc316));
  color: var(--design-button-text, #fff);
  min-height: 2.65rem;
  padding: 0.52rem 1rem;
  font-size: 0.95rem;
}

body.template-2-active.tpl2-auth-page .btn-auth-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.52rem 1rem;
  margin-top: 0.55rem;
  border-radius: var(--home-t2-radius, 0);
  border: 1px solid color-mix(in srgb, var(--design-card-border, #d4d4d8) 82%, var(--design-body-text-color, #111827) 18%);
  background: color-mix(in srgb, var(--design-background-color, #f6f7f9) 88%, var(--design-card-bg, #ffffff) 12%);
  color: var(--design-body-text-color, #374151);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.template-2-active.tpl2-auth-page .btn-auth-back:hover,
body.template-2-active.tpl2-auth-page .btn-auth-back:focus-visible {
  background: color-mix(in srgb, var(--design-card-border, #d4d4d8) 35%, var(--design-card-bg, #ffffff) 65%);
  color: var(--design-body-text-color, #111827);
  text-decoration: none;
}

body.template-2-active.tpl2-auth-page .forgot-link,
body.template-2-active.tpl2-auth-page .register-link,
body.template-2-active.tpl2-auth-page .auth-link,
body.template-2-active.tpl2-auth-page .back-link a,
body.template-2-active.tpl2-auth-page .success-link {
  color: var(--design-link-color, var(--design-primary, #fcc316));
}

body.template-2-active.tpl2-auth-page .alert,
body.template-2-active.tpl2-auth-page .info-box,
body.template-2-active.tpl2-auth-page .user-info,
body.template-2-active.tpl2-auth-page .password-requirements,
body.template-2-active.tpl2-auth-page .change-limit-info {
  border-radius: var(--home-t2-radius, 0);
}

body.template-2-active.tpl2-auth-page .loading-content {
  border-radius: var(--home-t2-radius, 0);
}

@media (max-width: 480px) {
  body.template-2-active.tpl2-auth-page {
    padding-inline: 0.55rem;
  }

  body.template-2-active.tpl2-auth-page .user-card {
    width: 100%;
    max-width: min(340px, calc(100vw - 2rem));
  }
}

/* Customer account pages */
body.template-2-active.tpl2-profile-page {
  background: var(--design-background-color, #f6f7f9) !important;
  color: var(--design-body-text-color, #18181b);
  font-family: var(--font-family-sans, inherit);
}

body.template-2-active.tpl2-profile-page .profile-layout {
  width: min(1180px, calc(100% - 28px));
}

body.template-2-active.tpl2-profile-page .sidebar,
body.template-2-active.tpl2-profile-page .profile-action-card,
body.template-2-active.tpl2-profile-page .profile-hero,
body.template-2-active.tpl2-profile-page .orders-table,
body.template-2-active.tpl2-profile-page .profile-mobile-bottom-actions {
  border-radius: var(--home-t2-radius, 0);
  border-color: color-mix(in srgb, var(--design-card-border, #e5e7eb) 86%, var(--design-body-text-color, #111827) 14%);
  background: var(--design-card-bg, #fff);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--design-body-text-color, #111827) 7%, transparent);
}

body.template-2-active.tpl2-profile-page .profile-brand,
body.template-2-active.tpl2-profile-page .sidebar .menu a.active,
body.template-2-active.tpl2-profile-page .profile-shop-btn,
body.template-2-active.tpl2-profile-page .profile-card-icon {
  border-radius: var(--home-t2-radius, 0);
}

body.template-2-active.tpl2-profile-page .profile-brand {
  background: color-mix(in srgb, var(--design-primary, #fcc316) 12%, var(--design-card-bg, #fff) 88%);
}

body.template-2-active.tpl2-profile-page .sidebar .menu a.active,
body.template-2-active.tpl2-profile-page .profile-shop-btn {
  background: var(--design-button-bg, var(--design-primary, #fcc316));
  color: var(--design-button-text, #fff);
}

body.template-2-active.tpl2-profile-page .profile-card-icon {
  background: var(--design-primary, #fcc316);
  color: var(--design-button-text, #fff);
}

@media (max-width: 992px) {
  body.template-2-active.tpl2-profile-page .profile-layout {
    width: min(100%, calc(100% - 18px));
  }
}

/* Search overlay */
body.template-2-active .search-overlay {
  background: color-mix(in srgb, var(--design-card-bg, #fff) 96%, transparent);
}

body.template-2-active .search-overlay__inner {
  max-width: 720px;
  padding-top: clamp(1rem, 4vw, 2rem);
}

body.template-2-active .search-head {
  gap: 0.55rem;
  padding: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 86%, var(--design-body-text-color, #111827) 14%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--design-body-text-color, #111827) 8%, transparent);
}

body.template-2-active .search-head .form-control {
  border-radius: 0;
  border-color: color-mix(in srgb, var(--design-card-border, #d1d5db) 90%, var(--design-body-text-color, #111827) 10%);
  box-shadow: none;
  font-size: 1rem;
}

body.template-2-active .search-head .form-control:focus {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 65%, var(--design-body-text-color, #111827) 35%);
  box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--design-primary, #fcc316) 24%, transparent);
}

body.template-2-active .search-head .icon-btn {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #d1d5db) 90%, var(--design-body-text-color, #111827) 10%);
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #18181b);
}

body.template-2-active .search-results {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 86%, var(--design-body-text-color, #111827) 14%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  overflow: hidden;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--design-body-text-color, #111827) 7%, transparent);
}

body.template-2-active .search-row {
  border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #e5e7eb) 90%, transparent);
}

body.template-2-active .search-row:last-child {
  border-bottom: none;
}

body.template-2-active .search-row img {
  border-radius: 0;
}

body.template-2-active .search-empty {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   Offers page — Design Lab #page-lab-05 (category-t1 / alt cards)
   ========================================================================== */

body.template-2-active .tpl2-page--offers {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: 0.75rem 0 1.5rem;
  box-sizing: border-box;
}

body.template-2-active .tpl2-offers-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0.65rem;
  box-sizing: border-box;
}

body.template-2-active .tpl2-offers-heading {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--design-body-text-color, #18181b);
  text-align: center;
}

body.template-2-active .tpl2-offers-lottie {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

body.template-2-active .tpl2-offers-empty {
  margin: 1.25rem 0;
  text-align: center;
  color: var(--design-muted-text, #64748b);
  font-size: 0.95rem;
}

body.template-2-active .tpl2-offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body.template-2-active .tpl2-offers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 380px) {
  body.template-2-active .tpl2-offers-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

/* Card shell — isolate legacy .product-card on offers page */
body.template-2-active .tpl2-page--offers .tpl2-offer-card {
  min-width: 0;
  height: 100%;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-card-inner.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 88%, var(--design-body-text-color, #0f172a) 12%);
  border-radius: 14px;
  background: var(--design-card-bg, #fff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--design-body-text-color, #000) 6%, transparent);
  transform: none;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-card-inner.product-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 28%, var(--design-card-border, #ececec) 72%);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--design-body-text-color, #0f172a) 8%, transparent);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-badge.discount-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  margin: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  border: none;
  pointer-events: none;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-share.product-share-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-body-text-color, #0f172a) 18%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--design-card-bg, #fff) 92%, transparent);
  color: var(--design-body-text-color, #1e293b);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--design-body-text-color, #0f172a) 10%, transparent);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-share-icon {
  display: block;
  flex-shrink: 0;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-media {
  flex: 0 0 auto;
  width: 100%;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-media .ratio {
  --bs-aspect-ratio: 100%;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-media .zoom-box {
  position: relative;
  width: 100%;
  height: 100%;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-zoom.zoom-icon {
  position: absolute;
  bottom: 0.45rem;
  left: 0.45rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-body-text-color, #0f172a) 22%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--design-card-bg, #fff) 88%, transparent);
  color: var(--design-body-text-color, #1e293b);
  opacity: 1;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-zoom-icon {
  display: block;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem 0.65rem;
  min-width: 0;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-title-link {
  color: inherit;
  text-decoration: none;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-title.product-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--design-body-text-color, #18181b);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--design-muted-text, #64748b);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  margin-top: 0.1rem;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-price-old {
  font-size: 0.78rem;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-price-now.price {
  font-size: 0.92rem;
  font-weight: 500;
  color: #16a34a !important;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-price-note {
  flex: 1 1 100%;
  margin: 0;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-qty {
  margin-bottom: 0.25rem;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-qty .qty-inline {
  max-width: 100%;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-actions {
  margin-top: auto;
  padding-top: 0.15rem;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-add,
body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-options {
  min-height: 2.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--home-t2-radius, 0px);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-primary.btn-add {
  background: var(--design-secondary, var(--design-primary, #fcc316));
  border-color: var(--design-secondary, var(--design-primary, #fcc316));
  color: var(--design-button-text, #fff);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-outline-primary.btn-options {
  color: var(--design-secondary, var(--design-primary, #fcc316));
  border-color: color-mix(in srgb, var(--design-secondary, var(--design-primary, #fcc316)) 75%, var(--design-card-border, #e4e4e7) 25%);
}

body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-outline-primary.btn-options:hover {
  background: color-mix(in srgb, var(--design-secondary, var(--design-primary, #fcc316)) 12%, var(--design-card-bg, #fff) 88%);
  color: var(--design-secondary, var(--design-primary, #fcc316));
  border-color: var(--design-secondary, var(--design-primary, #fcc316));
}

/* ==========================================================================
   Category listing — Design Lab #page-lab-02 (Template 3 Fullwidth)
   ========================================================================== */

body.template-2-active .tpl2-page--category {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: clip;
  padding: 0 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

/* 12.5 — تقليل المسافة العلوية (صفحة التصنيف فقط، بدون تعديل .py-3 عالميًا) */
body.template-2-active .container.py-3:has(.tpl2-page--category) {
  padding-top: 0 !important;
  padding-bottom: 1rem !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3 {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 92%, var(--design-body-text-color, #111) 8%);
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-category-hero {
  margin: 0 0 0.15rem;
  padding: 0.35rem 0 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 88%, var(--design-body-text-color, #0f172a) 12%);
}

body.template-2-active .tpl2-category-title {
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--design-body-text-color, #18181b);
}

body.template-2-active .tpl2-category-subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--design-muted-text, #64748b);
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 88%, transparent);
}

body.template-2-active .tpl2-page--category .tpl2-category-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
}

/* إعادة تعيين cat-btn العام (style.css: aspect-ratio 1/1 + مربعات) */
body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 2rem !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 0.28rem 0.62rem !important;
  margin: 0 !important;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 90%, var(--design-body-text-color, #111) 10%) !important;
  border-radius: 0 !important;
  background: var(--design-card-bg, #fff) !important;
  color: var(--design-body-text-color, #18181b) !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  position: static !important;
  z-index: auto !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn::before {
  content: none !important;
  display: none !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn:hover {
  transform: none !important;
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 55%, var(--design-card-border, #ddd) 45%) !important;
  background: color-mix(in srgb, var(--design-body-text-color, #111) 6%, var(--design-card-bg, #fff) 94%) !important;
  color: var(--design-body-text-color, #18181b) !important;
  box-shadow: none !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn i,
body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-img {
  display: none !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn.active-cat {
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 85%, var(--design-card-border, #ddd) 15%) !important;
  background: color-mix(in srgb, var(--design-body-text-color, #111) 92%, transparent) !important;
  color: var(--design-button-text, #fff) !important;
  box-shadow: none !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn.active-cat .cat-name,
body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn:hover .cat-name {
  color: inherit !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-name {
  display: block;
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
  white-space: nowrap;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  margin: 0 !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  margin-bottom: 0;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-toolbar-start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-views {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.32rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 92%, var(--design-body-text-color, #111) 8%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #18181b);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-chip.is-active {
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 85%, var(--design-card-border, #ddd) 15%);
  background: color-mix(in srgb, var(--design-body-text-color, #111) 92%, transparent);
  color: var(--design-button-text, #fff);
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-price-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-price-label {
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--design-muted-text, #64748b);
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-price-input {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  height: 34px;
  padding: 0.25rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 92%, transparent);
  border-radius: 0;
  font-size: 0.78rem;
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #18181b);
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-price-sep {
  font-size: 0.78rem;
  color: var(--design-muted-text, #64748b);
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-view {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #cfcfcf) 90%, transparent);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  color: color-mix(in srgb, var(--design-body-text-color, #444) 88%, transparent);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-view--active,
body.template-2-active .tpl2-page--category .tpl2-category-t3-view:hover {
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 85%, var(--design-card-border, #ddd) 15%);
  color: var(--design-body-text-color, #111);
  background: var(--design-card-bg, #fff);
}

/* 12.5 — toolbar مضغوط للجوال */
@media (max-width: 767.98px) {
  body.template-2-active .tpl2-page--category .tpl2-category-t3-toolbar {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-toolbar-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "views views"
      "filters filters";
    gap: 0.32rem 0.4rem;
    align-items: center;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-toolbar-start {
    display: contents;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-views {
    grid-area: views;
    justify-self: end;
    align-self: center;
    gap: 0.28rem;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-view {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-filters {
    grid-area: filters;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.32rem;
    width: 100%;
    min-width: 0;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-filters > .tpl2-category-t3-chip:not(.tpl2-category-t3-chip--apply) {
    flex: 0 0 auto;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-chip {
    min-height: 30px;
    padding: 0.24rem 0.48rem;
    font-size: 0.74rem;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-price-form {
    display: flex;
    flex: 1 1 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.28rem 0.32rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-price-label {
    flex: 0 0 100%;
    font-size: 0.72rem;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-price-input {
    flex: 1 1 4.5rem;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 30px;
    font-size: 0.74rem;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-price-sep {
    flex: 0 0 auto;
  }

  body.template-2-active .tpl2-page--category .tpl2-category-t3-chip--apply {
    flex: 0 0 auto;
    min-height: 30px;
  }
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-grid {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.85rem;
}

/* شبكة المنتجات — تخطيط فقط (الكارد من home-template-2.css) */
body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

@media (min-width: 768px) {
  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
  }
}

@media (min-width: 1024px) {
  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (max-width: 380px) {
  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

body.template-2-active .tpl2-page--category #productsGrid .tpl2-category-products-empty {
  grid-column: 1 / -1;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--design-muted-text, #64748b);
}

/* ==========================================================================
   12.4 — كارد التصنيف = كارد الرئيسية (lab-t3-featured-* من home-template-2.css)
   هنا: تخطيط الشبكة/القائمة فقط — بدون تغيير هوية الكارد
   ========================================================================== */

body.template-2-active .tpl2-page--category .tpl2-category-cards-scope.home-template-2 {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-card {
  flex: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  scroll-snap-align: unset;
  scroll-snap-stop: normal;
}

/* 12.6 / 12.7 — بادج الخصم (صفحة التصنيف فقط — مستطيل بزوايا حادة) */
body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-card .lab-t3-featured-badge,
body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-card .lab-t3-featured-badge--pct,
body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-card .lab-t3-featured-badge--timed,
body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-thumb .lab-t3-featured-badge,
body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-thumb .lab-t3-featured-badge--pct,
body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-thumb .lab-t3-featured-badge--timed,
body.template-2-active .tpl2-page--category #productsGrid .lab-t3-featured-badge,
body.template-2-active .tpl2-page--category #productsGrid .lab-t3-featured-badge--pct,
body.template-2-active .tpl2-page--category #productsGrid .lab-t3-featured-badge--timed {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #e53935 !important;
  color: #fff !important;
  border: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 0.22rem 0.48rem !important;
  line-height: 1.15 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-badges,
body.template-2-active .tpl2-page--category #productsGrid .lab-t3-featured-badges {
  position: absolute;
  top: 0.45rem;
  inset-inline-end: 0.45rem;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.28rem;
  flex-wrap: wrap;
  max-width: calc(100% - 0.9rem);
  pointer-events: none;
}

body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-badges .lab-t3-featured-badge,
body.template-2-active .tpl2-page--category #productsGrid .lab-t3-featured-badges .lab-t3-featured-badge {
  position: static !important;
  top: auto !important;
  inset-inline-end: auto !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-badge--timed,
body.template-2-active .tpl2-page--category #productsGrid .lab-t3-featured-badge--timed {
  background: #e53935 !important;
  letter-spacing: 0 !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-cards-scope .lab-t3-featured-price-old {
  color: #e53935;
  text-decoration: line-through;
}

/* 12.5 — List view: منتج واحد/صف، صورة يمين (RTL) وتفاصيل يسار — نفس كارد الرئيسية */
body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-card.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  grid-template-rows: auto;
  column-gap: 0.75rem;
  row-gap: 0;
  align-items: center;
  width: 100% !important;
  min-width: 0;
  max-width: none;
  height: auto;
  overflow: hidden;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-card .qty-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-media {
  grid-column: 1;
  grid-row: 1;
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  margin: 0;
  align-self: center;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-thumb .lab-t3-featured-zoom-btn {
  width: 2rem;
  height: 2rem;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-badge,
body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-badge--pct,
body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-badge--timed {
  top: 0.3rem;
  inset-inline-end: 0.3rem;
  font-size: 0.52rem !important;
  padding: 0.18rem 0.4rem !important;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-badges {
  top: 0.3rem;
  inset-inline-end: 0.3rem;
  gap: 0.22rem;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-body {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.45rem 0.5rem 0.5rem;
  text-align: start;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-name {
  text-align: start;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-name-link {
  text-align: start;
  -webkit-line-clamp: 2;
  min-height: 0;
  max-height: none;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-rule {
  display: none;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-prices,
body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-prices--single {
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.12rem;
  min-height: 0;
  margin: 0;
  text-align: start;
}

body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-action,
body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-action--soldout {
  margin-top: 0.15rem;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-card.product-card {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 0.55rem;
  }

  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-media {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-body {
    padding: 0.35rem 0.4rem 0.42rem;
    gap: 0.25rem;
  }

  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-name {
    font-size: 0.82rem;
  }

  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-action {
    padding: 0.4rem 2rem;
    font-size: 0.7rem;
  }
}

@media (min-width: 768px) {
  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-card.product-card {
    grid-template-columns: 132px minmax(0, 1fr);
    column-gap: 0.85rem;
  }

  body.template-2-active .tpl2-page--category #productsGrid.tpl2-category-view-list .lab-t3-featured-media {
    width: 132px;
    min-width: 132px;
    max-width: 132px;
  }
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination {
  margin-top: 0.85rem;
  padding-top: 0;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination {
  width: 100%;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination nav {
  margin: 0 !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination .page-item {
  margin: 0;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination .page-link {
  min-width: 34px;
  min-height: 34px;
  width: auto;
  height: 34px;
  padding: 0 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 92%, transparent) !important;
  border-radius: 0 !important;
  color: var(--design-body-text-color, #18181b) !important;
  background: var(--design-card-bg, #fff) !important;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: none !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination .page-link:hover {
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 55%, var(--design-card-border, #ddd) 45%) !important;
  background: color-mix(in srgb, var(--design-body-text-color, #111) 6%, var(--design-card-bg, #fff) 94%) !important;
  color: var(--design-body-text-color, #18181b) !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination .page-item.active .page-link {
  background: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
  border-color: color-mix(in srgb, var(--design-button-bg, var(--design-primary, #fcc316)) 88%, var(--design-body-text-color, #111827) 12%) !important;
  color: var(--design-button-text, #fff) !important;
  pointer-events: none;
}

body.template-2-active .tpl2-page--category .tpl2-category-t3-pagination #mainPagination .page-item.disabled .page-link {
  background: var(--design-card-bg, #fff) !important;
  border-color: color-mix(in srgb, var(--design-card-border, #ddd) 92%, transparent) !important;
  color: color-mix(in srgb, var(--design-muted-text, #64748b) 90%, transparent) !important;
  pointer-events: none;
}

/* ==========================================================================
   Shared product modals — share / options / image zoom
   ========================================================================== */

body.template-2-active #shareModal.tpl2-share-modal .modal-dialog {
  width: calc(100% - 1.25rem);
  max-width: 520px;
  margin: 1rem auto;
}

body.template-2-active #shareModal .modal-content.tpl2-share-shell {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e0e0e0) 88%, var(--design-body-text-color, #111) 12%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  overflow: hidden;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--design-body-text-color, #0f172a) 14%, transparent);
}

body.template-2-active #shareModal .modal-header.tpl2-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 85%, transparent);
  border-radius: 0;
  background: var(--design-primary, #fcc316);
  color: var(--design-button-text, #fff);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--design-body-text-color, #111) 22%, transparent);
}

body.template-2-active #shareModal .tpl2-share-title.modal-title {
  margin: 0;
  font-family: var(--font-family-sans, inherit);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

body.template-2-active #shareModal .tpl2-share-close.btn-close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem;
  opacity: 0.85;
  filter: invert(1) grayscale(1);
  border-radius: 0;
}

body.template-2-active #shareModal .tpl2-share-close.btn-close:hover {
  opacity: 1;
}

body.template-2-active #shareModal .tpl2-share-body.modal-body {
  padding: 1rem;
  background: var(--design-card-bg, #fff);
}

body.template-2-active #shareModal .tpl2-share-product {
  color: var(--design-muted-text, #64748b) !important;
}

body.template-2-active #shareModal .tpl2-share-icon.btn {
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border-color: color-mix(in srgb, var(--design-button-bg, var(--design-primary, #fcc316)) 86%, #111 14%);
  background: var(--design-button-bg, var(--design-primary, #fcc316));
  color: var(--design-button-text, #fff);
}

body.template-2-active #shareModal .tpl2-share-link-box.share-link-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: stretch;
}

body.template-2-active #shareModal .tpl2-share-link.form-control,
body.template-2-active #shareModal .tpl2-share-copy.btn {
  min-height: 2.35rem;
  border-radius: 0;
}

body.template-2-active #shareModal .tpl2-share-link.form-control {
  border-color: color-mix(in srgb, var(--design-card-border, #ddd) 90%, #111 10%);
  direction: ltr;
  text-align: left;
}

body.template-2-active #shareModal .tpl2-share-copy.btn {
  min-width: 2.55rem;
  color: var(--design-body-text-color, #18181b);
  border-color: color-mix(in srgb, var(--design-card-border, #ddd) 90%, #111 10%);
}

body.template-2-active #shareModal .tpl2-share-footer.modal-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 90%, transparent);
  background: color-mix(in srgb, var(--design-background-color, #f8f9fa) 72%, var(--design-card-bg, #fff) 28%);
}

body.template-2-active #shareModal .tpl2-share-dismiss.btn {
  border-radius: 0;
  font-weight: 600;
}

/* ==========================================================================
   Options modal — Design Lab #page-lab-07 (style 02 sharp / radius 0)
   ========================================================================== */

body.template-2-active #optionsModal.tpl2-options-modal .modal-dialog {
  width: calc(100% - 1.25rem);
  max-width: 540px;
  margin: 1rem auto;
}

body.template-2-active #optionsModal .modal-content.tpl2-options-shell {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e0e0e0) 88%, var(--design-body-text-color, #111) 12%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  overflow: hidden;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--design-body-text-color, #0f172a) 14%, transparent);
}

body.template-2-active #optionsModal .modal-header.tpl2-options-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 85%, transparent);
  border-radius: 0;
  background: var(--design-primary, #fcc316);
  color: var(--design-button-text, #fff);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--design-body-text-color, #111) 22%, transparent);
}

body.template-2-active #optionsModal .tpl2-options-title.modal-title {
  margin: 0;
  font-family: var(--font-family-sans, inherit);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

body.template-2-active #optionsModal .tpl2-options-close.btn-close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem;
  opacity: 0.85;
  filter: invert(1) grayscale(1);
  border-radius: 0;
}

body.template-2-active #optionsModal .tpl2-options-close.btn-close:hover {
  opacity: 1;
}

body.template-2-active #optionsModal .tpl2-options-body.modal-body {
  padding: 0;
  overflow-x: hidden;
  background: var(--design-card-bg, #fff);
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-list.list-group {
  border-radius: 0;
  margin: 0;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-row.list-group-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  margin: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #eee) 90%, transparent);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-row.list-group-item:last-child {
  border-bottom: none;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-info {
  flex: 1 1 8rem;
  min-width: 0;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--design-body-text-color, #1c1c2e);
  margin-bottom: 0.2rem;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-price-old {
  font-size: 0.78rem;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-price-now {
  font-size: 0.9rem;
  font-weight: 500;
  color: #16a34a !important;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-controls {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-qty.input-group {
  width: auto !important;
  min-width: 7.5rem;
  max-width: 100%;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 90%, transparent);
  border-radius: 0;
  overflow: hidden;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-qty .opt-minus,
body.template-2-active #optionsModal #optionsBody .tpl2-options-qty .opt-plus {
  min-width: 2.1rem;
  min-height: 2.1rem;
  padding: 0;
  border-radius: 0;
  border: none;
  border-inline: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 85%, transparent);
  background: color-mix(in srgb, var(--design-background-color, #f8f8f8) 88%, var(--design-card-bg, #fff) 12%);
  color: var(--design-body-text-color, #333);
  font-size: 1rem;
  line-height: 1;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-qty .opt-qty {
  min-width: 2.25rem;
  min-height: 2.1rem;
  padding: 0.25rem 0.35rem;
  border: none;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-action.opt-add {
  min-height: 2.35rem;
  padding: 0.38rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--design-secondary, var(--design-primary, #fcc316)) 85%, #111 15%);
  border-radius: 0;
  background: var(--design-button-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

body.template-2-active #optionsModal #optionsBody .tpl2-options-action.opt-add:hover {
  background: var(--design-button-hover-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  border-color: var(--design-button-hover-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
}

@media (max-width: 480px) {
  body.template-2-active #optionsModal.tpl2-options-modal .modal-dialog {
    width: calc(100% - 0.75rem);
    margin: 0.5rem auto;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-row.list-group-item {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 0.12rem 0.35rem;
    text-align: right;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-name {
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-price-old,
  body.template-2-active #optionsModal #optionsBody .tpl2-options-price-now {
    flex: 0 0 auto;
    line-height: 1.2;
    white-space: nowrap;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-price-old {
    font-size: 0.68rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-price-now {
    font-size: 0.76rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-controls {
    flex: 0 0 auto;
    width: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.3rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-qty.input-group {
    flex: 0 0 5.75rem;
    width: 5.75rem !important;
    min-width: 5.75rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-qty .opt-minus,
  body.template-2-active #optionsModal #optionsBody .tpl2-options-qty .opt-plus {
    min-width: 1.65rem;
    min-height: 1.95rem;
    font-size: 0.86rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-qty .opt-qty {
    min-width: 1.7rem;
    min-height: 1.95rem;
    padding: 0.2rem 0.15rem;
    font-size: 0.8rem;
  }

  body.template-2-active #optionsModal #optionsBody .tpl2-options-action.opt-add {
    flex: 0 0 auto;
    width: auto;
    min-width: 3.35rem;
    min-height: 2.05rem;
    padding: 0.28rem 0.55rem;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   Share modal — match Template 2 options modal chrome
   ========================================================================== */

body.template-2-active #shareModal .modal-dialog {
  width: calc(100% - 1.25rem);
  max-width: 540px;
  margin: 1rem auto;
}

body.template-2-active #shareModal .modal-content {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e0e0e0) 88%, var(--design-body-text-color, #111) 12%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  overflow: hidden;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--design-body-text-color, #0f172a) 14%, transparent);
}

body.template-2-active #shareModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 0.5rem;
  padding: 0.85rem 1rem !important;
  margin: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 85%, transparent);
  border-radius: 0;
  background: var(--design-primary, #fcc316);
  color: var(--design-button-text, #fff);
  text-shadow: 0 1px 1px color-mix(in srgb, var(--design-body-text-color, #111) 22%, transparent);
}

body.template-2-active #shareModal .modal-title {
  margin: 0;
  font-family: var(--font-family-sans, inherit);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: inherit;
}

body.template-2-active #shareModal .btn-close {
  flex-shrink: 0;
  margin: 0;
  padding: 0.35rem;
  opacity: 0.85;
  filter: invert(1) grayscale(1);
  border-radius: 0;
}

body.template-2-active #shareModal .btn-close:hover {
  opacity: 1;
}

body.template-2-active #shareModal .modal-body {
  padding: 1rem;
  background: var(--design-card-bg, #fff);
  overflow-x: hidden;
}

body.template-2-active #shareModal #shareProdName {
  margin: 0 0 0.85rem !important;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #eee) 92%, transparent);
  border-radius: 0;
  background: color-mix(in srgb, var(--design-background-color, #f8f8f8) 88%, var(--design-card-bg, #fff) 12%);
  color: var(--design-body-text-color, #1c1c2e) !important;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

body.template-2-active #shareModal .share-icons {
  gap: 0.55rem !important;
  margin-bottom: 1rem !important;
}

body.template-2-active #shareModal .share-icons .btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-secondary, var(--design-primary, #fcc316)) 85%, #111 15%);
  border-radius: 0;
  background: var(--design-button-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
  box-shadow: none;
}

body.template-2-active #shareModal .share-icons .btn:hover {
  border-color: var(--design-button-hover-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  background: var(--design-button-hover-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
}

body.template-2-active #shareModal .share-link-box {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  width: 100%;
}

body.template-2-active #shareModal #shareLink.form-control {
  min-height: 2.55rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 90%, transparent);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #1c1c2e);
  font-size: 0.85rem;
  box-shadow: none;
}

body.template-2-active #shareModal .btn-copy-link {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  min-height: 2.55rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 88%, var(--design-body-text-color, #111) 12%);
  border-radius: 0;
  background: color-mix(in srgb, var(--design-body-text-color, #1e293b) 6%, var(--design-background-color, #f1f5f9) 94%);
  color: var(--design-body-text-color, #1e293b);
  box-shadow: none;
}

body.template-2-active #shareModal .btn-copy-link:hover {
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 22%, var(--design-card-border, #ddd) 78%);
  background: color-mix(in srgb, var(--design-body-text-color, #111) 11%, var(--design-background-color, #f1f5f9) 89%);
  color: var(--design-body-text-color, #0f172a);
}

body.template-2-active #shareModal .modal-footer {
  padding: 0.8rem 1rem !important;
  border-top: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 85%, transparent);
  background: color-mix(in srgb, var(--design-background-color, #f8f8f8) 72%, var(--design-card-bg, #fff) 28%);
}

body.template-2-active #shareModal .modal-footer .btn {
  min-height: 2.35rem;
  padding: 0.38rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 88%, var(--design-body-text-color, #111) 12%);
  border-radius: 0;
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #1c1c2e);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  body.template-2-active #shareModal .modal-body {
    padding: 0.85rem;
  }

  body.template-2-active #shareModal .share-link-box {
    gap: 0.4rem;
  }
}

/* ==========================================================================
   Cart page — Design Lab #page-lab-03 (Template 3 Shopping Cart)
   ========================================================================== */

body.template-2-active .tpl2-page--cart {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: 0.5rem 0 calc(4.75rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-page {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-heading {
  margin-bottom: 0.85rem !important;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--design-heading-color, var(--design-body-text-color, #18181b));
}

body.template-2-active .tpl2-page--cart .tpl2-cart-empty {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #dcdcdc) 90%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: none;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-form {
  width: 100%;
  max-width: 100%;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-table.cart-container {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #dcdcdc) 92%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: none;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-table-head.cart-header {
  display: none;
  padding: 0.65rem 0.75rem;
  background: color-mix(in srgb, var(--design-background-color, #f8f8f8) 88%, var(--design-card-bg, #fff) 12%);
  border-bottom: 2px solid color-mix(in srgb, var(--design-card-border, #ddd) 90%, transparent);
  font-weight: 700;
  font-size: 0.88rem;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-table-head.cart-header > div {
  flex: none;
  padding: 0;
  text-align: start;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-items {
  padding: 0;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-row.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(2.4rem, 0.45fr);
  gap: 0.55rem 0.65rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 92%, transparent);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-row.cart-item:hover {
  background: color-mix(in srgb, var(--design-background-color, #f8f8f8) 55%, var(--design-card-bg, #fff) 45%);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-row.cart-item > div {
  flex: none;
  padding: 0;
  min-width: 0;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-product {
  text-align: start;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-title.product-name {
  margin-bottom: 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--design-heading-color, #222);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-option.product-option {
  font-size: 0.8rem;
  color: var(--design-muted-text, #6b7280);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-price,
body.template-2-active .tpl2-page--cart .tpl2-cart-line-total {
  text-align: center;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-price .price-value,
body.template-2-active .tpl2-page--cart .tpl2-cart-line-total .line-total {
  font-weight: 500;
  font-size: 0.88rem;
  color: #16a34a;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-row .mobile-label {
  display: none;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-qty {
  text-align: center;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-qty-controls.quantity-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 auto;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-qty-controls .qty-btn {
  width: 1.65rem;
  height: 1.65rem;
  min-width: 1.65rem;
  min-height: 1.65rem;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #bdbdbd) 95%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  font-size: 0.95rem;
  line-height: 1;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-qty-controls .qty-btn:hover {
  border-color: var(--design-body-text-color, #111);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-qty-controls .qty-input {
  width: 2.4rem;
  min-height: 1.65rem;
  padding: 0.2rem 0.25rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 95%, transparent);
  border-radius: var(--home-t2-radius, 0);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-row-actions {
  text-align: center;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-remove.btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 92%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #333);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-remove.btn-remove:hover {
  border-color: var(--design-body-text-color, #111);
  color: var(--design-body-text-color, #111);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-remove .mobile-label {
  display: inline;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin-top: 0.15rem;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-coupon.cart-coupon-block {
  margin-bottom: 0;
  padding: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #d9d9d9) 95%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-background-color, #fafafa) 70%, var(--design-card-bg, #fff) 30%);
  box-shadow: none;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-coupon.cart-coupon-block:hover {
  background: color-mix(in srgb, var(--design-background-color, #fafafa) 70%, var(--design-card-bg, #fff) 30%);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-coupon-title {
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-coupon .form-control {
  min-height: 2.25rem;
  border-radius: var(--home-t2-radius, 0);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-coupon #btnApplyCoupon,
body.template-2-active .tpl2-page--cart .tpl2-cart-coupon .btn-primary {
  min-height: 2.25rem;
  border-radius: var(--home-t2-radius, 0);
  border: 1px solid color-mix(in srgb, var(--design-secondary, var(--design-primary, #fcc316)) 85%, #111 15%);
  background: var(--design-button-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
  font-weight: 600;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary-wrap {
  margin: 0;
  padding: 0;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary.summary-card {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #d9d9d9) 95%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: none;
  padding: 0.8rem;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary-row.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
  padding: 0;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary-row .summary-label {
  flex: 1 1 auto;
  font-size: 0.84rem;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary-row .summary-value {
  flex: 0 0 auto;
  font-size: 0.84rem;
  text-align: end;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary-total.summary-row {
  border-top: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 95%, transparent);
  padding-top: 0.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-summary-total #grandTotal {
  font-size: 1rem;
  font-weight: 500;
  color: #16a34a;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-actions.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn {
  flex: 1 1 calc(50% - 0.25rem);
  min-height: 2.25rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--home-t2-radius, 0);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: normal;
}

body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn-outline-secondary {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 34%, var(--design-card-border, #ddd) 66%);
  color: var(--design-body-text-color, #333);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 12%, var(--design-card-bg, #fff) 88%);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn-outline-secondary:hover,
body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn-outline-secondary:focus-visible {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 52%, var(--design-card-border, #ddd) 48%);
  color: var(--design-body-text-color, #222);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 18%, var(--design-card-bg, #fff) 82%);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn-primary {
  border: 1px solid color-mix(in srgb, var(--design-secondary, var(--design-primary, #fcc316)) 85%, #111 15%);
  background: var(--design-button-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
}

body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn-success {
  flex: 1 1 100%;
  border: 1px solid color-mix(in srgb, #198754 80%, #111 20%);
  background: #198754;
  color: #fff;
}

@media (min-width: 768px) {
  body.template-2-active .tpl2-page--cart .tpl2-cart-table-head.cart-header {
    display: grid !important;
    grid-template-columns: minmax(0, 2fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(2.4rem, 0.45fr);
    gap: 0.65rem;
    align-items: center;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-table-head.cart-header > div {
    min-width: 0;
    text-align: center;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-table-head.cart-header > .cart-product {
    text-align: start;
  }
}

@media (max-width: 767.98px) {
  body.template-2-active .tpl2-page--cart .tpl2-cart-row.cart-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
    padding: 0.85rem 0.75rem;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-row .mobile-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--design-muted-text, #6b7280);
    margin-bottom: 0.2rem;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-price,
  body.template-2-active .tpl2-page--cart .tpl2-cart-qty,
  body.template-2-active .tpl2-page--cart .tpl2-cart-line-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: start;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-price .price-value,
  body.template-2-active .tpl2-page--cart .tpl2-cart-line-total .line-total,
  body.template-2-active .tpl2-page--cart .tpl2-cart-qty-controls.quantity-controls {
    margin-inline-start: auto;
    margin-inline-end: 0;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-row-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.15rem;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  body.template-2-active .tpl2-page--cart .tpl2-cart-actions .btn {
    flex: 1 1 100%;
  }
}

/* —— Checkout (Template 3 steps) —— */
body.template-2-active .tpl2-page--checkout {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  padding: 0.5rem 0 calc(4.75rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-heading {
  margin: 0;
  font-weight: 700;
  color: var(--design-heading-color, var(--design-body-text-color, #18181b));
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-layout {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.85rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-main,
body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-wrap {
  min-width: 0;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-form.card {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #111) 88%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: none;
  overflow: hidden;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-form-toolbar.card-header {
  background: var(--design-card-bg, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 95%, transparent);
  padding: 0.65rem 0.85rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-form-body.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #111) 88%, transparent);
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel-head {
  padding: 0.55rem 0.7rem;
  background: color-mix(in srgb, var(--design-muted-bg, #f4f4f4) 92%, #fff 8%);
  font-weight: 700;
  font-size: 0.88rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 95%, transparent);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel-head span {
  display: inline-block;
  min-width: 1.35rem;
  margin-inline-end: 0.4rem;
  opacity: 0.75;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel-body {
  padding: 0.7rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel-body > .row {
  --bs-gutter-x: 0.55rem;
  --bs-gutter-y: 0.55rem;
}

@media (min-width: 768px) {
  body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel-body > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.template-2-active .tpl2-page--checkout .tpl2-checkout-panel-body > .row > .col-12 {
    grid-column: 1 / -1;
  }
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-field .form-label {
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-input.form-control {
  border-radius: var(--home-t2-radius, 0);
  border-color: color-mix(in srgb, var(--design-card-border, #d5d5d5) 92%, #111 8%);
  font-size: 0.9rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-input.form-control:focus {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 55%, #111 45%);
  box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--design-primary, #fcc316) 25%, transparent);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-payment.list-group {
  gap: 0.45rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-payment .list-group-item {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 90%, #111 10%);
  border-radius: var(--home-t2-radius, 0);
  margin-bottom: 0;
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-payment .list-group-item + .list-group-item {
  border-top-width: 1px;
}

body.template-2-active .tpl2-page--checkout #bank-section {
  border: 1px dashed color-mix(in srgb, var(--design-card-border, #ccc) 85%, #111 15%);
  padding: 0.65rem;
  background: color-mix(in srgb, var(--design-muted-bg, #f8f9fa) 90%, #fff 10%);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-upload .form-control {
  max-width: 100%;
}

body.template-2-active .tpl2-page--checkout .bank-method-card {
  border-radius: var(--home-t2-radius, 0);
  border-color: color-mix(in srgb, var(--design-card-border, #ddd) 90%, #111 10%) !important;
}

body.template-2-active .tpl2-page--checkout .bank-method-card.selected {
  background-color: color-mix(in srgb, var(--design-primary, #fcc316) 12%, #fff 88%) !important;
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 70%, #111 30%) !important;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-actions.card-footer {
  background: color-mix(in srgb, var(--design-muted-bg, #f8f9fa) 88%, #fff 12%);
  border-top: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 95%, transparent);
  padding: 0.75rem;
  flex-wrap: wrap;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-actions .btn {
  min-height: 2.35rem;
  border-radius: var(--home-t2-radius, 0);
  font-weight: 600;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-actions .btn-success {
  flex: 1 1 auto;
  border: 1px solid color-mix(in srgb, #198754 80%, #111 20%);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary.card {
  border: 1px solid color-mix(in srgb, var(--design-card-border, #111) 88%, transparent);
  border-radius: var(--home-t2-radius, 0);
  box-shadow: none;
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-head.card-header {
  font-weight: 700;
  background: color-mix(in srgb, var(--design-muted-bg, #f4f4f4) 92%, #fff 8%);
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 95%, transparent);
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-body.card-body {
  padding: 0.75rem;
}

body.template-2-active .tpl2-page--checkout .order-mini-line {
  padding-bottom: 0.45rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--design-card-border, #eee) 95%, transparent);
}

body.template-2-active .tpl2-page--checkout .order-mini-line + .order-mini-line {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-row {
  font-size: 0.86rem;
  gap: 0.5rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-row--discount .text-success {
  font-weight: 600;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-total {
  border-top: 1px solid color-mix(in srgb, var(--design-card-border, #ececec) 95%, transparent);
  padding-top: 0.55rem;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-total #finalTotalValue {
  font-weight: 500;
  color: #16a34a;
}

@media (min-width: 992px) {
  body.template-2-active .tpl2-page--checkout .tpl2-checkout-summary-wrap .tpl2-checkout-summary {
    position: sticky;
    top: 0.75rem;
  }
}

@media (max-width: 991.98px) {
  body.template-2-active .tpl2-page--checkout .tpl2-checkout-layout {
    flex-direction: column-reverse;
  }

  body.template-2-active .tpl2-page--checkout .tpl2-checkout-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
  }

  body.template-2-active .tpl2-page--checkout .tpl2-checkout-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }

  body.template-2-active .tpl2-page--checkout .tpl2-checkout-actions .btn-success {
    flex: 1 1 100%;
    order: -1;
  }
}

/* ==========================================================================
   Product page — 13.0 Design Lab 03 مودرن (template_2 فقط)
   مرجع: pages-product-style--modern / pages-product-mod-*
   ========================================================================== */

body.template-2-active .container.py-3:has(.tpl2-page--product) {
  padding-top: 0 !important;
  padding-bottom: 0.5rem !important;
}

body.template-2-active .tpl2-page--product {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding: 0 0 0.5rem;
  box-sizing: border-box;
  font-family: var(--font-family-sans, inherit);
  direction: rtl;
}

body.template-2-active .tpl2-page--product .tpl2-product-page.tpl2-product-modern {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  align-items: start;
}

@media (min-width: 720px) {
  body.template-2-active .tpl2-page--product .tpl2-product-modern-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  body.template-2-active .tpl2-page--product .tpl2-product-modern-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.72fr);
    gap: 1.65rem;
  }
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-media,
body.template-2-active .tpl2-page--product .tpl2-product-modern-info {
  min-width: 0;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-img-wrap {
  position: relative;
  border-radius: var(--home-t2-radius, 0);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  background: color-mix(in srgb, var(--design-background-color, #f8fafc) 88%, var(--design-card-bg, #fff) 12%);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--design-body-text-color, #0f172a) 10%, transparent);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery.product-gallery {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .gallery-main {
  position: relative;
  height: 100%;
  min-height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

/* 13.3 — بادج الخصم: أعلى اليسار بصريًا (left صريح) */
body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .gallery-main .tpl2-product-modern-badge.discount-badge {
  position: absolute;
  top: 0.55rem !important;
  right: auto !important;
  bottom: auto !important;
  left: 0.55rem !important;
  inset-inline-start: auto !important;
  inset-inline-end: 0.55rem !important;
  z-index: 6;
  margin: 0;
  border-radius: 0;
  padding: 0.26rem 0.52rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  background: #e53935;
  color: #fff;
  box-shadow: none;
  pointer-events: none;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .gallery-main img.product-img,
body.template-2-active .tpl2-page--product .tpl2-product-modern-main-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 45%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-card-bg, #fff) 52%, transparent);
  color: var(--design-body-text-color, #1e293b);
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.82;
  padding: 0;
  backdrop-filter: blur(2px);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .nav.prev {
  inset-inline-start: 0.45rem;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .nav.next {
  inset-inline-end: 0.45rem;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .nav:hover {
  opacity: 1;
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 45%, var(--design-body-text-color, #111) 55%);
  background: color-mix(in srgb, var(--design-card-bg, #fff) 78%, transparent);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-zoom-btn.zoom-icon {
  position: absolute;
  bottom: 0.55rem;
  inset-inline-start: 0.55rem;
  z-index: 4;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 85%, var(--design-body-text-color, #111) 15%);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-card-bg, #fff) 92%, transparent);
  color: var(--design-body-text-color, #1e293b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  line-height: 1;
  cursor: pointer;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-zoom-btn .tpl2-product-modern-zoom-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-zoom-btn .tpl2-product-modern-zoom-symbol svg {
  display: block;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-zoom-btn:hover {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 55%, var(--design-body-text-color, #111) 45%);
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery-wrap > .tpl2-product-modern-minis.thumbs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
  margin: 0.55rem 0 0 !important;
  padding: 0 0.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery-wrap > .tpl2-product-modern-minis .thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--design-card-border, #ddd);
  border-radius: var(--home-t2-radius, 0);
  cursor: pointer;
  background: color-mix(in srgb, var(--design-background-color, #f8fafc) 88%, var(--design-card-bg, #fff) 12%);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-minis .thumb.active {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 70%, var(--design-body-text-color, #111) 30%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--design-primary, #fcc316) 35%, transparent);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-card.product-card {
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

@media (min-width: 720px) {
  body.template-2-active .tpl2-page--product .tpl2-product-modern-card {
    position: sticky;
    top: 1rem;
  }
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-card-inner.card-body {
  background: var(--design-card-bg, #fff);
  border: 1px solid var(--design-card-border, #e4e4e4);
  border-radius: var(--home-t2-radius, 0);
  padding: 1.25rem 1.35rem 1.35rem !important;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--design-body-text-color, #0f172a) 6%, transparent);
  direction: rtl;
  text-align: right;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-background-color, #f8fafc) 88%, var(--design-card-bg, #fff) 12%);
  color: var(--design-muted-text, #64748b);
  border: 1px solid var(--design-card-border, #e4e4e4);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-tag--sale {
  background: color-mix(in srgb, #e53935 12%, var(--design-card-bg, #fff) 88%);
  color: #e53935;
  border-color: color-mix(in srgb, #e53935 35%, var(--design-card-border, #fecaca) 65%);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-title.product-name {
  margin: 0 0 0.65rem;
  padding: 0;
  border: 0;
  font-size: clamp(1.05rem, 3.2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--design-body-text-color, #0f172a);
  text-align: right;
}

body.template-2-active .tpl2-page--product .tpl2-product-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0 0 0.72rem;
  color: var(--design-muted-text, #64748b);
  font-size: 0.78rem;
  line-height: 1.45;
}

body.template-2-active .tpl2-page--product .tpl2-product-meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

body.template-2-active .tpl2-page--product .tpl2-product-meta-line i {
  color: color-mix(in srgb, var(--design-primary, #fcc316) 70%, var(--design-body-text-color, #0f172a) 30%);
  font-size: 0.82rem;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.3rem 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 0;
  border-radius: var(--home-t2-radius, 0);
  text-align: right;
  background: color-mix(in srgb, var(--design-primary, #fcc316) 7%, transparent);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-prices--discount {
  flex-direction: row;
  align-items: baseline;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-price-now.price {
  font-size: clamp(0.98rem, 1.45vw, 1.15rem);
  font-weight: 500;
  line-height: 1.25;
  color: #16a34a !important;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-prices--discount .tpl2-product-modern-price-now.price {
  font-weight: 500;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-price-old {
  font-size: clamp(0.75rem, 1.1vw, 0.88rem);
  font-weight: 500;
  line-height: 1.2;
  color: #e53935;
  text-decoration: line-through;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-price-note {
  flex: 1 1 100%;
  margin: 0;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--design-card-border, #e4e4e4) 92%, var(--design-body-text-color, #0f172a) 8%);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-desc,
body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible;
  margin: 0 0 1rem;
  padding: 0;
  border: 0 !important;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--design-body-text-color, #334155);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description p,
body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description li,
body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description ul,
body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description ol {
  color: inherit;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description h3,
body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description h4,
body.template-2-active .tpl2-page--product .tpl2-product-modern-desc.product-description h5 {
  color: var(--design-body-text-color, #0f172a);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 92%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-background-color, #f8fafc) 88%, var(--design-card-bg, #fff) 12%);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-qty-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--design-muted-text, #64748b);
  white-space: nowrap;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-qty .qty-inline {
  flex: 0 0 auto;
  width: 9.75rem;
  max-width: 60%;
  border: 1px solid var(--design-card-border, #ddd);
  border-radius: var(--home-t2-radius, 0);
  overflow: hidden;
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-qty .qty-inline .form-control {
  flex: 1 1 auto;
  min-width: 3.75rem;
  min-height: 2.25rem;
  border-radius: 0;
  border-color: var(--design-card-border, #ddd);
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #1e293b);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-qty .qty-inline .btn-minus,
body.template-2-active .tpl2-page--product .tpl2-product-modern-qty .qty-inline .btn-plus {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  min-height: 2.25rem;
  border-radius: 0;
  border-color: color-mix(in srgb, var(--design-card-border, #ddd) 88%, var(--design-body-text-color, #111) 12%) !important;
  background: color-mix(in srgb, var(--design-body-text-color, #1e293b) 6%, var(--design-background-color, #f1f5f9) 94%) !important;
  color: var(--design-body-text-color, #1e293b) !important;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-qty .qty-inline .btn-minus:hover,
body.template-2-active .tpl2-page--product .tpl2-product-modern-qty .qty-inline .btn-plus:hover {
  background: color-mix(in srgb, var(--design-body-text-color, #1e293b) 11%, var(--design-background-color, #f1f5f9) 89%) !important;
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 22%, var(--design-card-border, #ddd) 78%) !important;
  color: var(--design-body-text-color, #0f172a) !important;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-cta {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.65rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--home-t2-radius, 0);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: none;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--add.btn-add {
  border: 1px solid color-mix(in srgb, var(--design-button-bg, var(--design-secondary, var(--design-primary, #fcc316))) 88%, #111 12%);
  background: var(--design-button-bg, var(--design-secondary, var(--design-primary, #fcc316)));
  color: var(--design-button-text, #fff);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--add.btn-add:hover {
  background: var(--design-button-hover-bg, var(--design-button-bg, var(--design-primary, #fcc316)));
  border-color: color-mix(in srgb, var(--design-button-hover-bg, var(--design-primary, #fcc316)) 88%, #111 12%);
  color: var(--design-button-text, #fff);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--options.btn-options {
  border: 1px solid color-mix(in srgb, var(--design-body-text-color, #1e293b) 85%, var(--design-card-border, #ddd) 15%);
  background: var(--design-card-bg, #fff);
  color: var(--design-body-text-color, #1e293b);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--options.btn-options:hover {
  background: color-mix(in srgb, var(--design-body-text-color, #1e293b) 8%, var(--design-card-bg, #fff) 92%);
  color: var(--design-body-text-color, #1e293b);
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-cta.tpl2-product-status {
  opacity: 0.75;
  width: 100%;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-share.product-share-badge.tpl2-product-modern-cta-icon {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: auto;
  flex: 0 0 2.75rem;
  flex-shrink: 0;
  width: 2.75rem;
  min-width: 2.75rem;
  max-width: 2.75rem;
  height: 2.65rem;
  margin: 0;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #ddd) 88%, var(--design-body-text-color, #111) 12%);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-body-text-color, #1e293b) 6%, var(--design-background-color, #f1f5f9) 94%);
  color: var(--design-body-text-color, #1e293b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transform: none;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-share.product-share-badge:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--design-body-text-color, #111) 22%, var(--design-card-border, #ddd) 78%);
  background: color-mix(in srgb, var(--design-body-text-color, #111) 11%, var(--design-background-color, #f1f5f9) 89%);
  box-shadow: none;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-share i {
  font-size: 0.95rem;
  color: inherit;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-contact.product-whatsapp-inquiry {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  margin-top: 0.62rem;
  border: 1px solid color-mix(in srgb, #16a34a 86%, #111 14%);
  border-radius: var(--home-t2-radius, 0);
  background: #16a34a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}

body.template-2-active .tpl2-page--product .tpl2-product-modern-contact.product-whatsapp-inquiry:hover {
  background: #12843d;
  border-color: #12843d;
  color: #fff;
}

body.template-2-active .tpl2-page--product .tpl2-product-assurance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.48rem;
  margin-top: 0.75rem;
  padding: 0.68rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 88%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--design-body-text-color, #0f172a) 5%, transparent);
}

body.template-2-active .tpl2-page--product .tpl2-product-assurance span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.38rem;
  min-width: 0;
  min-height: 2rem;
  padding: 0.38rem 0.48rem;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 82%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-background-color, #f8fafc) 86%, var(--design-card-bg, #fff) 14%);
  color: var(--design-body-text-color, #334155);
  font-size: 0.76rem;
  line-height: 1.35;
}

body.template-2-active .tpl2-page--product .tpl2-product-assurance i {
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--design-primary, #fcc316) 75%, var(--design-body-text-color, #0f172a) 25%);
  font-size: 0.9rem;
}

body.template-2-active .tpl2-product-aftercare {
  width: 100%;
  max-width: 1200px;
  margin: 1.25rem auto 0;
  padding: 0 0.25rem;
  box-sizing: border-box;
  direction: rtl;
}

body.template-2-active .tpl2-product-section {
  margin: 0 0 1.25rem;
  padding: 1.05rem;
  border: 1px solid var(--design-card-border, #e4e4e4);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--design-body-text-color, #0f172a) 5%, transparent);
}

body.template-2-active .tpl2-product-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 88%, transparent);
}

body.template-2-active .tpl2-product-section-kicker {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--design-muted-text, #64748b);
  font-size: 0.74rem;
  font-weight: 600;
}

body.template-2-active .tpl2-product-section-head h2 {
  margin: 0;
  color: var(--design-body-text-color, #0f172a);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
}

body.template-2-active .tpl2-product-section-count,
body.template-2-active .tpl2-product-section-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid color-mix(in srgb, var(--design-primary, #fcc316) 30%, var(--design-card-border, #e4e4e4) 70%);
  border-radius: var(--home-t2-radius, 0);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 9%, var(--design-card-bg, #fff) 91%);
  color: var(--design-body-text-color, #1e293b);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

body.template-2-active .tpl2-product-section-link:hover {
  border-color: color-mix(in srgb, var(--design-primary, #fcc316) 60%, var(--design-card-border, #e4e4e4) 40%);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 16%, var(--design-card-bg, #fff) 84%);
  color: var(--design-body-text-color, #0f172a);
}

body.template-2-active .tpl2-product-specs-table {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 86%, transparent);
  border-radius: var(--home-t2-radius, 0);
  background: var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-product-spec-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.34fr) minmax(0, 1fr);
  min-height: 3.1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 84%, transparent);
}

body.template-2-active .tpl2-product-spec-row:last-child {
  border-bottom: 0;
}

body.template-2-active .tpl2-product-spec-row:nth-child(even) {
  background: color-mix(in srgb, var(--design-background-color, #f8fafc) 66%, var(--design-card-bg, #fff) 34%);
}

body.template-2-active .tpl2-product-spec-title,
body.template-2-active .tpl2-product-spec-value {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0.72rem 0.85rem;
  line-height: 1.6;
  text-align: right;
}

body.template-2-active .tpl2-product-spec-title {
  border-inline-end: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 84%, transparent);
  background: color-mix(in srgb, var(--design-primary, #fcc316) 5%, transparent);
  color: var(--design-body-text-color, #1f2937);
  font-size: 0.84rem;
  font-weight: 700;
}

body.template-2-active .tpl2-product-spec-value {
  color: var(--design-body-text-color, #334155);
  font-size: 0.88rem;
  white-space: normal;
  word-break: break-word;
}

body.template-2-active .tpl2-related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.65rem;
  align-items: stretch;
}

body.template-2-active .tpl2-related-products-grid.home-template-2 .lab-t3-featured-card,
body.template-2-active .tpl2-related-products-grid.home-template-2 article.lab-t3-featured-card.product-card {
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  margin: 0;
  align-self: stretch;
}

body.template-2-active .tpl2-related-products-grid.home-template-2 .lab-t3-featured-thumb {
  aspect-ratio: 1 / 1;
}

body.template-2-active .tpl2-related-products-grid.home-template-2 .lab-t3-featured-thumb .lab-t3-featured-image {
  object-fit: cover;
}

body.template-2-active .tpl2-related-products-grid.home-template-2 .lab-t3-featured-body {
  padding: 0.5rem 0.52rem 0.6rem;
}

body.template-2-active .tpl2-related-products-grid.home-template-2 .lab-t3-featured-name {
  font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

body.template-2-active .tpl2-related-products-grid.home-template-2 .lab-t3-featured-action,
body.template-2-active .tpl2-related-products-grid.home-template-2 button.lab-t3-featured-action {
  padding-block: 0.34rem;
  font-size: 0.72rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  body.template-2-active .tpl2-related-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery-wrap {
    max-width: min(100%, 300px);
    margin-inline: auto;
    overflow: visible;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-img-wrap {
    max-width: 300px;
    margin-inline: auto;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery .gallery-main .tpl2-product-modern-badge.discount-badge {
    top: 0.4rem !important;
    right: auto !important;
    bottom: auto !important;
    left: 0.45rem !important;
    inset-inline-start: auto !important;
    inset-inline-end: 0.45rem !important;
    font-size: 0.72rem;
    padding: 0.22rem 0.45rem;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-gallery-wrap > .tpl2-product-modern-minis .thumb {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-prices--discount {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-align: right;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-prices--discount .tpl2-product-modern-price-old {
    order: 0;
    width: 100%;
    text-align: right;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-prices--discount .tpl2-product-modern-price-now.price {
    order: 1;
    width: 100%;
    font-size: 1.1rem;
    color: #16a34a !important;
    text-align: right;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-price-now.price {
    font-size: 1.08rem;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-price-old {
    font-size: 0.8rem;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-card-inner.card-body {
    padding: 1rem 1.05rem 1.1rem !important;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-actions {
    position: sticky;
    bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 2;
    padding: 0.4rem 0;
    margin: 0;
    background: color-mix(in srgb, var(--design-card-bg, #fff) 96%, transparent);
    box-shadow: 0 -4px 12px color-mix(in srgb, var(--design-body-text-color, #0f172a) 6%, transparent);
    flex-wrap: nowrap;
    overflow: hidden;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-cta {
    flex: 1 1 0;
    min-width: 0;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-modern-share.tpl2-product-modern-cta-icon {
    flex: 0 0 2.65rem;
    flex-shrink: 0;
    width: 2.65rem;
    min-width: 2.65rem;
    max-width: 2.65rem;
    height: 2.55rem;
  }

  body.template-2-active .tpl2-page--product .tpl2-product-assurance {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 0.38rem;
    padding: 0.52rem;
  }

  body.template-2-active .tpl2-product-aftercare {
    margin-top: 1rem;
    padding: 0;
  }

  body.template-2-active .tpl2-product-section {
    margin-bottom: 1rem;
    padding: 0.9rem;
  }

  body.template-2-active .tpl2-product-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  body.template-2-active .tpl2-product-section-count,
  body.template-2-active .tpl2-product-section-link {
    align-self: flex-start;
  }

  body.template-2-active .tpl2-product-spec-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.template-2-active .tpl2-product-spec-title {
    border-inline-end: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--design-card-border, #e4e4e4) 80%, transparent);
    padding-bottom: 0.42rem;
  }

  body.template-2-active .tpl2-product-spec-value {
    padding-top: 0.52rem;
  }

  body.template-2-active .tpl2-related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  body.template-2-active:has(.tpl2-page--product) #aiChatButton,
  body.template-2-active:has(.tpl2-page--product) .ai-chat-button,
  body.template-2-active:has(.tpl2-page--product) #aiChatHint,
  body.template-2-active:has(.tpl2-page--product) .ai-chat-hint {
    display: none !important;
  }
}

/* Template 2 identity color enforcement across active states and CTA buttons */
body.template-2-active .btn-primary,
body.template-2-active .btn-outline-primary.active,
body.template-2-active .btn-check:checked + .btn-outline-primary,
body.template-2-active .show > .btn-outline-primary.dropdown-toggle,
body.template-2-active .tpl2-empty-action.btn,
body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-add,
body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-options,
body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn.active-cat,
body.template-2-active .tpl2-page--category .tpl2-category-t3-chip.is-active,
body.template-2-active .tpl2-page--category .tpl2-category-t3-view--active,
body.template-2-active .tpl2-page--category .tpl2-category-t3-chip--apply,
body.template-2-active .tpl2-page--category .lab-t3-featured-action.btn-add,
body.template-2-active .tpl2-page--category .lab-t3-featured-action.btn-options,
body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--add.btn-add,
body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--options.btn-options,
body.template-2-active #optionsModal #optionsBody .tpl2-options-action.opt-add {
  background: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
  border-color: color-mix(in srgb, var(--design-button-bg, var(--design-primary, #fcc316)) 88%, #111 12%) !important;
  color: var(--design-button-text, #fff) !important;
}

body.template-2-active .btn-primary:hover,
body.template-2-active .btn-primary:focus-visible,
body.template-2-active .btn-outline-primary:hover,
body.template-2-active .btn-outline-primary:focus-visible,
body.template-2-active .btn-outline-primary.active:hover,
body.template-2-active .tpl2-empty-action.btn:hover,
body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-add:hover,
body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-options:hover,
body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn.active-cat:hover,
body.template-2-active .tpl2-page--category .tpl2-category-t3-chip.is-active:hover,
body.template-2-active .tpl2-page--category .tpl2-category-t3-view--active:hover,
body.template-2-active .tpl2-page--category .tpl2-category-t3-view:hover,
body.template-2-active .tpl2-page--category .tpl2-category-t3-chip--apply:hover,
body.template-2-active .tpl2-page--category .lab-t3-featured-action.btn-add:hover,
body.template-2-active .tpl2-page--category .lab-t3-featured-action.btn-options:hover,
body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--add.btn-add:hover,
body.template-2-active .tpl2-page--product .tpl2-product-modern-cta--options.btn-options:hover,
body.template-2-active #optionsModal #optionsBody .tpl2-options-action.opt-add:hover {
  background: var(--design-button-hover-bg, var(--design-secondary, var(--design-primary, #46b376))) !important;
  border-color: color-mix(in srgb, var(--design-button-hover-bg, var(--design-secondary, var(--design-primary, #46b376))) 88%, #111 12%) !important;
  color: var(--design-button-text, #fff) !important;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-zoom.zoom-icon {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.template-2-active .tpl2-page--offers .tpl2-offer-card:hover .tpl2-offer-zoom.zoom-icon,
body.template-2-active .tpl2-page--offers .tpl2-offer-media .zoom-box:hover .tpl2-offer-zoom.zoom-icon,
body.template-2-active .tpl2-page--offers .tpl2-offer-media .zoom-box:focus-within .tpl2-offer-zoom.zoom-icon {
  opacity: 1;
  pointer-events: auto;
}

body.template-2-active .lab-t3-featured-thumb.zoom-box .zoom-icon.lab-t3-featured-zoom-btn {
  opacity: 0;
  pointer-events: none;
}

body.template-2-active .lab-t3-featured-card:hover .lab-t3-featured-thumb.zoom-box .zoom-icon.lab-t3-featured-zoom-btn,
body.template-2-active .lab-t3-featured-thumb.zoom-box:hover .zoom-icon.lab-t3-featured-zoom-btn,
body.template-2-active .lab-t3-featured-thumb.zoom-box:focus-within .zoom-icon.lab-t3-featured-zoom-btn {
  opacity: 1;
  pointer-events: auto;
}

body.template-2-active:not(.home-template-2-active) .footer-banner,
body.template-2-active:not(.home-template-2-active) .footer-hero {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 767.98px) {
  body.template-2-active:not(.home-template-2-active) .footer-banner,
  body.template-2-active:not(.home-template-2-active) .footer-hero {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
  }
}

body.template-2-active .btn-outline-primary {
  color: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
  border-color: color-mix(in srgb, var(--design-button-bg, var(--design-primary, #fcc316)) 80%, var(--design-card-border, #ddd) 20%) !important;
}

body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn.active-cat .cat-name,
body.template-2-active .tpl2-page--category .tpl2-category-nav .cat-btn.active-cat:hover .cat-name {
  color: var(--design-button-text, #fff) !important;
}
/* Template 2 timed offers page */
body.template-2-active .tpl2-page--timed-offers .tpl2-category-hero {
  border-color: rgba(201, 47, 47, 0.2);
  background:
    linear-gradient(135deg, rgba(229, 72, 72, 0.1), rgba(255, 255, 255, 0.92) 55%),
    var(--design-card-bg, #fff);
}

body.template-2-active .tpl2-page--timed-offers .tpl2-category-title {
  color: color-mix(in srgb, #c92f2f 56%, var(--design-heading-color, #111827) 44%);
}

body.template-2-active .tpl2-page--timed-offers .tpl2-category-subtitle {
  color: #991b1b;
}

body.template-2-active .tpl2-page--timed-offers .tpl2-category-t3-chip.is-active,
body.template-2-active .tpl2-page--timed-offers .cat-btn.active-cat {
  border-color: rgba(201, 47, 47, 0.34);
  background: rgba(229, 72, 72, 0.1);
  color: #991b1b;
}

/* Template 2 dark mode coverage for inner pages */
html.store-t2-dark body.template-2-active .tpl2-page,
html.store-t2-dark body.template-2-active .tpl2-page--category,
html.store-t2-dark body.template-2-active .tpl2-page--offers,
html.store-t2-dark body.template-2-active .tpl2-page--request-product,
html.store-t2-dark body.template-2-active .tpl2-page--content {
  background: #0f172a;
  color: #e5e7eb;
}

html.store-t2-dark body.template-2-active .tpl2-category-hero,
html.store-t2-dark body.template-2-active .tpl2-content-card,
html.store-t2-dark body.template-2-active .request-product-card,
html.store-t2-dark body.template-2-active .tpl2-offer-card,
html.store-t2-dark body.template-2-active .tpl2-faq-item,
html.store-t2-dark body.template-2-active .accordion-item {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.26);
}

html.store-t2-dark body.template-2-active .tpl2-category-title,
html.store-t2-dark body.template-2-active .tpl2-content-title,
html.store-t2-dark body.template-2-active .request-product-copy h1,
html.store-t2-dark body.template-2-active .tpl2-offer-name,
html.store-t2-dark body.template-2-active .tpl2-faq-question {
  color: #f8fafc;
}

html.store-t2-dark body.template-2-active .tpl2-category-subtitle,
html.store-t2-dark body.template-2-active .tpl2-content-subtitle,
html.store-t2-dark body.template-2-active .request-product-copy p,
html.store-t2-dark body.template-2-active .form-text,
html.store-t2-dark body.template-2-active .text-muted {
  color: #a7b0c0 !important;
}

html.store-t2-dark body.template-2-active .tpl2-faq-button,
html.store-t2-dark body.template-2-active .tpl2-faq-button:not(.collapsed),
html.store-t2-dark body.template-2-active .accordion-button,
html.store-t2-dark body.template-2-active .accordion-button:not(.collapsed) {
  background: #111827;
  color: #f8fafc;
  box-shadow: none;
}

html.store-t2-dark body.template-2-active .tpl2-faq-body,
html.store-t2-dark body.template-2-active .accordion-body {
  background: #0b1220;
  color: #dbe4ef;
}

html.store-t2-dark body.template-2-active .form-control,
html.store-t2-dark body.template-2-active .form-select,
html.store-t2-dark body.template-2-active .tpl2-category-t3-price-input {
  background: #0b1220;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.3);
}

html.store-t2-dark body.template-2-active .form-control::placeholder,
html.store-t2-dark body.template-2-active .tpl2-category-t3-price-input::placeholder {
  color: #8b97a8;
}

html.store-t2-dark body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-add,
html.store-t2-dark body.template-2-active .tpl2-page--offers .tpl2-offer-actions .btn-options,
html.store-t2-dark body.template-2-active .tpl2-category-t3-chip--apply,
html.store-t2-dark body.template-2-active .tpl2-page--offers .btn-primary {
  background: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
  border-color: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
  color: var(--design-button-text, #ffffff) !important;
}

html.store-t2-dark body.template-2-active .tpl2-category-nav .cat-btn,
html.store-t2-dark body.template-2-active .tpl2-category-t3-chip,
html.store-t2-dark body.template-2-active .tpl2-category-t3-view {
  background: #111827;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.28);
}

html.store-t2-dark body.template-2-active .tpl2-category-nav .cat-btn.active-cat,
html.store-t2-dark body.template-2-active .tpl2-category-t3-chip.is-active,
html.store-t2-dark body.template-2-active .tpl2-category-t3-view--active {
  background: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
  color: var(--design-button-text, #ffffff) !important;
  border-color: var(--design-button-bg, var(--design-primary, #fcc316)) !important;
}

html.store-t2-dark body.template-2-active .tpl2-page--timed-offers .tpl2-category-hero {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.12), #111827 60%);
  border-color: rgba(229, 57, 53, 0.32);
}
