@charset "UTF-8";

:root {
  --better-ink: #17212f;
  --better-muted: #687384;
  --better-line: #dce2ea;
  --better-soft: #f4f7fa;
  --better-panel: #ffffff;
  --better-accent: #f4ac3b;
  --better-accent-strong: #df8f19;
  --better-success: #238636;
  --better-danger: #c83737;
  --better-radius: 8px;
  --better-shadow: 0 14px 38px rgba(24, 34, 48, .10);
}

.listing.products.columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.listing.products.rows {
  display: block;
}

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: var(--better-panel);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-card:hover {
  border-color: rgba(244, 172, 59, .65);
  box-shadow: var(--better-shadow);
  transform: translateY(-2px);
}

.product-card-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  border-bottom: 1px solid var(--better-line);
  background: linear-gradient(180deg, #fff 0, #f7f9fb 100%);
}

.product-card-image img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 18px;
}

.product-card-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.product-card-name {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--better-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-description {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--better-muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--better-muted);
  font-size: 12px;
  font-weight: 700;
}

.product-card-meta span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.product-card-meta .is-available,
.product-status-cell .is-available,
.stock-available .fa {
  color: var(--better-success);
}

.product-card-meta .is-unavailable,
.product-status-cell .is-unavailable,
.stock-unavailable .fa,
.out-of-stock-notice {
  color: var(--better-danger);
}

.product-card-price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-height: 30px;
}

.product-card-price .price,
.product-card-price .campaign-price,
.product-price-cell .price,
.product-price-cell .campaign-price,
.price-wrapper .price,
.price-wrapper .campaign-price {
  color: var(--better-accent-strong);
  font-weight: 900;
}

.product-card-price .price,
.product-card-price .campaign-price {
  font-size: 20px;
}

.product-card-price .regular-price,
.product-price-cell .regular-price {
  color: var(--better-muted);
  font-size: 13px;
}

.product-card-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 8px;
  margin-top: auto;
  border-top: 1px solid var(--better-line);
  padding: 12px;
}

.product-card-actions form {
  margin: 0;
}

.product-card-actions .btn,
.product-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

#box-category-tree {
  position: relative;
  max-height: 68vh;
  overflow: auto;
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(24, 34, 48, .07);
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

#box-category-tree::-webkit-scrollbar {
  width: 8px;
}

#box-category-tree::-webkit-scrollbar-thumb {
  border: 2px solid #fff;
  border-radius: 999px;
  background: #cbd5e1;
}

#box-category-tree .card-header {
  border-bottom: 1px solid var(--better-line);
  background: linear-gradient(180deg, #fff 0, #f7f9fb 100%);
  padding: 16px 18px 12px;
}

#box-category-tree .card-title {
  margin: 0;
  color: var(--better-ink);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

#box-category-tree .card-body {
  padding: 8px;
}

#box-category-tree ul,
#box-category-tree li {
  min-width: 0;
}

#box-category-tree .nav.nav-pills,
#box-category-tree .nav.nav-stacked {
  display: flex;
  width: 100%;
  gap: 3px;
}

#box-category-tree .nav.nav-stacked li + li > a,
#box-category-tree .nav-pills li + li > a {
  margin: 0;
}

#box-category-tree .nav ul {
  margin: 3px 0 5px 0;
  padding-inline-start: 12px;
  border-inline-start: 2px solid #edf1f5;
}

#box-category-tree .category-tree-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  margin: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--better-ink);
  padding: 10px 10px 10px 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

#box-category-tree .category-tree-link:hover {
  background: var(--better-soft);
  color: var(--better-ink);
  text-decoration: none;
  transform: translateX(2px);
}

#box-category-tree .active > .category-tree-link {
  background: linear-gradient(90deg, rgba(244, 172, 59, .22), rgba(45, 156, 219, .10));
  color: var(--better-ink);
  box-shadow: inset 3px 0 0 var(--better-accent-strong);
}

#box-category-tree .opened > .category-tree-link {
  font-weight: 800;
}

#box-category-tree .category-tree-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

#box-category-tree .category-tree-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--better-muted);
}

