/**
 * Classic Child Theme - Custom Styles
 * Author: Waldemar Syc, WebSyc
 */


/* B2B Layout */
:root {
  --b2b-primary: #1f2f53;
  --b2b-primary-soft: #e2e6f1;
  --b2b-primary-contrast: #ffffff;
  --b2b-accent: #ac8f48;
  --b2b-accent-soft: #f5e8d0;
}

a{
  color: var(--b2b-primary);
}
a:hover{
  color: var(--b2b-accent);
}
a:focus, a:active{
  color: initial;
  text-decoration: none;
}
.b2b-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.b2b-layout {
  background-color: #f4f6fb;
  font-family: "Inter", "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.b2b-app {
  min-height: 100vh;
  padding: 24px;
}

.b2b-app__grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.b2b-app__sidebar {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.b2b-app__main {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.b2b-app__content {
  margin-top: 24px;
}

.b2b-page {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(31, 47, 83, 0.08);
}

.b2b-page__container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.b2b-page__breadcrumb {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.b2b-page__breadcrumb .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.b2b-page__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.b2b-page__column {
  background: #fff;
}

.b2b-page__column--left,
.b2b-page__column--right {
  flex: 0 0 260px;
}

.b2b-page__column--main {
  flex: 1 1 0%;
  min-width: 0;
}

.b2b-page__column:empty {
  display: none;
}

/* Sidebar */
@media (max-width: 768px) {
  .b2b-sidebar__brand {
    text-align: center;
  }
}
.b2b-sidebar__logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--b2b-primary);
  text-decoration: none;
  display: inline-block;
}

.b2b-sidebar__logo-img {
  max-width: 100%;
  height: auto;
  max-height: 75px;
  display: block;
  object-fit: contain;
}

.b2b-sidebar__nav {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.b2b-sidebar__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.b2b-sidebar__link .b2b-icon {
  font-size: 20px;
}

.b2b-sidebar__link.is-active {
  background-color: var(--b2b-primary-soft);
  color: var(--b2b-primary);
}

.b2b-sidebar__link:hover {
  background-color: var(--b2b-accent-soft);
  color: var(--b2b-accent);
}

.b2b-sidebar__counter {
  margin-left: auto;
  background: var(--b2b-accent);
  color: #fff;
  border-radius: 10px;
  min-width: 28px;
  text-align: center;
  font-size: 12px;
  padding: 2px 6px;
}

.b2b-sidebar__user {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.b2b-sidebar__user-name {
  font-weight: 600;
  color: #0f172a;
}

.b2b-sidebar__user-company,
.b2b-sidebar__user-email {
  color: #64748b;
  margin: 2px 0;
  font-size: 13px;
}

.b2b-sidebar__logout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--b2b-accent);
}

/* Topbar */
.b2b-topbar {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.b2b-topbar__left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.b2b-topbar__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  font-size: 12px;
  margin: 0;
}

.b2b-topbar__title {
  margin: 0;
  font-size: 26px;
  color: var(--b2b-primary);
}

.b2b-topbar__search {
  background: #f8fafc;
  border-radius: 50px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-topbar__search input {
  border: none;
  background: transparent;
  min-width: 280px;
  font-size: 14px;
}

.b2b-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.b2b-topbar__button {
  background: var(--b2b-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
}

.b2b-topbar__button:hover {
  background: var(--b2b-accent);
  color: var(--b2b-primary-contrast);
}

/* Domyślny koszyk PrestaShop stylizowany na B2B */
.b2b-topbar__cart-wrapper #_desktop_cart {
  margin: 0;
  padding: 0;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart {
  margin: 0;
  padding: 0;
  background: transparent;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart .header {
  background: var(--b2b-primary-soft);
  border-radius: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.inactive .header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--b2b-primary);
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header {
  padding: 0;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--b2b-primary);
  text-decoration: none;
  border-radius: 14px;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header:hover,
.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header a:hover {
  background: var(--b2b-accent);
  color: var(--b2b-primary-contrast);
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart .header .material-icons {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart .cart-products-count {
  background: var(--b2b-primary);
  color: #fff;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  margin-left: 4px;
}

.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header:hover .cart-products-count,
.b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header a:hover .cart-products-count {
  background: #fff;
  color: var(--b2b-accent);
}

.b2b-topbar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--b2b-accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

/* Dashboard */
.b2b-dashboard__intro {
  margin-bottom: 24px;
}

.b2b-dashboard__welcome {
  color: #94a3b8;
  margin-bottom: 4px;
}

.b2b-dashboard__quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.b2b-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.b2b-card--action {
  display: flex;
  align-items: center;
  gap: 25px;
  text-decoration: none;
  color: inherit;
}

.b2b-card__icon .b2b-icon {
  font-size: 28px;
  color: var(--b2b-accent);
}

.b2b-card__label {
  font-weight: 600;
  margin: 0;
}

.b2b-card__description {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 14px;
}

.b2b-dashboard__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.b2b-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.b2b-card__header h3 {
  margin: 0;
}

.b2b-card__header a {
  color: var(--b2b-accent);
}
.b2b-card__header a:hover {
  color: var(--b2b-primary);
}

.b2b-table {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.b2b-table__row {
  display: grid;
  grid-template-columns: 140px 120px 120px 300px 80px;
  gap: 12px;
  font-size: 14px;
  align-items: flex-start;
  padding-bottom: 15px;
  padding-top: 15px;
  border-bottom: 1px solid #e8eafe;
}

.b2b-table__row--head {
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 12px;
}

.b2b-status {
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  background: rgba(172, 143, 72, 0.12);
  color: #715524;
  border: 1px solid rgba(172, 143, 72, 0.4);
}

.b2b-status::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-color, #10b981);
  margin-right: 6px;
}

.b2b-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b2b-stats__item p {
  color: #94a3b8;
}

.b2b-stats__item strong {
  font-size: 32px;
  color: var(--b2b-primary);
}

.b2b-popular {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.b2b-popular__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
}

.b2b-popular__item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
}

/* Catalog */
.b2b-catalog__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.b2b-catalog__filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.b2b-catalog__filters a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--b2b-primary-soft);
  text-decoration: none;
  color: #475569;
  font-weight: 500;
}

.b2b-catalog__filters a.is-active {
  background: var(--b2b-primary);
  border-color: var(--b2b-primary);
  color: #fff;
}

.b2b-catalog__filters a:hover {
  border-color: var(--b2b-accent);
  color: var(--b2b-accent);
}

.b2b-catalog__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.b2b-catalog__summary #js-product-list-top{
  width: 100%;
  border-bottom: 1px solid #e2e8f0;
}
.b2b-catalog__grid .products.b2b-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.b2b-catalog__grid .products.b2b-grid .product {
  width: 100%;
}

.b2b-product {
  background: #fff;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.b2b-product:hover {
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  transform: translateY(-5px);
}

.b2b-card-product {
  padding: 0;
}

body#category .b2b-product__media {
  position: relative;
  height: 300px;
}
body#category .b2b-product__image {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}
body#category .b2b-product__image > picture{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100%;
  height: 100%;
}
.b2b-app .b2b-product__image img {
  width: 100%;
  height: auto;
}


