/* Bridge styles for non-WordPress baseline rendering */
:root {
  --ts-logo-width: 230px;
}
.container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

#main.wrapper {
  overflow: visible;
}

/* Full-width Elementor sections: the theme constrains .page-container to 1410px
   for non-elementor-page bodies. Adding elementor-page to the home page body
   removes that constraint; this rule also handles any other pages that need it. */
.elementor-page #main > .page-container,
.elementor-page #main > #main-content {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.header-language a,
.header-currency a {
  color: inherit;
  text-decoration: none;
}

.header-right .amount {
  font-weight: 700;
}

.top-header-menu .menu,
.main-menu .menu,
.vertical-menu .menu {
  display: flex;
  align-items: center;
}

.top-header-menu .menu {
  gap: 18px;
}

.top-header-menu .menu li {
  position: relative;
}

.top-header-menu .menu li + li::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.28);
}

.icon-menu-sticky-header {
  margin-left: 10px;
}

.icon-menu-sticky-header .icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  position: relative;
}

.icon-menu-sticky-header .icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  border-top: 2px solid #000;
}

/* Suppress redundant span chevrons; keep the theme's real parent-link chevrons. */
.ts-menu-drop-icon,
.ts-menu-drop-icon::before,
.ts-menu-drop-icon::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.vertical-menu .menu,
.main-menu .menu,
.top-header-menu .menu,
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu .menu > li,
.vertical-menu .menu > li {
  position: relative;
}

.main-menu .menu > li > a,
.vertical-menu .menu > li > a {
  display: inline-flex;
  align-items: center;
}

.main-menu .menu > li.parent > a::after,
.vertical-menu .menu > li.parent > a::after {
  content: "\e941";
  font-family: "tb-icon";
  font-size: 10px;
  margin-left: 7px;
}

.sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  z-index: 20;
}

.main-menu .sub-menu {
  width: min(1040px, 95vw);
}

.vertical-menu .sub-menu {
  left: 100%;
  top: -8px;
  width: min(1040px, 95vw);
}

.menu > li:hover > .sub-menu {
  display: block;
}

