/**
 * Airparts theme — VPCart V9 bridge overrides.
 * Loads after airparts-theme.css. Maps Airparts design onto VPCart DOM (#vp_*).
 */
body.airparts-theme {
  font-family: var(--font, "Poppins", sans-serif) !important;
  background: #fff !important;
  color: var(--color-text, #111827);
}

body.airparts-theme #page,
body.airparts-theme .page_wrapper,
body.airparts-theme .maincontent-wrapper {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

/* .container.content-wrapper keeps Bootstrap container width/padding so
   Left | Center | Right columns from Layout Manager can align correctly. */

/* Hide stock VPCart chrome that fights the Airparts shell */
body.airparts-theme #vp_topheader,
body.airparts-theme .vp_topheader_upper,
body.airparts-theme .lower-header.bannerwrapper,
body.airparts-theme #vp_welcomeboxstretch,
body.airparts-theme .welcomebox_wrapper,
body.airparts-theme .horo_desktop_bar:not(.airparts-nav-bar),
body.airparts-theme #vp_abc,
body.airparts-theme .mobile-header:not(.airparts-mobile-header) {
  display: none !important;
}

body.airparts-theme.airparts-home #vp_leftsidebox,
body.airparts-theme.airparts-home #vp_rightsidebox {
  display: none !important;
}

body.airparts-theme.airparts-home .content-wrapper > .row {
  display: block !important;
}

body.airparts-theme.airparts-home #vp_bodycontent {
  width: 100% !important;
}

body.airparts-theme #vp_bodycontent {
  padding: 0 !important;
  background: transparent !important;
}

/* Do not force top-level Bootstrap columns to 100% — that collapses
   Layout Manager's Left | Center | Right grid (col-md-3 / col-md-6 / col-md-3). */

/* Inner-page sidebars: Layout Manager already outputs Bootstrap
   col-md-3 / col-md-6 / col-md-3 with push-pull. The #vp_* wrappers must NOT
   form their own full-width block (that stacks/overlaps columns) — use
   display:contents so the col-* children participate in the row float grid. */
body.airparts-theme:not(.airparts-home) #vp_leftsidebox,
body.airparts-theme:not(.airparts-home) #vp_rightsidebox {
  display: contents;
}

body.airparts-theme:not(.airparts-home) #vp_bodycontent {
  padding: 24px 0 40px !important;
}

/* Restore Bootstrap 3 Left | Center | Right. Stock main-responsive.css sets
   .col-md-push-3 { left:0 } and custom 56%/22% widths, which overlaps columns. */
@media (min-width: 992px) {
  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > .col-md-6.col-md-push-3,
  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > [class*="col-md-push-3"] {
    width: 50% !important;
    left: 25% !important;
    float: left !important;
  }

  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > #vp_leftsidebox > .col-md-3,
  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > #vp_rightsidebox > .col-md-3 {
    width: 25% !important;
    float: left !important;
  }

  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > #vp_leftsidebox > .col-md-pull-6 {
    right: 50% !important;
  }

  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > #vp_leftsidebox > .col-md-pull-9 {
    right: 75% !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  /* Tablet: keep sidebars beside content at Bootstrap sm widths */
  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > .col-md-6.col-md-push-3,
  body.airparts-theme:not(.airparts-home) .content-wrapper > .row > [class*="col-md-push-3"] {
    left: 0 !important;
    width: 100% !important;
  }
}

/* Fallback if display:contents is unavailable — keep sidebars visible */
@supports not (display: contents) {
  body.airparts-theme:not(.airparts-home) #vp_leftsidebox,
  body.airparts-theme:not(.airparts-home) #vp_rightsidebox {
    display: block;
    float: left;
    width: auto;
  }
}

/* ----- Header search (VPCart form) ----- */
.airparts-header .header-search {
  display: flex;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}

.airparts-header .header-search__input,
.airparts-header .header-search input[type="text"],
.airparts-header .header-search input[type="search"] {
  flex: 1;
  border: none;
  border-radius: 4px 0 0 4px;
  padding: 12px 16px;
  font-size: 15px;
  min-height: 44px;
}

.airparts-header .header-search__btn,
.airparts-header .header-search button[type="submit"] {
  background: var(--color-topbar, #386ca2);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  width: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----- Nav: style VPCart horomenu inside Airparts bar ----- */
.airparts-nav-bar #vp_horomenu,
.primary-nav #vp_horomenu {
  background: transparent !important;
  border: none !important;
}

.primary-nav #vp_horomenu > ul.nav,
.primary-nav #vp_horomenu > ul.navbar-nav,
.primary-nav #vp_horomenu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: transparent !important;
  border: none !important;
  width: auto !important;
}

.primary-nav #vp_horomenu > ul > li {
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  float: none !important;
  position: relative;
  display: block !important;
}

.primary-nav #vp_horomenu > ul > li > a {
  display: block;
  color: #fff !important;
  padding: 14px 18px !important;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
}

.primary-nav #vp_horomenu > ul > li > a:hover,
.primary-nav #vp_horomenu > ul > li.active > a,
.primary-nav #vp_horomenu > ul > li:hover > a {
  background: var(--color-nav-active, #234a72) !important;
  color: #fff !important;
}

/* VPCart megamenu dropdowns (div.megamenu-dropdown, not Bootstrap .dropdown-menu) */
body.airparts-theme .primary-nav #vp_horomenu .megamenu-dropdown {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: 0 !important;
  top: 100% !important;
  z-index: 9999 !important;
  min-width: 240px !important;
  width: auto !important;
  max-width: 360px;
  padding: 8px 0 !important;
  margin: 0 !important;
  background: var(--color-nav-active, #234a72) !important;
  border: none !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: none !important;
}

body.airparts-theme .primary-nav #vp_horomenu > ul > li:hover > .megamenu-dropdown,
body.airparts-theme .primary-nav #vp_horomenu > ul > li:focus-within > .megamenu-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.airparts-theme .primary-nav #vp_horomenu .megamenu-dropdown ul {
  display: block !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100% !important;
  float: none !important;
}

body.airparts-theme .primary-nav #vp_horomenu .megamenu-dropdown li {
  display: block !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.airparts-theme .primary-nav #vp_horomenu .megamenu-dropdown a {
  display: block !important;
  color: #fff !important;
  padding: 10px 18px !important;
  white-space: nowrap;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}

body.airparts-theme .primary-nav #vp_horomenu .megamenu-dropdown a:hover {
  background: rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
}

body.airparts-theme .primary-nav #vp_horomenu .megamenu-dropdown .horomenu-menutitle {
  color: inherit !important;
}

body.airparts-theme .primary-nav,
body.airparts-theme .primary-nav__wrap,
body.airparts-theme .airparts-nav-bar,
body.airparts-theme .site-header.airparts-header {
  overflow: visible !important;
}

/* Logo override */
.airparts-header .brand img,
.airparts-header .brand__logo {
  max-height: 60px;
  width: auto;
  height: auto;
}

.airparts-header .vp_logo,
.airparts-header #vp_logo {
  display: none !important;
}

/* Footer restyle */
body.airparts-theme #vp_footer,
body.airparts-theme .footer {
  background: var(--color-white) !important;
  color: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  border-top: 1px solid #d6d6d6 !important;
}

body.airparts-theme #vp_footer a {
  color: #3d4b5c !important;
}

body.airparts-theme #vp_copypower {
  color: #3d4b5c;
  text-align: center;
  padding: 12px 20px 28px;
  font-size: 13px;
}

body.airparts-theme #vp_copypower a {
  color: #3d4b5c !important;
}

/* Hide default footer widgets when using Airparts static footer */
body.airparts-theme #vp_footer .footer-widgets,
body.airparts-theme #vp_footer > .container:not(.airparts-footer-inner):not(#vp_copypower) {
  display: none !important;
}

/* Product cards in VPCart listings */
body.airparts-theme .product-card {
  background: #fff;
  border-radius: var(--radius-card, 1rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

body.airparts-theme .product-card__image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f4f6;
}

body.airparts-theme .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.airparts-theme .product-card__body {
  padding: 14px 16px 8px;
  flex: 1;
}

body.airparts-theme .product-card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--color-navy-deep, #1a202c);
}