#box-category-tree .category-tree-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  border: 1px solid #e5eaf1;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--better-muted);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

#box-category-tree .category-tree-arrow {
  color: #9aa4b2;
  font-size: 14px;
}

#box-category-tree .active > .category-tree-link .category-tree-count {
  border-color: rgba(223, 143, 25, .35);
  background: #fff;
  color: var(--better-accent-strong);
}

#box-recently-viewed-products {
  position: relative;
  clear: both;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 34, 48, .06);
}

#box-recently-viewed-products .card-header {
  border-bottom: 1px solid var(--better-line);
  background: #f8fafc;
  padding: 12px 14px;
}

#box-recently-viewed-products .card-title {
  margin: 0;
  color: var(--better-ink);
  font-size: 15px;
  font-weight: 900;
}

#box-recently-viewed-products .card-body {
  padding: 12px;
}

#box-recently-viewed-products .listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 10px;
}

#box-recently-viewed-products .link {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #fff;
}

#box-recently-viewed-products .link img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  padding: 5px;
}

.products-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: #fff;
}

.quick-buy-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.quick-buy-table thead th {
  border-bottom: 1px solid var(--better-line);
  background: var(--better-soft);
  color: var(--better-muted);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-buy-table thead th:not(:last-child),
.quick-buy-table tbody td:not(:last-child) {
  border-right: 1px solid var(--better-line);
}

.quick-buy-table tbody td {
  border-bottom: 1px solid var(--better-line);
  padding: 14px;
  vertical-align: middle;
}

.quick-buy-table tbody tr:last-child td {
  border-bottom: 0;
}

.quick-buy-table tbody tr:hover td {
  background: #fbfcfe;
}

.product-image-cell {
  width: 118px;
  padding: 8px !important;
}

.table-product-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px;
  height: 86px;
  border-radius: 7px;
  background: var(--better-soft);
}

.table-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.product-info-cell {
  min-width: 260px;
}

.table-product-name {
  display: block;
  margin-bottom: 5px;
  color: var(--better-ink);
  font-size: 15px;
  font-weight: 900;
}

.table-product-description {
  display: -webkit-box;
  max-width: 460px;
  overflow: hidden;
  color: var(--better-muted);
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.table-product-code,
.tax-note {
  color: var(--better-muted);
  font-size: 12px;
}

.product-price-cell {
  width: 150px;
  white-space: nowrap;
}

.product-price-cell .price,
.product-price-cell .campaign-price {
  display: block;
  font-size: 18px;
}

.tax-note {
  display: block;
  margin-top: 3px;
  font-size: 11px;
}

.product-status-cell {
  width: 140px;
  white-space: nowrap;
}

.product-status-cell span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 800;
}

.product-purchase-cell {
  width: 300px;
}

.quick-buy-form {
  display: grid;
  grid-template-columns: 124px minmax(140px, 1fr);
  gap: 8px;
  align-items: center;
  margin: 0;
}

.quick-buy-quantity-control {
  display: inline-flex;
  width: 124px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--better-line);
  border-radius: 8px;
  background: #fff;
}