.ts-megamenu-widgets-container {
  background: #fff;
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 18px 36px -30px rgba(0, 0, 0, 0.55);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mega-grid h6 {
  margin: 0 0 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mega-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mega-grid ul a {
  color: var(--ts-gray-color);
  text-decoration: none;
  font-size: 13px;
}

.mega-grid ul a:hover {
  color: var(--ts-primary-color);
}

.mega-promo {
  border-radius: 8px;
  background: linear-gradient(125deg, #f3f8ff, #e8f2ff);
  border: 1px solid #dce9fb;
  padding: 18px;
  text-decoration: none;
  color: #000;
  display: grid;
  align-content: center;
  gap: 6px;
}

.mega-promo .small {
  font-size: 12px;
  font-weight: 800;
  color: var(--ts-primary-color);
}

.home-mega {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecomall-hero-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.ecomall-hero-card img,
.ecomall-hero-side img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.ecomall-hero-side {
  display: grid;
  gap: 20px;
}

.ecomall-policy-row {
  margin: 22px 0 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.policy-item {
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  font-weight: 700;
}

.policy-item i {
  color: var(--ts-primary-color);
  font-size: 22px;
}

.ecomall-products-block {
  margin-top: 34px;
}

.block-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.block-heading h2 {
  margin: 0;
  font-size: 28px;
}

.block-heading a {
  font-weight: 700;
}

.products.columns-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

.products,
.products li,
.products .product,
.products .short-description ul,
.products .short-description li {
  list-style: none !important;
}

.products li::marker,
.products .short-description li::marker {
  content: "";
}

.products .product {
  margin: 0;
  position: relative;
}

.products .product-wrapper {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 12px 14px;
  background: #fff;
  height: 100%;
  transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.products .thumbnail-wrapper {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.products .thumbnail-wrapper > a {
  display: block;
  width: 100%;
  height: 100%;
}

.products .thumbnail-wrapper figure {
  margin: 0;
  width: 100%;
  height: 100%;
}

.products .thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.products .meta-wrapper {
  display: grid;
  gap: 8px;
}

.products .product-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  min-height: 2.8em;
}

.products .product-name a {
  color: inherit;
  text-decoration: none;
}

.products .product-name a:hover {
  color: var(--ts-primary-color);
}

.products .price {
  color: var(--ts-product-price-color);
  font-weight: 800;
}

.products .product-categories {
  color: var(--ts-gray-color);
  font-size: 12px;
}

.products .product-categories > span {
  margin-right: 4px;
}

.products .product-categories a {
  color: inherit;
  text-decoration: none;
}

.products .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ts-gray-color);
  font-size: 12px;
}

.products .star-rating {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 14px;
  overflow: hidden;
  font-size: 0;
}

.products .star-rating::before {
  content: "★★★★★";
  color: #d4d7dd;
  font-size: 12px;
  letter-spacing: 1px;
}

.products .star-rating span {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  height: 100%;
  font-size: 0;
}

.products .star-rating span::before {
  content: "★★★★★";
  color: #f5a623;
  font-size: 12px;
  letter-spacing: 1px;
}

.products .product-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.products .product-label > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: #e33232;
}

.products .product-label > .featured {
  background: #1d8f4a;
}

.products .product-label > span > span {
  line-height: 1;
}

.products .product-group-button {
  /* No position override — each .button-in is absolutely positioned relative to .thumbnail-wrapper by the theme */
}

.products .product-group-button > .button-in {
  /* Override theme's display:none so opacity/visibility transitions work */
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

/* .button-in > a circle styling removed — Ecomall theme owns the button appearance
   (the .button-in div itself is the circle; our bridge was adding a second nested circle) */
.products .product-group-button > .button-in > a {
  text-decoration: none;
  position: relative;
}

/* Icon ::before rules also removed — Ecomall theme CSS (32b3c.css) provides them */

.products .button-tooltip {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  background: #222;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  border-radius: 3px;
  padding: 5px 7px;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.products .product-group-button > .button-in > a:hover .button-tooltip {
  opacity: 1;
  visibility: visible;
}

.products .product-group-button-meta {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% - 1px);
  left: -1px;
  width: calc(100% + 2px);
  z-index: 6;
  background: #fff;
  border: 1px solid transparent;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  padding: 0 12px 12px;
  transition: opacity 0.2s ease, visibility 0.2s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.products .product-group-button-meta .short-description {
  color: var(--ts-gray-color);
  line-height: 1.55;
  font-size: 13px;
  padding-top: 10px;
  margin-bottom: 12px;
}

.products .product-group-button-meta .short-description ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.products .product-group-button-meta .short-description li {
  margin: 0;
  padding: 0;
}

.products .product-group-button-meta .loop-add-to-cart {
  margin: 0;
}

.products .product-group-button-meta .button {
  width: 100%;
  text-align: center;
}

.products .product-wrapper:hover {
  border-color: var(--ts-primary-color);
  box-shadow: 0 0 15px rgba(101, 101, 101, 0.18);
  transform: translateY(-2px);
  z-index: 12;
}

.products .product-wrapper:hover .thumbnail-wrapper img {
  transform: scale(1.04);
}

.products .product-wrapper:hover .product-group-button > .button-in {
  animation: none !important;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.products .product-wrapper:hover .product-group-button-meta {
  opacity: 1;
  visibility: visible;
  border-color: var(--ts-primary-color);
  box-shadow: 0 12px 15px rgba(101, 101, 101, 0.18);
}

.ecomall-category-showcase {
  margin-top: 32px;
}

.ecomall-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-box {
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ts-text-color);
  font-weight: 700;
  background: #fff;
}

.category-box i {
  font-size: 22px;
  color: var(--ts-primary-color);
}

.category-box:hover {
  border-color: #d9e0e8;
  background: #fbfdff;
}

.ecomall-banner-row {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ecomall-banner-row a {
  display: block;
}

.ecomall-banner-row img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.ecomall-brands-strip {
  margin: 36px 0 44px;
}

.ecomall-brands-strip h3 {
  margin: 0 0 14px;
}

.brand-strip-grid {
  border: 1px solid var(--ts-border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.brand-strip-grid img {
  width: 100%;
  border-right: 1px solid var(--ts-border);
}

.brand-strip-grid img:last-child {
  border-right: 0;
}

.footer-row {
  padding: 34px 0 26px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-bottom: 1px solid var(--ts-border);
  padding: 24px 0;
}

.footer-feature-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-feature-row i {
  color: var(--ts-primary-color);
  font-size: 22px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-col ul {
  display: grid;
  gap: 7px;
}

.footer-col ul a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col:nth-child(2) ul a {
  color: #1f4f8f;
}

.footer-col:nth-child(3) ul a {
  color: #0a7a5c;
}

.footer-col:nth-child(4) ul a {
  color: #8a3a12;
}

.footer-col ul a:hover {
  color: #111;
}

.footer-col p {
  margin: 0 0 8px;
}

.footer-payments {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.payment-badges {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.payment-badges span {
  border: 1px solid var(--ts-border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
  background: #fff;
}

.footer-bottom-row {
  border-top: 1px solid var(--ts-border);
  padding: 16px 0 20px;
}

.footer-bottom-row p {
  margin: 0;
}

@media (max-width: 1180px) {
  .products.columns-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ecomall-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .ecomall-hero-grid,
  .ecomall-policy-row,
  .footer-feature-row,
  .products.columns-5,
  .ecomall-category-grid,
  .ecomall-banner-row,
  .brand-strip-grid,
  .footer-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecomall-hero-side {
    grid-template-columns: 1fr 1fr;
  }

  .main-menu .sub-menu,
  .vertical-menu .sub-menu {
    display: none !important;
  }

  .products .product-group-button-meta {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    border: 0;
    box-shadow: none;
    padding: 4px 0 0;
  }

  .products .product-group-button {
    display: none;
  }

  .products .review-count,
  .products .average-rating {
    display: none;
  }
}

@media (max-width: 680px) {
  .ecomall-hero-grid,
  .ecomall-hero-side,
  .ecomall-policy-row,
  .footer-feature-row,
  .products.columns-5,
  .ecomall-category-grid,
  .ecomall-banner-row,
  .brand-strip-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   Mobile Navigation Sidebar (P2-J)
   ============================================== */

/* Hamburger toggle button — hidden on desktop */
.ts-mobile-icon-toggle {
  display: none;
  cursor: pointer;
  padding: 8px;
  align-items: center;
  margin-left: 12px;
}

@media only screen and (max-width: 767px) {
  .ts-mobile-icon-toggle {
    display: flex;
  }
}

.ts-mobile-icon-toggle .icon {
  display: block !important;
  width: 20px;
  height: 2px;
  background: #fff;
  /* Three-line hamburger via box-shadow — avoids pseudo-element font-icon conflicts */
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

/* Suppress the theme's font-icon glyph on ::before */
.ts-mobile-icon-toggle .icon::before {
  content: '' !important;
  display: none !important;
}

/* Mobile nav sidebar.
   No transform on the outer div — avoids corrupting the coordinate space of
   position:fixed children (theme CSS animates the inner .ts-sidebar-content).
   Override theme's padding:20px so the tab header spans full width; padding
   is restored on the inner content wrappers below. */
.ts-floating-sidebar .ts-sidebar-content {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  padding: 0 !important;
  background: #fff;
  z-index: 99992;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Restore padding on content areas below the header */
.mobile-menu-wrapper,
.mobile-search-wrapper,
.group-button-header {
  padding: 0 20px;
}

.ts-floating-sidebar.active .ts-sidebar-content {
  transform: translateX(0);
  box-shadow: -3px 0 21px rgba(0, 0, 0, 0.15);
}

/* Overlay backdrop */
.ts-floating-sidebar .overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99991;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ts-floating-sidebar.active .overlay {
  opacity: 1;
  visibility: visible;
}

/* Sidebar content wrapper */
.ts-sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* Tab bar */
.tab-mobile-menu {
  display: flex;
  flex-flow: row nowrap;
  background: #efefef;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.tab-mobile-menu li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  border-right: 1px solid #fff;
}

.tab-mobile-menu li.close {
  flex: 0 0 54px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative !important;
  background: transparent;
  /* Reset theme's absolute positioning which anchors .close to sidebar corner */
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  width: auto !important;
  height: auto !important;
}

.tab-mobile-menu li.close::before,
.tab-mobile-menu li.close::after {
  content: '' !important;
  position: absolute;
  width: 16px;
  height: 2px;
  background: #666;
  top: 50%;
  left: 50%;
  font-size: 0;
}

.tab-mobile-menu li.close::before { transform: translate(-50%, -50%) rotate(45deg); }
.tab-mobile-menu li.close::after  { transform: translate(-50%, -50%) rotate(-45deg); }



/* Mobile search drawer header — category select fills the tab-item */
.tab-mobile-menu.mobile-search-header .tab-item {
  padding: 0;
}
.tab-mobile-menu.mobile-search-header .tab-item select {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  appearance: auto;
}

/* Scrollable menu panel */
.mobile-menu-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Drawer title (the "MENU" label in the header bar) — theme hides .menu-title so use .drawer-title */
.tab-mobile-menu li.drawer-title {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Override theme's horizontal .main-menu flex — mobile menu is vertical */
.mobile-menu-wrapper .menu {
  display: flex !important;
  flex-direction: column !important;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu-wrapper .menu > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid #ebebeb;
}

.mobile-menu-wrapper .menu > li > a {
  flex: 1;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

/* Chevron arrow on each menu item */
.mobile-menu-wrapper .menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mobile-menu-wrapper .menu > li > a::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-right: 2px solid #aaa;
  border-top: 2px solid #aaa;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-right: 8px;
}

/* Active/current menu item highlighting */
.mobile-menu-wrapper .menu > li.active > a .menu-label,
.mobile-menu-wrapper .menu > li.active-ancestor > a .menu-label,
.mobile-menu-wrapper .sub-menu > li.active > a .menu-label,
.mobile-menu-wrapper .sub-menu > li.active-ancestor > a .menu-label {
  color: #fff !important;
  font-weight: 600;
}
.mobile-menu-wrapper .menu > li.active > a,
.mobile-menu-wrapper .menu > li.active-ancestor > a,
.mobile-menu-wrapper .sub-menu > li.active > a,
.mobile-menu-wrapper .sub-menu > li.active-ancestor > a {
  background: rgba(242, 101, 34, 0.08);
  border-radius: 10px;
}
.mobile-menu-wrapper .menu > li.active > a::after,
.mobile-menu-wrapper .menu > li.active-ancestor > a::after {
  border-color: var(--ts-secondary-color, #f26522);
}

/* Drop-icon (submenu toggle) in mobile nav */
.mobile-menu-wrapper .ts-menu-drop-icon {
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-menu-wrapper .ts-menu-drop-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  display: block;
  transition: transform 0.2s ease;
}

.mobile-menu-wrapper .ts-menu-drop-icon.active::after {
  transform: rotate(-135deg);
}

/* Sub-menus */
.mobile-menu-wrapper .sub-menu {
  display: none;
  width: 100%;
  background: #f9f9f9;
}

.mobile-menu-wrapper .sub-menu li a {
  display: block;
  padding: 11px 20px 11px 32px;
  color: #555;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid #efefef;
}

/* Bottom meta area (hotline etc.) */
.group-button-header {
  padding: 16px 20px;
  border-top: 1px solid #efefef;
  flex-shrink: 0;
}

.group-button-header .hotline a {
  color: #333;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.group-button-header .hotline .label {
  font-size: 11px;
  color: #888;
}

.group-button-header .hotline .number {
  font-size: 15px;
  font-weight: 700;
  color: #0f6eae;
}

/* Prevent body scroll when mobile menu open */
body.menu-mobile-active {
  overflow: hidden;
}

/* ==============================================
   Product Gallery — Image Zoom (P3-F)
   ============================================== */
.woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery__image {
  overflow: hidden;
}

/* ==============================================
   Promo Grid Tile Backgrounds (P3-C)
   Each tile has a gradient backdrop + a product image on the right.
   --tile-img can be overridden inline per tile via site_settings image_url.
   ============================================== */
.elementor-element-fe92ca4 .banner-wrapper::before,
.elementor-element-e0e547b .banner-wrapper::before,
.elementor-element-e1942af .banner-wrapper::before,
.elementor-element-2c84302 .banner-wrapper::before {
  background-image: var(--tile-img, none), var(--tile-grad) !important;
  background-size: 55% auto, 100% 100% !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: right bottom, center !important;
}

/* Tile 1 — Computers: blue gradient + laptop */
.elementor-element-fe92ca4 {
  --tile-grad: linear-gradient(135deg, #0f6eae 0%, #0a4d7a 100%);
  --tile-img: url('/assets/products/legacy/acer-aspire-5-a515-58m-99fd-156-inch-notebook-computer/image-1.png');
}

/* Tile 2 — Networking: amber gradient + router */
.elementor-element-e0e547b {
  --tile-grad: linear-gradient(135deg, #f3a023 0%, #c47a0a 100%);
  --tile-img: url('/assets/products/legacy/tp-link-archer-a6-ac1200-wireless-mu-mimo-gigabit-router/image-1.jpg');
}

/* Tile 3 — Repairs: dark gradient + laptop */
.elementor-element-e1942af {
  --tile-grad: linear-gradient(135deg, #1b2a3b 0%, #2c3e50 100%);
  --tile-img: url('/themesite-download/assets/wp-content/uploads/2023/10/cat-laptop-310x264.png');
}

/* Tile 4 — Components: green gradient + Intel CPU box */
.elementor-element-2c84302 {
  --tile-grad: linear-gradient(135deg, #0d5932 0%, #1a7a42 100%);
  --tile-img: url('/assets/products/legacy/intel-core-i7-14700-processor/image-1.png');
}

/* ==============================================
   Dual Banner Backgrounds (P3-I)
   ============================================== */
.elementor-element-24bc06c .banner-wrapper::before {
  background-image: url('/assets/banners/laptop-repair.jpg');
  background-size: cover;
  background-position: center center;
}

.elementor-element-66626ca .banner-wrapper::before {
  background-image: url('/assets/banners/keyboard-mouse.jpg');
  background-size: cover;
  background-position: center center;
}

/* Hide list-style short description in product grid cards (shown only in hover overlay .grid version) */
.products .short-description.list {
  display: none;
}

/* Newsletter inline success message (P3-D) */
.newsletter-success {
  color: #fff;
  font-weight: 600;
  padding: 12px 0;
}

/* Site background to match Ecomall demo (#f5f5f5) */
body {
  background-color: #f5f5f5;
}

/* Swiper pagination inactive bullet colour */
.swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

/* Product card hover: flat bottom corners so meta panel connects flush.
   Must match theme's .woocommerce .product:not(.product-category) .product-wrapper:hover
   specificity (0,5,0) to override its border-color shorthand. */
.woocommerce .product:not(.product-category) .product-wrapper:hover {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

/* ==============================================
   Active Filter Pills
   ============================================== */
.ts-active-filters .active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  align-items: center;
}

.ts-active-filters .active-filter-item {
  display: contents;
}

.active-filter-clear,
.active-filter-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.5;
  transition: background 0.18s ease;
}

.active-filter-clear {
  background: var(--ts-primary-color, #0f6eae);
  color: #fff !important;
}

.active-filter-clear .remove-icon {
  font-size: 15px;
  line-height: 1;
  font-weight: 300;
  opacity: 0.8;
}

.active-filter-clear:hover {
  background: var(--ts-secondary-color, #f3a023);
  color: #fff !important;
}

.active-filter-clear-all {
  background: #666;
  color: #fff !important;
}

.active-filter-clear-all:hover {
  background: #333;
  color: #fff !important;
}

/* ==============================================
   Sidebar Filter Checkbox — .chosen override
   Forces checkmark appearance even when the
   theme uses input:checked + label::before,
   ensuring the checked state is always visible
   after async DOM replacement.
   ============================================== */
.product-filter-by-brand-wrapper li.chosen label::before,
.woocommerce-widget-layered-nav-list li.chosen label::before {
  background-color: var(--ts-primary-color, #0f6eae) !important;
  border-color: var(--ts-primary-color, #0f6eae) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 10px 8px !important;
}

/* ── Swiper sliders: clip overflow so cloned slides don't expand page body ── */
.ts-product-category-wrapper,
.ts-product.ts-slider .content-wrapper,
.ts-logo-slider-wrapper .content-wrapper {
  overflow: hidden;
}

/* ── Mobile quick-links: 2-column grid, icon above text ─────────────────── */
@media (max-width: 767px) {
  /* Override Swiper/slider layout — show all items as a static 2-column grid */
  .ts-product-category-wrapper .content-wrapper,
  .ts-product-category-wrapper .swiper-wrapper,
  .ts-product-category-wrapper .swiper-container,
  .ts-product-category-wrapper .products {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
    transform: none !important;
    flex-wrap: unset !important;
    gap: 8px !important;
  }

  .ts-product-category-wrapper .content-wrapper section.product-category,
  .ts-product-category-wrapper .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: unset !important;
    margin: 0 !important;
  }

  /* Stack icon above text */
  .ts-product-category-wrapper .product-wrapper {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 12px 6px !important;
    gap: 6px !important;
  }

  .ts-product-category-wrapper .product-wrapper img {
    margin: 0 !important;
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0;
  }

  .ts-product-category-wrapper .meta-wrapper {
    padding: 0 !important;
    margin: 0 !important;
  }

  .ts-product-category-wrapper .meta-wrapper h4 {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }

  /* Hide slider nav arrows */
  .ts-product-category-wrapper .slick-arrow,
  .ts-product-category-wrapper .swiper-button-next,
  .ts-product-category-wrapper .swiper-button-prev {
    display: none !important;
  }
}

/* ─── Product page: 2-column gallery + summary layout ────────────────────── */
.single-product .product-images-summary {
  display: flex;
  align-items: flex-start;
}
.single-product div.product div.images {
  flex: 0 0 54%;
  max-width: 54%;
  width: 54% !important;
  float: none !important;
}
.single-product div.product div.summary {
  flex: 0 0 46%;
  max-width: 46%;
  width: 46% !important;
  float: none !important;
  padding-left: 30px;
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

/* ─── Related products: 4-column grid, constrain image height ────────────── */
.single-product .related.products .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.single-product .related.products .product .thumbnail-wrapper img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
}

/* ─── Product page: "Request pricing" button ─────────────────────────────── */
.single-product .single_add_to_cart_button {
  margin-top: 16px !important;
}

/* ─── Product page: product details tab — remove pill-button appearance ───── */
.single-product .woocommerce-tabs .tabs.wc-tabs {
  border: none;
  margin-bottom: 0;
  padding: 0;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li a {
  font-size: 1.2em;
  font-weight: 700;
  color: inherit;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 0 8px 0 !important;
  display: inline-block;
  text-transform: none;
  letter-spacing: 0;
}
.single-product .woocommerce-tabs .tabs.wc-tabs li a:hover,
.single-product .woocommerce-tabs .tabs.wc-tabs li.active a {
  background: transparent !important;
  color: var(--ts-primary-color, #e97c28);
}


/* ─── Pagination: strip WooCommerce default borders + fix vertical centering ─
   woocommerce.css (loaded after ecomall style.css via minified bundles) adds
   border:1px solid #cfc8d8 on <ul> and border-right on <li>, and overrides
   line-height:48px with line-height:1 + padding:.5em, pushing numbers to top. */
/* ============================================================
   SEARCH AUTOCOMPLETE DROPDOWN
   ============================================================ */

/* Override theme display:none only when JS sets display:block */
.ts-search-by-category form {
  position: relative;
}
.ts-search-result-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 4px 4px;
  max-height: 420px;
  overflow-y: auto;
}
.ts-search-result-container .product_list_widget {
  padding: 0;
  margin: 0;
  list-style: none;
}
.ts-search-result-container .product_list_widget li {
  border-bottom: 1px solid #f0f0f0;
}
.ts-search-result-container .product_list_widget li:last-child {
  border-bottom: 0;
}
.ts-search-result-container .product_list_widget li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  text-decoration: none;
  color: inherit;
}
.ts-search-result-container .product_list_widget li a:hover {
  background: #f5f7ff;
}
.ts-search-result-container .product_list_widget li img,
.ts-search-result-container .product_list_widget li .thumb-placeholder {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 3px;
  display: block;
}
.ts-search-result-container .product_list_widget .product-title {
  flex: 1;
  font-size: 13px;
  line-height: 1.3;
  color: #333;
}
.ts-search-result-container .product_list_widget .brand-name {
  display: block;
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-style: normal;
}
.ts-search-result-container .product_list_widget .product-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--ts-primary-color, #1a5bb5);
  white-space: nowrap;
}
.ts-search-result-container .view-all-wrapper {
  border-top: 1px solid #eee;
  padding: 10px 14px;
}
.ts-search-result-container .view-all-wrapper .view-all-link {
  font-size: 13px;
  color: var(--ts-secondary-color, #f26522);
  font-weight: 600;
  text-decoration: none;
}
.ts-search-result-container .view-all-wrapper .view-all-link:hover {
  text-decoration: underline;
}

/* ============================================================
   PAGINATION BORDER FIXES
   ============================================================ */

.woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li {
  border-right: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  padding: 0 !important;
  line-height: 48px !important;
}

/* Product page wishlist button: demo-interactions.css (loaded after bridge) sets
   overflow:hidden which clips the icon — !important needed to win the cascade */
.single-product .summary .single-product-buttons .button-in.wishlist > a {
  overflow: visible !important;
}

/* ─── Services page: pricing grid ──────────────────────────────────────── */
.pricing-grid-section {
  padding-bottom: 2rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.pricing-card {
  border: 1px solid #dde3ea;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pricing-card__header {
  background-color: var(--ts-primary-color, #0f6eae);
  color: #fff;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-card__body {
  padding: 1rem 1.25rem;
  flex: 1;
  font-size: 0.9rem;
  color: #555;
}
.pricing-card__body p {
  margin: 0;
}
.pricing-card__divider {
  border: 0;
  border-top: 1px double #dde3ea;
  margin: 0;
}
.pricing-card__prices {
  display: flex;
  padding: 0.75rem 1.25rem;
}
.pricing-card__price {
  flex: 1;
  text-align: center;
}
.pricing-card__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.pricing-card__amount {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #333;
}
.pricing-card__price--highlight .pricing-card__amount {
  color: var(--ts-primary-color, #0f6eae);
}
.pricing-card__footer {
  padding: 0.6rem 1.25rem 0.9rem;
  text-align: center;
}
.pricing-card__readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ts-primary-color, #0f6eae);
  text-decoration: none;
}
.pricing-card__readmore:hover {
  text-decoration: underline;
}
.pricing-grid {
  margin-top: 2rem;
}

/* ── Custom Built Systems page ─────────────────────────────────────── */
.custom-builds-intro,
.custom-builds-body,
.custom-builds-warranty {
  padding: 1.5rem 0;
}
.custom-builds-cards {
  padding: 1.5rem 0 2rem;
}
.custom-builds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.custom-build-card {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.custom-build-card__header {
  padding: 0.75rem 1rem;
  color: #fff;
  text-align: center;
}
.custom-build-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}
.custom-build-card__subtitle {
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}
.custom-build-card__divider {
  border: 1px double #666;
  margin: 0;
}
.custom-build-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.custom-build-card__image {
  text-align: center;
}
.custom-build-card__image img {
  max-width: 150px;
  height: auto;
}
.custom-build-card__meta {
  text-align: center;
}
.custom-build-card__price {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.custom-build-card__btn {
  display: inline-block;
  background-color: #222;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}
.custom-build-card__btn:hover {
  background-color: #444;
  color: #fff;
}
.custom-build-card__specs p {
  font-size: 0.88rem;
  margin: 0.2rem 0;
  text-align: left;
}
/* Brands section */
.custom-builds-brands {
  padding: 1.5rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.custom-builds-brands__heading {
  margin-bottom: 1rem;
}
.custom-builds-brands__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.custom-builds-brands__item img {
  max-width: 160px;
  height: auto;
  opacity: 0.8;
}
.custom-builds-brands__item img:hover {
  opacity: 1;
}
/* Warranty section */
.custom-builds-warranty h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