body.airparts-theme .product-card__desc {
  font-size: 13px;
  color: var(--color-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.airparts-theme .product-card__footer {
  padding: 8px 16px 16px;
}

body.airparts-theme .product-card__price {
  font-weight: 700;
  color: var(--color-category-head, #2b5783);
  font-size: 16px;
}

body.airparts-theme .product-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

body.airparts-theme .btn--primary {
  background: var(--color-category-head, #2b5783) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block;
}

body.airparts-theme .btn--light {
  background: #fff !important;
  color: var(--color-category-head, #2b5783) !important;
  border: 1px solid var(--color-category-head, #2b5783) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block;
}

body.airparts-theme .btn--pill {
  border-radius: 999px !important;
}

/* Grid listing wrappers */
body.airparts-theme .airparts-product-grid,
body.airparts-theme [data-featured-grid],
body.airparts-theme .featured-prod-widget {
  /* restyle featured widgets into cards via child templates */
}

body.airparts-theme .global-background-color,
body.airparts-theme #vp_bodycontent a.submitbtn,
body.airparts-theme .submitbtn {
  background-color: var(--color-category-head, #2b5783) !important;
  color: #fff !important;
  border-radius: 8px !important;
  border: none !important;
}

body.airparts-theme #vp_bodycontent a {
  color: var(--color-navy, #2b5a91);
}

body.airparts-theme .global-font-color {
  color: var(--color-text, #111827) !important;
}

/* Sideboxes — match homepage Categories panel chrome */
body.airparts-theme #vp_leftsidebox .box,
body.airparts-theme #vp_leftsidebox .panel,
body.airparts-theme #vp_leftsidebox .sidebarcell,
body.airparts-theme #vp_rightsidebox .box,
body.airparts-theme #vp_rightsidebox .panel,
body.airparts-theme #vp_rightsidebox .sidebarcell {
  border: 1px solid var(--color-line, #e5e7eb);
  border-radius: var(--radius-card-lg, 1.25rem);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  margin-bottom: 16px;
  background: #fff;
}

/* Same styling as .categories-panel__head on the homepage */
body.airparts-theme #vp_leftsidebox .sidebarcell > .title,
body.airparts-theme #vp_rightsidebox .sidebarcell > .title,
body.airparts-theme #vp_leftsidebox .boxtitle,
body.airparts-theme #vp_leftsidebox .panel-heading,
body.airparts-theme #vp_leftsidebox .widget-title,
body.airparts-theme #vp_rightsidebox .boxtitle,
body.airparts-theme #vp_rightsidebox .panel-heading,
body.airparts-theme #vp_rightsidebox .widget-title {
  background: var(--color-category-head, #2b5783) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  /* Generous vertical padding; parent .sidebarcell overflow+radius clips the top corners */
  padding: 20px 16px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0 !important;
}

body.airparts-theme #vp_leftsidebox .sidebarcell > .title h3,
body.airparts-theme #vp_leftsidebox .sidebarcell > .title h2,
body.airparts-theme #vp_leftsidebox .boxtitle,
body.airparts-theme #vp_leftsidebox .panel-heading,
body.airparts-theme #vp_leftsidebox h3,
body.airparts-theme #vp_leftsidebox .widget-title,
body.airparts-theme #vp_rightsidebox .sidebarcell > .title h3,
body.airparts-theme #vp_rightsidebox .sidebarcell > .title h2,
body.airparts-theme #vp_rightsidebox .boxtitle,
body.airparts-theme #vp_rightsidebox .panel-heading,
body.airparts-theme #vp_rightsidebox h3,
body.airparts-theme #vp_rightsidebox .widget-title {
  background: transparent !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  line-height: 1.25 !important;
  width: 100%;
}

/* When the heading element IS the bar (no .title wrapper), restore head padding */
body.airparts-theme #vp_leftsidebox .boxtitle,
body.airparts-theme #vp_leftsidebox .panel-heading,
body.airparts-theme #vp_leftsidebox .widget-title,
body.airparts-theme #vp_rightsidebox .boxtitle,
body.airparts-theme #vp_rightsidebox .panel-heading,
body.airparts-theme #vp_rightsidebox .widget-title {
  background: var(--color-category-head, #2b5783) !important;
  padding: 20px 16px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
}

/* PDP */
body.airparts-theme #productexd {
  background: #fff;
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}

body.airparts-theme #productexd h1 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--color-navy-deep);
}

body.airparts-theme .productbuy .submitbtn,
body.airparts-theme .productbuy input[type="submit"],
body.airparts-theme .productbuy button {
  background: var(--color-category-head) !important;
  border-radius: 999px !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
}

/* Forms / cart */
body.airparts-theme input[type="text"],
body.airparts-theme input[type="password"],
body.airparts-theme input[type="email"],
body.airparts-theme input[type="number"],
body.airparts-theme select,
body.airparts-theme textarea,
body.airparts-theme .form-control {
  border: 1px solid var(--color-line) !important;
  border-radius: 8px !important;
  font-family: var(--font) !important;
}

body.airparts-theme table {
  font-family: var(--font);
}

/* Homepage marketing blocks injected in template */
.airparts-home-marketing {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 20px 40px;
}

.airparts-hide-stock-slider #vp_sliderbanners {
  display: none !important;
}

/* Mobile nav */
@media (max-width: 991px) {
  .primary-nav__wrap:not(.is-open) #vp_horomenu > ul {
    display: none !important;
  }
  .primary-nav__wrap.is-open #vp_horomenu > ul {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    background: var(--color-nav);
  }
}

/* =====================================================================
   Restyle stock VPCart homepage widgets (Trending / Best Offers / Blogs)
   ===================================================================== */

/* Shared section titles */
body.airparts-theme #vp_bodycontent .main-product > .title,
body.airparts-theme #vp_bodycontent .main-blog > .title,
body.airparts-theme #vp_bodycontent .sidebarcell > .title,
body.airparts-theme #side_featuredproduct_title_47 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 8px 0 16px !important;
  margin: 0px 0px 0px 0px !important;
  text-align: center;
}

body.airparts-theme #vp_bodycontent .main-product > .title h2,
body.airparts-theme #vp_bodycontent .main-blog > .title h2,
body.airparts-theme #vp_bodycontent .sidebarcell > .title h2,
body.airparts-theme #side_featuredproduct_title_47 h2 {
  font-family: var(--font, "Poppins", sans-serif) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--color-navy-deep, #1a202c) !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
}

body.airparts-theme #vp_bodycontent .main-product > .title h2 a,
body.airparts-theme #vp_bodycontent .main-blog > .title h2 a {
  color: inherit !important;
  text-decoration: none !important;
}

body.airparts-theme #vp_bodycontent .main-product > .title h2 b,
body.airparts-theme #vp_bodycontent .main-blog > .title h2 b,
body.airparts-theme #side_featuredproduct_title_47 h2 b {
  font-weight: 700 !important;
}

/* Fix Layout Manager broken min-height on product tiles */
body.airparts-theme .randomproduct.autoheight,
body.airparts-theme .calculate-height .randomproduct,
body.airparts-theme #center_randomproducts_title_48 .randomproduct {
  min-height: 0 !important;
  height: auto !important;
}

/* Trending Brands — product card grid */
body.airparts-theme #center_randomproducts_title_48 {
  max-width: var(--container, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding: 8px 20px 32px;
}

body.airparts-theme #center_randomproducts_title_48 .homepage-widget {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
  width: 100% !important;
}

@media (max-width: 991px) {
  body.airparts-theme #center_randomproducts_title_48 .homepage-widget {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.airparts-theme #center_randomproducts_title_48 .homepage-widget {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

body.airparts-theme #center_randomproducts_title_48 .responsivecolumn,
body.airparts-theme #center_randomproducts_title_48 .responsivecolumn[class*="col-"] {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
}

body.airparts-theme #center_randomproducts_title_48 .featured-prod-widget,
body.airparts-theme #center_randomproducts_title_48 .product-card,
body.airparts-theme #center_randomproducts_title_48 .randomproduct {
  background: #fff;
  border-radius: var(--radius-card, 1rem);
  box-shadow: var(--shadow-card, 0 6px 20px rgba(22, 64, 105, 0.12));
  overflow: hidden;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  width: 100% !important;
  border: 1px solid var(--color-line, #e5e7eb);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex !important;
  flex-direction: column;
}

