/* SMT newsletter — clean brand subscribe band (light UX, no clutter) */
.smt-nl {
  --smt-nl-blue: #0c55aa;
  --smt-nl-blue-deep: #094488;
  --smt-nl-ink: #ffffff;
  --smt-nl-soft: rgba(255, 255, 255, 0.82);
  position: relative;
  padding: 2rem 0;
  background: linear-gradient(105deg, #0a4a96 0%, var(--smt-nl-blue) 48%, #1570c9 100%);
  color: var(--smt-nl-ink);
  overflow: hidden;
}

.smt-nl::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(38%, 420px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.smt-nl::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.smt-nl__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 1.25rem 2rem;
  align-items: center;
}

.smt-nl__copy {
  min-width: 0;
}

.smt-nl__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--smt-nl-soft);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}

.smt-nl__title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em;
  line-height: 1.25 !important;
}

.smt-nl__form {
  width: 100%;
}

.smt-nl__form .subscribe-form {
  margin: 0;
}

.smt-nl__control {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 30, 60, 0.18);
  overflow: hidden;
}

.smt-nl__control:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 2px;
}

.smt-nl__form .smt-nl__input,
.smt-nl__form input[type="email"],
.smt-nl__form #newsletter-email {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 0.95rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #142433 !important;
  font-size: 0.9rem !important;
  line-height: 1.3 !important;
}

.smt-nl__form .smt-nl__input::placeholder,
.smt-nl__form input[type="email"]::placeholder {
  color: #8a96a3 !important;
}

.smt-nl__form .smt-nl__btn,
.smt-nl__form button[type="submit"] {
  flex: 0 0 auto;
  height: 48px !important;
  min-width: 7.25rem;
  margin: 0 !important;
  padding: 0 1.15rem !important;
  border: 0 !important;
  border-left: 1px solid #e6ebf0 !important;
  border-radius: 0 !important;
  background: #0f1c2e !important;
  color: #fff !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.smt-nl__form .smt-nl__btn:hover,
.smt-nl__form button[type="submit"]:hover {
  background: #1a2d45 !important;
}

.smt-nl__fineprint {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  line-height: 1.35;
}

/* Never show inline validation inside the subscribe control — toasts only */
.smt-nl .invalid-feedback,
.smt-nl .help-block,
.smt-nl .newsletter-message,
.smt-nl .newsletter-error-message,
.smt-nl .newsletter-success-message,
.smt-nl .error {
  display: none !important;
}

.smt-nl__form .smt-nl__input.is-invalid,
.smt-nl__form input.is-invalid,
.smt-nl__form #newsletter-email.is-invalid {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
  padding-inline-end: 0.95rem !important;
}

/* Modern toaster (Sonner / React-app style) */
.toastify.smt-toast {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  min-width: min(340px, calc(100vw - 2rem));
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.85rem 1rem !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #142433 !important;
  border: 1px solid #e6ebf0 !important;
  box-shadow:
    0 10px 30px rgba(15, 28, 46, 0.12),
    0 2px 8px rgba(15, 28, 46, 0.06) !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  white-space: pre-line;
}

.toastify.smt-toast .toastify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0.05rem 0 0;
  border-radius: 999px;
  flex-shrink: 0;
}

.toastify.smt-toast .toastify-text {
  flex: 1 1 auto;
  padding-right: 0.25rem;
  color: #142433 !important;
}

.toastify.smt-toast.toastify-right {
  right: 16px;
}

.toastify.smt-toast.toastify-top {
  top: 16px;
}

.toastify.smt-toast--success {
  border-color: #c9ebd8 !important;
}

.toastify.smt-toast--success .toastify-icon {
  color: #147a45;
  background: #e7f7ee;
}

.toastify.smt-toast--danger {
  border-color: #f3c7cf !important;
}

.toastify.smt-toast--danger .toastify-icon {
  color: #b42318;
  background: #fdecec;
}

.toastify.smt-toast--warning {
  border-color: #f3d9a8 !important;
}

.toastify.smt-toast--warning .toastify-icon {
  color: #b54708;
  background: #fff4e5;
}

.toastify.smt-toast--info {
  border-color: #c9daf5 !important;
}

.toastify.smt-toast--info .toastify-icon {
  color: #0c55aa;
  background: #e8f1fb;
}

.toastify.smt-toast .toast-close {
  opacity: 0.45;
  color: #5b6b7c !important;
  padding: 0 !important;
  margin: 0 !important;
}

.toastify.smt-toast .toast-close:hover {
  opacity: 0.85;
}

.smt-nl .tp-subscribe-shape,
.smt-nl .tp-subscribe-plane {
  display: none !important;
}

@media (max-width: 991.98px) {
  .smt-nl {
    padding: 1.65rem 0;
  }

  .smt-nl__inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .smt-nl__control {
    flex-direction: column;
  }

  .smt-nl__form .smt-nl__btn,
  .smt-nl__form button[type="submit"] {
    width: 100%;
    min-width: 0;
    border-left: 0 !important;
    border-top: 1px solid #e6ebf0 !important;
  }

  .smt-nl__title {
    font-size: 1.25rem !important;
  }
}

/* ------------------------------------------------------------------ */
/* SMT Footer — classic white layout, lightly refined                 */
/* ------------------------------------------------------------------ */
.smt-footer {
  --smt-ft-blue: #0989ff;
  --smt-ft-ink: #010f1c;
  --smt-ft-muted: #55585b;
  --smt-ft-line: rgba(1, 15, 28, 0.08);
  background: #fff;
  color: var(--smt-ft-ink);
}

.smt-footer .tp-footer-area {
  background: #fff !important;
}

.smt-footer .tp-footer-top {
  padding-top: 4rem;
  padding-bottom: 0.5rem;
}