.b2b-product__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
}

.b2b-product__badge {
  background: var(--b2b-accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.b2b-product__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

.b2b-product__title {
  margin: 8px 0;
  font-size: 18px;
}

.b2b-product__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.b2b-product__price-old {
  text-decoration: line-through;
  color: #94a3b8;
}

.b2b-product__price-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--b2b-primary);
}

.b2b-product__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  gap: 12px;
}

.b2b-product__cta .b2b-btn {
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.b2b-product__options {
  margin: 12px 0;
}

.b2b-product__options .variant-links {
  display: flex;
  gap: 8px;
}

.b2b-btn {
  background: var(--b2b-primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

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

.b2b-btn--ghost {
  background: transparent;
  color: var(--b2b-accent);
  border: 1px solid var(--b2b-accent);
}

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

@media (max-width: 1024px) {
  .b2b-app__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Sidebar fixes for mobile */
  .b2b-app__sidebar {
    padding: 16px;
    margin-bottom: 24px;
    border-radius: 0 0 20px 20px;
  }

  .b2b-sidebar__nav {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
    margin: 16px 0;
    gap: 8px;
  }

  .b2b-sidebar__link {
    white-space: normal;
    width: 100%;
  }

  /* Topbar responsiveness */
  .b2b-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .b2b-topbar__left {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .b2b-topbar__titles {
    width: 100%;
  }

  .b2b-topbar__search {
    width: 100%;
    margin-top: 8px;
  }

  .b2b-topbar__search input {
    min-width: 0;
    width: 100%;
  }

  .b2b-topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .b2b-topbar__actions .b2b-topbar__button,
  .b2b-topbar__cart-wrapper #_desktop_cart .blockcart .header,
  .b2b-topbar__cart-wrapper #_desktop_cart .blockcart.active .header a {
    justify-content: center;
    width: 100%;
  }

  .b2b-topbar__avatar {
    margin: 0 auto;
  }

  .b2b-dashboard__grid {
    grid-template-columns: 1fr;
  }

  .b2b-page {
    padding: 20px;
  }

  .b2b-page__column--left,
  .b2b-page__column--right,
  .b2b-page__column--main {
    flex: 1 1 100%;
  }

  /* Fix for dashboard layout overflow issues */
  .b2b-card {
    min-width: 0; /* Allow grid items to shrink below content size */
    overflow: hidden; /* Prevent content from spilling out */
  }

  .b2b-card--orders {
    overflow-x: auto; /* Enable scroll specifically for orders card if needed */
  }

  /* Table responsiveness */
  .b2b-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    width: 100%; /* Ensure it takes full width */
    max-width: 100vw; /* Prevent stretching parent containers */
  }

  /* Fix for dashboard intro stretching */
  .b2b-dashboard__intro,
  .b2b-dashboard__quick-actions {
    max-width: 100%;
  }

  /* Fix for any other container that might be stretched */
  .b2b-app__main,
  .b2b-app__content,
  .b2b-page {
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll on main containers */
  }

  .b2b-table__row {
    min-width: 800px;
  }

  /* Catalog responsiveness */
  .b2b-catalog__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .b2b-catalog__filters {
    flex-wrap: wrap;
  }

}

/* B2B Cart Styles */
body#cart #main .product-line-grid{
  display: flex;
  align-items: center;
}
.b2b-layout .cart-grid {
  margin: 0;
}

.b2b-layout .cart-container,
.b2b-layout .cart-summary {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: none;
  padding: 24px;
}

.b2b-layout .cart-container .card-block {
  padding: 0;
  margin-bottom: 20px;
}

.b2b-layout .cart-container h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--b2b-primary);
  margin: 0;
}