body.airparts-theme #center_randomproducts_title_48 .featured-prod-widget:hover,
body.airparts-theme #center_randomproducts_title_48 .product-card:hover {
  box-shadow: 0 10px 28px rgba(22, 64, 105, 0.18);
  transform: translateY(-2px);
}

body.airparts-theme #center_randomproducts_title_48 .product-card__media {
  height: 180px !important;
  max-height: 180px !important;
  overflow: hidden !important;
  background: #f8f9fa;
}

/* Quickview plugin empties the image link — hide the empty shell, keep the img link */
body.airparts-theme #center_randomproducts_title_48 a.product-card__image {
  height: auto !important;
  max-height: none !important;
  display: block;
}

body.airparts-theme #center_randomproducts_title_48 a.product-card__image:not(:has(img)),
body.airparts-theme #center_randomproducts_title_48 a.product-card__image.quickview:not(:has(img)) {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.airparts-theme #center_randomproducts_title_48 .product-card > a.quickview {
  display: block !important;
  height: 180px !important;
  overflow: hidden !important;
  background: #f8f9fa;
}

body.airparts-theme #center_randomproducts_title_48 .product-card > br {
  display: none !important;
}

body.airparts-theme #center_randomproducts_title_48 .product-card__image img,
body.airparts-theme #center_randomproducts_title_48 .nailthumb,
body.airparts-theme #center_randomproducts_title_48 .product_thumbnail,
body.airparts-theme #center_randomproducts_title_48 .product-card img {
  aspect-ratio: 1;
  object-fit: contain !important;
  background: #f8f9fa;
  width: 100% !important;
  height: 180px !important;
  max-height: 180px !important;
}

body.airparts-theme #center_randomproducts_title_48 .product-card__body {
  padding: 12px 14px 4px !important;
  flex: 0 0 auto !important;
}

body.airparts-theme #center_randomproducts_title_48 .product-card__footer {
  padding: 4px 14px 14px !important;
  margin-top: auto;
}

body.airparts-theme #center_randomproducts_title_48 .product-card__desc,
body.airparts-theme #center_randomproducts_title_48 .product-card__stars {
  display: none !important;
}

body.airparts-theme #center_randomproducts_title_48 .product-card__title,
body.airparts-theme #center_randomproducts_title_48 .widget-product-title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--color-navy-deep) !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0 !important;
  max-height: 2.8em;
}

body.airparts-theme #center_randomproducts_title_48 .product-card__price,
body.airparts-theme #center_randomproducts_title_48 .widget-mainprice {
  color: var(--color-category-head, #2b5783) !important;
  font-weight: 700 !important;
}

body.airparts-theme #center_randomproducts_title_48 .btn--light,
body.airparts-theme #center_randomproducts_title_48 .btn-details,
body.airparts-theme #center_randomproducts_title_48 .quickview-btn,
body.airparts-theme #center_randomproducts_title_48 .submitbtn,
body.airparts-theme #center_randomproducts_title_48 .product-card__actions .btn,
body.airparts-theme #center_randomproducts_title_48 .product-card__order input[type="submit"] {
  border-radius: 8px !important;
  font-size: 12px !important;
  padding: 8px 12px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.3 !important;
}

body.airparts-theme #center_randomproducts_title_48 .quickview-btn,
body.airparts-theme #center_randomproducts_title_48 .quickview-wrapper {
  display: none !important;
}

/* Best Offers — carousel cards */
body.airparts-theme #vp_bodycontent > .sidebarcell,
body.airparts-theme #vp_bodycontent .sidebarcell:has(#side_featuredproduct_title_47) {
  max-width: var(--container, 1200px);
  margin: 8px auto 32px !important;
  padding: 0 20px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  float: none !important;
  width: 100% !important;
}

body.airparts-theme .sidefeaturedproducts,
body.airparts-theme #theCarousel,
body.airparts-theme .lSSlideOuter {
  background: transparent !important;
  padding: 0 !important;
}

body.airparts-theme .sidefeaturedproducts .responsivecolumn,
body.airparts-theme .centerfeatureslider .responsivecolumn {
  background: #fff;
  border-radius: var(--radius-card, 1rem);
  box-shadow: var(--shadow-card, 0 6px 20px rgba(22, 64, 105, 0.12));
  border: 1px solid var(--color-line, #e5e7eb);
  overflow: hidden;
  padding: 0 !important;
  margin: 4px !important;
  min-height: 0 !important;
}

body.airparts-theme .sidefeaturedproducts .image-wrapper,
body.airparts-theme .sidefeaturedproducts .nailthumb {
  background: #f8f9fa;
  aspect-ratio: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.airparts-theme .sidefeaturedproducts .product_thumbnail {
  max-height: 160px;
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

body.airparts-theme .sidefeaturedproducts .carousel-caption,
body.airparts-theme .sidefeaturedproducts .product-card__body {
  position: static !important;
  background: #fff !important;
  color: var(--color-text) !important;
  padding: 14px 16px 16px !important;
  text-align: left !important;
  text-shadow: none !important;
}

body.airparts-theme .sidefeaturedproducts .green-caption,
body.airparts-theme .sidefeaturedproducts .product-card__title {
  color: var(--color-navy-deep) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  margin: 0 0 8px !important;
  line-height: 1.35;
}

body.airparts-theme .sidefeaturedproducts .price,
body.airparts-theme .sidefeaturedproducts .product-card__price {
  color: var(--color-category-head) !important;
  font-weight: 700 !important;
  display: block;
  margin-bottom: 10px;
}

body.airparts-theme .sidefeaturedproducts .btn-details,
body.airparts-theme .sidefeaturedproducts .default-btn-style {
  background: var(--color-category-head) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none !important;
  padding: 8px 16px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  display: inline-block;
  text-decoration: none !important;
}

body.airparts-theme .sidefeaturedproducts .quickview-btn {
  background: rgba(43, 87, 131, 0.92) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
}

body.airparts-theme .lSAction > a,
body.airparts-theme .lSPager {
  filter: none;
}

body.airparts-theme .lSAction > a {
  background: var(--color-category-head) !important;
  border-radius: 50% !important;
  opacity: 0.95 !important;
}

body.airparts-theme .lSSlideWrapper {
  border-radius: 12px;
}

/* Blogs Highlights */
body.airparts-theme #center_blogs__title_46,
body.airparts-theme .main-blog {
  max-width: var(--container, 1200px);
  margin: 8px auto 40px !important;
  padding: 0 20px !important;
  background: transparent !important;
  border: none !important;
}

body.airparts-theme #center_blogs__title_46 .text-content-wrapper,
body.airparts-theme .main-blog .text-content-wrapper {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}

body.airparts-theme #center_blogs__title_46 .top-content-border,
body.airparts-theme #center_blogs__title_46 .bottom-content-border {
  display: none !important;
}

body.airparts-theme #center_blogs__title_46 .col-sm-4,
body.airparts-theme .main-blog .col-sm-4 {
  margin-bottom: 16px;
}

body.airparts-theme #center_blogs__title_46 .featured-prod-widget {
  background: #fff;
  border-radius: var(--radius-card, 1rem);
  box-shadow: var(--shadow-card, 0 6px 20px rgba(22, 64, 105, 0.12));
  border: 1px solid var(--color-line, #e5e7eb);
  padding: 20px !important;
  height: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.airparts-theme #center_blogs__title_46 .featured-prod-widget:hover {
  box-shadow: 0 10px 28px rgba(22, 64, 105, 0.18);
  transform: translateY(-2px);
}

body.airparts-theme #center_blogs__title_46 .date {
  color: var(--color-muted, #4b5563) !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.airparts-theme #center_blogs__title_46 h3 {
  font-family: var(--font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--color-navy-deep) !important;
  margin: 8px 0 10px !important;
}

body.airparts-theme #center_blogs__title_46 .desc,
body.airparts-theme #center_blogs__title_46 .blog-image + * {
  color: var(--color-muted) !important;
  font-size: 14px !important;
  line-height: 1.55;
}

body.airparts-theme #center_blogs__title_46 a {
  color: var(--color-category-head) !important;
  font-weight: 600;
}