.quick-buy-qty-btn {
  flex: 0 0 36px;
  width: 36px;
  min-height: 40px;
  border: 0;
  background: var(--better-soft);
  color: var(--better-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
  transition: background .16s ease, color .16s ease;
}

.quick-buy-qty-btn:hover {
  background: var(--better-accent);
  color: #fff;
}

.quick-buy-quantity {
  width: 52px;
  min-height: 40px;
  border: 0 !important;
  border-inline: 1px solid var(--better-line) !important;
  border-radius: 0;
  text-align: center;
  font-weight: 900;
}

.quick-buy-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.industrial-product {
  padding-top: 0;
}

.product-hero-panel,
.product-data-panel {
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: var(--better-panel);
  box-shadow: 0 8px 24px rgba(24, 34, 48, .06);
}

.product-hero-panel {
  display: grid;
  grid-template-columns: minmax(420px, 52%) minmax(360px, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  padding: clamp(16px, 2.5vw, 28px);
}

.product-gallery,
.product-summary {
  min-width: 0;
}

.industrial-product .product-summary {
  overflow: hidden;
}

.industrial-product .single-product-slider {
  width: 100%;
  max-width: none;
  display: block;
}

.single-product-slider .slider-product {
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: #fff;
  overflow: hidden;
}

.single-product-slider .image-wrapper {
  display: grid;
  place-items: center;
  min-height: clamp(300px, 32vw, 480px);
  background: #fff;
}

.single-product-slider .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.slider-for {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.slider-for .image-wrapper {
  min-height: 72px;
  border: 1px solid var(--better-line);
  border-radius: 6px;
  cursor: pointer;
}

.info-images {
  margin: 12px 0 0;
  color: var(--better-muted);
  font-size: 13px;
}

.summary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--better-line);
  padding-bottom: 18px;
}

.summary-heading .eyebrow {
  margin: 0 0 5px;
  color: var(--better-accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.summary-heading .title {
  margin: 0;
  color: var(--better-ink);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.manufacturer img {
  max-width: 120px;
  max-height: 58px;
  width: auto;
  margin: 0;
  object-fit: contain;
}

.short-description {
  margin: 18px 0;
  color: #3d4858;
}

.product-meta-grid,
.fulfillment-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.product-meta-grid > div,
.fulfillment-strip > div {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--better-line);
  border-radius: 7px;
  background: var(--better-soft);
  padding: 10px 12px;
}

.industrial-product .fulfillment-strip > div {
  min-width: 0;
}

.product-meta-grid span,
.fulfillment-strip span {
  display: block;
  color: var(--better-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-meta-grid strong,
.fulfillment-strip strong {
  color: var(--better-ink);
}

.buy-panel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--better-line);
  border-radius: var(--better-radius);
  background: linear-gradient(180deg, #fff 0, #fbfcfe 100%);
  padding: clamp(14px, 2vw, 22px);
  box-shadow: 0 18px 46px rgba(24, 34, 48, .08);
}

.buy-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--better-accent), #2d9cdb);
}

#box-product .buy-panel form[name="buy_now_form"] {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.industrial-product .options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.industrial-product .options .form-group {
  margin: 0;
}

.industrial-product .options label {
  display: block;
  margin-bottom: 6px;
  color: var(--better-ink);
  font-weight: 700;
}

.price-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  min-width: 0;
}

.price-wrapper .price,
.price-wrapper .campaign-price {
  color: var(--better-accent-strong);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.price-wrapper del {
  color: var(--better-muted);
  font-size: 18px;
}

.price-wrapper small,
.tax,
.offer-expires,
.recommended-price,
.stock-note,
.stock-notice {
  color: var(--better-muted);
}

.stock-note,
.stock-notice {
  font-size: 14px;
}

.tax {
  margin-top: 4px;
}

.purchase-row {
  display: grid;
  grid-template-columns: auto minmax(174px, 224px) minmax(190px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  min-width: 0;
}

.quantity-label {
  align-self: center;
  color: var(--better-muted);
  font-weight: 800;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--better-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

.qty-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: var(--better-soft);
  color: var(--better-ink);
  font-size: 18px;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}

.qty-btn:hover {
  background: var(--better-accent);
  color: #fff;
}

.qty-input {
  min-width: 64px;
  width: 100%;
  border: 0 !important;
  border-radius: 0;
  text-align: center;
  font-weight: 800;
}

.qty-unit {
  padding: 0 10px;
  color: var(--better-muted);
  white-space: nowrap;
}

.add-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}

.social-bookmarks {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social-bookmarks a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--better-line);
  border-radius: 7px;
  background: #fff;
}

.product-data-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
  padding: clamp(16px, 2.5vw, 26px);
}

.product-data-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.technical-data table {
  width: 100%;
  border-collapse: collapse;
}

.technical-data td,
.technical-data th {
  border-bottom: 1px solid var(--better-line);
  padding: 10px;
  text-align: start;
}

@media (max-width: 1100px) {
  .product-hero-panel,
  .product-data-panel {
    grid-template-columns: 1fr;
  }

  .purchase-row {
    grid-template-columns: auto minmax(170px, 220px) minmax(180px, 1fr);
  }
}