.b2b-layout .cart-container .separator {
  margin: 20px 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

.b2b-layout .cart-overview .cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.b2b-layout .cart-overview .cart-item {
  padding: 20px 0;
  border-bottom: 1px solid #edf2f7;
}

/* .b2b-layout .cart-overview .cart-item:last-child {
  border-bottom: none;
} */

.b2b-layout .cart-summary .card-block {
  padding: 0;
}

.b2b-layout .cart-detailed-totals {
  margin: 20px 0;
}

.b2b-layout .cart-detailed-totals .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 5px!important
}

.b2b-layout .cart-detailed-totals .cart-summary-line:last-child {
  border-bottom: none;
  font-weight: 600;
  font-size: 18px;
  color: var(--b2b-primary);
  margin-top: 8px;
}

.b2b-layout .cart-detailed-totals .cart-summary-line .label {
  color: #64748b;
  font-weight: 400;
  margin: 0;
}

.b2b-layout .cart-detailed-totals .cart-summary-line .value {
  color: var(--b2b-primary);
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
  margin-left: auto;
}

.b2b-layout .cart-detailed-totals .cart-summary-line:last-child .value {
  font-weight: 600;
}

.b2b-layout .cart-summary .cart-summary-line small {
  color: #94a3b8;
  font-weight: 500;
}

.b2b-layout .cart-detailed-actions {
  margin-top: 24px;
}

.b2b-layout .cart-detailed-actions .btn-primary {
  background: var(--b2b-primary);
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 600;
  width: 100%;
  transition: background 0.2s ease;
}

.b2b-layout .cart-detailed-actions .btn-primary:hover {
  background: var(--b2b-accent);
}