.smt-footer .tp-footer-widget {
  margin-bottom: 2.5rem !important;
}

.smt-footer .tp-footer-logo {
  margin-bottom: 1.15rem;
}

.smt-footer .tp-footer-logo img {
  max-height: 48px;
  width: auto;
}

.smt-footer .tp-footer-desc {
  max-width: 36ch;
  margin-bottom: 1.25rem !important;
  color: var(--smt-ft-muted) !important;
  font-size: 0.9375rem !important;
  line-height: 1.55 !important;
}

.smt-footer .tp-footer-widget-title {
  margin-bottom: 0.85rem !important;
  color: var(--smt-ft-ink) !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3 !important;
}

.smt-footer .tp-footer-widget-title::after {
  display: none !important;
}

.smt-footer .tp-footer-widget-content ul li {
  margin-bottom: 0.5rem !important;
}

.smt-footer .tp-footer-widget-content ul li a {
  color: var(--smt-ft-muted) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  transition: color 0.15s ease;
}

.smt-footer .tp-footer-widget-content ul li a:hover {
  color: var(--smt-ft-blue) !important;
}

.smt-footer li.smt-footer-wholesale > a {
  color: var(--smt-ft-blue) !important;
  font-weight: 700 !important;
}

/* Social — keep square style, cleaner hover */
.smt-footer .tp-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.smt-footer .tp-footer-social a {
  width: 2.25rem !important;
  height: 2.25rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(1, 15, 28, 0.08);
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(1, 15, 28, 0.06) !important;
  color: #55585b !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.smt-footer .tp-footer-social a:hover {
  background: var(--smt-ft-blue) !important;
  border-color: var(--smt-ft-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.smt-footer .tp-footer-social a svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Contact — same structure as original, clearer type */
.smt-footer .footer-col-4 .tp-footer-widget-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.smt-footer .tp-footer-talk {
  margin-bottom: 1rem !important;
}

.smt-footer .tp-footer-talk span {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--smt-ft-muted) !important;
  font-size: 0.875rem !important;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.smt-footer .tp-footer-talk h4,
.smt-footer .tp-footer-talk h4 a {
  color: var(--smt-ft-ink) !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.smt-footer .tp-footer-talk h4 a:hover {
  color: var(--smt-ft-blue) !important;
}

.smt-footer .tp-footer-contact-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.smt-footer .tp-footer-contact-item:last-child {
  margin-bottom: 0;
}

.smt-footer .tp-footer-contact-icon {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: calc(0.95rem * 1.4); /* match first text line */
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
}

.smt-footer .tp-footer-contact-icon span {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  border-radius: 0;
  background: transparent;
  color: var(--smt-ft-ink) !important;
}

.smt-footer .tp-footer-contact-icon span svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  margin: 0 !important;
  transform: none !important; /* theme applies translateY(-3px) */
}

.smt-footer .tp-footer-contact-content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0;
}

.smt-footer .tp-footer-contact-content p {
  margin: 0 !important;
  padding: 0 !important;
}

.smt-footer .tp-footer-contact-content p,
.smt-footer .tp-footer-contact-content a {
  color: var(--smt-ft-muted) !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

.smt-footer .tp-footer-contact-content a:hover {
  color: var(--smt-ft-blue) !important;
}

/* Categories — keep classic inline feel, just easier to scan */
.smt-footer .tp-widget-product-categories {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.35rem;
  margin: 0 0 0.65rem !important;
  padding: 0;
  border-top: 0;
}

.smt-footer .smt-footer__main > .col-12:has(.tp-widget-product-categories):first-of-type .tp-widget-product-categories,
.smt-footer .smt-footer__main > .col-12 .tp-widget-product-categories {
  margin-bottom: 0.65rem !important;
}

.smt-footer .smt-footer__main > .col-12:has(.tp-widget-product-categories) {
  margin-top: 0;
}

.smt-footer .smt-footer__main > .col-12:has(.tp-widget-product-categories):first-of-type {
  margin-top: 0.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--smt-ft-line);
}

.smt-footer .tp-widget-product-categories-title {
  display: inline !important;
  margin: 0 0.35rem 0 0 !important;
  color: var(--smt-ft-ink) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 1.55 !important;
  white-space: nowrap;
}

.smt-footer .tp-widget-product-categories-title::after {
  content: ":";
}

.smt-footer .tp-widget-product-categories-list {
  display: inline !important;
}

.smt-footer .tp-widget-product-categories-list a {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--smt-ft-muted) !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.55;
  text-decoration: none;
  transition: color 0.15s ease;
}

.smt-footer .tp-widget-product-categories-list a::after {
  content: "|" !important;
  display: inline !important;
  margin: 0 0.28rem;
  color: #c5cad1 !important;
}

.smt-footer .tp-widget-product-categories-list a:last-child::after {
  content: none !important;
}

.smt-footer .tp-widget-product-categories-list a:hover {
  border: 0;
  background: transparent;
  color: var(--smt-ft-blue) !important;
  transform: none;
}

/* Bottom bar */
.smt-footer .smt-footer__bar,
.smt-footer .tp-footer-bottom-wrapper {
  margin-top: 0.75rem;
  padding-top: 1.15rem !important;
  padding-bottom: 2rem !important;
  border-top: 1px solid var(--smt-ft-line) !important;
}

.smt-footer .tp-footer-copyright,
.smt-footer .tp-footer-copyright div,
.smt-footer .tp-footer-copyright p {
  color: #888a8c !important;
  font-size: 0.875rem !important;
}

.smt-footer .tp-footer-payment img {
  max-height: 28px;
  width: auto;
}

