*,
*::after,
*::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
}

main {
    margin: 0 auto;
    max-width: 1300px;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #ccc;
    background-color: transparent;
    padding: 8px;
    font-size: 1.6rem;
    color: #333;
    outline: none;
    cursor: pointer;
}

.button {
    align-self: center;
    outline: 0;
    margin-top: auto;
    background: none;
    border: 1px solid #d9d9d9;
    padding: 8px 0;
    color: #515151;
    text-transform: uppercase;
    font-family: inherit;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.button:hover,
.custom-select:hover {
    color: deeppink;
    border-color: deeppink;
}


/*HEADER*/
.header .top,
.header .bottom {
    position: relative;
    height: 10px;
    background: linear-gradient(141deg, cyan 0%, rebeccapurple 40%, deeppink 90%);
}

.header h1 {
    font-weight: 300;
    text-transform: uppercase;
}

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

/* PRODUCT LIST */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 5px;
}

.view-options {
    display: none;
}

.view-options button {
    padding: 5px 10px;
    margin-right: 10px;
    cursor: pointer;
}

.sort-filter {
    flex: 1;
    display: flex;
    justify-content: space-between;
}


.sort-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.products {
    display: flex;
    margin: 5px;
    flex-wrap: wrap;
    gap: 20px;
}

.products.tile-view {
    flex-direction: row;
}

.products.list-view {
    flex-direction: column;
}

.products.tile-view .card {
    margin: 0 auto;
    width: calc(25% - 20px);
    padding: 10px;
}

.products.list-view .card {
    margin: 0 auto;
    flex-direction: row;
    padding: 10px;
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.pagination button, .pagination select {
    padding: 5px 10px;
    cursor: pointer;
}


/*  CARD */

.card {
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* PRODUCT CARD */
.product.card {
    flex: 1;
    width: 100%;
}

.product.card .photo {
    display: flex;
    justify-content: center;
    width: 70px;
    height: 180px;
    overflow: hidden;
}

.tile-view .product.card .photo {
    align-self: center;
    margin-bottom: 10px;
}

.product.card .photo img {
    height: 100%;
}

.product.card .description {
    padding: 5px 10px;
    height: 200px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
}

.list-view .product.card .description {
    border-left: 2px solid #efefef;
}

.tile-view .product.card .description {
    border-top: 2px solid #efefef;
}


.product.card .description p.price {
    color: #515151;
    font-weight: 400;
    padding-top: 15px;
    font-size: 2.4rem;
    margin-bottom: 5px;
}

.product.card .description p.title {
    font-size: 2rem;
    color: #515151;
    margin: 0;
    text-transform: uppercase;
    font-weight: 500;
}

.product.card .description p.desc {
    margin-top: 10px;
    color: #727272;
    flex: 1;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.3rem;
}


.product.card .description button {
    width: 200px;
    margin-right: 5px;
}

.product.card .description button:hover {
    border: 1px solid deeppink;
    color: deeppink;
    cursor: pointer;
}

/* BASKET */
#Basket {
    position: fixed;
    top: 60px;
    left: -110%;
    transition: left .3s linear;
}

#Basket.active {
    left: 10px;
}

#Basket .backdrop {
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.3s linear;
}

#Basket .backdrop.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.basket.card {
    width: 350px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 200;
}

.basket .txt-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    font-size: 1em;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid #efefef;
}

.a-btn {
    text-decoration: none;
    cursor: pointer;
}

.a-btn:hover {
    color: #333;
}

.basket .container {
    overflow-y: auto;
    max-height: 60vh;
}

.basket .container .row {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 2px solid #efefef;
}

.basket .container .row .col {
    display: flex;
}

.basket .container .right.col {
    width: 60px;
    flex-direction: column;
    color: #666;
    justify-content: space-between;
}

.basket .container .right.col .remove-icon-item {
    margin-left: auto;
}

.basket .container .right.col .count-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.basket .container .left .image {
    align-self: center;
    width: 50px;
    height: 50px;
    overflow: hidden;
}

.basket .container .left .image img {
    width: 100%; /* Dopasowanie szerokości do kontenera */
    height: 100%; /* Dopasowanie wysokości do kontenera */
    object-fit: cover; /* Zachowanie proporcji obrazu */
}

.basket .container .left.col .info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: space-between;
}

.basket .container .left .info h4 {
    font-weight: 500;
}

.basket .container .left.col {
    justify-content: flex-start;
    flex: 1;
    gap: 5px;
}

.basket .container {
}


.basket .summary {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    border-bottom: 2px solid #efefef;
}

.basket .summary h4:first-of-type {
    font-weight: 500;
}

.basket .order {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.basket .order .button-order {
    flex: 1;
    font-size: 1.8rem;
    font-weight: 300;
    border-color: deeppink;
    color: deeppink;
}

.basket .order .button-order:hover {
    border-color: deeppink;
    color: #f3afd7;
    background-color: deeppink;
    font-weight: 400;
}

.basket .success-container,
.basket .fail-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 50px;
}

.basket .success-container .a-btn,
.basket .fail-container .a-btn {
    color: #333;
    position: absolute;
    top: 10px;
    right: 10px;
}

.basket .success-container .a-btn span,
.basket .fail-container .a-btn span {
    color: #333;
}

.basket .success-container span {
    color: lawngreen;
}

.basket .fail-container {
    color: palevioletred;
}

@media (min-width: 930px) {
    .view-options {
        display: block;
    }
}

@media (min-width: 768px) {
    main {
        padding: 0 20px;
    }
}