/* Soft spacing for lightSlider blocks */
body.airparts-home .lightSlider,
body.airparts-home .lSSlideOuter {
  margin-top: 8px;
}

/* Ensure primary nav stays brand blue even if horomenu CSS fights */
body.airparts-theme .primary-nav,
body.airparts-theme .primary-nav__wrap,
body.airparts-theme .airparts-nav-bar,
body.airparts-theme .airparts-nav-bar .horo_desktop_bar {
  background: var(--color-nav, #386ca2) !important;
}

body.airparts-theme .primary-nav #vp_horomenu,
body.airparts-theme .primary-nav #vp_horomenu ul.nav,
body.airparts-theme .primary-nav #vp_horomenu .navbar-nav {
  background: transparent !important;
  width: 100%;
}

body.airparts-theme .sidr,
body.airparts-theme #sidr-right {
  z-index: 9999;
}

/* =====================================================================
   Inner pages — catalog, PDP, categories, search, cart, forms
   ===================================================================== */

body.airparts-theme:not(.airparts-home) .maincontent-wrapper,
body.airparts-theme:not(.airparts-home) .content-wrapper {
  background: #f8f9fa !important;
}

/* Keep Bootstrap float/push-pull grid (do not force flex or hide sidebars). */
body.airparts-theme:not(.airparts-home) .content-wrapper > .row {
  display: block !important;
  margin-left: -15px;
  margin-right: -15px;
  padding: 0 0 48px !important;
}

/* Sidebars stay visible — Layout Manager already supplies col-md-3 wrappers.
   Do not force center column to 100% (that overlaps/hides the side columns). */

body.airparts-theme .breadcrumb,
body.airparts-theme #vp_bodycontent .breadcrumb,
body.airparts-theme .catalog-breadcrumb {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 16px 0 8px !important;
  margin: 0 0 8px !important;
  font-size: 13px !important;
  color: var(--color-muted) !important;
}

body.airparts-theme .breadcrumb a {
  color: var(--color-category-head) !important;
  text-decoration: none !important;
}

body.airparts-theme #vp_bodycontent h1,
body.airparts-theme #vp_bodycontent .pagetitle,
body.airparts-theme #vp_bodycontent .page-title,
body.airparts-theme .section-title {
  font-family: var(--font) !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--color-navy-deep) !important;
  text-align: left !important;
  margin: 8px 0 20px !important;
}

body.airparts-theme .productlistingtoolbar,
body.airparts-theme .toolbar,
body.airparts-theme .sorting,
body.airparts-theme .view-mode,
body.airparts-theme .displayoptions,
body.airparts-theme .top-toolbar,
body.airparts-theme .bottom-toolbar {
  background: #fff !important;
  border: 1px solid var(--color-line) !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  margin: 0 0 20px !important;
  box-shadow: var(--shadow-panel);
}

body.airparts-theme .productlistingtoolbar select,
body.airparts-theme .toolbar select,
body.airparts-theme #vp_bodycontent select {
  border: 1px solid var(--color-line) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-family: var(--font) !important;
  min-height: 40px;
  background: #fff !important;
}

body.airparts-theme #vp_bodycontent .product-view,
body.airparts-theme #vp_bodycontent .product-list,
body.airparts-theme #vp_bodycontent .product-list-row-view,
body.airparts-theme #vp_bodycontent .product-row {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Product listing wrappers — keep list and grid distinct.
   IMPORTANT: never force display:grid on both IDs; VPCart toggles visibility
   with inline display:none / display:block and !important would break that. */

body.airparts-theme #wrapper_listing,
body.airparts-theme #wrapper_grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both;
}

/* Honor VPCart hide/show (inline style from load_productlistings.js) */
body.airparts-theme #wrapper_listing[style*="display: none"],
body.airparts-theme #wrapper_listing[style*="display:none"],
body.airparts-theme #wrapper_grid[style*="display: none"],
body.airparts-theme #wrapper_grid[style*="display:none"] {
  display: none !important;
}

/* LIST VIEW — stacked horizontal product rows */
body.airparts-theme #wrapper_listing[style*="display: block"],
body.airparts-theme #wrapper_listing[style*="display:block"] {
  display: flex !important;
  flex-direction: column;
  gap: 16px;
}

/* GRID VIEW — multi-column product cards */
body.airparts-theme #wrapper_grid[style*="display: block"],
body.airparts-theme #wrapper_grid[style*="display:block"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 991px) {
  body.airparts-theme #wrapper_grid[style*="display: block"],
  body.airparts-theme #wrapper_grid[style*="display:block"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.airparts-theme #wrapper_grid[style*="display: block"],
  body.airparts-theme #wrapper_grid[style*="display:block"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.airparts-theme #wrapper_listing .product-card--list,
  body.airparts-theme #wrapper_listing .product-card.product-card--list {
    flex-direction: column !important;
  }

  body.airparts-theme #wrapper_listing .product-card--list .product-card__media {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    height: 180px !important;
    max-height: 180px !important;
  }
}

body.airparts-theme #wrapper_listing .form-product,
body.airparts-theme #wrapper_grid .form-product,
body.airparts-theme #wrapper_listing .product-list-row,
body.airparts-theme #wrapper_listing .product-list-row-view,
body.airparts-theme #wrapper_grid .responsivecolumn,
body.airparts-theme #vp_bodycontent .product-list-row-view {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* List row cards: image | details | actions */
body.airparts-theme #wrapper_listing .product-card--list,
body.airparts-theme #wrapper_listing article.product-card.product-card--list {
  flex-direction: row !important;
  align-items: stretch;
  gap: 0;
  min-height: 160px;
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__media {
  flex: 0 0 180px;
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: none !important;
  min-height: 160px;
  align-self: stretch;
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__media img,
body.airparts-theme #wrapper_listing .product-card--list .product-card__image img,
body.airparts-theme #wrapper_listing .product-card--list .product-card__media > a.quickview img,
body.airparts-theme #wrapper_listing .product-card--list img {
  height: 160px !important;
  max-height: 160px !important;
  object-fit: contain !important;
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__media > a.quickview:has(img) {
  height: 160px !important;
  max-height: 160px !important;
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 12px 16px 18px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__footer {
  flex: 0 0 200px;
  width: 200px;
  max-width: 220px;
  padding: 16px 16px 16px 8px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-left: 1px solid var(--color-line);
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__desc {
  -webkit-line-clamp: 3;
  max-height: 4.2em;
}

body.airparts-theme #wrapper_listing .product-card--list .product-card__actions {
  margin-top: 0;
}

/* View toggle buttons */
body.airparts-theme .view-option .btn-group {
  display: inline-flex !important;
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  overflow: hidden;
}

body.airparts-theme .grid-view-btn,
body.airparts-theme .list-view-btn {
  background: #fff !important;
  color: var(--color-navy-deep) !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 42px;
  min-height: 40px;
  opacity: 1 !important;
  cursor: pointer !important;
}

body.airparts-theme .grid-view-btn.active,
body.airparts-theme .list-view-btn.active {
  background: var(--color-category-head) !important;
  color: #fff !important;
}

body.airparts-theme .grid-view-btn:disabled,
body.airparts-theme .list-view-btn:disabled {
  opacity: 0.55 !important;
  cursor: wait !important;
}

body.airparts-theme #vp_bodycontent .product-card,
body.airparts-theme #vp_bodycontent article.product-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card, 1rem);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

body.airparts-theme #vp_bodycontent .product-card:hover {
  box-shadow: 0 10px 28px rgba(22, 64, 105, 0.18);
  transform: translateY(-2px);
}

body.airparts-theme .product-card__media,
body.airparts-theme .product-card__image {
  display: block;
  width: 100%;
  background: #eef2f6;
  position: relative;
  overflow: hidden;
  height: 200px !important;
  max-height: 200px !important;
}

/* VPCart quickview injects the real <img> outside the template anchor — hide empty shells */
body.airparts-theme .product-card__media > a.product-card__image.quickview:empty,
body.airparts-theme .product-card__media > a.product-card__image.quickview:not(:has(img)),
body.airparts-theme .product-card > a.product-card__image:not(:has(img)),
body.airparts-theme .product-card > a.product-card__image.quickview:not(:has(img)) {
  display: none !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

body.airparts-theme .product-card__media > br,
body.airparts-theme .product-card > br {
  display: none !important;
}

/* Real thumbnail link injected after quickview rewrite */
body.airparts-theme .product-card > a.quickview:has(img),
body.airparts-theme .product-card__media > a.quickview:has(img) {
  display: block !important;
  width: 100%;
  height: 200px !important;
  max-height: 200px !important;
  background: #eef2f6;
  overflow: hidden;
}

body.airparts-theme .product-card__image img,
body.airparts-theme .product-card .nailthumb,
body.airparts-theme .product-card .product_thumbnail,
body.airparts-theme .product-card .product-card__media img,
body.airparts-theme .product-card > a.quickview img,
body.airparts-theme .product-card img {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  max-height: 200px !important;
  object-fit: contain !important;
  background: #eef2f6;
  display: block;
  border: none !important;
  margin: 0 auto !important;
}

body.airparts-theme .product-card .nailthumb {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
}

body.airparts-theme .product-card .nailthumb img,
body.airparts-theme .product-card .nailthumb .product_thumbnail {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;
  max-height: 200px !important;
  object-fit: contain !important;
}

body.airparts-theme .product-card__body {
  padding: 12px 14px 4px !important;
  flex: 1 1 auto;
  min-height: 0;
}

body.airparts-theme .product-card__footer {
  padding: 4px 14px 14px !important;
}

body.airparts-theme .product-card__desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
}

body.airparts-theme .sort_product_container,
body.airparts-theme .filteringform {
  background: #fff !important;
  border: 1px solid var(--color-line) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  margin: 0 0 20px !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-panel);
}