@media (max-width: 991px) {
  #box-category-tree {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .buy-panel {
    padding: 14px;
  }

  .price-wrapper {
    gap: 6px;
  }

  .price-wrapper .price,
  .price-wrapper .campaign-price {
    font-size: clamp(30px, 10vw, 38px);
  }

  .purchase-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quantity-label {
    align-self: end;
  }

  .quantity-control,
  .add-cart-button {
    width: 100%;
  }

  .add-cart-button {
    min-height: 48px;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .listing.products.rows {
    display: block;
  }

  .listing.products.rows .products-table-scroll {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .listing.products.rows .quick-buy-table,
  .listing.products.rows .quick-buy-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .listing.products.rows .quick-buy-table thead {
    display: none;
  }

  .listing.products.rows .product-table-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas:
      "image info"
      "price price"
      "status status"
      "purchase purchase";
    gap: 0 12px;
    margin-bottom: 12px;
    border: 1px solid var(--better-line);
    border-radius: var(--better-radius);
    background: #fff;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 10px 26px rgba(24, 34, 48, .06);
  }

  .listing.products.rows .quick-buy-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .listing.products.rows .quick-buy-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    border: 0;
    padding: 0 !important;
    white-space: normal;
  }

  .listing.products.rows .quick-buy-table tbody tr:hover td {
    background: transparent;
  }

  .listing.products.rows .product-image-cell {
    grid-area: image;
    padding: 12px 0 10px 12px !important;
  }

  .listing.products.rows .table-product-image {
    width: 86px;
    height: 86px;
  }

  .listing.products.rows .product-info-cell {
    grid-area: info;
    align-self: center;
    padding: 12px 12px 10px 0 !important;
  }

  .listing.products.rows .table-product-name {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.28;
  }

  .listing.products.rows .table-product-description {
    max-width: none;
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .listing.products.rows .product-price-cell {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 2px 12px;
    text-align: end;
    border-top: 1px solid var(--better-line);
    background: #fbfcfe;
    padding: 11px 12px !important;
  }

  .listing.products.rows .product-price-cell {
    grid-area: price;
  }

  .listing.products.rows .product-status-cell {
    display: flex;
    grid-area: status;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--better-line);
    background: #fff;
    padding: 11px 12px !important;
  }

  .listing.products.rows .product-price-cell::before,
  .listing.products.rows .product-status-cell::before {
    color: var(--better-muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .listing.products.rows .product-price-cell::before {
    grid-column: 1;
    grid-row: 1;
    align-self: baseline;
    content: attr(data-label);
  }

  .listing.products.rows .product-status-cell::before {
    content: attr(data-label);
  }

  .listing.products.rows .product-price-cell del,
  .listing.products.rows .product-price-cell .price,
  .listing.products.rows .product-price-cell .campaign-price,
  .listing.products.rows .product-price-cell .tax-note {
    grid-column: 2;
    justify-self: end;
  }

  .listing.products.rows .product-price-cell .price,
  .listing.products.rows .product-price-cell .campaign-price {
    grid-row: 1;
    font-size: 20px;
    line-height: 1.1;
    text-align: right;
  }

  .listing.products.rows .product-price-cell .tax-note {
    grid-row: 2;
    text-align: right;
  }

  .listing.products.rows .product-purchase-cell {
    grid-area: purchase;
    background: #fbfcfe;
    padding: 12px !important;
  }

  .listing.products.rows .quick-buy-form {
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 10px;
  }

  .listing.products.rows .quick-buy-quantity-control {
    width: 124px;
  }

  .listing.products.rows .quick-buy-quantity {
    width: 52px;
    min-height: 46px;
    text-align: center;
  }

  .listing.products.rows .quick-buy-qty-btn {
    min-height: 46px;
  }

  .listing.products.rows .quick-buy-button {
    min-height: 46px;
    white-space: normal;
  }
}

@media (max-width: 575px) {
  .listing.products.columns {
    grid-template-columns: 1fr;
  }

  .product-card-actions,
  .quick-buy-form,
  .summary-heading {
    grid-template-columns: 1fr;
  }
}
