


/*<editor-fold desc="Scrollbar CSS" defaultstate="collapsed">*/
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(255, 240, 112) transparent;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
    width: 0.5rem;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgb(255, 240, 112);
    border-radius: 20px;
    border: 0px none #ffffff;
}
/*</editor-fold>*/

html, body{overflow-x: hidden;}

body{
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)), url("../gallerey/gallerey.jpg");
    background-color: #3e3e3e;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    background-position: top;
    background-attachment: fixed;
    display: grid;
    grid-template-rows: 14rem auto 5rem;
    /*grid-template-columns: 1fr auto 1fr;*/
    min-height: 100vh;
}

main{
    display: grid;
    justify-content: center; /* Центрирует корзину по горизонтали */
    width: 100%;
}

.gaLink{
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    text-decoration: none;
    font-size: 2.5rem;
    color: white;
    padding: 0.35rem 0.75rem 0.75rem 0.4rem;
    background-color: #31003833;
    border-radius: 0 0 1rem 0;
    text-shadow: 0px 0px 20px rgba(244, 0, 255, 1);
}

header{
    grid-row: 1;
    /*grid-column: 2;*/
    display: grid;
    justify-content: center;
    align-content: center;
    color: white;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    text-shadow: 0px 0px 20px rgb(255, 251, 0),0px 0px 5px rgb(0, 0, 0),0px 0px 5px rgb(0, 0, 0);
    user-select: none;
    pointer-events: none;
    text-align: center;
    font-family: "Times New Roman", serif;
    transition: max-width ease-in-out 1s, margin-left ease-in-out 1s;
    max-width: 100%;
}

.listHeader{
    display: grid;
    grid-template-columns: 20% 1fr 20% 20% 10%;
    color: white;
    justify-items: center;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4); /* Линия под шапкой */
    padding-bottom: 10px;
}

.listCart{
    display: grid;
    grid-auto-flow: row;
    padding: 2rem;
    width: 87vw;
    max-width: 900px;
}

.elemCart{
    display: grid;
    grid-template-columns: 20% 1fr 20% 20% 10%;
    color: white;
    justify-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Линия под каждым товаром */
    padding: 15px 0;
}
.elemCart:last-child {
    border-bottom: none;
}
.listHeader > div:not(:last-child),
.elemCart > div:not(:last-child){
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    width: 100%; /* Чтобы линия была по всей высоте */
    display: grid;
    text-align: center;
    align-items: center;
}
.elemCart img{
    height: 5rem;
}
.elemCart .eCRemove{
    height: 2rem;
    width: 2rem;
    display: grid;
    justify-self: center;
    align-self: center;
    align-content: center;
    font-size: 2rem;
    font-family: Arial;
    background: #5e1e458c;
    color: #ff008f;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    padding-bottom: 0.3rem;
}
.elemCart .eCRemove:hover{
    background: #810a0a;
}
.eCOrigToCopy{
    display: none;
}
.eCHeader{
    width: 90%;
    padding: 0 5%;
}

.checkCart{
    display: grid;
    color: white;
}
.checkCart > div{
    display: grid;
    background: #0000004f;
    max-width: 20rem;
    justify-self: center;
    width: 20rem;
    grid-template-columns: 9rem 1fr;
    padding: 0.25rem 0.35rem 0.25rem 0.5rem;
}
.checkCart.hide > div{ display: none; }
.checkCart.email > div:first-child{display: grid; grid-template-rows: 1fr 1fr;}
.checkEmailNote{ grid-column: 1/3; }
.checkText{
    align-self: center;
}
.checkInput{
    background: #00000063;
    padding: 0.5rem;
    min-height: 19px;
}
[contenteditable="true"]:focus {
    outline: none;
    border: 2px solid grey; /* Устанавливаем свой цвет рамки */
    padding: 0.38rem;
}
.checkInputSelect {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #00000063;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    color: white;
}
.checkInputSelect option {
    color: black;
    background-color: transparent;
}
optgroup{
    color: black;
}
/* Эффект при наведении */
.checkInputSelect:hover {
    background-color: rgba(52, 52, 52, 0.18);
}
.checkInputSelect:focus {
    border-color: rgba(52, 52, 52, 0.18);
}
.checkCart button {
    justify-self: center;
    max-width: 20rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;

    /* Градиент в стиле арт-талисмана: от глубокого фиолетового к яркому фуксии */
    background: linear-gradient(135deg, #2b0044 0%, #a1007e 50%, #ff00bf 100%);

    border: none;
    border-radius: 8px;

    /* Свечение кнопки вместо обычной тени */
    box-shadow:
            0 4px 0px #1a0029,
            0 0 15px rgba(255, 0, 191, 0.4),
            inset 0 1px 1px rgba(255, 255, 255, 0.3);

    transition: all 0.1s ease;
    position: relative;
    top: 0;
    height: max-content;
}

.checkCart button:hover {
    /* Усиливаем яркость при наведении */
    background: linear-gradient(135deg, #3d0061 0%, #c4009a 50%, #ff40d0 100%);
    box-shadow:
            0 5px 0px #1a0029,
            0 0 25px rgba(255, 0, 191, 0.6),
            inset 0 1px 2px rgba(255, 255, 255, 0.4);
    top: -2px;
}

.checkCart button:active {
    top: 3px;
    box-shadow:
            0 1px 0px #1a0029,
            0 2px 10px rgba(255, 0, 191, 0.5);
}
.checkCart.hide button{
    display: none;
}
.checkCart.email button{
    display: initial;
}
.checkEmailNote{
    display: none;
}
.checkCart.email .checkEmailNote{
    display: initial;
}

@media (max-width: 600px) {
    main{
        display: initial;
        justify-content: initial;
    }
    .listCart {
        width: initial;
        max-width: initial;
    }
    .listHeader{
        display: none;
    }
    .elemCart{
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-gap: 1rem;
        font-size: 1.2rem;
    }
    .listHeader > div:not(:last-child),
    .elemCart > div:not(:last-child){
        border-right: none;
    }
    .elemCart img {
        width: 100%;
        height: auto;
    }
    .eCHeader{
        width: auto;
        padding: 0;
    }

}