body.airparts-theme .displayproducts > .title h1,
body.airparts-theme .displayproducts .title {
  text-align: left !important;
}

body.airparts-theme .product-card__body {
  padding: 14px 16px 6px;
  flex: 1;
}

body.airparts-theme .product-card__title,
body.airparts-theme .product-card__title a,
body.airparts-theme .product-card .displaytitle {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--color-navy-deep) !important;
  margin: 0 0 6px !important;
  line-height: 1.35 !important;
  text-align: left !important;
}

body.airparts-theme .product-card__desc {
  font-size: 13px;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

body.airparts-theme .product-card__footer {
  padding: 8px 16px 16px;
}

body.airparts-theme .product-card__price,
body.airparts-theme .product-card .widget-mainprice,
body.airparts-theme .product-card .product-price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--color-category-head) !important;
}

body.airparts-theme .product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

body.airparts-theme .product-card__actions .btn,
body.airparts-theme .product-card__actions .btn--light,
body.airparts-theme .product-card__actions a.btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-sizing: border-box;
}

body.airparts-theme .product-card__order,
body.airparts-theme .product-card__actions form {
  width: 100%;
  margin: 0;
}

body.airparts-theme .product-card__order input[type="submit"],
body.airparts-theme .product-card__order .submitbtn,
body.airparts-theme .product-card form .submitbtn,
body.airparts-theme .product-card form input[type="submit"],
body.airparts-theme #vp_bodycontent .product-card .submitbtn,
body.airparts-theme #vp_bodycontent .product-card input[type="image"],
body.airparts-theme #vp_bodycontent .product-card input[type="submit"] {
  background: var(--color-category-head) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  width: 100% !important;
  display: block !important;
  cursor: pointer;
}

body.airparts-theme .product-card__price,
body.airparts-theme .product-card .widget-mainprice {
  color: var(--color-navy-deep) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 6px 0 0 !important;
}

body.airparts-theme .product-card .wishlist,
body.airparts-theme .product-card .addthis_toolbox,
body.airparts-theme .product-card .product-card__meta-links,
body.airparts-theme .product-card .quantitygroup,
body.airparts-theme .product-card .qty-minus,
body.airparts-theme .product-card .qty-plus,
body.airparts-theme .product-card input.quantity,
body.airparts-theme .product-card .ratingsummary,
body.airparts-theme .product-card__stars {
  display: none !important;
}

body.airparts-theme .category-card,
body.airparts-theme .main-product.autoheight {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 20px 16px !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 110px !important;
  height: auto !important;
}

body.airparts-theme .main-product.calculate-height > .row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 !important;
}

@media (max-width: 991px) {
  body.airparts-theme .main-product.calculate-height > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  body.airparts-theme .main-product.calculate-height > .row {
    grid-template-columns: 1fr;
  }
}

body.airparts-theme .categorysummary,
body.airparts-theme .categorysummary.col-sm-6,
body.airparts-theme .categorysummary.col-xs-6,
body.airparts-theme .responsivecolumn.categorysummary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.airparts-theme .category-card img,
body.airparts-theme .main-product.autoheight img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  background: #f8f9fa;
  margin-bottom: 8px;
}

body.airparts-theme .cattitle,
body.airparts-theme .category-card__title {
  padding: 0 !important;
  font-weight: 600 !important;
  color: var(--color-category-head) !important;
  text-align: center !important;
  width: 100%;
}

body.airparts-theme .cattitle a,
body.airparts-theme .category-card a {
  color: var(--color-category-head) !important;
  text-decoration: none !important;
  text-align: center !important;
}

body.airparts-theme #productexd,
body.airparts-theme .product-detail-card {
  background: #fff !important;
  border: 1px solid var(--color-line) !important;
  border-radius: var(--radius-card-lg) !important;
  box-shadow: var(--shadow-card) !important;
  padding: 28px !important;
  margin: 8px 0 24px !important;
}

body.airparts-theme #productexd > form {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 24px;
  width: 100% !important;
}

body.airparts-theme #productexdleft,
body.airparts-theme #productexd .product-detail-card__media,
body.airparts-theme #productexd .product-detail-card__buybox,
body.airparts-theme #productexd > .col-sm-6,
body.airparts-theme #productexd > form > .col-sm-6,
body.airparts-theme #productexd .view_product_section {
  width: calc(50% - 12px) !important;
  max-width: calc(50% - 12px) !important;
  float: none !important;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

body.airparts-theme #productexd .product-detail-card__title,
body.airparts-theme #productexd h1 {
  font-size: 28px !important;
  margin: 0 0 8px !important;
  color: var(--color-navy-deep) !important;
}

body.airparts-theme #productexd .pricing,
body.airparts-theme #parentprice {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: var(--color-category-head) !important;
}

body.airparts-theme #productexd .productdesc {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 12px 0 12px;
}

/* Full-width block below image/title: Description, Long Description, purchase, buy */
body.airparts-theme #productexd .airparts-pdp-details,
body.airparts-theme #productexd > form > .airparts-pdp-details {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  clear: both;
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
}

body.airparts-theme #productexd .airparts-pdp-details .productdesc,
body.airparts-theme #productexd .airparts-pdp-details .productlongdesc,
body.airparts-theme #productexd .airparts-pdp-details .product-purchase,
body.airparts-theme #productexd .airparts-pdp-details .product-purchase__footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Long description (products.extendeddesc) — in full-width details block */
body.airparts-theme #productexd .productlongdesc,
body.airparts-theme #productexd .product-detail-card__longdesc {
  color: var(--color-navy-deep, #163f69);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

body.airparts-theme #productexd .productlongdesc:empty,
body.airparts-theme #productexd .product-detail-card__longdesc:empty {
  display: none !important;
  margin: 0 !important;
}

body.airparts-theme #productexd .productlongdesc p,
body.airparts-theme #productexd .product-detail-card__longdesc p,
body.airparts-theme #productexd .productlongdesc div {
  margin: 0 0 0.75em;
}

body.airparts-theme #productexd .productlongdesc > :first-child,
body.airparts-theme #productexd .product-detail-card__longdesc > :first-child {
  margin-top: 0 !important;
}

body.airparts-theme #productexd .productlongdesc img,
body.airparts-theme #productexd .product-detail-card__longdesc img {
  max-width: 100% !important;
  height: auto !important;
}

body.airparts-theme #productexd .productlongdesc table,
body.airparts-theme #productexd .product-detail-card__longdesc table {
  width: 100% !important;
  max-width: 100%;
  margin: 0.75em 0;
}