@media (max-width: 991.98px) {
  .smt-footer .tp-footer-top {
    padding-top: 3rem;
  }

  .smt-footer .tp-footer-desc {
    max-width: none;
  }

  /* Categories: stacked + wrap chips on tablet/phone (desktop keeps pipes) */
  .smt-footer .tp-widget-product-categories {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem !important;
    padding: 0 0 0.9rem;
    border-bottom: 1px solid var(--smt-ft-line);
  }

  .smt-footer .smt-footer__main > .col-12:has(.tp-widget-product-categories):first-of-type {
    margin-top: 0.75rem;
    padding-top: 1.15rem;
  }

  .smt-footer .smt-footer__main > .col-12:has(.tp-widget-product-categories):last-of-type .tp-widget-product-categories {
    margin-bottom: 0.35rem !important;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .smt-footer .tp-widget-product-categories-title {
    display: block !important;
    margin: 0 0 0.5rem !important;
    white-space: normal;
    font-size: 0.95rem !important;
  }

  .smt-footer .tp-widget-product-categories-title::after {
    content: none;
  }

  .smt-footer .tp-widget-product-categories-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: 100%;
  }

  .smt-footer .tp-widget-product-categories-list a {
    display: inline-flex !important;
    align-items: center;
    flex: 0 1 auto;
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(1, 15, 28, 0.08);
    border-radius: 6px;
    background: #f6f7f9;
    color: var(--smt-ft-muted) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    white-space: nowrap;
  }

  .smt-footer .tp-widget-product-categories-list a::after {
    content: none !important;
    display: none !important;
  }

  .smt-footer .tp-widget-product-categories-list a:hover {
    border-color: rgba(9, 137, 255, 0.28);
    background: #fff;
    color: var(--smt-ft-blue) !important;
  }
}

@media (max-width: 575.98px) {
  .smt-footer .tp-footer-top {
    padding-top: 2.5rem;
  }

  .smt-footer .tp-footer-talk h4,
  .smt-footer .tp-footer-talk h4 a {
    font-size: 1.15rem !important;
  }

  /* Keep tags clear of floating back-to-top */
  .smt-footer .tp-widget-product-categories-list {
    padding-right: 2.75rem;
    gap: 0.4rem;
  }

  .smt-footer .tp-widget-product-categories-list a {
    font-size: 0.8rem !important;
    padding: 0.32rem 0.6rem;
  }
}

/* ------------------------------------------------------------------ */
/* Home hero slider — restore mobile height (theme sets height:auto)  */
/* ------------------------------------------------------------------ */
.smt-home-hero--v2 .smt-home-hero__slider {
  display: block;
  width: 100%;
  min-height: 0;
}

.smt-home-hero--v2 .smt-home-hero__slider .tp-slider-area,
.smt-home-hero--v2 .smt-home-hero__slider .tp-slider-active,
.smt-home-hero--v2 .smt-home-hero__slider .swiper-wrapper {
  height: 100%;
}

