﻿.adm_btn{
    display:block;
}

.clear{
    clear:both;
}

body{
    font-size:20pt;
    padding-top:60px;
}


/* верхня панель кошика */

.cart {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1976D2;
    color: #fff;
    padding: 8px 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    font-family: Arial, Helvetica, sans-serif;
    will-change: transform;
    border-bottom: 2px solid #ff9800;
}

.cart_info{
    display:flex;
    align-items:center;
    gap:8px;
    white-space:nowrap;

    font-weight:bold;
    color:#ffffff;
    text-decoration:none;
    font-size:20px;
}

.cart_text{display:inline;}
.cart_currency{margin-left:3px;}

.cart_phone{
    display:flex;
    align-items:center;
}

    .cart_phone img {
        height: 36px;
        margin: 0 15px;
    }

#cart_sum{
    display:inline-block;
    background:#ff9800;
    color:#fff;
    font-weight:bold;
    font-size:20px;
    padding:4px 10px;
    border-radius:6px;
    box-shadow:0 2px 4px rgba(0,0,0,0.3);
}

.cart_info:hover{
    text-decoration:underline;
}


/* планшети */

@media screen and (max-width:900px){

    .cart_info{font-size:18px;}
    #cart_sum{font-size:18px;}

}


/* телефони */

@media screen and (max-width:600px){

    .cart {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 99999;
        width: 100%;
        /* щоб не "провалювався" */
        transform: translateZ(0);
        will-change: transform;

    }

    .cart_info{
        gap:6px;
        font-size:0;
        position:relative;
    }

    .cart_info::before{
        content:"";
        width:30px;
        height:30px;
        display:inline-block;
        background-color:#ff9800;

        -webkit-mask:url('/Styles/images/cart.svg') no-repeat center;
        mask:url('/Styles/images/cart.svg') no-repeat center;

        -webkit-mask-size:contain;
        mask-size:contain;

        margin-right:6px;
    }

    .cart_text{display:none;}

    .cart_currency{font-size:16px;}

    #cart_sum{
        font-size:18px;
        padding:3px 8px;
    }

    .cart_phone img{
        height:30px;
    }

}


/* товар */

.o_line{
    clear:both;
}

.o_line img,
.o_line_img{
    min-height:315px;
    max-width:330px;
    float:left;
    margin:5px 10px 5px 5px;
    border:1px solid #e1e1e1;
}

.chLine1, .chLine{background-color: #d8edff  !important;}
.chLine2{background-color: #e0ffe9 !important;}


.bis_img{
    width:100%;
    max-width:250px;
}


/* блок ціни */

.price_block{
    min-height:40px;
    padding:15px 0;
}

.price_block .cost,
.price_block .sort,
.price_block .by_btn{
    display:inline-block;
    margin-right:20px;
    min-width:260px;
}

.price_block .by_btn{width:auto;}

.price_block .cost span{
    font-weight:bold;
    padding:2px;
}

.price_block .cost span.b50{
    background-image:url(images/b50.png);
    background-repeat:no-repeat;
    background-size:contain;
    padding-left:40px;
}

.price_block .cost span.b10{
    background-image:url(images/b10.png);
    background-repeat:no-repeat;
    background-size:contain;
    padding-left:40px;
}

.price_block .cost span.alert{
    color:#ff7575;
}


/* кнопка купити */

.by_btn a{
    background:#fff;
    border:none;
    border-radius:2px;
    box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);
    min-height:31px;
    min-width:70px;
    padding:2px 16px;
    text-align:center;
    text-transform:uppercase;
    transition:all 280ms cubic-bezier(.4,0,.2,1);
    color:#212121;
    box-sizing:border-box;
    cursor:pointer;
    display:inline-block;
    vertical-align:middle;
}

.by_btn a:hover{
    box-shadow:0 10px 20px rgba(0,0,0,.19),0 6px 6px rgba(0,0,0,.23);
}



/* фільтр */

.finder_bs_panel{
    margin-top:15px;
    background:#dfeeff;
    padding:15px;
    border-radius:8px;
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
    font-size:20px;
}

.finder_bs_panel > div{
    margin-bottom:8px;
    font-weight:bold;
}


/* палітра кольорів */

.palete{
    display:grid;
    grid-template-columns:repeat(13,1fr);
    gap:8px;
    width:100%;
    margin-bottom:15px;
}

.palete a{
    height:50px;
    border-radius:6px;
    border:2px solid rgba(0,0,0,0.1);
    cursor:pointer;
    transition:0.2s;
}

.palete a:hover{
    transform:scale(1.1);
    box-shadow:0 3px 10px rgba(0,0,0,0.35);
}

.palete a.all_collor{
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    color:#000;
    text-decoration:none;
    background:#fff;
}
    .palete a.checked {
        background-image: url('/Styles/images/color_check.png');
        background-repeat: no-repeat;
        background-position: right top;
    }

        .palete a.checked.black {
            background-image: url('/Styles/images/color_check_white.png') !important;
        }



/* пошук номера */

.palete input[type=text]{
    font-size:22px;
    padding:8px 10px;
    border-radius:6px;
    border:2px solid #1976D2;
    width:400px;
}

.palete input[type=submit]{
    font-size:20px;
    padding:8px 14px;
    border-radius:6px;
    border:none;
    background:#1976D2;
    color:#fff;
    cursor:pointer;
    transition:0.2s;
}

.palete input[type=submit]:hover{
    background:#125aa3;
}

#Button2{
    background:#ff9800;
}