body.airparts-theme #productexd .productlongdesc ul,
body.airparts-theme #productexd .product-detail-card__longdesc ul,
body.airparts-theme #productexd .productlongdesc ol,
body.airparts-theme #productexd .product-detail-card__longdesc ol {
  padding-left: 1.25em;
  margin: 0.5em 0 0.75em;
}

/* Avoid duplicating long description if Description tab is also enabled */
body.airparts-theme #accordion .panel:has([data-target="xproductextdesc"]) {
  display: none !important;
}

body.airparts-theme #productexdleft img,
body.airparts-theme #productexd .product-detail-card__media img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 420px !important;
  object-fit: contain !important;
  border-radius: 12px;
  background: #f8f9fa;
}

/* Keep bottom sections full-width even if malformed feature HTML
   (e.g. unclosed <b>) pulls #productexdbottom into the PDP flex form. */
body.airparts-theme #productexd > form > *:not(.view_product_section):not(input):not(script):not(style) {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.airparts-theme #productexdbottom {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  clear: both;
  float: none !important;
  display: block !important;
}

/* AddThis CDN (s7.addthis.com) is offline — show a usable Share control */
body.airparts-theme #productexdbottom .img_addthis {
  display: none !important;
}

body.airparts-theme #productexdbottom a.addthis_button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 16px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  color: var(--color-category-head) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  background: #fff;
}

body.airparts-theme #productexdbottom a.addthis_button::before {
  content: "Share";
}

body.airparts-theme #productexdbottom .wishlist-link,
body.airparts-theme #productexdbottom .feature-container .wishlist-link {
  margin: 0;
}

body.airparts-theme #productexdbottom .wishlist-link a,
body.airparts-theme #productexdbottom .feature-container > a[href*="wishlist"] {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--color-category-head);
  border-radius: 999px;
  color: var(--color-category-head) !important;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  background: #fff;
}

body.airparts-theme #productexdbottom #accordion {
  width: 100%;
  clear: both;
}

/* Product variations matrix (inventory subproducts) */
body.airparts-theme #productexd .airparts-variations-host > .cb {
  display: none !important;
}

/* Empty buybox host after variations are moved above Share */
body.airparts-theme #productexd .airparts-variations-host--moved:empty,
body.airparts-theme #productexd .airparts-variations-host--moved {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Full-width variations block placed before #productexdbottom (Share) */
body.airparts-theme #productexd > .airparts-variations-section {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  clear: both;
  float: none !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 20px 0 0 !important;
  padding: 0 !important;
}

/* Catalog ID on PDPs — placed after long description */
body.airparts-theme #productexd .airparts-product-id {
  display: block;
  margin: 12px 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #64748b;
}

body.airparts-theme #productexd > .airparts-variations-section .airparts-variations-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.airparts-theme #productexd .airparts-variations-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 8px 0 16px;
  -webkit-overflow-scrolling: touch;
}

/*
  VPCart main-responsive.css sets: tbody { display: table; width: 100% !important; }
  That breaks thead/tbody column alignment. Restore real table display model.
*/
body.airparts-theme #productexd .airparts-variations-table {
  display: table !important;
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 420px;
  border-collapse: collapse !important;
  background: #fff !important;
  border: 1px solid #c8c8c8 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  font-size: 14px;
  line-height: 1.35;
}

body.airparts-theme #productexd .airparts-variations-table thead {
  display: table-header-group !important;
}

body.airparts-theme #productexd .airparts-variations-table tbody {
  display: table-row-group !important;
  width: auto !important;
}

body.airparts-theme #productexd .airparts-variations-table tr {
  display: table-row !important;
}

body.airparts-theme #productexd .airparts-variations-table thead th,
body.airparts-theme #productexd .airparts-variations-table tbody td {
  display: table-cell !important;
  box-sizing: border-box !important;
}

body.airparts-theme #productexd .airparts-variations-table thead th {
  background: #e8e8e8 !important;
  color: #1a1a1a !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding: 8px 10px !important;
  border: 1px solid #c8c8c8 !important;
  white-space: wrap;
}

body.airparts-theme #productexd .airparts-variations-table tbody td {
  padding: 7px 10px !important;
  border: 1px solid #c8c8c8 !important;
  vertical-align: middle !important;
  color: #222 !important;
  background: #fff !important;
}

body.airparts-theme #productexd .airparts-variations-table__primary {
  color: #163f69 !important;
  font-weight: 600;
}

body.airparts-theme #productexd .airparts-variations-table__price {
  color: #163f69 !important;
  font-weight: 600;
  white-space: nowrap;
}

body.airparts-theme #productexd .airparts-variations-table__order {
  text-align: center !important;
  white-space: nowrap;
  width: 96px;
}

body.airparts-theme #productexd .airparts-variations-order-btn {
  display: inline-block;
  min-width: 64px;
  padding: 5px 14px;
  border: 1px solid #1e4f86;
  border-radius: 3px;
  background: linear-gradient(to bottom, #3d7ec4 0%, #1e4f86 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  text-align: center;
  line-height: 1.2;
}

body.airparts-theme #productexd .airparts-variations-order-btn:hover,
body.airparts-theme #productexd .airparts-variations-order-btn:focus {
  background: linear-gradient(to bottom, #4a8fd6 0%, #2563a8 100%);
  color: #fff !important;
}

/* Fallback before JS builds the table */
body.airparts-theme #productexd .airparts-var-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #c8c8c8;
  margin-bottom: 8px;
  background: #fff;
}

body.airparts-theme #productexd .airparts-var-order {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 3px;
  background: linear-gradient(to bottom, #3d7ec4 0%, #1e4f86 100%);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

@media (max-width: 767px) {
  body.airparts-theme #productexd .airparts-var-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  body.airparts-theme #productexdleft,
  body.airparts-theme #productexd .product-detail-card__media,
  body.airparts-theme #productexd .product-detail-card__buybox,
  body.airparts-theme #productexd .view_product_section {
    width: 100% !important;
    max-width: 100% !important;
  }
}

body.airparts-theme .productbuy input[type="submit"],
body.airparts-theme .productbuy .submitbtn,
body.airparts-theme #vp_bodycontent .productbuy .submitbtn {
  background: var(--color-category-head) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  border: none !important;
  font-size: 15px !important;
}

/* Quantity controls + Add to Cart on one row (button to the right of qty) */
body.airparts-theme #productexd .productbuy,
body.airparts-theme #productexd .product-purchase__footer {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 10px 14px !important;
}

body.airparts-theme #productexd .productbuy > label,
body.airparts-theme #productexd .product-purchase__footer > label {
  flex: 0 0 100% !important;
  width: 100% !important;
  margin: 0 0 2px !important;
}

body.airparts-theme #productexd .productbuy #quantity_errormsg:empty,
body.airparts-theme #productexd .product-purchase__footer #quantity_errormsg:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

body.airparts-theme #productexd .productbuy .quantitygroup,
body.airparts-theme #productexd .product-purchase__footer .quantitygroup {
  width: auto !important;
  max-width: 220px !important;
  margin: 0 !important;
  vertical-align: middle;
}

body.airparts-theme #productexd .productbuy .addtocart,
body.airparts-theme #productexd .productbuy .submitbtn,
body.airparts-theme #productexd .product-purchase__footer .addtocart,
body.airparts-theme #productexd .product-purchase__footer .submitbtn {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  white-space: nowrap !important;
  align-self: center !important;
}

body.airparts-theme .productbuy input[type="text"],
body.airparts-theme .productbuy input[type="number"] {
  border-radius: 8px !important;
  border: 1px solid var(--color-line) !important;
  padding: 10px !important;
  width: 72px !important;
  text-align: center;
}

body.airparts-theme #productexdbottom,
body.airparts-theme .feature-container {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 16px;
}

body.airparts-theme #vp_bodycontent table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-line) !important;
}

body.airparts-theme #vp_bodycontent table th {
  background: var(--color-category-head) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 12px !important;
  border: none !important;
}

body.airparts-theme #vp_bodycontent table td {
  padding: 12px !important;
  border-color: var(--color-line) !important;
  vertical-align: middle !important;
}

