main {
    display: inline;
    /*     background: url(../gif/cartbg.gif);
    background-position-x: center;
    background-position-y: center;
    height: 100vh;
    margin: 0; */
}

.main-container {
    display: flex;
    flex-direction: column;
}

/* CONTAINER */
.item-container {
    display: flex;
    flex-direction: column;
}

.item {
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-template-rows: auto;
    justify-content: center;
    border-bottom: 0.3px solid black;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
}

.item-grid-title {
    grid-column: 1 / span 2;
}

/* LEFT SIDE */
.left {
    flex: 1;
    position: relative;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.item-img img {
    width: 35vw;
    height: auto;
}

.fav-icon img {
    width: 32px;
}

.fav-bttn {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    z-index: 10;
    background-color: transparent;
}

.fav-bttn svg {
    width: 1rem;
    height: 1rem;
}

/* RIGHT SIDE  */

.right {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 3rem 2rem 1rem;
    align-items: center;
    justify-content: center;
    align-content: center;
    gap: 1rem;
    max-width: 300px;
}

.quantity {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.quantity-num {
    background-color: var(--pink1);
    width: 100%;
    min-width: 1.4rem;
    height: 1.2rem;
    text-align: center;
    border: none;
}

.qnt-button {
    border: none;
    height: 1.2rem;
    background-color: var(--pink2);
    align-self: center;
}

.size-btn {
    border: none;
    background-color: var(--emph);
    max-width: 2rem;
}

.item-grid-title {
    display: flex;
    flex-direction: column;
}

.item-price {
    font-weight: 500px;
    font-size: 1rem;
    /* font-family: 'Courier New', Courier, monospace; */
    grid-row: 1;
    grid-column: 3 / span 1;
    align-self: first baseline;
    justify-self: end;
}

.deleteCartItem, .deleteTicket{
    background-color: var(--white2);
    border: none;
    grid-row: 2;
    grid-column: 3 / 4;
    max-width: 2rem;
    justify-self: end;
}

hr {
    grid-column: 1 / 3;
    align-self: center;
    margin: 0;
    border: 0.1px solid black;
    width: 110%;
}

.sum {
    margin: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    padding: 6rem 1rem 0 1rem;
    gap: 1rem;
}
.sumInfo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.sum-container {
    position: relative;
    margin-top: 3rem;
}

.sum-container h2 {
    font-size: 4rem;
    position: absolute;
    top: 0;
    z-index: 3;
    width: 100%;
    text-align: center;
    color: var(--blackdark);
}
.checkout {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--emph);
    border: none;
    height: 60%;
    text-align: center;
    margin: auto;
    width: 100%;
    height: 5vh;
}

#checkoutBtn {
    width: 100%;
    grid-column: 1 / span 2;
    grid-row: 5 / span 2;
}

.shipping {
    display: flex;
    flex-direction: row;
    gap: 0.3rem;
    align-items: center;
}

.info-svg {
    width: 1.5rem;
    height: 1.5rem;
    align-self: center;
}

.shipping:hover #ship-info {
    opacity: 1;
    transition: opacity 0.4s ease;
}

#ship-info {
    position: absolute;
    width: fit-content;
    margin-left: 1rem;
    top: -20px;
    background-color: var(--blue2);
    padding: 8px 12px;
    opacity: 0;
}

.choiceAddress {
    background-color: var(--pink2);
    text-align: center;
    border: none;
}

.continueChoices {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    grid-column: 1 / span 2;
    grid-row: 6 / span 3;
}

.csJson {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    max-width: 80vw;
    max-height: 80vh;
}
#rotatingLogo{
    width: 100vw;
    height: auto;
}
#sniffCultures {
    background-color: var(--emph);
    display: block;
    padding: 1rem 2rem;
}

/* Sniffer Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    justify-items: center;
}

.card {
    width: 100%;
    height: 25vh;
    background-color: grey;
    border-radius: 1rem;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    color: white;
    position: relative;
    margin-bottom: 1rem;
}

.cardinfo {
    display: flex;
    flex-direction: column;
    position: absolute;
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 10px;
    gap: 4px;
    font-family: "Archivo";
}

.warning,
.warningSum {
    box-shadow: 0 0 20px red,
        0 0 20px red,
        0 0 20px red;
    background-color: rgba(255, 24, 24, 0.657);
    padding: 1rem;
}

.warningSum {
    text-align: center;
    margin-top: 2rem;
}

.warnMessage {
    box-sizing: inherit;
    grid-column: 1 / span 2;
}

#continueGuest:hover+.warning {
    display: block;
    /* Hover yapıldığında görünür */
}

.discount-code {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    width: 100%;
    grid-column: 1 / span 2 ;
}

#discountCode {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: var(--blue1);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.search-button .search-svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.search-button:hover {
    background-color: var(--blue2);
}

@media screen and (min-width:992px) {
    .main-container {
        flex-direction: row;
        justify-content: space-around;

    }

    h1 {
        font-size: 2.4rem;
    }

    h3 {
        font-size: 1.5rem;
        flex-shrink: 0;
    }

    .left {
        flex: 1;
    }

    .right {
        gap: 0;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        column-gap: 1rem;
        max-height: 120px;
    }

    .item-container {
        gap: 1rem;
    }

    .item-price {
        grid-row: 1;
        grid-column: 3/ span 1;
    }

    .size-btn {
        border: none;
        background-color: var(--emph);
        max-width: 2rem;
        grid-row: 2;
        grid-column: 2 / 3;
    }

    .deleteCartItem,.deleteTicket {
        grid-row: 2;
        grid-column: 3 / 4;
        max-width: 2rem;
    }

    .item-grid-title {
        grid-row: 1;
        grid-column: 1 / span 2;
        justify-self: start;
    }

    .item-img img {
        width: 150px;
        height: auto;
    }

    .fav-icon img {
        max-width: 48px;
    }

    .quantity {
        display: flex;
        min-width: 4rem;
        max-width: 2rem;
        grid-row: 2;
    }

    /* right sum  */
    .sum-container {
        position: -webkit-sticky;
        /* Safari için */
        position: sticky;
        top: 3.5rem;
        margin: 0;
        right: 10px;
        height: fit-content;
        width: 30%;
    }

    .sum-container h2 {
        font-size: 4rem;
    }

    p {
        font-size: 1.2rem;
    }

    .card {
        width: 100%;
        min-width: 350px;
        height: 250px;
    }

    .item {
        display: grid;
        grid-template-columns: 1fr 3fr;
        grid-template-rows: auto;
        justify-content: center;
        border-bottom: 0.3px solid black;
        gap: 1rem;
        padding: 1rem;
        align-items: center;
    }

    .left {
        flex: 1;
        position: relative;
    }

    .item-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .item-img img {
        width: 160px;
        height: auto;
    }
    #rotatingLogo{
        width: 40vw;
    }

}
