@import url('./reset.css');

.body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.container {    
    max-width: 1200px;    
    margin: 0 auto;
    padding: 0 45px; 
    gap: 50px;   
}

/* .header {
    background-color: #2d0c53;
} */

.header-main {
    background-color: transparent;    
}

.header__inner {
    padding-top: 40px;
    padding-bottom: 45px;
    display: flex;    
    justify-content: space-between;
    align-items: flex-end;
}

.menu__list {
    display: flex;
    gap: 60px;
    font-weight: 700;
    color: #000;
}

.logo__img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 245px);
    width: 100%;
    max-width: 1200px; 
    justify-content: center;
    justify-items: center; 
    column-gap: 30px;
    row-gap: 30px; 
    margin: 60px auto;
}

.card {
    width: 245px;
    min-height: 380px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    transition: 0.2s;
    position: relative;
}

.card:hover {
	box-shadow: 4px 8px 16px rgba(82, 51, 255, 0.708);
}

.card__top {
	flex: 0 0 220px;
	position: relative;
	overflow: hidden;
}

.card__image {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card__image > img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: 0.2s;
}

.card__image:hover > img {
	transform: scale(1.1);
}

.card__label {
    padding: 4px 8px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff6633;
    border-radius: 4px;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

.card__bottom {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    padding: 10px;
}

.card__prices {
    display: flex;
    margin-bottom: 5px;
    flex: 0 0 30%;    
}

.card__price::after {
    content: "₽";
    margin-left: -7px;
    position: relative;
}

.card__price--discount {
    font-weight: 700;
    font-size: 19px;
    color: #414141;
    display: flex;
    flex-wrap: wrap-reverse;
}

.card__price--discount::before {
    content: "Со скидкой";
    font-weight: 400;
    font-size: 13px;
    color: #bfbfbf;
}

.card__price--common {
    font-weight: 700;
    font-size: 22px;
    color: #050505ea;
    display: flex;
    column-gap: 10px;
    flex-wrap: wrap-reverse;
    justify-content: flex-end;
}

.card__price--common::before {
    content: "Цена:";   
    font-weight: 500;
    font-size: 21px;
    color: #0e0d0def;
}

.card__title {
    display: block;
    margin-bottom: 1px;
    font-weight: 400;
    font-size: 15px;
    color: #000;
    line-height: 150%;
    color: #414141;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.card__title:hover {
    color: #d63b08;
    font-weight: 600;
}

.card__add {
    display: block;
    width: 100%;
    font-weight: 400;
    font-size: 17px;
    color: #70c05b;
    padding: 10px;
    text-align: center;
    border: 1px solid #70c05b;
    border-radius: 4px;
    cursor: pointer; 
    transition: 0.2s;
    margin-top: auto;
}

.card__add:hover, .card__add.active {
    border: 1px solid #ff6633;
    background-color: #ff6633;
    color: #fff;
}

.show-cards {
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    background-color: #606060;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    max-width: 150px;
    align-self: center;
}

.show-cards:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.show-cart {
    position: relative;
    top: -87.5px;
    left: 10%;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    background-color: #606060;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    text-decoration: none;
}

.show-cart:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.basket{
    position: absolute;
    top: 12px;
    right: 20px;
}

.basket__inner{
    position: relative;
}

.basket__count{
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    background-color: #ff3b30;
    color: white;
    padding: 3px;
    text-align: center;
    min-width: 25px;
}