.b2b-layout .label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--b2b-primary);
  text-decoration: none;
  font-weight: 500;
  /* margin-top: 20px; */
  transition: color 0.2s ease;
}

.b2b-layout .label:hover {
  color: var(--b2b-accent);
}

.b2b-layout .label .fa {
  font-size: 16px;
}

.b2b-layout #main .cart-grid-right .block-reassurance {
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid #e2e8f0;
}

.b2b-layout #main .cart-grid-right .block-reassurance-item {
  padding: 12px 0;
  border-bottom: 1px solid #f4f6fb;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
}

.b2b-layout #main .cart-grid-right .block-reassurance-item:last-child {
  border-bottom: none;
}

.b2b-layout #main .cart-grid-right .block-reassurance-item .material-icons,
.b2b-layout #main .cart-grid-right .block-reassurance-item .b2b-icon {
  color: var(--b2b-accent);
  font-size: 18px;
}

/* Cart Modal */
#blockcart-modal .cart-content .cart-content-btn .btn{
  font-size: 0.8rem;
  border-radius: 12px;
}

/* B2B Order Detail Styles */
.b2b-layout #order-infos .box,
.b2b-layout .box,
#order-infos .box,
.page-content .box {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: none;
  padding: 24px;
  margin-bottom: 24px;
}

.page-content {
  background: transparent;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
}

.page-customer-account #content,
.page-contact #content{
  padding: 24px;
  border-radius: 20px;
  background: #fff;
}
.page-contact #content .contact-form{
  padding: 0;
}

.page-content.card {
  background: transparent;
  border: none;
  box-shadow: none;
}

.b2b-layout #order-infos .box strong,
#order-infos .box strong,
.page-content .box strong {
  color: var(--b2b-primary);
  font-size: 18px;
  font-weight: 600;
}

.b2b-layout #order-infos .box ul,
#order-infos .box ul,
.page-content .box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.b2b-layout #order-infos .box ul li,
#order-infos .box ul li,
.page-content .box ul li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

.b2b-layout #order-infos .box ul li:last-child,
#order-infos .box ul li:last-child,
.page-content .box ul li:last-child {
  border-bottom: none;
}

.b2b-layout #order-infos .box ul li strong,
#order-infos .box ul li strong,
.page-content .box ul li strong {
  color: var(--b2b-primary);
  margin-right: 12px;
  font-weight: 600;
  min-width: 140px;
  flex-shrink: 0;
}

.b2b-layout .button-primary,
.button-primary {
  background: var(--b2b-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.b2b-layout .button-primary:hover,
.button-primary:hover {
  background: var(--b2b-accent);
  color: #fff;
}

.b2b-layout .table,
.page-content .table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: #fff;
}

.b2b-layout .table thead th,
.page-content .table thead th {
  background: var(--b2b-primary-soft);
  color: var(--b2b-primary);
  font-weight: 600;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--b2b-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.b2b-layout .table tbody td,
.page-content .table tbody td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 15px;
  vertical-align: middle;
}

.b2b-layout .table tbody tr:last-child td,
.page-content .table tbody tr:last-child td {
  border-bottom: none;
}

.b2b-layout .table tbody tr:hover,
.page-content .table tbody tr:hover {
  background: #f8fafc;
}

.b2b-layout .label-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.b2b-layout .addresses,
.addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

.b2b-layout .addresses .box,
.addresses .box {
  margin: 0;
}

.b2b-layout .addresses h4,
.addresses h4 {
  color: var(--b2b-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--b2b-primary-soft);
}

.b2b-layout .addresses address,
.addresses address {
  font-style: normal;
  line-height: 1.8;
  color: #475569;
  font-size: 15px;
}

.b2b-layout #order-history,
#order-history {
  margin-top: 24px;
}

.b2b-layout #order-history h3,
#order-history h3 {
  color: var(--b2b-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.b2b-layout .history-lines .history-line,
.history-lines .history-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.b2b-layout .history-lines .history-line:last-child,
.history-lines .history-line:last-child {
  border-bottom: none;
}

.b2b-layout .history-lines .history-line .date,
.history-lines .history-line .date {
  color: #64748b;
  font-size: 14px;
}

.b2b-layout .history-lines .history-line .state,
.history-lines .history-line .state {
  flex-shrink: 0;
}
body#history .b2b-app__content .label-pill{
  color: #fff;
}
/* B2B Checkout Styles */
/* body#checkout #content {
  padding: 0;
}

body#checkout .cart-grid-body,
body#checkout .cart-grid-right {
  padding: 0 12px;
}

body#checkout .cart-grid-right {
  position: sticky;
  top: 20px;
  align-self: start;
} */

