/*************
*** HEADER
*************/
.navbar-brand img {
    max-height: 40px;
}

.navbar {
    border-bottom: 1px solid #3463b3;
}

.offcanvas-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #3463b3;
}

.offcanvasLogo img {
    height: 40px;
}

.navbar-nav .dropdown-menu {
    border: unset;
}

.nav-item {
    padding: 10px;
}

.nav-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.dropdown-item.active {
    background-color: #3463b3;
}

.dropdown-menu .nav-link.active {
    color: #fff;
    padding: 5px;
}

.header__top {
    padding: 20px 0;
}

@media screen and (max-width: 768px) {
    .header__top {
        margin-top: 60px;
    }
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contacts {
    text-align: center;
}

.contacts .row {
    row-gap: 10px;
}

.header__interactions {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

@media screen and (max-width: 992px) {
    .header__interactions {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    .header__interactions {
        display: grid;
        row-gap: 10px;
    }

    .user_box_top {
        margin-bottom: 10px;
    }
}

#search {
    position: relative;
    top: unset;
    right: unset;
    width: 300px;
    max-width: 100%;
}

#cart_informer {
    width: auto;
    height: auto;
    padding: 14px 8px 14px 38px;
    position: static;
    background-position: 15px center;
}

#section_menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: static;
    text-align: center;
    height: auto;
    overflow: auto;
}

#page_title {
    padding: 20px;
}

/*************
*** PRODUCTS 
*************/
.tiny_products .product {
    height: 100%;
}

@media screen and (min-width: 768px) {
    .tiny_products form.cart {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* =========================================================
   КНОПКА "КУПИТЬ" — единый стиль (каталог + товарная)
   ВАЖНО: НЕ трогаем .but_add глобально, только .buy-button
   ========================================================= */
.buy-button{
    background:#3463b3 !important;
    background-image:none !important;
    color:#ffffff !important;
    border:0 !important;
    border-radius:14px !important;

    font-size:15px !important;
    font-weight:700 !important;
    line-height:1 !important;

    padding:12px 22px !important;
    min-height:44px !important;

    text-indent:0 !important;
    white-space:nowrap !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    cursor:pointer !important;
    transition:background-color .2s ease, transform .05s ease !important;

    box-shadow: 0 6px 14px rgba(52, 99, 179, .22) !important;

    -webkit-appearance:none !important;
    appearance:none !important;
}

.buy-button:hover{
    background:#2b56a4 !important;
}

.buy-button:active{
    transform:scale(0.98) !important;
}

.buy-button:focus{
    outline:2px solid rgba(52, 99, 179, .35) !important;
    outline-offset:2px !important;
}

/* =========================================================
   КАТАЛОГ (карточки): кнопка широкая как на твоих скринах
   ========================================================= */
.tiny_products .product .cart .buy-button{
    width:100% !important;
    max-width:260px !important;      /* ширина “пилюли” в карточке */
    margin-top:10px !important;
}

/* чтобы не “съезжала” из-за фикс. размеров старых стилей */
.tiny_products .product .cart button.buy-button{
    height:auto !important;
}

/* =========================================================
   ТОВАРНАЯ (страница товара): такая же пилюля
   ========================================================= */
.page.product-page .product_info form.cart{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:10px;
}

/* селект “при обмене” — аккуратно, без библиотек */
.page.product-page .product_info form.cart select[name="variant"]{
    width:100%;
    max-width:320px;
    height:38px;
    padding:6px 34px 6px 12px;
    border:1px solid #cfe0ff;
    border-radius:10px;
    background:#fff;
    font-size:14px;
    line-height:1.2;
}

/* кнопка на товарной */
.page.product-page .product_info form.cart .buy-button{
    width:100% !important;
    max-width:320px !important;
}

/* мобилка: на всю ширину блока */
@media screen and (max-width: 768px) {
    .page.product-page .product_info form.cart select[name="variant"],
    .page.product-page .product_info form.cart .buy-button{
        max-width:100% !important;
    }
}

/*************
*** PRODUCT
*************/
.product-page .product {
    border: unset;
}

.product-page .image {
    position: relative;
    float: left;
    width: 250px;
    line-height: 250px;
    margin-bottom: 20px;
    border: 1px solid #EAEAEA;
    border-radius: 6px;
}

.product-page .product_info {
    float: right;
    width: 480px;
    margin-bottom: 20px;
}

.product-page .product_info form {
    width: 99%;
    margin: 20px 0;
}

.product-page .product_info .price {
    font-size: 32px;
}

.product-page .product_info .compare_price {
    font-size: 24px;
}

.product-page .product_info .compare_price, .product-page .product_info select {
    float: left;
    margin-right: 20px;
}

@media screen and (max-width: 1199px) {
    .product-page .image,
    .product-page .product_info {
        float: unset;
    }
}

/*************
*** FEATURES 
*************/
#features .btn {
    background: transparent;
    border: 1px solid #000;   
}

@media screen and (max-width: 768px) {
    #features .values {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    #features li {
        margin: 10px 0;
    }
}

@media screen and (max-width: 992px) {
    #features #price_range {
        display: flex;
        flex-wrap: wrap;
    }
}

/*************
*** PAGINATION
*************/
.pagination .sort {
    margin-right: auto;
}

@media screen and (max-width: 480px) {
    .pagination .sort {
         float: unset; 
        margin-left: 0;
        width: 100%;
    }

    .pagination a {
        line-height: 30px;
        min-width: unset;
    }
}

/*************
*** PURCHASES 
*************/
.table-wrapper {
    max-width: 100%;
    overflow-x: scroll;
}

#purchases .form {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

@media screen and (max-width: 576px) {
    #purchases tr:first-child {
        position: relative;
    }

    #purchases .remove {
        position: absolute;
        right: 35px;
    }
}

/*************
*** MISC 
*************/

/*************
*** FOOTER 
*************/
.footer {
    padding: 20px 0;
}

@media screen and (max-width: 768px) {
    .footer__menu {
        gap: 10px;
    }
}