html {
    font-size: 16px;
}
body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    overflow-x: hidden;
}

section {
    margin-bottom: 2.5rem;
}

input, button, textarea, select { font: inherit; }

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.header {
    flex: 0 0 auto;
}
.footer {
    flex: 0 0 auto;
}
.container-page {
    flex: 1 0 auto;
}

.img__container {
    width: 100%;
    aspect-ratio: 680 / 360;
    overflow: hidden;
    border-radius: .625rem;

    display: flex;
    justify-content: center;
    align-items: center;
}
.img__container img {
    width: auto;
    height: auto;
    object-fit: cover;
}

.container-page {
    margin: 0 auto;
    padding: 1.875rem 8.75rem 2.5rem 8.75rem;
}
.title-page {
    font-size: var(--s28);
    font-weight: 700;
    margin-bottom: 1.875rem;
}
.product__price.product__price--empty {
    font-weight: 500;
    font-size: var(--s16);
}
main {
    flex: 1;
}

.clamp-2,
.clamp-3,
.clamp-4,
.clamp-5{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* конкретные варианты */
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.clamp-4 { -webkit-line-clamp: 4; }
.clamp-5 { -webkit-line-clamp: 5; }


.container-page.breadcrumb-container {
    padding-top: .5rem;
    padding-bottom: 0;
}

div .product-card__sale-container .sale {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    /* display: inline-block; */
    background-image: none;
    background-clip: unset;
    -webkit-background-clip: text;
    color: #194a79;
    -webkit-text-fill-color: #194a79;
    font-size: var(--s17);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
}


/* cookie баннер */
.cookie-banner {
    width: 100%;
    opacity: 1;

    display: flex;
    justify-content: center;

    transition: max-height 0.5s ease, opacity 0.3s ease;
}

.cookie-banner.hide {
    max-height: 0;
    opacity: 0;
}

.cookie-banner__content {
    padding: 1.5rem;

    text-align: center;
    font-size: var(--s15);
    color: var(--cl-granite-grey);

    max-width: 70%;
}

.cookie-banner button {
    margin-top: 1.5rem;

    padding: .5rem 3.75rem;
    background-color: var(--cl-platinum);
    border-radius: .6rem;

    font-weight: 500;

    transition: background-color .3s ease;
}

.cookie-banner button:hover {
    background-color: #dbdbdb;
}




/*кастом input
    Использование:
    структура в точности такая же все классы указывать
    <label class="form-input">
        <input type="text" placeholder=" ">
        <div>Плейсхолдер</div>
    </label>
*/
.form-input {
    position: relative;
    width: 100%;
    font-family: inherit;
}

.form-input input {
    width: 100%;
    padding: .7rem 1.2rem;
    border: 1px solid var(--cl-platinum);
    border-radius: 0.8rem;
    font-weight: 600;
    color: var(--cl-granite-grey);
    background: transparent;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input input:focus {
    border-color: var(--cl-greenish-wet-asphalt);
}

.form-input div {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: var(--s16);
    color: var(--cl-greenish-wet-asphalt);
    pointer-events: none;
    transition: all 0.25s ease;
    background: #fff;
    padding: 0 .5rem;
    border-radius: .3rem;
}

.form-input input:focus + div,
.form-input input:not(:placeholder-shown) + div {
    top: 0;
    transform: translateY(-50%) scale(0.95);
    color: var(--cl-greenish-wet-asphalt);
}


/* кастом checkbox
    Использование структура в точности такая же все классы указывать
    <label class="form-checkbox">
        <input type="checkbox" checked>
        <span class="form-checkbox__custom"></span>
        <span class="form-checkbox__label">Label</span>
    </label>
*/

.form-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    margin-right: 1.5rem;
}

.form-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.form-checkbox__custom {
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid var(--cl-platinum);
    border-radius: 0.4rem;
    display: inline-block;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
    margin-right: 0.6rem;
}

.form-checkbox input:checked + .form-checkbox__custom {
    border-color: var(--cl-pearl-light-grey);
}

.form-checkbox input:checked + .form-checkbox__custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75%;
    height: 75%;
    background-color: var(--cl-pearl-light-grey);
    border-radius: .25rem;
}

.form-checkbox__label {
    font-weight: 600;
    font-size: var(--s16);
    color: var(--cl-granite-grey);
    user-select: none;
    transition: color 0.3s;
}

.form-checkbox input:checked ~ .form-checkbox__label {
    color: var(--cl-greenish-wet-asphalt);
}


/* cтили popup */

.popup-body {
    background-color: white;
    border: 1px solid rgba(226, 226, 226, 1);
    border-radius: .7rem;

    min-width: min(410px, 100%);
    min-height: min(336px, 100%);
}
body .mfp-bg {
    opacity: .2;
}



@media (max-width: 4000px) {
    html { font-size: 22px; }
}

@media (max-width: 2200px) {
    html { font-size: 20px; }
}

@media (max-width: 2000px) {
    html { font-size: 18px; }
}

@media (max-width: 1850px) {
    html { font-size: 17.33px; }
}

@media (max-width: 1700px) {
    html { font-size: 16.67px; }
}

@media (max-width: 1600px) {
    html { font-size: 16px; }
}

@media (max-width: 1400px) {
    html { font-size: 14.67px; }
}

@media (max-width: 1300px) {
    html { font-size: 13.33px; }
}

@media (max-width: 1200px) {
    html { font-size: 11.33px; }
}

@media (max-width: 950px) {
    html { font-size: 16px; }
}