body#checkout #js-checkout-summary {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: none;
  padding: 0;
  margin-bottom: 24px;
}

/* body#checkout #js-checkout-summary .card-block {
  padding: 24px;
} */

body#checkout .checkout-step {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: none;
  padding: 24px;
  margin-bottom: 24px;
}

body#checkout .checkout-step .step-title {
  color: var(--b2b-primary);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 8px!important;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: none!important;
  border-TOP: none!important;
}

body#checkout .checkout-step .step-title .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--b2b-primary-soft);
  color: var(--b2b-primary);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

body#checkout .checkout-step.-complete .step-title .step-number {
  background: var(--b2b-primary);
  color: #fff;
}

body#checkout .checkout-step.-current .step-title .step-number {
  background: var(--b2b-accent)!important;
  background-color: var(--b2b-accent)!important;
  color: #fff;
}

body#checkout .checkout-step .step-title .material-icons.done {
  color: var(--b2b-primary);
  font-size: 24px;
  display: none;
}

body#checkout .checkout-step.-complete .step-title .material-icons.done {
  display: inline-block;
}

body#checkout .checkout-step .step-title .step-edit {
  margin-left: auto;
  font-size: 14px;
  color: var(--b2b-accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

body#checkout .checkout-step .step-title .step-edit:hover {
  color: var(--b2b-primary);
}

body#checkout .checkout-step .step-title .step-edit .material-icons {
  font-size: 18px;
}

body#checkout .checkout-step .content {
  padding-top: 0;
}

body#checkout .cart-summary-totals {
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 20px 20px;
}

body#checkout .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.5;
}

body#checkout .cart-summary-line .label {
  color: #64748b;
  font-weight: 400;
  margin: 0;
}

body#checkout .cart-summary-line .value {
  color: var(--b2b-primary);
  font-weight: 500;
  text-align: right;
  flex-shrink: 0;
  margin-left: auto;
}

body#checkout .cart-summary-line.cart-total {
  font-weight: 600;
  font-size: 18px;
  color: var(--b2b-primary);
  margin-top: 8px;
}

body#checkout .cart-summary-line.cart-total .value {
  font-weight: 600;
}

body#checkout .cart-summary-line .label.sub,
body#checkout .cart-summary-line .value.sub {
  font-size: 14px;
  color: #94a3b8;
}

body#checkout .cart-summary-products {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 16px;
}

body#checkout .cart-summary-products .media {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

body#checkout .cart-summary-products .media:last-child {
  border-bottom: none;
}

body#checkout .cart-summary-products .media-body {
  font-size: 14px;
  color: #475569;
}

body#checkout .cart-summary-products .media-body .product-name {
  font-weight: 500;
  color: var(--b2b-primary);
  margin-bottom: 4px;
}

body#checkout .cart-summary-products .media-body .product-price {
  color: #64748b;
  font-size: 13px;
}

body#checkout .cart-summary-top .cart-summary-line {
  padding: 8px 0;
  font-size: 14px;
}

body#checkout .cart-summary-subtotals {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

body#checkout .cart-summary-subtotals .cart-summary-line {
  padding: 8px 0;
  font-size: 14px;
}

body#checkout .form-control,
body#checkout .form-control:focus {
  border-color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body#checkout .form-control:focus {
  border-color: var(--b2b-primary);
  box-shadow: 0 0 0 3px rgba(31, 47, 83, 0.1);
}

body#checkout .btn-primary,
body#checkout .continue {
  background: var(--b2b-primary);
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-weight: 600;
  transition: background 0.2s ease;
}

body#checkout .btn-primary:hover,
body#checkout .continue:hover {
  background: var(--b2b-accent);
}

body#checkout .btn-primary:disabled,
body#checkout .continue:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

body#checkout #main .cart-grid-right .block-reassurance {
  margin-top: 20px;
  padding: 16px 0 0;
  border-top: 1px solid #e2e8f0;
}

