/*
 * Minerol.ua — shop.css
 * Bootstrap 5
 */

/* =========================================
   ОСНОВНЫЕ НАСТРОЙКИ
========================================= */

.shop-page {
    --shop-primary: #25246b;
    --shop-accent: #ff9b2f;
    --shop-text: #25283a;
    --shop-muted: #7b8192;
    --shop-border: #e8eaf1;

    color: var(--shop-text);
    padding-bottom: 90px;
}

.shop-page img {
    max-width: 100%;
}

.shop-page a {
    text-decoration: none;
}


/* =========================================
   ВЕРХНЯЯ ПАНЕЛЬ: КАТАЛОГ + ПОИСК
   Панель находится вне .shop-page
========================================= */

.shop-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e8eaf1;
    box-shadow: 0 4px 18px rgba(28, 36, 78, .07);
}

.shop-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 0;
}

.shop-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 12px;
    background: #25246b;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease;
}

.shop-catalog-btn:hover,
.shop-catalog-btn:focus {
    background: #35348a;
    color: #fff;
}

.shop-search {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-search form,
.shop-search .input-group {
    width: 100%;
}

.shop-search .input-group {
    flex-wrap: nowrap;
}

.shop-search .form-control {
    min-width: 0;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid #e0e4ef;
    border-right: 0;
    border-radius: 12px 0 0 12px;
    box-shadow: none;
}

.shop-search .form-control:focus {
    position: relative;
    z-index: 2;
    border-color: #9ba7e0;
    box-shadow: 0 0 0 .2rem rgba(37, 36, 107, .08);
}

.shop-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid #25246b;
    border-radius: 0 12px 12px 0;
    background: #25246b;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.shop-search-btn:hover,
.shop-search-btn:focus {
    background: #35348a;
    color: #fff;
}


/* =========================================
   ЗАГОЛОВКИ И СЕКЦИИ
========================================= */

.shop-page .shop-section,
.shop-page .products-section {
    margin: 24px 0 28px;
}

.shop-page .shop-section-title,
.shop-page .products-title,
.shop-page .titlediv {
    margin: 0 0 16px;
    color: #25246b;
    font-weight: 700;
    line-height: 1.3;
}

.shop-page .titlediv {
    padding: 12px 15px;
    border-radius: 12px;
    background: #f1f2fa;
}

.shop-page .text-muted,
.shop-page .text-secondary {
    color: #7b8192 !important;
}


/* =========================================
   КАРТОЧКИ ТОВАРОВ
========================================= */

.shop-page .shop-product-card,
.shop-page .product-card,
.shop-page .productitem,
.shop-page .item-product {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e8eaf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(31, 38, 78, .055);
    transition: transform .2s ease, box-shadow .2s ease;
}

.shop-page .shop-product-card:hover,
.shop-page .product-card:hover,
.shop-page .productitem:hover,
.shop-page .item-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 24px rgba(31, 38, 78, .11);
}

.shop-page .shop-product-card a,
.shop-page .product-card a,
.shop-page .productitem a,
.shop-page .item-product a {
    color: inherit;
}

.shop-page .shop-product-image,
.shop-page .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}

.shop-page .shop-product-image img,
.shop-page .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-page .shop-product-title,
.shop-page .product-title {
    color: #25283a;
    font-size: .96rem;
    font-weight: 600;
    line-height: 1.4;
}

.shop-page .shop-product-price,
.shop-page .product-price {
    color: #25246b;
    font-size: 1.15rem;
    font-weight: 800;
}

.shop-page .shop-product-old-price,
.shop-page .product-old-price {
    color: #9297a5;
    font-size: .9rem;
    text-decoration: line-through;
}

.shop-cart-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.shop-cart-add:hover {
    background: #157347;
    color: #fff;
    transform: scale(1.08);
}

.shop-cart-add:active {
    transform: scale(.95);
}


/* =========================================
   АКЦИИ И НАЛИЧИЕ
========================================= */

.shop-page .actionicon,
.shop-page .shop-badge,
.shop-page .product-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 7px;
    background: #ff9b2f;
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.shop-page .availability,
.shop-page .product-availability {
    font-size: .82rem;
    font-weight: 600;
}


/* =========================================
   ФОРМЫ ВНУТРИ МАГАЗИНА
========================================= */

.shop-page input[type="number"],
.shop-page input[type="text"],
.shop-page input[type="search"],
.shop-page select,
.shop-page textarea {
    max-width: 100%;
    border-color: #dfe3ed;
    border-radius: 9px;
}