@media (max-width: 991.98px) {
  .smt-home-hero--v2 .smt-home-hero__right {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .smt-home-hero--v2 .smt-home-hero__slider {
    order: -1; /* keep banner above trust row on mobile */
    flex: 0 0 auto;
  }
}

@media (max-width: 575.98px) {
  .smt-home-hero--v2 .smt-home-hero__slider .tp-slider-title {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  .smt-home-hero--v2 .smt-home-hero__slider .tp-slider-item > .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Image-only hero slider — 1920×800 banners; never shrink to category column */
.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area {
  border-radius: 8px;
  overflow: hidden;
  background: #f3f5f7;
}

.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item {
  display: block !important;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
}

/* Empty legacy thumb link — hide so it doesn't reserve the aspect box */
.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-thumb:empty {
  display: none !important;
}

.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-thumb,
.smt-home-hero--image-slider .smt-home-hero__slider a.tp-slider-thumb,
.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item > a {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  z-index: 1;
}

.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item picture {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item img,
.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-thumb img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-arrow {
  z-index: 3;
}

.smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-dot {
  bottom: 12px;
  z-index: 3;
}

/* Desktop / MacBook (≥1200): keep 1920×800 banner; stretch category card to match */
@media (min-width: 1200px) {
  .smt-home-hero--image-slider > .container > .row {
    align-items: stretch;
  }

  .smt-home-hero--image-slider .col-xl-3,
  .smt-home-hero--image-slider .col-xl-9 {
    display: flex;
  }

  .smt-home-hero--image-slider .smt-shop-by-category {
    flex: 1 1 auto;
    width: 100%;
    height: 100% !important;
    min-height: 100%;
    /* Fill the stretched column so bottom aligns with slider + trust */
    display: flex;
    flex-direction: column;
  }

  .smt-home-hero--image-slider .smt-shop-by-category__nav {
    flex: 1 1 auto;
  }

  .smt-home-hero--image-slider .smt-hero-promo {
    margin-top: auto;
    flex-shrink: 0;
  }

  .smt-home-hero--image-slider .smt-home-hero__right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    flex: 1 1 auto;
  }

  .smt-home-hero--image-slider .smt-home-hero__slider {
    flex: 0 0 auto;
    display: block;
    width: 100%;
  }

  /* Critical: do NOT inherit height:100% from category column (that cropped banners) */
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-full-width,
  .smt-home-hero--image-slider .smt-home-hero__slider .swiper-wrapper,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item.tp-slider-height {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1920 / 800;
  }

  .smt-home-hero--image-slider .smt-hero-trust {
    display: none !important;
  }
}

/* Below xl (no category column): keep 1920/800 ratio */
@media (max-width: 1199.98px) {
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-full-width,
  .smt-home-hero--image-slider .smt-home-hero__slider .swiper-wrapper,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item {
    height: auto;
    aspect-ratio: 1920 / 800;
  }
}

@media (max-width: 991.98px) {
  /* Heights handled in mobile polish block below (aspect-ratio) */
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-full-width,
  .smt-home-hero--image-slider .smt-home-hero__slider .swiper-wrapper,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item {
    height: auto;
    aspect-ratio: 1920 / 800;
  }
}

@media (max-width: 575.98px) {
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-full-width,
  .smt-home-hero--image-slider .smt-home-hero__slider .swiper-wrapper,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item {
    height: auto;
    aspect-ratio: 1920 / 800;
  }
}

@media (max-width: 991.98px) {
  /* Keep banner ratio on phones — fill edge-to-edge, no blank grey strip */
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-full-width,
  .smt-home-hero--image-slider .smt-home-hero__slider .swiper-wrapper,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item.tp-slider-height {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1920 / 800 !important;
  }

  .smt-home-hero--v2 .smt-home-hero__right {
    gap: 10px !important;
  }

  .smt-home-hero {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

@media (max-width: 575.98px) {
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-area,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-full-width,
  .smt-home-hero--image-slider .smt-home-hero__slider .swiper-wrapper,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item,
  .smt-home-hero--image-slider .smt-home-hero__slider .tp-slider-item.tp-slider-height {
    aspect-ratio: 1920 / 800 !important;
  }
}

/* Trust bar — hide on tablet/mobile */
@media (max-width: 991.98px) {
  .smt-hero-trust {
    display: none !important;
  }

  .smt-home-hero--image-slider .smt-hero-trust {
    display: none !important;
  }
}

/* Mobile chrome: room for bottom nav + sale toast; stop overlap pile-ups */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 72px !important;
  }

  .tp-mobile-menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1040 !important;
  }

  .sale-popup-section,
  .js-sale-popup-container,
  .sale-popup-container-wrap {
    bottom: 78px !important;
    left: 12px !important;
    right: auto !important;
    max-width: min(320px, calc(100vw - 24px)) !important;
    z-index: 1030 !important;
  }

  .smt-popular-categories__grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .smt-popular-card {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  .smt-popular-card__media {
    width: 72px !important;
    height: 60px !important;
  }

  .smt-popular-card__media img {
    max-height: 60px !important;
  }

  .smt-popular-card__body strong {
    font-size: 13px !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Product tabs — scroll instead of wrapping into a stuck cluster */
  .tp-product-tab nav,
  .product-details-tab nav,
  .tp-section-title-wrapper .nav,
  .tp-product-tab ul.nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }

  .tp-product-tab ul.nav::-webkit-scrollbar,
  .tp-section-title-wrapper .nav::-webkit-scrollbar {
    display: none;
  }

  .tp-product-tab .nav-link,
  .tp-section-title-wrapper .nav-link {
    white-space: nowrap !important;
    flex: 0 0 auto !important;
  }

  /* Keep product grids from overflowing / sticking */
  .row > [class*="col-"] {
    min-width: 0;
  }

  .tp-product-item,
  .tp-product-item-2,
  .tp-product-item-3,
  .tp-product-item-4 {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* Header top / announcement — same layout as before, SMT blue only   */
/* ------------------------------------------------------------------ */
.tp-header-top,
.tp-header-top.black-bg {
  background-color: #0c55aa !important;
  color: #fff !important;
}

.tp-header-top .ae-anno-announcement-wrapper,
.ae-anno-announcement-wrapper {
  --background-color: #0c55aa !important;
  --text-color: #ffffff !important;
  background: #0c55aa !important;
  color: #fff !important;
}

.tp-offcanvas-category-toggle.is-open::after {
  transform: translateY(-50%) rotate(180deg);
  top: 50%;
}

/* ------------------------------------------------------------------ */
/* Promo ads (Energy / F&N) — keep image visible + readable text      */
/* ------------------------------------------------------------------ */
.tp-banner-area .tp-banner-item {
  background: #0b1f4d;
  overflow: hidden;
}

.tp-banner-area .tp-banner-thumb {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 8px;
  overflow: hidden;
}

.tp-banner-area .tp-banner-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 77, 0.72) 0%, rgba(11, 31, 77, 0.35) 55%, rgba(11, 31, 77, 0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

.tp-banner-area .tp-banner-thumb a,
.tp-banner-area .tp-banner-thumb picture {
  display: block;
  width: 100%;
  height: 100%;
}

.tp-banner-area .tp-banner-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: right center;
}

.tp-banner-area .tp-banner-content {
  position: relative;
  z-index: 2;
}

.tp-banner-area .tp-banner-content span,
.tp-banner-area .tp-banner-content .tp-banner-title,
.tp-banner-area .tp-banner-content .tp-banner-title a,
.tp-banner-area .tp-banner-content .tp-link-btn {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------------ */
/* Section headings — scale down on phone / tablet                    */
/* ------------------------------------------------------------------ */
@media (max-width: 991.98px) {
  .smt-popular-categories__head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .smt-popular-categories__title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }

  .smt-popular-categories__all {
    flex-shrink: 0;
    font-size: 12px !important;
    font-weight: 600 !important;
    white-space: nowrap;
  }

  .smt-popular-card__body strong {
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  .smt-popular-card__body em {
    font-size: 11.5px !important;
  }

  .tp-section-title-wrapper .tp-section-title,
  .tp-section-title-wrapper h3.section-title.tp-section-title,
  main .tp-section-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 575.98px) {
  .smt-popular-categories {
    padding-top: 18px !important;
  }

  .smt-popular-categories__title {
    font-size: 16px !important;
  }

  .smt-popular-categories__all {
    font-size: 11px !important;
    gap: 4px;
  }

  .smt-popular-categories__all svg,
  .smt-popular-categories__all i {
    width: 12px;
    height: 12px;
    font-size: 12px;
  }

  .tp-section-title-wrapper .tp-section-title,
  .tp-section-title-wrapper h3.section-title.tp-section-title,
  main .tp-section-title {
    font-size: 16px !important;
  }

  .tp-section-title-wrapper .tp-section-title svg,
  .tp-section-title-wrapper h3.section-title.tp-section-title svg {
    max-width: 48px;
    transform: scale(0.55);
  }
}

/* Failsafe: never leave full-page loader stuck (deferred JS race) */
#loading,
#loading.is-hidden,
body.smt-ready #loading,
html[data-smt-instant-nav="turbo"] #loading {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* —— Header search: clean ecommerce field (brand-forward) —— */
.tp-header-search {
  --smt-search-blue: #0c55aa;
  --smt-search-blue-deep: #094188;
  --smt-search-radius: 8px;
}

.tp-header-search-wrapper {
  position: relative;
  align-items: center !important;
  min-height: 46px;
  border: 1.5px solid var(--smt-search-blue) !important;
  border-radius: var(--smt-search-radius);
  background: #ffffff !important;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 40, 80, 0.04);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.tp-header-search-wrapper:hover {
  box-shadow: 0 2px 8px rgba(12, 85, 170, 0.1);
}

.tp-header-search-wrapper:focus-within {
  border-color: var(--smt-search-blue-deep) !important;
  box-shadow: 0 0 0 3px rgba(12, 85, 170, 0.14);
}

.tp-header-search-box {
  width: 58% !important;
  min-width: 0;
}

.tp-header-search-box input {
  height: 46px !important;
  padding-left: 16px !important;
  padding-right: 12px !important;
  background: #fff !important;
  font-size: 14px;
  font-weight: 400;
  color: #102a43;
  outline: none !important;
  box-shadow: none !important;
}

.tp-header-search-box input::placeholder {
  color: #7b8ba0 !important;
  opacity: 1;
}

.tp-header-search-category {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 56px; /* room for absolute search btn */
}

.tp-header-search-category::after {
  left: 0;
  top: 50%;
  height: 18px;
  width: 1px;
  background-color: rgba(12, 85, 170, 0.22);
}

.tp-header-search-category .nice-select,
.tp-header-search-category .product-category-label {
  height: 46px !important;
  line-height: 46px !important;
  padding-left: 14px !important;
  padding-right: 22px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 13.5px !important;
  font-weight: 500;
  color: #1f2937 !important;
  cursor: pointer;
}

.tp-header-search-category .product-category-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.tp-header-search-category .product-category-label svg,
.tp-header-search-category .product-category-label i {
  width: 16px;
  height: 16px;
  color: #5b6b7c;
}

/* Full-height brand button — like original, cleaner corners */
.tp-header-search-btn {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex;
  padding: 0 !important;
}

.tp-header-search-btn button {
  width: 52px !important;
  height: 100% !important;
  min-height: 46px !important;
  line-height: 1 !important;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--smt-search-blue) !important;
  color: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease;
}

.tp-header-search-btn button:hover {
  background: var(--smt-search-blue-deep) !important;
  color: #fff !important;
}

.tp-header-search-btn button svg,
.tp-header-search-btn button i {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

@media only screen and (max-width: 1199px) {
  .tp-header-search-box {
    width: 50% !important;
  }
}


/* —— Product Style 6: Shwapno sizing + SMT blue —— */
/* Measured from shwapno.com: ~219×355 card, img ~197×158, btn 30px, pad 10/12 */
.smt-product-grid {
  --bs-gutter-x: 10px;
  --bs-gutter-y: 10px;
}

.smt-product-card {
  --smt-bag: #0c55aa;
  --smt-bag-hover: #094488;
  --smt-bag-qty: #fff8e1;
  --smt-bag-qty-ink: #333333;
  --smt-bag-ink: #222222;
  --smt-bag-muted: #3c3e44;
  --smt-bag-line: #e8eaed;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 308px;
  margin: 0;
  padding: 10px 10px 12px;
  background: #fff;
  border: 1px solid var(--smt-bag-line);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.smt-product-card:hover {
  border-color: #d5dae2;
  box-shadow: 0 4px 14px rgba(12, 85, 170, 0.08);
}

.smt-product-card__media {
  position: relative;
  background: #fff;
}

/* Image area — slightly tighter than Shwapno 158 so cards don’t feel tall */
.smt-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 145px;
  padding: 0;
}

.smt-product-card__image img,
.smt-product-card__image picture,
.smt-product-card__image picture img {
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 145px !important;
  object-fit: contain !important;
  margin: 0 auto;
  transition: transform 0.25s ease;
}

.smt-product-card:hover .smt-product-card__image img,
.smt-product-card:hover .smt-product-card__image picture img {
  transform: scale(1.03);
}

/* Zigzag ribbon — Shwapno left-ribbon, SMT blue */
.smt-product-card__ribbon {
  position: absolute;
  top: 0;
  left: 10px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 50%;
  pointer-events: none;
}

.smt-product-card__ribbon-inner {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 28px;
  padding: 4px 4px 0;
  background: var(--smt-bag);
  color: #fff;
  text-align: center;
  line-height: 1.15;
}

.smt-product-card__ribbon-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%230c55aa' d='M0 0h10v3L5 10 0 3z'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-repeat: repeat-x;
  background-position: bottom;
}

.smt-product-card__ribbon-amount {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.smt-product-card__ribbon-off {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.smt-product-card__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  max-width: 48%;
  min-height: 18px;
  padding: 3px 6px;
  border-radius: 2px;
  background: #0a4a96;
  color: #fff !important;
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smt-product-card__badge--danger {
  background: #5a6a7a;
}

/* Wishlist + Quick view — same as before (hover) */
.smt-product-card__tools {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.smt-product-card:hover .smt-product-card__tools,
.smt-product-card:focus-within .smt-product-card__tools {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.smt-product-card__tools--inline {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  flex-direction: row;
}

.smt-product-card__tool {
  width: 30px;
  height: 30px;
  border: 1px solid var(--smt-bag-line);
  border-radius: 50%;
  background: #fff;
  color: var(--smt-bag-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.smt-product-card__tool:hover,
.smt-product-card__tool.is-active {
  background: var(--smt-bag);
  border-color: var(--smt-bag);
  color: #fff;
}

.smt-product-card__tool svg,
.smt-product-card__tool i {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

@media (hover: none) {
  .smt-product-card__tools:not(.smt-product-card__tools--inline) {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.smt-product-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  flex: 1 1 auto;
  padding: 0;
  margin-top: 8px;
  min-height: 0;
}

.smt-product-card__title {
  order: 1;
  margin: 0 0 6px !important;
  width: 100%;
  min-height: 30px;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 15px !important;
  color: #222 !important;
}

.smt-product-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
}

.smt-product-card__title a:hover {
  color: var(--smt-bag) !important;
}

.smt-product-card__price-row {
  order: 2;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 6px;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.smt-product-card__price {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.smt-product-card__price-old-wrap {
  order: -1;
}

.smt-product-card__price-current,
.smt-product-card__price .smt-product-card__price-current,
.smt-product-card__price .product-price,
.smt-product-card__price > span:first-child {
  color: var(--smt-bag) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
  line-height: 1 !important;
}

.smt-product-card__price-old,
.smt-product-card__price del,
.smt-product-card__price .smt-product-card__price-old {
  color: #9aa0a8 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  text-decoration: line-through;
}

.smt-product-card__price-old-wrap small {
  font-size: inherit;
}

.smt-product-card__unit {
  color: var(--smt-bag-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
}

.smt-product-card__bag-wrap {
  order: 3;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
}

.smt-product-card__bag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  min-width: 120px;
  max-width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 6px 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--smt-bag);
  color: #fff !important;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 16px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}

.smt-product-card__bag:hover {
  background: var(--smt-bag-hover);
  color: #fff !important;
}

.smt-product-card__bag:active {
  transform: scale(0.98);
}

.smt-product-card__bag.is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.smt-product-card__bag-plus {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.smt-product-card__qty {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: auto;
  min-width: 133px;
  max-width: 100%;
  min-height: 30px;
  height: 30px;
  padding: 0 6px;
  border-radius: 9999px;
  background: var(--smt-bag-qty);
  border: 1px solid #ffe082;
  color: var(--smt-bag-qty-ink);
  box-sizing: border-box;
}

.smt-product-card__qty.is-visible {
  display: inline-flex;
}

.smt-product-card__qty.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

.smt-product-card__qty-btn {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--smt-bag);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.smt-product-card__qty-btn:hover {
  background: rgba(12, 85, 170, 0.08);
}

.smt-product-card__qty-label {
  flex: 1 1 auto;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--smt-bag-qty-ink);
  white-space: nowrap;
  padding: 0 4px;
}

.smt-product-card--list {
  flex-direction: row;
  align-items: center;
  text-align: left;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 12px;
  margin-bottom: 10px;
  overflow: visible;
}

.smt-product-card--list .smt-product-card__ribbon {
  left: 12px;
}

.smt-product-card--list .smt-product-card__media {
  flex: 0 0 110px;
  width: 110px;
  align-self: center;
  height: auto !important;
  max-height: none;
}

.smt-product-card--list .smt-product-card__image {
  height: 110px !important;
  padding: 0;
}

.smt-product-card--list .smt-product-card__image img,
.smt-product-card--list .smt-product-card__image picture,
.smt-product-card--list .smt-product-card__image picture img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 110px !important;
  object-fit: contain !important;
}

.smt-product-card--list .smt-product-card__body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: auto !important;
  margin-top: 0;
  padding-left: 14px;
  gap: 8px 16px;
}

.smt-product-card--list .smt-product-card__title {
  order: 1;
  flex: 1 1 calc(100% - 180px);
  min-width: 140px;
  min-height: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  text-align: left;
}

.smt-product-card--list .smt-product-card__price-row {
  order: 3;
  justify-content: flex-start;
  margin: 0;
  width: auto;
  flex: 1 1 auto;
}

.smt-product-card--list .smt-product-card__list-row {
  order: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  width: auto;
  margin-top: 0;
  margin-left: auto;
}

.smt-product-card--list .smt-product-card__bag-wrap {
  order: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-end;
}

.smt-product-card--list .smt-product-card__bag,
.smt-product-card--list .smt-product-card__qty {
  width: auto;
  min-width: 120px;
}

.smt-product-card--small {
  flex-direction: row;
  align-items: center;
  padding: 8px;
}

.smt-product-card--small .smt-product-card__media {
  flex: 0 0 56px;
  width: 56px;
}

.smt-product-card--small .smt-product-card__image {
  height: 56px;
  padding: 0;
}

.smt-product-card--small .smt-product-card__body {
  align-items: flex-start;
  text-align: left;
  margin-top: 0;
  padding-left: 8px;
}

.smt-product-card--small .smt-product-card__title {
  min-height: 0;
  font-size: 12px !important;
  margin-bottom: 2px !important;
}

.smt-product-card--small .smt-product-card__price-current,
.smt-product-card--small .smt-product-card__price > span:first-child {
  font-size: 14px !important;
}

@media (max-width: 1199.98px) {
  .smt-product-card:not(.smt-product-card--list):not(.smt-product-card--small) {
    min-height: 290px;
  }

  .smt-product-card:not(.smt-product-card--list) .smt-product-card__image {
    height: 132px;
  }

  .smt-product-card:not(.smt-product-card--list) .smt-product-card__image img,
  .smt-product-card:not(.smt-product-card--list) .smt-product-card__image picture img {
    max-height: 132px !important;
  }

  .smt-product-card__title {
    font-size: 12px !important;
  }

  .smt-product-card__price-current,
  .smt-product-card__price > span:first-child {
    font-size: 14px !important;
  }
}

@media (max-width: 767px) {
  .smt-product-card:not(.smt-product-card--list):not(.smt-product-card--small) {
    padding: 8px 8px 10px;
    border-radius: 5px;
    min-height: 280px;
  }

  .smt-product-card:not(.smt-product-card--list) .smt-product-card__image {
    height: 120px;
  }

  .smt-product-card:not(.smt-product-card--list) .smt-product-card__image img,
  .smt-product-card:not(.smt-product-card--list) .smt-product-card__image picture img {
    max-height: 120px !important;
  }

  .smt-product-card__title {
    font-size: 12px !important;
    min-height: 28px;
    line-height: 14px !important;
  }

  .smt-product-card__price-current,
  .smt-product-card__price > span:first-child {
    font-size: 14px !important;
  }

  .smt-product-card__price-row {
    flex-wrap: wrap;
  }

  .smt-product-card__bag {
    min-width: 110px;
    min-height: 28px;
    height: 28px;
    padding: 4px 18px;
    font-size: 11px;
  }

  .smt-product-card__qty {
    min-width: 120px;
    min-height: 28px;
    height: 28px;
    font-size: 11px;
  }

  .smt-product-card--list {
    flex-direction: row;
    align-items: center;
    min-height: 0 !important;
    height: auto !important;
  }

  .smt-product-card--list .smt-product-card__media {
    flex: 0 0 88px;
    width: 88px;
  }

  .smt-product-card--list .smt-product-card__image {
    height: 88px !important;
  }

  .smt-product-card--list .smt-product-card__image img,
  .smt-product-card--list .smt-product-card__image picture img {
    max-height: 88px !important;
  }

  .smt-product-card--list .smt-product-card__body {
    align-items: flex-start;
    text-align: left;
    padding-left: 10px;
    margin-top: 0;
  }

  .smt-product-card--list .smt-product-card__price-row {
    justify-content: flex-start;
  }

  .smt-product-card--list .smt-product-card__bag-wrap {
    max-width: none;
  }
}

.smt-product-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.smt-product-list .smt-product-card--list {
  margin-bottom: 0;
}

/* —— Shop toolbar: sort + per-page selects (SMT) —— */
.tp-shop-top {
  margin-bottom: 20px !important;
}

.tp-shop-top > .row {
  align-items: center;
}

.tp-shop-top-left {
  gap: 12px;
  flex-wrap: wrap;
}

.tp-shop-top-right {
  gap: 10px !important;
}

.tp-shop-top-select {
  margin: 0;
  position: relative;
  z-index: 5;
}

.tp-shop-top-select .nice-select {
  float: none !important;
  display: flex !important;
  align-items: center !important;
  background-color: #fff !important;
  border: 1px solid #d8dee6 !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #222 !important;
  height: 36px !important;
  line-height: 1 !important;
  padding: 0 34px 0 14px !important;
  min-width: 160px;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  z-index: 2;
}

.tp-shop-top-select .nice-select .current {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.tp-shop-top-select.sort-by .nice-select {
  min-width: 72px;
  padding-left: 12px !important;
  padding-right: 30px !important;
  text-align: center !important;
  justify-content: center;
}

.tp-shop-top-select .nice-select:hover {
  border-color: #0c55aa !important;
}

.tp-shop-top-select .nice-select:focus,
.tp-shop-top-select .nice-select.open {
  border-color: #0c55aa !important;
  box-shadow: 0 0 0 3px rgba(12, 85, 170, 0.12) !important;
  z-index: 30;
}

/* CSS chevron — perfectly centered with text */
.tp-shop-top-select .nice-select::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  right: 14px !important;
  left: auto !important;
  width: 6px !important;
  height: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: solid #6b7280 !important;
  border-width: 0 1.5px 1.5px 0 !important;
  background: none !important;
  box-sizing: border-box !important;
  transform: translateY(-65%) rotate(45deg) !important;
  transform-origin: center !important;
  transition: transform 0.15s ease !important;
  pointer-events: none !important;
  color: transparent !important;
}

.tp-shop-top-select .nice-select.open::after {
  transform: translateY(-20%) rotate(-135deg) !important;
}

.tp-shop-top-select .nice-select .list {
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 4px) !important;
  width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border: 1px solid #e5e9ef !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important;
  transform: none !important;
  transform-origin: top left !important;
  overflow: hidden;
  z-index: 40;
}

.tp-shop-top-select .nice-select.open .list {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: none !important;
}

.tp-shop-top-select .nice-select .option {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #333 !important;
  line-height: 34px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 14px !important;
  white-space: nowrap;
}

.tp-shop-top-select .nice-select .option:hover,
.tp-shop-top-select .nice-select .option.focus {
  background: #edf4fb !important;
  color: #0c55aa !important;
  font-weight: 500 !important;
}

.tp-shop-top-select .nice-select .option.selected {
  background: #0c55aa !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.tp-shop-top-select .nice-select .option.selected:hover,
.tp-shop-top-select .nice-select .option.selected.focus {
  background: #0c55aa !important;
  color: #fff !important;
}

.tp-shop-top-tab {
  margin-right: 0 !important;
}

.tp-shop-top-tab .nav-tabs {
  border: 0;
  gap: 6px;
}

.tp-shop-top-tab .nav-tabs .nav-item .nav-link {
  width: 36px !important;
  height: 36px !important;
  line-height: 34px !important;
  border: 1px solid #d8dee6 !important;
  border-radius: 6px !important;
  color: #6b7280 !important;
  background: #fff !important;
  margin-right: 0 !important;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.tp-shop-top-tab .nav-tabs .nav-item .nav-link:hover {
  border-color: #0c55aa !important;
  color: #0c55aa !important;
}

.tp-shop-top-tab .nav-tabs .nav-item .nav-link.active {
  color: #fff !important;
  background: #0c55aa !important;
  border-color: #0c55aa !important;
}

.tp-shop-top-result p {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
}

@media (max-width: 575px) {
  .tp-shop-top-select .nice-select {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}

/* Quick view modal — above sale popup, content always readable */
#product-quick-view-modal {
  z-index: 1065 !important;
}

#product-quick-view-modal.show {
  display: block !important;
}

#product-quick-view-modal .modal-dialog {
  --bs-modal-width: 960px;
  width: min(960px, calc(100vw - 2rem)) !important;
  max-width: min(960px, calc(100vw - 2rem)) !important;
  margin: 1.25rem auto !important;
}

#product-quick-view-modal .modal-content {
  overflow: auto !important;
  max-height: calc(100vh - 2.5rem);
  background: #fff !important;
  border-radius: 8px;
}

#product-quick-view-modal .tp-product-modal-content,
#product-quick-view-modal .bb-product-detail {
  display: flex !important;
  flex-wrap: wrap;
  align-items: flex-start !important;
  gap: 0;
  background: #fff;
  min-height: 200px;
  padding: 20px;
  position: relative;
}

#product-quick-view-modal .tp-product-details-thumb-wrapper {
  flex: 1 1 42%;
  max-width: 42%;
  min-width: 220px;
  padding-right: 16px;
}

#product-quick-view-modal .tp-product-details-wrapper {
  flex: 1 1 55%;
  max-width: 55%;
  min-width: 240px;
  color: #222 !important;
  overflow: auto;
  max-height: calc(100vh - 5rem);
  padding: 8px 28px 8px 8px;
}

#product-quick-view-modal .bb-quick-view-gallery-images,
#product-quick-view-modal .bb-quick-view-gallery-images .slick-list,
#product-quick-view-modal .bb-quick-view-gallery-images .slick-track,
#product-quick-view-modal .bb-quick-view-gallery-images .slick-slide {
  width: 100% !important;
  max-width: 100% !important;
}

#product-quick-view-modal .bb-quick-view-gallery-images img,
#product-quick-view-modal .bb-quick-view-gallery-images picture img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 320px !important;
  object-fit: contain !important;
  margin: 0 auto;
  display: block;
}

#product-quick-view-modal .tp-product-modal-close-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e9ef;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

#product-quick-view-modal .tp-product-details-wrapper .tp-product-details-title,
#product-quick-view-modal .tp-product-details-wrapper h3,
#product-quick-view-modal .tp-product-details-wrapper h4 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  color: #111 !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
}

#product-quick-view-modal .tp-product-details-wrapper .tp-product-details-price,
#product-quick-view-modal .tp-product-details-wrapper .product-price,
#product-quick-view-modal .tp-product-details-wrapper [data-bb-value="product-price"] {
  color: #0c55aa !important;
  font-size: 22px !important;
  font-weight: 700 !important;
}

@media (max-width: 991.98px) {
  #product-quick-view-modal .tp-product-details-thumb-wrapper,
  #product-quick-view-modal .tp-product-details-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
    padding-right: 0;
  }

  #product-quick-view-modal .bb-quick-view-gallery-images img,
  #product-quick-view-modal .bb-quick-view-gallery-images picture img {
    max-height: 280px !important;
  }
}