body#checkout #main .cart-grid-right .block-reassurance-item {
  padding: 12px 0;
  border-bottom: 1px solid #f4f6fb;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
}

body#checkout #main .cart-grid-right .block-reassurance-item:last-child {
  border-bottom: none;
}

body#checkout #main .cart-grid-right .block-reassurance-item .material-icons,
body#checkout #main .cart-grid-right .block-reassurance-item .b2b-icon {
  color: var(--b2b-accent);
  font-size: 18px;
}
body#checkout .cart-grid-right .card .cart-summary-subtotals-container {
  padding: 1rem 0;
  border-top: none!important;
  border-bottom: none!important;
}

/* B2B Product Page */
body#product #main {
  padding: 0;
}

body#product .product-container {
  display: flex;
  margin: 0;
  gap: 25px;
  align-items: start;
}
body#product .product-container::after{
  display: none!important;
}
body#product .product-container .page-content#content{
  max-width: none;
}

body#product .product-container > [class*='col-'] {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  border: none;
  padding: 30px;
}

/*
body#product .product-cover {
  border-radius: 24px;
  overflow: hidden;
  background: #f8fafc;
  padding: 16px;
} */

body#product .product-cover img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

body#product .js-qv-product-images,
body#product .js-modal-product-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

body#product .js-qv-product-images .thumb-container,
body#product .js-modal-product-images .thumb-container {
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body#product .js-qv-product-images .thumb-container .thumb,
body#product .js-modal-product-images .thumb-container .thumb {
  border-radius: 10px;
  width: 100%;
  height: auto;
}

body#product .js-qv-product-images .thumb-container .thumb.selected,
body#product .js-modal-product-images .thumb-container .thumb.selected {
  border-color: transparent;
  box-shadow: 0 8px 15px rgba(15, 23, 42, 0.15);
}

body#product .js-qv-product-images .thumb-container:hover,
body#product .js-modal-product-images .thumb-container:hover {
  border-color: var(--b2b-primary-soft);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Modal specific overrides */
body#product #product-modal .mask {
  overflow: visible;
  height: auto;
  margin: 0;
}

body#product #product-modal .arrows {
  display: none; /* Hide slider arrows as we use grid */
}

body#product h1.h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--b2b-primary);
  margin-bottom: 16px;
}

/* body#product .product-prices {
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
} */

body#product .current-price span {
  font-size: 28px;
  font-weight: 700;
  color: var(--b2b-primary);
}

body#product .product-discounts,
body#product .product-pack {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
body#product .product-configurator{
  border: none;
  padding: 15px;
  margin: 0;
  background: none;
}
body#product .product-configurator__label{
  text-align: left;
  font-size: 1rem;
}
body#product .product-configurator__toggle{
  justify-content: left;
}
body#product .product-configurator__select, body#product .product-configurator__input{
  background-color: #fff;
}

body#product .product-prices{
  display: flex;
  gap: 15px;
  align-items: center;
}
/* body#product .product-information {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
} */

body#product .product-description {
  color: #475569;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

body#product .product-actions {
  margin-top: 20px;
}

body#product .product-actions form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body#product .product-variants,
body#product .product-variants > * {
  width: 100%;
}

body#product .product-variants .control-label,
body#product .product-variants label {
  color: var(--b2b-primary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

body#product .product-variants select,
body#product .product-variants .form-control-select,
body#product .product-variants input[type='text'] {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  font-size: 15px;
  color: #1e293b;
}

body#product .product-variants select:focus,
body#product .product-variants input:focus {
  border-color: var(--b2b-primary);
  box-shadow: 0 0 0 3px rgba(31, 47, 83, 0.1);
}

body#product .product-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

body#product .product-add-to-cart .add-to-cart {
  flex: 1 0 220px;
}

body#product #quantity_wanted {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 12px;
  max-width: 120px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--b2b-primary);
}

body#product #quantity_wanted:focus {
  border-color: var(--b2b-primary);
  box-shadow: 0 0 0 3px rgba(31, 47, 83, 0.1);
}

body#product .product-add-to-cart .product-quantity {
  display: flex;
  align-items: center;
  gap: 16px;
}