.shop-page input:focus,
.shop-page select:focus,
.shop-page textarea:focus {
    border-color: #9ba7e0;
    box-shadow: 0 0 0 .2rem rgba(37, 36, 107, .08);
}


/* =========================================
   ПЛАВАЮЩЕЕ МЕНЮ
   ДЕСКТОП: СПРАВА ВЕРТИКАЛЬНО
========================================= */

.shop-floating-menu {
    position: fixed;
    top: 55%;
    right: 1px;
    z-index: 1040;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    width: 55px;
    padding: 5px 0;

    border-radius: 13px 0 0 13px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 14px rgba(25, 30, 65, .15);

    transform: translateY(-50%);
}

.shop-floating-menu a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;
    flex: 0 0 55px;
}

.shop-floating-menu img {
    display: block;
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.shop-floating-menu #countproducts {
    z-index: 2;
    min-width: 18px;
    min-height: 18px;
    padding: 1px 4px;

    border-radius: 20px;
    background: #f04438;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}


/* =========================================
   ПЛАНШЕТЫ
========================================= */

@media (max-width: 991.98px) {

    .shop-page .shopimg {
        height: 190px;
    }

    .shop-page .shop-product-card,
    .shop-page .product-card,
    .shop-page .productitem,
    .shop-page .item-product {
        border-radius: 13px;
    }

}


/* =========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА
========================================= */

@media (max-width: 767.98px) {

    .shop-sticky > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .shop-toolbar {
        gap: 8px;
        padding: 8px 0;
    }

    .shop-catalog-btn {
        min-height: 42px;
        padding: 9px 12px;
        border-radius: 10px;
        font-size: .88rem;
    }

    .shop-search .form-control {
        min-height: 42px;
        padding: 8px 10px;
        font-size: .9rem;
    }

    .shop-search-btn {
        min-height: 42px;
        padding: 8px 13px;
        font-size: .9rem;
    }

    .shop-page {
        padding-bottom: 82px;
    }

    .shop-page .shop-section,
    .shop-page .products-section {
        margin-top: 18px;
        margin-bottom: 22px;
    }

    .shop-page .shopimg {
        height: 150px;
    }

    .shop-page #carouselproducts .carousel-control-prev,
    .shop-page #carouselproducts .carousel-control-next,
    .shop-page #carouselactionproducts .carousel-control-prev,
    .shop-page #carouselactionproducts .carousel-control-next {
        width: 30px;
    }


    /* Нижняя панель меню */

    .shop-floating-menu {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 62px;
        padding: 4px 12px;

        flex-direction: row;
        justify-content: space-around;
        gap: 0;

        border-radius: 14px 14px 0 0;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 -3px 18px rgba(25, 30, 65, .13);

        transform: none;
    }

    .shop-floating-menu a {
        width: 33.333%;
        height: 54px;
        flex: 1 1 33.333%;
    }

    .shop-floating-menu img {
        width: 39px;
        height: 39px;
    }

}


/* =========================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
========================================= */

@media (max-width: 380px) {

    .shop-catalog-btn {
        padding-right: 9px;
        padding-left: 9px;
        font-size: .82rem;
    }

    .shop-search-btn {
        padding-right: 10px;
        padding-left: 10px;
    }

}


  /* Кнопка загрузки товаров */

.shop-load-more-btn {
    min-width: 220px;
    padding: 12px 28px;
    border: 1px solid #25246b;
    border-radius: 12px;
    background: #fff;
    color: #25246b;
    font-weight: 700;
    transition: all .2s ease;
}

.shop-load-more-btn:hover {
    background: #25246b;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 36, 107, .2);
}

.shop-product-item[hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {
    .shop-load-more-btn {
        width: 100%;
        min-height: 46px;
    }
} 

/* Карточка */

.shop-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(30, 35, 80, .06);
    transition: box-shadow .2s ease;
}

.shop-product-card:hover {
    box-shadow: 0 4px 16px rgba(30, 35, 80, .11);
}

/* Бейджи — сохраняем исходное оформление */

.shop-product-card .shop-product-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    right: auto;
    display: inline-block;
    width: auto;
    max-width: max-content;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

/* Изображение */

