.modal-footer a:hover {
    color: #000;
}

@media screen and (max-width: 1180px) {
    .header-bottom, .toolbar .cart>.subtotal {
        display: block;
    }
}

@media screen and (max-width: 760px) {
    .header-bottom, .toolbar .cart>.subtotal {
        display: none;
    }
}

.cart-table__footer .just-btn {
    text-shadow: 0 1px 0 #fff;
    box-shadow: 0 3px 0 #989898;
    padding: 0 20px;
    color: #000;
    background: #ececec;
    background: linear-gradient(180deg,#ececec 0,#d5d5d5);
}

.cart-table__footer .just-btn:hover {
    color: #000;
    background: #d5d5d5;
    background: linear-gradient(180deg,#d5d5d5 0,#ececec);
}

.cart-table__col-1 img {
    width: 55px;
    height: 55px;
}

html.mm-opening .mm-menu.mm-opened~.mm-slideout {
    transform: none !important;
}

html.mm-opening:before {
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    background: #000;
    left: 0;
    top: 0;
    z-index: 2;
    opacity: .4;
}

.mm-menu.mm-offcanvas {
    z-index: 8;
}

/* fix slider initialization view */
.slider,
.slider-for,
.slider-nav {
    display: none;
}

.slider.slick-initialized,
.slider-for.slick-initialized,
.slider-nav.slick-initialized {
    display: block;
}

@media screen and (max-width: 1024px) {
    .aside.open, .aside.open div {
        display: block;
        overflow: auto;
    }
}
.aside-title, .aside ul {
    float: none;
}

/* fix */
.logo {
    margin-left: 0;
}


.slick, .slick-wrapper {
  width: 100%;
}

/* mobile */
@media screen and (max-width: 760px) {
    .header-bottom {
        display: block!important;
        padding: 0 !important;
        background: #ff0014;
    }
    .header-bottom .center {
        padding-left: 0;
        padding-right: 0;
    }
    .catalog-menu {
        width: 100%;
    }
}
@media screen and (max-width: 480px) {
    .logo {
        max-width: 150px;
    }
}

/* catalog menu */
.catalog-menu {
    position: relative;
    display: inline-block;
  }
  @media (min-width: 760px) {
    .catalog-menu:hover .catalog-menu__list {
      display: block !important;
    }
  }
  .catalog-menu__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0px 5px 9px -2px rgba(0, 0, 0, 0.2);
  }
  .catalog-menu__item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    border-bottom: 1px solid #eee;
  }
  .catalog-menu__item:last-child {
    border-bottom: 0;
  }
  @media (min-width: 760px) {
    .catalog-menu__item:hover .catalog-menu__drop-list {
      display: block;
    }
  }
  .catalog-menu__item.has-dropdown .catalog-menu__link:after {
    margin-left: auto;
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3px 0 3px 4px;
    border-color: transparent transparent transparent #000000;
  }
  @media (max-width: 760px) {
    .catalog-menu__item.has-dropdown .catalog-menu__link:after {
      display: none;
    }
  }
  .catalog-menu__link {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #000;
    transition: background-color 0.3s;
  }
  .catalog-menu__link:hover {
    background-color: #eee;
  }
  @media (max-width: 760px) {
    .catalog-menu__link {
      width: calc(100% - 110px);
    }
  }
  @media (max-width: 760px) {
    .catalog-menu__button {
      width: 100%;
    }
  }
  .catalog-menu__drop-list {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    display: none;
  }
  @media (max-width: 760px) {
    .catalog-menu__drop-list {
      position: static;
      width: 100%;
      box-shadow: none !important;
      border-top: 1px solid #eee;
    }
  }
  
  .catalog-button {
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    border-radius: 0;
    padding: 10px 25px;
    background: #ff0014;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
  }
  .catalog-button:after {
    margin-left: 45px;
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 5px 0 5px;
    border-color: #ffffff transparent transparent transparent;
    transition: 0.3s;
  }
  @media (max-width: 760px) {
    .catalog-button {
      padding-left: 15px;
      padding-right: 15px;
    }
    .catalog-button:after {
      margin-left: auto;
    }
  }
  .catalog-button--active:after {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }
  
  .catalog-drop-list {
    background-color: #fff;
    box-shadow: 0px 5px 9px -2px rgba(0, 0, 0, 0.2);
  }
  .catalog-drop-list__item {
    border-bottom: 1px solid #eee;
  }
  .catalog-drop-list__item:last-child {
    border-bottom: 0;
  }
  .catalog-drop-list__link {
    display: flex;
    align-items: center;
    padding: 10px 25px;
    text-decoration: none;
    font-size: 16px;
    color: #000;
    transition: background-color 0.3s;
  }
  .catalog-drop-list__link:hover {
    background-color: #eee;
  }
  @media (max-width: 760px) {
    .catalog-drop-list__link {
      padding-left: 45px;
      font-size: 14px;
    }
  }
  
  .drop-button {
    outline: none;
    width: 35px;
    margin-left: auto;
    padding: 10px;
    border: none;
    background: transparent;
    display: none;
    transition: 0.3s;
  }
  @media (max-width: 760px) {
    .drop-button {
      display: block;
      margin-right: 25px;
    }
  }
  .drop-button--active {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }
  
  .drop-button img {
    width: 20px;
    height: 15px;
    -o-object-fit: contain;
       object-fit: contain;
    -webkit-transform: rotate(-90deg);
            transform: rotate(-90deg);
  }

