.shop-list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 10px 0 14px;
}
[data-shop-force-view="grid"] .shop-view-toggle { display: none; }

.shop-list-toolbar__sort {
    order: 3;
    flex: 1 1 100%;
    min-width: 220px;
}

.shop-list-toolbar__sort:empty {
    display: none;
}

.shop-list-toolbar__pages {
    order: 2;
    flex: 0 1 auto;
    margin-left: auto;
}

.shop-view-toggle {
    order: 1;
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #b9d2e3;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 63, 97, .08);
}

.shop-view-toggle__button {
    min-height: 34px;
    padding: 7px 12px;
    border: 0;
    border-left: 1px solid #d7e3eb;
    background: #fff;
    color: #17384e;
    font: bold 13px/1.2 Arial, sans-serif;
    cursor: pointer;
}

.shop-view-toggle__button:first-child {
    border-left: 0;
}

.shop-view-toggle__button:hover,
.shop-view-toggle__button:focus {
    background: #fafdff;
    color: #006491;
}

.shop-view-toggle__button[aria-pressed="true"] {
    background: #0b5f9f;
    color: #fff;
}

.shop-view-gopage {
    min-height: 34px;
	border: 0;
    color: #0051a4;
    font: bold 13px/1.2 Arial, sans-serif;
    cursor: pointer;
	text-decoration: underline dotted 2px;
 
}

.shop-list-toolbar--bottom {
    margin-top: 16px;
}

.shop-list-toolbar .tovarspages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: #5d6f7d;
    font-size: 13px;
    line-height: 1.35;
}

.shop-list-toolbar .pagelink,
.shop-list-toolbar .actpage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid #c7d8e4;
    border-radius: 5px;
    background: #fff;
    color: #17384e;
    font: bold 13px/1.2 Arial, sans-serif;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(20, 63, 97, .06);
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.shop-list-toolbar .pagelink:hover,
.shop-list-toolbar .pagelink:focus {
    border-color: #8ab6de;
    background: #fafdff;
    color: #006491;
    box-shadow: 0 3px 10px rgba(20, 63, 97, .12);
}

.shop-list-toolbar .actpage {
    border-color: #0b5f9f;
    background: #0b5f9f;
    color: #fff;
}

.shop-product-list {
    width: 100%;
}

.shop-product-grid,
.content ul.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-image: none;
}

.shop-product-grid > .shop-product-card,
.content ul.shop-product-grid > .shop-product-card {
    width: auto !important;
    min-width: 0;
}

.shop-product-card {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-product-card__inner {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid #d7e3eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(20, 63, 97, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shop-product-card__inner:hover {
    transform: translateY(-2px);
    border-color: #b9d2e3;
    box-shadow: 0 8px 20px rgba(20, 63, 97, .13);
}

.shop-product-card__image {
    position: static;
    float: none;
    width: 100%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
}

.shop-product-card__image .tovarnameimg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 210px;
}

.shop-product-card__badge {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.shop-product-card__badge:empty {
    display: none;
}

.shop-product-card__badge img,
.shop-product-card__new-icon {
    display: block;
    width: auto;
    max-width: 58px;
    height: auto;
}

.shop-product-card__image img {
    max-width: 100%;
    max-height: 210px;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain;
}

.shop-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 auto;
}

.shop-product-card__title,
.shop-product-card__title:link,
.shop-product-card__title:visited {
    margin: 0;
    color: #17384e;
    font: bold 16px/1.25 Arial, sans-serif;
    text-decoration: none;
}

.shop-product-card__title:hover {
    color: #006491;
    text-decoration: underline;
}

.shop-product-card__articul,
.shop-product-card__articul .listarticulname,
.shop-product-card__articul .listarticul {
    color: #5d6f7d;
    font-size: 12px;
    line-height: 1.35;
}

.shop-product-card__summary {
    color: #243949;
    font-size: 13px;
    line-height: 1.4;
}

.shop-product-card__summary p {
    margin: 0 0 6px;
}

.shop-product-card__summary span {
    font-size: inherit !important;
    line-height: inherit !important;
}

.shop-product-card__buy {
    margin-top: auto;
}

.shop-product-grid:not(.shop-product-grid--list) .shop-product-card__buy,
.shop-product-grid:not(.shop-product-grid--list) .shop-product-card__buy .price,
.shop-product-grid:not(.shop-product-grid--list) .shop-product-card__buy form { text-align: center; }
.shop-product-grid:not(.shop-product-grid--list) .shop-product-card__buy .cart-quantity { align-items: center; }
.shop-product-card__buy table,
.shop-product-card__buy tr,
.shop-product-card__buy td {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    border: 0 !important;
    padding: 0;
    vertical-align: middle;
}

.shop-product-card__buy .price,
.shop-product-card__buy .price b {
    font-size: 20px;
}

.shop-product-card__buy input[type=image] {
    width: 34px;
    height: 34px;
    margin-left: 8px;
    vertical-align: middle;
}