body#product .product-add-to-cart .product-quantity .input-group {
  position: relative;
  width: 160px;
}

/* body#product .product-add-to-cart .product-quantity .qty {
  width: 100%;
  padding: 14px 54px 14px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 16px;
  color: var(--b2b-primary);
  text-align: center;
} */

body#product .product-add-to-cart .product-quantity .input-group-btn-vertical {
  /* position: absolute;
  top: 6px;
  right: 6px; */
  width: 42px;
  height: calc(100% - 12px);
  border-radius: 12px;
  background: transparent;
  float: none;
  /* display: flex;
  flex-direction: column; */
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
body#product .product-add-to-cart .product-quantity .input-group-btn-vertical i{
  position: static;
}
body#product .product-add-to-cart .input-group-btn-vertical .btn.btn:first-child{
  border-radius: 12px 12px 0 0 ;
  background: var(--b2b-primary);
}
body#product .product-add-to-cart .input-group-btn-vertical .btn.btn:last-child{
  border-radius: 0 0 12px 12px;
  background: var(--b2b-primary);
}
body#product .product-flags{
  width: auto;
}
body#product .product-add-to-cart .product-quantity .input-group-btn-vertical .btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

body#product .product-add-to-cart .product-quantity .input-group-btn-vertical .btn:hover {
  background: var(--b2b-accent);
}

body#product .product-add-to-cart .product-quantity .input-group-btn-vertical .material-icons {
  font-size: 18px;
  margin: 0;
}

body#product .product-add-to-cart .btn {
  width: 100%;
  background: var(--b2b-primary);
  border: none;
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}
body#product .product-add-to-cart .btn.add-to-cart{
  width: auto;
  height: auto;
  padding: 13px 20px 10px;
}
body#product .product-add-to-cart .btn:hover {
  background: var(--b2b-accent);
  transform: translateY(-1px);
}

body#product .product-additional-info {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  background-color: #f1f5f9;
}

body#product .tabs {
  margin-top: 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

body#product .tabs .nav-tabs {
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
}

body#product .tabs .nav-link {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  color: #64748b;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

body#product .tabs .nav-link.active,
body#product .tabs .nav-link:hover {
  background: var(--b2b-primary-soft);
  color: var(--b2b-primary);
}

body#product .tab-content {
  padding-top: 20px;
}

body#product .product-accessories {
  margin-top: 32px;
}

body#product .product-accessories .products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

body#product .product-accessories .product-miniature {
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

body#product .product-attachments .attachment {
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  margin-bottom: 12px;
}

body#product .product-attachments .attachment h4 {
  font-size: 16px;
  color: var(--b2b-primary);
}

body#product .product-attachments .attachment a {
  color: var(--b2b-accent);
  font-weight: 600;
}

body#product .product-attachments .attachment a:hover {
  color: var(--b2b-primary);
}

body#product .scroll-box-arrows .material-icons {
  color: var(--b2b-primary);
}

body#product .product-cover {
  position: relative;
  overflow: hidden;
}

body#product .product-cover .layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

body#product .product-cover:hover .layer {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

body#product .product-cover .layer:hover {
  background: var(--b2b-primary);
  transform: translate(-50%, -50%) scale(1.1);
}

body#product .product-cover .zoom-in {
  font-size: 28px;
  color: var(--b2b-primary);
  background: transparent;
  border-radius: 0;
  padding: 0;
  transition: color 0.3s ease;
}

body#product .product-cover .layer:hover .zoom-in {
  color: #fff;
}

@media (max-width: 1024px) {
  .b2b-layout .cart-grid {
    grid-template-columns: 1fr;
  }

  .b2b-layout .cart-summary {
    position: static;
  }

  .b2b-layout .addresses {
    grid-template-columns: 1fr;
  }

  /* Product Page responsiveness (Moved to end for specificity) */
  body#product .product-container {
    flex-direction: column;
    gap: 16px;
  }

  body#product .product-container > [class*='col-'] {
    width: 100%;
    padding: 20px;
  }

  body#product .product-add-to-cart {
    flex-direction: column;
    align-items: stretch;
  }

  body#product .product-add-to-cart .product-quantity {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  body#product .product-add-to-cart .product-quantity .qty {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
  }

  body#product .product-add-to-cart .product-quantity .add {
    width: 100%;
    display: block;
  }

  body#product .product-add-to-cart .add-to-cart {
    width: 100%;
    margin-top: 0;
  }

  /* Target specific class to override width: auto */
  body#product .product-add-to-cart .btn.add-to-cart {
    width: 100%;
  }
}