#Button2:hover{
    background:#e68900;
}


/* мобільна палітра і пошук */

@media screen and (max-width:600px){

    .palete{
        grid-template-columns:repeat(6,1fr);
    }


    .palete a.all_collor{
        grid-column:1 / -1;
        height:45px;
    }

    .palete a{
        height:40px;
    }


    .palete_search {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
        /* поле вводу */

        .palete input[type=text] {
            width: 100%;
            box-sizing: border-box;
            margin-bottom: 5px;
        }

        /* кнопки */

        .palete input[type=submit] {
            width: calc(50% - 3px);
            box-sizing: border-box;
            font-size: 16px;
            padding: 8px 5px;
        }

}



/* меню */

.top-menu-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    margin-top:10px;
}

.top-menu-grid a{
    display:block;
    text-align:center;
    text-decoration:none;
    background:#1976D2;
    color:#ffffff;
    border:1px solid #ddd;
    padding:10px;
    border-radius:6px;
    transition:0.2s;
    animation:menuHighlight 12s infinite;
}

@keyframes menuHighlight{

    0%{
        background:#DFEEFF;
        color:#003366;
    }

    5%{
        background:#1976D2;
        color:#ffffff;
        transform:scale(1.05);
    }

    10%{
        background:#ffffff;
        color:#0044cc;
        transform:scale(1);
    }

}

.top-menu-grid a:nth-child(1){animation-delay:0s;}
.top-menu-grid a:nth-child(2){animation-delay:1s;}
.top-menu-grid a:nth-child(3){animation-delay:2s;}
.top-menu-grid a:nth-child(4){animation-delay:3s;}
.top-menu-grid a:nth-child(5){animation-delay:4s;}
.top-menu-grid a:nth-child(6){animation-delay:5s;}
.top-menu-grid a:nth-child(7){animation-delay:6s;}
.top-menu-grid a:nth-child(8){animation-delay:7s;}
.top-menu-grid a:nth-child(9){animation-delay:8s;}
.top-menu-grid a:nth-child(10){animation-delay:9s;}
.top-menu-grid a:nth-child(11){animation-delay:10s;}
.top-menu-grid a:nth-child(12){animation-delay:11s;}

.top-menu-grid a:hover{
    box-shadow:0 3px 10px rgba(0,0,0,0.15);
    animation:menuShake 0.3s;
}

@keyframes menuShake{
    0%{transform:translateX(0);}
    25%{transform:translateX(-2px);}
    50%{transform:translateX(2px);}
    75%{transform:translateX(-2px);}
    100%{transform:translateX(0);}
}

.top-menu-grid img{
    width:100%;
    height:90px;
    object-fit:contain;
}