.shop-product-grid.shop-product-grid--list,
.content ul.shop-product-grid.shop-product-grid--list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-product-grid--list > .shop-product-card,
.content ul.shop-product-grid--list > .shop-product-card {
    width: 100% !important;
    min-width: 0;
}

.shop-product-grid--list .shop-product-card__inner {
    display: grid;
    grid-template-columns: minmax(110px, 150px) minmax(0, 1fr) minmax(120px, auto);
    align-items: center;
    gap: 16px;
    min-height: 0;
}

.shop-product-grid--list .shop-product-card__image {
    min-height: 150px;
}

.shop-product-grid--list .shop-product-card__image .tovarnameimg {
    min-height: 150px;
}

.shop-product-grid--list .shop-product-card__image img {
    max-height: 150px;
}

.shop-product-grid--list .shop-product-card__body {
    min-width: 0;
    text-align: left;
}

.shop-product-grid--list .shop-product-card__title,
.shop-product-grid--list .shop-product-card__articul,
.shop-product-grid--list .shop-product-card__summary {
    text-align: left;
}

.shop-product-grid--list .shop-product-card__body > a.tovarnamelink.shop-product-card__title {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left !important;
}

.shop-product-grid--list .shop-product-card__buy {
    margin-top: 0;
    text-align: right;
}


/* Inter-eton legacy-style isolation and narrow-screen layout. */
.related-products-title { padding: 14px 16px; margin: 24px 0 14px; border-radius: 10px; background: #cfe8f5; color: #17384e; font: 700 20px/1.4 Arial, sans-serif; }
@media (max-width: 680px) {
  .related-products-title { font-size: 18px; }
  table.related-products, table.related-products > tbody { display: block; width: 100%; }
  table.related-products > tbody > tr { display: grid; gap: 12px; }
  table.related-products > tbody > tr > td { display: block; width: 100% !important; padding: 0; }
  table.related-products td > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 14px; align-items: center; min-height: 0 !important; padding: 14px !important; border: 1px solid #d7e3eb !important; border-radius: 12px !important; background: #fff; }
  table.related-products .alsolink { grid-column: 1; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; min-width: 0; }
  table.related-products .alsolink img { display: block; max-width: 100%; max-height: 110px; width: auto; height: auto; object-fit: contain; }
  table.related-products td > div > div { grid-column: 2; min-height: 0 !important; text-align: left !important; margin: 0 !important; }
  table.related-products a.tovarnamelink { display: block; height: auto; margin: 0; padding: 0; text-align: left; font: 700 16px/1.4 Arial, sans-serif; overflow-wrap: anywhere; }
  table.related-products td > div > div:last-child:not(:nth-child(2)) { color: #064c78 !important; font: 700 18px/1.4 Arial, sans-serif !important; }
}
.shop-product-grid > .shop-product-card { float: none; height: auto; margin: 0; border: 0; background: none; }
.shop-product-card > .shop-product-card__inner { width: 100%; height: 100%; margin: 0; overflow: visible; }
.shop-product-card__body > a.shop-product-card__title { font: bold 16px/1.3 Arial, sans-serif; height: auto; padding: 0; }
.shop-list-toolbar { flex-wrap: wrap; }
.shop-product-grid { width: 100%; }
.shop-product-card__buy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  margin-top: 10px;
  padding: 7px 13px;
  border: 1px solid #0051a4;
  border-radius: 7px;
  background: linear-gradient(180deg, #0865ba, #0051a4);
  color: #fff;
  font: 700 13px/1.3 Arial, sans-serif;
  text-shadow: none;
  box-shadow: 0 3px 8px rgba(0, 81, 164, .16), inset 0 1px 0 rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.shop-product-card__buy button::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.2 11h11.6l2-8H6'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.shop-product-card__buy button:hover {
  background: #00458d;
  box-shadow: 0 5px 12px rgba(0, 81, 164, .23);
  transform: translateY(-1px);
}
.shop-product-card__buy button:focus-visible {
  outline: 3px solid #69bce9;
  outline-offset: 3px;
}
.shop-product-card__buy button:active {
  transform: translateY(0);
  background: #003b79;
  box-shadow: inset 0 2px 4px rgba(0, 30, 70, .2);
}
@media (prefers-reduced-motion: reduce) {
  .shop-product-card__buy button { transition: none; }
}
.shop-product-card__buy input[type=image] { width: auto; height: 30px; }
@media (max-width: 650px) {
  .shop-product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .shop-product-grid--list .shop-product-card__inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .shop-product-grid--list .shop-product-card__image, .shop-product-grid--list .shop-product-card__image .tovarnameimg { min-height: 90px; }
  .shop-product-grid--list .shop-product-card__buy { grid-column: 1; }
  .shop-product-card__buy,
  .shop-product-grid--list .shop-product-card__buy { text-align: center; }
  .shop-product-card__buy .price,
  .shop-product-card__buy form { text-align: center; }
  .shop-product-card__buy .cart-quantity { align-items: center; }
  .shop-list-toolbar__sort { min-width: 0; }
}