/* Animacja obrotu dla ikon */
.b2b-icon,
.material-icons {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.b2b-sidebar__link:hover .b2b-icon,
.b2b-card--action:hover .b2b-icon {
  transform: scale(1.2) rotate(5deg);
}

/* Ikona edycji przy linku do modala customizacji */
a[data-target^="#product-customizations-modal-"]::before {
  content: "\f013"; /* edit icon */
  font-family: 'Font Awesome 6 Free';
  display: inline-block;
  margin-right: 5px;
  font-weight: 600;
}

/* Global .btn-primary Override */
.btn-primary {
  background-color: var(--b2b-primary);
  border-color: var(--b2b-primary);
  color: #fff;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
  background-color: var(--b2b-accent);
  border-color: var(--b2b-accent);
  color: #fff;
  outline: none;
  box-shadow: none;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: #cbd5e1;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

/* --- Sortowanie i Liczba wyników --- */
.sort-by-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 16px;
    gap: 20px;
}

/* Nadpisanie klas bootstrapowych wewnątrz sort-by-row dla workera */
.sort-by-row [class*="col-"] {
    width: auto !important;
    float: none !important;
}

.products-sort-order {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.products-sort-order .select-title {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 16px;
    color: #1e293b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: space-between;
    transition: all 0.2s ease;
    font-weight: 600;
    text-decoration: none;
}

.products-sort-order .select-title:hover {
    border-color: var(--b2b-primary, #1f2f53);
    color: var(--b2b-primary, #1f2f53);
}

.products-sort-order .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 8px;
    margin-top: 8px;
    min-width: 100%;
    left: auto;
    right: 0;
}

.products-sort-order .select-list {
    display: block;
    padding: 10px 16px;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.products-sort-order .select-list:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.products-sort-order .select-list.current {
    background: var(--b2b-primary-soft, #e2e6f1);
    color: var(--b2b-primary, #1f2f53);
    font-weight: 600;
}

/* --- Paginacja --- */
.pagination {
    background: #fff;
    border-radius: 20px;
    padding: 20px 32px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    border: 1px solid #f1f5f9;
}

/* Resetowanie stylów bootstrapowych kolumn w paginacji */
.pagination > div[class*="col-"] {
    padding: 0;
    margin: 0;
    width: auto;
    float: none;
    flex: 0 1 auto;
}

/* Tekst podsumowania (np. Pokazano 1-10 z 50) */
.pagination > div:first-child {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.pagination .page-list {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: none;
    border: none;
}

.pagination .page-list li {
    display: inline-block;
    padding: 0;
}

.pagination .page-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    background: transparent;
}

.pagination .page-list li a:hover:not(.disabled) {
    background: #f1f5f9;
    color: var(--b2b-primary, #1f2f53);
}

.pagination .page-list li.current a {
    background: var(--b2b-primary-soft, #e2e6f1);
    color: var(--b2b-primary, #1f2f53);
    box-shadow: 0 4px 12px rgba(31, 47, 83, 0.1);
}

.pagination .page-list li a.previous,
.pagination .page-list li a.next {
    width: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--b2b-primary, #1f2f53);
}

.pagination .page-list li a.previous:hover,
.pagination .page-list li a.next:hover {
    border-color: var(--b2b-primary, #1f2f53);
    background: #fff;
}

.pagination .page-list li a i {
    font-size: 18px;
    line-height: 1;
}

.pagination .page-list li a.previous i {
    margin-right: 4px;
}

.pagination .page-list li a.next i {
    margin-left: 4px;
}

.pagination .page-list li a.disabled {
    opacity: 0.5;
    cursor: default;
    background: transparent;
}

@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }

    .sort-by-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .products-sort-order {
        width: 100%;
        justify-content: space-between;
    }
}

/* Variantic */
body#product #variantic-shop {
  padding-bottom: 15px;
}
body#product .b2b-app__content #variantic{
  height: 80vh!important;
}