.top-menu-grid span{
    display:block;
    margin-top:8px;
    font-size:20pt;
    line-height:16pt;
    color:inherit;
}


/* планшети */

@media screen and (max-width:900px){

    .top-menu-grid{
        grid-template-columns:repeat(3,1fr);
        gap:12px;
    }

    .top-menu-grid span{
        font-size:18px;
        line-height:20px;
    }

    .top-menu-grid img{
        height:80px;
    }

}


/* телефони */

@media screen and (max-width:600px){

    .top-menu-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .top-menu-grid span{
        font-size:18px;
        line-height:20px;
    }

    .top-menu-grid img{
        height:70px;
    }

}







/* блок розпродажу */
.panel_alert {
    padding:2%;
}
.sale_alert {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(180deg,#fff176,#ff9800);
    border: 4px solid #d32f2f;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    color: #000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    animation: salePulse 3s infinite;
}

/* м'яка пульсація */

@keyframes salePulse{

    0%{
        box-shadow:0 6px 20px rgba(0,0,0,0.35);
        transform:scale(1);
    }

    50%{
        box-shadow:0 10px 35px rgba(211,47,47,0.6);
        transform:scale(1.02);
    }

    100%{
        box-shadow:0 6px 20px rgba(0,0,0,0.35);
        transform:scale(1);
    }

}


/* мобільна версія */

@media screen and (max-width:600px){

    .sale_alert{
        font-size:20px;
        padding:15px;
    }

}

/* Блок інформації */
.info_block{
    margin:15px 0;
    padding:12px 15px;

    background:#e3f2fd;
    border-left:6px solid #1976D2;

    font-size:18px;
    line-height:1.4;

    border-radius:4px;
}

.info_block a{
    color:#1976D2;
    font-weight:bold;
    text-decoration:none;
    margin-left:5px;
}

.info_block a:hover{
    text-decoration:underline;
}

























/* картка товару */

.product_card{
    display:flex;
    gap:20px;
    padding:15px;
    margin:15px 0;

    border:1px solid #ddd;
    border-radius:8px;

    background:#fff;
}


/* фото */

.product_images{
    width:280px;
}

.product_main{
    width:100%;
    border:1px solid #ccc;
}

.product_thumbs{
    display:flex;
    gap:6px;
    margin-top:6px;
}

.product_thumbs img{
    width:60px;
    cursor:pointer;
    border:1px solid #ccc;
}


/* інформація */

.product_info{
    flex:1;
}


/* заголовок */

.product_title{
    font-size:24px;
    margin-bottom:5px;
}

.product_color{
    font-size:18px;
    margin-bottom:15px;
}


/* рядок ціни */

.price_row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0
}

/* блок ціни */
.price_row .price{
    width:150px;
    font-weight:bold;
}

.price{
    font-size:22px;
    font-weight:bold;
}

.weight{
    color:#555;
}



/* кнопка */
.buy_btn {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(180deg, #ff9800, #f57c00);
    color: #fff;

    font-size: 16px;

    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.price_row .buy_btn{
    width:140px;
    text-align:center;
}

.buy_btn:hover{
    background:#0d5fb3;
}


/* характеристики */

.product_features{
    margin-top:10px;
    font-size:16px;
}


/* ---------- мобільна версія ---------- */

@media screen and (max-width:600px){

    .product_card {
        flex-direction: column;
        margin-bottom: 35px;
        border-bottom: 1px solid;
    }


/* порядок блоків */

.product_header{
    order:1;
}

.product_images{
    order:2;
    width:100%;
}

.product_prices{
    order:3;
}

.product_features{
    order:4;
}


/* фото */

.product_main{
    width:100%;
}


/* кнопки */
    .price_row{
        flex-wrap: wrap;
    }

    /* перший рядок */
    .price_row .price{
        flex: 1;
        min-width: 0;
    }

    .price_row .buy_btn{
        flex: 1;
    }

    /* другий рядок */
        .price_row .ordInfo {
            flex-basis: 100%;
            margin-top: 5px;
            margin-top: -10px;
            font-size: 12pt;
            text-align: right;
            text-decoration: none;
            color: red;
        }

}