body.airparts-theme #vp_bodycontent input[type="text"],
body.airparts-theme #vp_bodycontent input[type="password"],
body.airparts-theme #vp_bodycontent input[type="email"],
body.airparts-theme #vp_bodycontent input[type="tel"],
body.airparts-theme #vp_bodycontent input[type="number"],
body.airparts-theme #vp_bodycontent textarea,
body.airparts-theme #vp_bodycontent select,
body.airparts-theme #vp_bodycontent .form-control:not([type="checkbox"]):not([type="radio"]) {
  border: 1px solid var(--color-line) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-family: var(--font) !important;
  min-height: 42px;
}

body.airparts-theme .stateswitch,
body.airparts-theme button.stateswitch {
  display: none !important;
}

body.airparts-theme #vp_bodycontent input[type="checkbox"],
body.airparts-theme #vp_bodycontent input[type="radio"] {
  min-height: auto !important;
  height: 18px !important;
  width: 18px !important;
  padding: 0 !important;
  margin: 4px 8px 0 0 !important;
  border-radius: 3px !important;
  vertical-align: top !important;
  box-shadow: none !important;
}

body.airparts-theme #billinginfo .airparts-shipping-notice-row,
body.airparts-theme #shipinfo .airparts-shipping-notice-row,
body.airparts-theme #shipping_info .airparts-shipping-notice-row,
body.airparts-theme .customer-wrapper .airparts-shipping-notice-row {
  align-items: flex-start;
  margin-top: 12px;
  margin-bottom: 8px;
}

body.airparts-theme #billinginfo .airparts-shipping-notice-row label,
body.airparts-theme #shipinfo .airparts-shipping-notice-row label,
body.airparts-theme #shipping_info .airparts-shipping-notice-row label,
body.airparts-theme .customer-wrapper .airparts-shipping-notice-row label {
  display: block;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  line-height: 1.45;
  font-weight: 600;
  word-break: break-word;
}

body.airparts-theme #billinginfo .airparts-shipping-notice-row .col-sm-7,
body.airparts-theme #shipinfo .airparts-shipping-notice-row .col-sm-7,
body.airparts-theme #shipping_info .airparts-shipping-notice-row .col-sm-7,
body.airparts-theme .customer-wrapper .airparts-shipping-notice-row .col-sm-7 {
  display: flex;
  align-items: flex-start;
  min-height: 0;
}

body.airparts-theme #billinginfo .airparts-shipping-notice-check,
body.airparts-theme .customer-wrapper .airparts-shipping-notice-check,
body.airparts-theme #shipinfo .airparts-shipping-notice-check,
body.airparts-theme #shipping_info .airparts-shipping-notice-check {
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  margin: 6px 0 0 !important;
}

body.airparts-theme #shipinfo .airparts-careof-row label,
body.airparts-theme #shipping_info .airparts-careof-row label,
body.airparts-theme .customer-wrapper .airparts-careof-row label {
  white-space: nowrap;
}

@media (max-width: 767px) {
  body.airparts-theme #billinginfo .airparts-shipping-notice-row .col-sm-5,
  body.airparts-theme #billinginfo .airparts-shipping-notice-row .col-sm-7,
  body.airparts-theme .customer-wrapper .airparts-shipping-notice-row .col-sm-5,
  body.airparts-theme .customer-wrapper .airparts-shipping-notice-row .col-sm-7 {
    width: 100%;
    float: none;
  }
}

body.airparts-theme #vp_bodycontent input[type="submit"],
body.airparts-theme #vp_bodycontent button[type="submit"],
body.airparts-theme #vp_bodycontent .submitbtn,
body.airparts-theme #vp_bodycontent .btn-primary,
body.airparts-theme #vp_bodycontent a.submitbtn {
  background: var(--color-category-head) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  text-decoration: none !important;
}

body.airparts-theme #vp_bodycontent .btn-default,
body.airparts-theme #vp_bodycontent a.btn-default {
  border: 1px solid var(--color-category-head) !important;
  color: var(--color-category-head) !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
}

body.airparts-theme #vp_bodycontent .main-content {
  background: #fff;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-panel);
  padding: 28px;
}

body.airparts-theme .pagination > li > a,
body.airparts-theme .pagination > li > span,
body.airparts-theme .pager a {
  border-radius: 8px !important;
  color: var(--color-category-head) !important;
  border-color: var(--color-line) !important;
  margin: 0 3px;
}

body.airparts-theme .pagination > .active > a,
body.airparts-theme .pagination > .active > span {
  background: var(--color-category-head) !important;
  border-color: var(--color-category-head) !important;
  color: #fff !important;
}

/* =====================================================================
   Cart / checkout layout
   ===================================================================== */

body.airparts-theme .main-cart {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 0 40px !important;
}

body.airparts-theme .main-cart .checkoutsteps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 24px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

body.airparts-theme .main-cart .checkoutsteps .step {
  background: transparent !important;
  border: none !important;
}

body.airparts-theme .main-cart .checkoutsteps .step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e8eef5;
  border: 2px solid var(--color-line);
}

body.airparts-theme .main-cart .checkoutsteps .step.active span {
  background: var(--color-category-head);
  border-color: var(--color-category-head);
}

body.airparts-theme .main-cart .checkoutsteps .step.active span svg,
body.airparts-theme .main-cart .checkoutsteps .step.active span path,
body.airparts-theme .main-cart .checkoutsteps .step.active span polygon,
body.airparts-theme .main-cart .checkoutsteps .step.active span circle {
  fill: #fff !important;
}

body.airparts-theme .main-cart .cart-product-section,
body.airparts-theme .main-cart .cart-pricing-section {
  float: left !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

body.airparts-theme .main-cart .cart-product-section {
  width: 66.66666667% !important;
  max-width: 66.66666667% !important;
}

body.airparts-theme .main-cart .cart-pricing-section {
  width: 33.33333333% !important;
  max-width: 33.33333333% !important;
}

@media (max-width: 767px) {
  body.airparts-theme .main-cart .cart-product-section,
  body.airparts-theme .main-cart .cart-pricing-section {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
}

body.airparts-theme .main-cart .padding-15-30,
body.airparts-theme .main-cart .cart-product-section > div {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card-lg, 1rem);
  box-shadow: var(--shadow-panel, 0 4px 16px rgba(22, 64, 105, 0.08));
  padding: 24px !important;
}

body.airparts-theme .main-cart .cart-product-section .title {
  background: transparent !important;
  border: none !important;
  padding: 0 0 12px !important;
  margin: 0 0 8px !important;
  border-bottom: 1px solid var(--color-line) !important;
}

body.airparts-theme .main-cart .cart-product-section h1 {
  font-size: 26px !important;
  margin: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

body.airparts-theme .main-cart .cart-product-section h1 .pull-right {
  float: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--color-muted) !important;
}

/* Restore Bootstrap columns inside cart item rows */
body.airparts-theme .main-cart .cart-item-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0 0 16px !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--color-line);
  background: transparent !important;
}

body.airparts-theme .main-cart .cart-item-row > [class*="col-"] {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box;
}

body.airparts-theme .main-cart .cart-item-row > .col-md-3 {
  flex: 0 0 90px;
  width: 90px !important;
  max-width: 90px !important;
}

body.airparts-theme .main-cart .cart-item-row > .col-md-4 {
  flex: 1 1 auto;
  width: auto !important;
  max-width: none !important;
  min-width: 0;
}

body.airparts-theme .main-cart .cart-item-row > .col-md-5 {
  flex: 0 1 auto;
  width: auto !important;
  max-width: none !important;
  margin-left: auto;
}

body.airparts-theme .main-cart .cart-item-row img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 8px;
  border: 1px solid var(--color-line);
  display: block;
}

body.airparts-theme .main-cart .productname {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--color-navy-deep) !important;
  line-height: 1.35;
  margin-bottom: 4px;
}

body.airparts-theme .main-cart .tdprice {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--color-category-head) !important;
}

body.airparts-theme .main-cart .cart-item-row .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 !important;
  width: auto !important;
  max-width: 100%;
}

body.airparts-theme .main-cart .cart-item-row .qty,
body.airparts-theme .main-cart .cart-item-row .price,
body.airparts-theme .main-cart .cart-item-row .col-md-9,
body.airparts-theme .main-cart .cart-item-row .col-md-2,
body.airparts-theme .main-cart .cart-item-row .col-md-6 {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 4px !important;
  flex: 0 0 auto !important;
}