.modal-backdrop.show {
  z-index: 1060 !important;
  opacity: 0.5 !important;
}

/* Infinite scroll (Shwapno-style) */
.bb-product-items-wrapper .tp-pagination,
.bb-product-items-wrapper .pagination {
  display: none !important;
}

.smt-infinite-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 0 28px;
}

.smt-infinite-scroll__loader {
  width: 28px;
  height: 28px;
  border: 2px solid #d7e2ef;
  border-top-color: #0c55aa;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.2s ease;
}

.smt-infinite-scroll.is-loading .smt-infinite-scroll__loader {
  opacity: 1;
  animation: smt-infinite-spin 0.7s linear infinite;
}

@keyframes smt-infinite-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Brands strip: denser logos, especially on small screens */
.tp-brand-area.smt-brands-marquee {
  padding-top: 28px;
  padding-bottom: 32px;
}

.tp-brand-area.smt-brands-marquee .tp-brand-slider {
  border: 1px solid #edeff2;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}

.tp-brand-area.smt-brands-marquee .tp-brand-slider-arrow {
  display: none !important;
}

.tp-brand-area.smt-brands-marquee .tp-brand-slider-active {
  padding: 0;
}

.tp-brand-area.smt-brands-marquee .tp-brand-item {
  min-height: 72px !important;
  height: 72px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 6px !important;
  border-right: 1px solid #edeff2 !important;
  gap: 4px;
}

.tp-brand-area.smt-brands-marquee .tp-brand-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
}

.tp-brand-area.smt-brands-marquee .tp-brand-item img {
  max-height: 48px !important;
  width: auto !important;
  max-width: 110px !important;
  object-fit: contain;
  filter: none;
  opacity: 0.95;
}

.tp-brand-area.smt-brands-marquee .smt-brand-name {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 575.98px) {
  .tp-brand-area.smt-brands-marquee {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .tp-brand-area.smt-brands-marquee .tp-brand-item {
    min-height: 64px !important;
    height: 64px;
    padding: 6px 4px !important;
  }

  .tp-brand-area.smt-brands-marquee .tp-brand-item a {
    height: 44px;
  }

  .tp-brand-area.smt-brands-marquee .tp-brand-item img {
    max-height: 40px !important;
    max-width: 88px !important;
  }
}