.modal-content, .modal-footer {
  float: none;
  width: auto;
  box-sizing: content-box;
  overflow: hidden;
}

.slick-slider .slick-arrow {
  opacity: 0;
}

.slick-slider:hover .slick-arrow {
  opacity: 1;
}

.product-main__slider .slider-for a{
  pointer-events: none;
  outline: none;
}

.product-item__name {
    font-size: 18px;
}

.aside .aside-item {
    overflow: inherit;
}

.product-main__slider .slider-nav .slick-track {
  transform: none !important;
  display: block !important;
}

.product-main__slider .slider-nav .slick-list {
  overflow: inherit;
}

.product-main__slider .slider-nav .slick-list .slick-slide{
  height: auto;
  margin-bottom: 10px;
}

.product-main__slider .slider-nav .slick-slide {
    margin: 0 10px 10px 10px !important;
}

.product-main__slider .slider-nav .slick-slide:first-child {
     margin: 0;
}

.product-main__slider .slider-nav .slick-slide img {
    width: 100%;
    height: 132px; 
}
.product__model{
    max-width: 80px;
}
.product__model img {
  min-width: 80px;
}

.product-item__status.status-on {
  color: #3eaf46;
}

.product-item__status.status-off {
  color: #ff0014;
}

.product-item__name {
    text-decoration-style: unset;
}

.product-item__content a:hover {
    color: #ff0014;
}

.slider-block .slider .slick-dots{
    display: none!important;
}



@media (max-width: 760px) {
    #product  .right_wrapper{
        flex-direction: column;
    }
    #product .row__right{
        order: -1;
        display: flex;
    }
}

/* Modernized "Buy" button style for product cards */
.btn.btn-gray.btn-modern-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid #dfe7f2;
    background: linear-gradient(135deg, #ffffff 0%, #eef3f8 100%);
    color: #111827 !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    text-shadow: none;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn.btn-gray.btn-modern-buy:hover {
    color: #0f172a !important;
    border-color: #cedbeb;
    background: linear-gradient(135deg, #ffffff 0%, #e7eef6 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
    transform: translateY(-1px);
}

.btn.btn-gray.btn-modern-buy:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .2), 0 12px 28px rgba(15, 23, 42, .18);
}

.btn.btn-gray.btn-modern-buy:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .16);
}

/* Quick order modal (product page) */
.purchase-request-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.58);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.purchase-request-modal.is-open {
    display: flex;
}

.purchase-request-modal__dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: 440px;
    min-width: 0;
    max-height: min(88vh, 560px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 auto;
    padding: 22px 20px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow:
        0 24px 48px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(15, 23, 42, 0.06);
}

.purchase-request-modal__dialog *,
.purchase-request-modal__dialog *::before,
.purchase-request-modal__dialog *::after {
    box-sizing: border-box;
}

.purchase-request-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.purchase-request-modal__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.purchase-request-modal__close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: -6px -8px 0 0;
    border: none;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.purchase-request-modal__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.purchase-request-modal__close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.purchase-request-modal__product {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #334155;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    word-break: break-word;
}

.purchase-request-modal__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.purchase-request-modal__input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    margin-bottom: 12px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.25;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Honeypot: приховано від користувачів, не фокусується з клавіатури */
.purchase-request-modal__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.purchase-request-modal__input::placeholder {
    color: #94a3b8;
}

.purchase-request-modal__input:hover {
    border-color: #94a3b8;
}

.purchase-request-modal__input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.purchase-request-modal__message {
    min-height: 22px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.purchase-request-modal__message--muted {
    color: #64748b;
}

.purchase-request-modal__message--ok {
    color: #15803d;
}

.purchase-request-modal__message--error {
    color: #dc2626;
}

.btn.btn-purchase-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    margin-top: 4px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn.btn-purchase-submit:hover:not(:disabled) {
    filter: brightness(1.05);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
}

.btn.btn-purchase-submit:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.3);
}

.btn.btn-purchase-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45), 0 10px 24px rgba(37, 99, 235, 0.35);
}

.btn.btn-purchase-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Product page: primary CTA matches card “Купити” style */
#product .btn.btn-gray.btn-modern-buy.btn-purchase-open {
    min-width: 180px;
    height: 48px;
    font-size: 0.9375rem;
}

@media (max-width: 520px) {
    .purchase-request-modal {
        align-items: flex-end;
        padding: 0;
    }

    .purchase-request-modal__dialog {
        max-width: none;
        width: 100%;
        max-height: min(92vh, 100%);
        border-radius: 18px 18px 0 0;
        padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
    }

    .purchase-request-modal__title {
        font-size: 1.125rem;
    }

    #product .btn.btn-gray.btn-modern-buy.btn-purchase-open {
        width: 100%;
        max-width: 100%;
    }
}