body.airparts-theme .main-cart .cart-item-row .col-md-9 {
  flex: 0 1 auto !important;
  min-width: 0;
}

body.airparts-theme .main-cart .cart-item-row .col-md-2 {
  flex: 0 0 auto !important;
  text-align: right;
}

body.airparts-theme .main-cart .cart-item-row .qty {
  flex: 0 0 auto !important;
}

body.airparts-theme .main-cart .cart-item-row .price {
  flex: 0 0 auto !important;
  font-weight: 700;
  color: var(--color-navy-deep);
  white-space: nowrap;
  min-width: 4.5em;
  text-align: right;
}

body.airparts-theme .main-cart .cart-item-row .rowcartbtn {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
}

body.airparts-theme .main-cart .cart-item-row .rowcartbtn .btn,
body.airparts-theme .main-cart .cart-item-row .rowcartbtn .btn-light {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--color-category-head) !important;
  color: #fff !important;
  border: none !important;
}

body.airparts-theme .main-cart .spanblock {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: auto !important;
}

body.airparts-theme .main-cart input.cartqty,
body.airparts-theme .main-cart .txtfield.cartqty {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 72px !important;
  min-height: 40px !important;
  text-align: center !important;
  border: 1px solid var(--color-line) !important;
  border-radius: 8px !important;
  padding: 8px !important;
  display: inline-block !important;
}

body.airparts-theme .main-cart .btnupdatecart,
body.airparts-theme .main-cart button.btnupdatecart,
body.airparts-theme .main-cart .btnupdatecart.form-control {
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  background: var(--color-category-head) !important;
  color: #fff !important;
  border: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

body.airparts-theme .main-cart .btn-remove,
body.airparts-theme .main-cart a.btn-remove,
body.airparts-theme .main-cart button.btn-danger,
body.airparts-theme .main-cart .cart-item-row .btn-danger,
body.airparts-theme .main-cart .fa-trash,
body.airparts-theme .main-cart [class*="remove"] .btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

body.airparts-theme .main-cart .cart-pricing-section > div,
body.airparts-theme .main-cart .cart-pricing-section .order-summary,
body.airparts-theme .main-cart .cart-pricing-section .padding-15-30 {
  background: #f8fafc !important;
  border: 1px solid var(--color-line) !important;
  border-radius: var(--radius-card-lg, 1rem) !important;
  padding: 22px !important;
  box-shadow: var(--shadow-panel, 0 4px 16px rgba(22, 64, 105, 0.08));
}

body.airparts-theme .main-cart .cart-pricing-section h2,
body.airparts-theme .main-cart .cart-pricing-section .title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--color-navy-deep) !important;
  margin: 0 0 16px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
}

body.airparts-theme .main-cart .cart-pricing-section .row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px !important;
  width: 100%;
}

body.airparts-theme .main-cart .cart-pricing-section [class*="col-"] {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  flex: 1 1 auto;
}

body.airparts-theme .main-cart .cart-pricing-section .col-xs-5,
body.airparts-theme .main-cart .cart-pricing-section .text-right,
body.airparts-theme .main-cart .cart-pricing-section .cart-subtotal {
  text-align: right !important;
  flex: 0 0 auto;
  font-weight: 700;
}

body.airparts-theme .main-cart .cart-pricing-section input[type="submit"],
body.airparts-theme .main-cart .cart-pricing-section button[type="submit"],
body.airparts-theme .main-cart .cart-pricing-section .btn-primary,
body.airparts-theme .main-cart .cart-pricing-section .submitbtn {
  width: 100% !important;
  display: block !important;
  border-radius: 999px !important;
  background: var(--color-category-head) !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  margin: 16px 0 12px !important;
}

body.airparts-theme .main-cart a {
  color: var(--color-category-head) !important;
}

body.airparts-theme .main-cart .alert,
body.airparts-theme #vp_bodycontent .alert {
  border-radius: 10px !important;
  border: 1px solid #f5c2c7 !important;
  background: #f8d7da !important;
  color: #842029 !important;
  padding: 12px 16px !important;
  margin: 0 0 16px !important;
}

/* Related / also-bought under cart — VPCart uses .row > .responsivecolumn cards */
body.airparts-theme .main-cart .padding-15-30 > .row:has(.responsivecolumn),
body.airparts-theme .main-cart .padding-15-30.no-min-height > .row,
body.airparts-theme .main-cart .homepage-widget,
body.airparts-theme #vp_bodycontent .main-cart + .row .homepage-widget,
body.airparts-theme .main-cart .row.homepage-widget {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

body.airparts-theme .main-cart .responsivecolumn,
body.airparts-theme .main-cart .responsivecolumn[class*="col-"],
body.airparts-theme .main-cart .padding-15-30 > .row > .responsivecolumn {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.airparts-theme .main-cart .featured-prod-widget,
body.airparts-theme .main-cart .randomproduct {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 12px;
  height: 100%;
  box-shadow: none;
}

body.airparts-theme .main-cart .featured-prod-widget .nailthumb img,
body.airparts-theme .main-cart .featured-prod-widget .product_thumbnail {
  width: 100% !important;
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

body.airparts-theme .main-cart .featured-prod-widget .quickview-wrapper {
  display: none !important;
}

@media (max-width: 991px) {
  body.airparts-theme .main-cart .padding-15-30 > .row:has(.responsivecolumn),
  body.airparts-theme .main-cart .padding-15-30.no-min-height > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.airparts-theme .main-cart .cart-item-row {
    display: flex !important;
    flex-wrap: wrap;
  }

  body.airparts-theme .main-cart .cart-item-row > [class*="col-"],
  body.airparts-theme .main-cart .cart-item-row > .col-md-3,
  body.airparts-theme .main-cart .cart-item-row > .col-md-4,
  body.airparts-theme .main-cart .cart-item-row > .col-md-5 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    margin-bottom: 10px;
    margin-left: 0 !important;
  }

  body.airparts-theme .main-cart .cart-item-row > .col-md-3 {
    flex: 0 0 auto !important;
    width: 90px !important;
    max-width: 90px !important;
  }

  body.airparts-theme .main-cart .cart-item-row > .col-md-4 {
    flex: 1 1 calc(100% - 100px) !important;
    width: auto !important;
    max-width: calc(100% - 100px) !important;
  }

  body.airparts-theme .main-cart .cart-item-row img {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
  }

  body.airparts-theme .main-cart .padding-15-30 > .row:has(.responsivecolumn),
  body.airparts-theme .main-cart .padding-15-30.no-min-height > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Storefront: hide CCode (Catalog ID shown above variations instead). Keep on order/cart forms. */
body.airparts-theme #productexd #product_ccode,
body.airparts-theme #productexd .product-detail-card__meta#product_ccode,
body.airparts-theme .product-card .productcode,
body.airparts-theme .product-list-row-view .productcode {
  display: none !important;
}

/* Storefront: hide Stock publicly */
body.airparts-theme #productexd #remaining_stock_parent,
body.airparts-theme #productexd .stockdisplay,
body.airparts-theme #productexd #remaining_stock {
  display: none !important;
}

/* Parent/buybox price hidden when product has child/variant rows (class set by theme.js).
   Variation-row and child-product prices are unaffected. */
body.airparts-theme.airparts-has-child-products #productexd #parentprice,
body.airparts-theme.airparts-has-child-products #productexd #retailprice,
body.airparts-theme.airparts-has-child-products #productexd #subprice {
  display: none !important;
}

/* Catalog/category images: visual only — titles + View Details remain clickable */
body.airparts-theme .product-card__media a:has(img),
body.airparts-theme .product-card__image a:has(img),
body.airparts-theme .nailthumb a:has(img),
body.airparts-theme .category-card > a:has(img),
body.airparts-theme .main-product.category-card > a:has(img),
body.airparts-theme .main-product > .nailthumb a:has(img),
body.airparts-theme .featured-prod-widget .nailthumb a:has(img),
body.airparts-theme .random-prod-img .nailthumb a:has(img) {
  pointer-events: none !important;
  cursor: default !important;
}