.shop-product-card .shop-product-image {
    display: flex;
    height: 230px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shop-product-card .shop-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Название и описание */

.shop-product-card .shop-product-title {
    color: #302080;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.shop-product-card .shop-product-title:hover {
    color: #4935a0;
}

.shop-product-card .shop-product-description {
    color: #554c86;
    font-size: 14px;
    line-height: 1.4;
    min-height: 59px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

/* Нижняя часть */

.shop-product-card .card-footer {
    margin-top: auto;
}

.shop-product-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Баллы */

.shop-product-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 82px;
    min-height: 44px;
    padding: 4px 8px;
    border-radius: 25px;
    background: #e5f5fc;
    color: #46536c;
    font-size: 15px;
}

.shop-product-points img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Більше */

.shop-product-more {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 44px;
    padding: 0 10px;
    border-radius: 24px;
    background: #eeeaf5;
    color: #514477;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
}

.shop-product-more:hover {
    background: #e3def0;
    color: #302080;
}

/* Корзина и уведомление */

.shop-product-cart {
    display: flex;
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    align-items: center;
    justify-content: center;
}

.shop-cart-add {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

.shop-cart-add img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.shop-cart-add .shop-cart-plus {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    width:20px;
    height:20px;
    align-items: center;
    justify-content: center;
    border: 1px solid #0573e1;
    border-radius: 50%;
    background: #0573e1;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.shop-cart-add:hover {
    background: #eef5fc;
}

.shop-product-cart-wait {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #eef5fc;
    color: #0573e1;
    font-size: 17px;
    text-decoration: none;
}

.shop-product-cart-wait:hover {
    background: #dcecff;
    color: #0573e1;
}

.shop-cart-add:hover {
    background: #eef5fc;
}

.shop-product-cart-wait {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: #eef5fc;
    color: #0573e1;
    font-size: 17px;
    text-decoration: none;
}

.shop-product-cart-wait:hover {
    background: #dcecff;
    color: #0573e1;
}

/* Цена */

.shop-product-card .shop-product-price {
    font-size: 28px;
    font-weight: 800;
    color: #302080;
}

.shop-product-card .shop-product-old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.shop-product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
}

.shop-product-availability {
    white-space: nowrap;
    font-size: 13px;
}

/* Мобильные */

@media (max-width: 575.98px) {
    .shop-product-card {
        border-radius: 18px;
    }

    .shop-product-card .shop-product-image {
        height: 210px;
    }

    .shop-product-card .shop-product-title {
        font-size: 18px;
    }

    .shop-product-card .shop-product-description {
        font-size: 14px;
        min-height: 58px;
    }

    .shop-product-bottom {
        gap: 6px;
    }

    .shop-product-points {
        min-width: 76px;
        padding: 4px 6px;
    }

    .shop-product-card .shop-product-price {
        font-size: 25px;
    }
}

.shop-footer-menu {
    padding: 18px 16px;
    background: #f7f9fb;
    border: 1px solid #edf0f3;
    border-radius: 14px;
}

.shop-footer-title {
    font-size: 13px;
    font-weight: 700;
    color: #7b8794;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 12px;
}

.shop-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-footer-links li {
    margin-bottom: 11px;
}

.shop-footer-links a,
.shop-footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #303b46;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}

.shop-footer-links a:hover,
.shop-footer-phone:hover {
    color: #198754;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    color: #198754;
    background: #e5f3eb;
    border-radius: 7px;
    font-size: 15px;
}

.shop-footer-phone {
    font-weight: 600;
    white-space: nowrap;
    font-size: 13px;
}

.shop-footer-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    padding: 7px 12px;
    border-radius: 9px;
    background: #e8f4fb;
    color: #168ac0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.shop-footer-telegram img {
    width: 19px;
    height: 19px;
}

.shop-footer-telegram:hover {
    background: #d9edf8;
    color: #0878ad;
}

@media (max-width: 380px) {
    .shop-footer-menu {
        padding: 14px 10px;
    }

    .shop-footer-links a {
        font-size: 12px;
        gap: 5px;
    }

    .shop-footer-phone {
        font-size: 11px;
    }
}
.shop-cart-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:62px;
    min-width:62px;
    height:40px;
    padding: 0;
    border: 0;
    border-radius:20px;
    background: #198754;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.shop-cart-add img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.shop-cart-add:hover {
    background: #157347;
}

.shop-cart-add:active {
    transform: scale(.96);
}

.shop-cart-add:focus-visible {
    outline: 3px solid rgba(25, 135, 84, .25);
    outline-offset: 3px;
}