/* GLOBALS ================================================================================================================================ */

body {
    font-family: 'main-font', sans-serif;
    font-weight: 400;
    line-height: 140%;
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1{
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 40px;
    /* margin: 1em 0; */
}

main {
    flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

img{
    display: block;
    min-width: 0;
}

/* /GLOBALS =============================================================================================================================== */


/* VARIABLES ============================================================================================================================== */

:root {
    --color-white: #FFFFFF;
    --color-black: #2C2C2C;
    --color-black75: rgba(44, 44, 44, 0.75);
    --color-black1: #262626;

    --color-ginger-dark2: #99422D;
    --color-ginger-dark1: #AD4B33;
    --color-ginger-main: #C4553A;
    --color-ginger-light1: #CA664E;
    --color-ginger-light2: #D07761;

    --color-beige: #F5F0EB;

    --color-gray-dark3: #262626;
    --color-gray-dark2: #444444;
    --color-gray-dark1: #838EA2;
    --color-gray-main: #B4BBC7;
    --color-gray-light1: #CBCFD8;
    --color-gray-light2: #DFE2E5;
    --color-gray-light3: #E6E8EC;
    --color-gray-light4: #F7F8F9;

    --color-red-main: #E31E24;
    --color-red-light1: #FF5959;

    --font-base: 16px;
    --font-small: 14px;
    --font-xsmall: 12px;
    --font-tiny: 10px;
}

/* /VARIABLES ============================================================================================================================= */


/* MARGINS ============================================================================================================================== */

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-56 {
    margin-bottom: 56px;
}

.mb-72 {
    margin-bottom: 72px;
}

/* /MARGINS ============================================================================================================================= */


/* PADDINGS =============================================================================================================================== */

.py-12 {
    padding-block: 12px;
}

.px-32 {
    padding-inline: 32px;
}

.px-40 {
    padding-inline: 40px;
}

.px-64 {
    padding-inline: 64px;
}

/* /PADDINGS =============================================================================================================================== */


/* GAPS ==================================================================================================================================== */

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

.gap-48 {
    gap: 48px;
}

/* /GAPS =================================================================================================================================== */


/* GENERAL ================================================================================================================================= */

.header {
    position: relative;
}

.header--bottom-line {
    border-bottom: 1px solid var(--color-gray-light3);
}

.header__top {
    height: 41px;
}

.header__top-link {
    color: var(--color-gray-dark1);
    font-size: var(--font-xsmall);
    transition: .3s ease;
}

.header__top-link:hover {
   color: var(--color-gray-dark2);
}

.header__top-phone {
    color: var(--color-black);
    font-size: var(--font-xsmall);
}

.header__menu {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-light3);
    display: none;
    position: absolute;
    width: 100%;
    z-index: 999;

}

.border--right {
    padding-right: 28px;
    border-right: 1px solid var(--color-gray-light3);
}

.header__category-list {
    margin-bottom: 16px;
}

.header__menu .col-8 {
    padding-left: 32px;
}

.header__category-descriptor {
    display: block;
    font-weight: 500;
    font-size: 12px;
    color: var(--color-gray-dark1);
    margin-block: 16px;
}

.header__category-item {
    position: relative;
    padding: 12px;
    margin-inline: -12px;
    border-radius: 8px;
}

.header__category-link {
    font-size: 14px;
    color: var(--color-black);
}

.header__category-link:hover, .header__subcategory-link:hover {
    color: var(--color-ginger-main);
}

.header__category-item::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("../img/arrow_link.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    /* дополнительное позиционирование: */
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.header__category-item:hover {
    background-color: var(--color-gray-light4);
}

.header__subcategory-title {
    margin-top: 32px;
    font-family: 'header-font', serif;
    font-size: 26px;
    font-weight: 700;
}

.header__more-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ginger-main);
    margin-top: 24px;
    margin-bottom: 40px;
}

.header__more-link:hover {
    color: var(--color-ginger-dark2);
}

.header__subcategory-item {
    position: relative;
   
}

.header__subcategory-link {
    display: block;
    font-size: 14px;
    color: var(--color-black);
    padding-bottom: 12px;
    padding-top: 16px;
    border-bottom: 1px solid var(--color-gray-light3);
}

.header__subcategory-link::after {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    content: attr(data-count);
    font-size: 14px;
    color: var(--color-gray-main);
}

.gray {
    background-color: var(--color-gray-light4);
}

.beige {
    background-color: var(--color-beige);
}

.dark {
    background-color: var(--color-black);
}

.dark1 {
    background-color: var(--color-black1);
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  border-radius: 8px;
  transition: background-color 0.2s;
}

/* Иконка бургера (контейнер для трёх полосок) */
.catalog-btn__icon {
  position: relative;
  width: 18px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Полоски */
.catalog-btn__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.header__main-child {
    height: 71px;
}

.header__nav {
    padding-bottom: 17px;
}

.header__nav a {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-black);
    transition: .3s ease;
}

.header__nav a:hover {
    color: var(--color-ginger-main);
}

.hero {
    position: relative;
    overflow: hidden;
    height: 700px;
}

.hero__slider {
    position: absolute;
    top: 0;
    left: 0;
    
    object-fit: cover;

    z-index: -1;
}

.btn--fit-content {
    padding: 14px 40px !important;
    width: fit-content !important;
}

@media (max-width: 960px) {
    .btn--fit-content {
        width: 100% !important;
    }
    .input-wrapper {
        max-width: 100% !important;
    }
}

.submit-btn:disabled {
    background-color: var(--color-gray-light4);
    cursor: not-allowed;
    pointer-events: none;
    color: var(--color-gray-main);
}

.submit-btn:disabled:hover {
    background-color: var(--color-gray-light4);
}

.btn {
    display: inline-block;
    border: none;
    background: var(--color-ginger-main);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    width: fit-content !important;
    flex-shrink: 0;
    z-index: 2;
}

.btn:hover {
  background: var(--color-ginger-dark2);
}

.btn--dark {
    display: inline-block;
    border: none;
    background: var(--color-black);
    color: white;
    padding-inline: 24px;
    height: 48px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    width: fit-content;
    z-index: 2;
}

.btn--dark:hover {
    background: var(--color-black75);
}

.hero .h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 56px;
    line-height: 140%;
    color: var(--color-white);

    z-index: 2;
}

.hero__title {
    font-weight: 500;
    font-size: 24px;
    color: var(--color-ginger-main);

    z-index: 2;
}

.hero__wrapper {
    display: flex;
    flex-direction: column;
}

.btn-catalog-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 600px;
}

.social-media a {
    background-color: var(--color-gray-light4);
    padding: 12px;
    border-radius: 4px;

    color: var(--color-black);
}

.social-media a:hover {
    color: var(--color-ginger-main);
    transition: .3s ease;
}

.collections-card {
    position: relative;
    height: 554px;
    overflow: hidden;
    border-radius: 16px;
    display: flex;

}

.collections-card__img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* object-position: center top; */
  transition: transform 0.3s ease;
}
.collections-card:hover .collections-card__img-bg {
  transform: scale(1.1);
}

.collections-card__content {
  position: relative;
  z-index: 1;
  color: white;
  padding: 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.collections-card__title {
    font-family: 'header-font', serif;
    font-size: 26px;
    font-weight: 700;
}

.collections-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, 
  rgba(0,0,0,0.8) 0%, 
  rgba(0,0,0,0.1) 50%,
  rgba(0,0,0,0) 80%
  );
  pointer-events: none;
}

.title--descriptor, .collections-card__description {
    font-size: 12px;
    color: var(--color-gray-main);
}

.h2 {
    font-family: 'header-font', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
}

.h2--white {
    font-size: 32px;
    font-family: 'header-font', serif;
    color: var(--color-white);
}

.more__link {
    color: var(--color-ginger-main);
    gap: 4px;
    font-size: 14px;
}

.more__link:hover {
    color: var(--color-ginger-dark2);
    transition: .3s ease;
}

.title--descriptor {
    margin-bottom: 12px;
    display: block;
}

.product-card__img-zone {
    position: relative;
}

.product-card__img {
    height: 500px;
    border-radius: 8px;
    object-fit: cover;
}

.product-card__title {
    display: inline-block;
    font-size: 12px;
    color: var(--color-black);
    margin-top: 16px;
}

.product-card__price-wrapper {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
    margin-top: 12px;
}

.product-card__price--new {
    color: var(--color-ginger-main);
}

.product-card__price--old {
    font-weight: 400;
    color: var(--color-gray-main);
    text-decoration: line-through;
}

.badge-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 16px;
    left: 16px;
}

.badge--sale {
    color: var(--color-white);
    font-size: 10px;
    padding: 5px 12px;
    background-color: var(--color-ginger-main);
    border-radius: 4px;
}

.badge--new {
    color: var(--color-white);
    font-size: 10px;
    padding: 5px 12px;
    background-color: var(--color-black);
    border-radius: 4px;
}

@media (max-width: 960px) {
    .badge--sale {
        padding: 5px 8px;
    }
    .badge--new {
        padding: 5px 8px;
    }
}

.product-card__btn {
    position: absolute;
    width: calc(100% - 32px);
    left: 16px;
    bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    padding-block: 14px;
    background-color: var(--color-black);
    border: none;
    color: var(--color-white);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-card__btn:hover {
  background-color: var(--color-black75);
}

.product-card__btn-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.product-card__img-zone:hover .product-card__btn-wrapper {
    opacity: 1;
    visibility: visible;
}

.advantages__icon-wrapper {
    background-color: var(--color-white);
    border-radius: 999px;
    color: var(--color-ginger-main);
    aspect-ratio: 1;
    width: 56px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.advantages__title {
    font-size: 14px;
    color: var(--color-black);
}

.advantages__description {
    font-size: 12px;
    color: var(--color-black);
}

.advantages__item {
    gap: 24px;
    padding-block: 32px;
}

.about {
    padding-block: 80px;
}

.about__p {
    font-size: 14px;
    color: var(--color-gray-main);
    max-width: 732px;
    line-height: 140%;
}

.about__link {
    display: inline-block;
    color: var(--color-white);
    font-size: 12px;
    padding-inline: 24px;
    height: 48px;

    border: 1px solid var(--color-white);
    border-radius: 8px;
    transition: .3s ease;
}

.about__img {
    border-radius: 8px;
    width: 100%;
}

.about__link:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.footer__top {
    padding-block: 56px;
}

.footer__links {
    gap: 110px;
}

.footer__link {
    font-size: 12px;
    color: var(--color-white);
}

.footer__link:hover {
    color: var(--color-gray-light1);
}

.footer__column {
    gap: 12px;
}

.footer__link--with-icon {
    color: var(--color-white);
    gap: 8px;
}

.footer__social-media {
    color: var(--color-white);
    padding: 10px;
    background-color: var(--color-black);
    width: 40px;
    border-radius: 999px;
    margin-top: 12px;
    transition: .3s ease;
}

.footer__social-media:hover {
    color: var(--color-gray-light1);
}

.footer__descriptor {
    display: block;
    font-size: 10px;
    color: var(--color-gray-main);
    margin-bottom: 24px;
}

.footer-bottom__copyright, .footer-bottom__link {
    font-size: 12px;
    color: var(--color-gray-dark1);

}

.footer-bottom__link:hover {
    color: var(--color-gray-dark2);
    transition: .3s ease;
}

.footer-bottom__line {
    border-top: 1px solid var(--color-black);
    padding-block: 24px;
}

.footer-bottom__links {
    gap: 32px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
    margin-block: 24px;   
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    gap: 4px;
}

.breadcrumbs a {
    color: var(--color-gray-main);
    text-decoration: none;
}

.breadcrumbs li:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../img/arrow_breadcrumbs.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}

.catalog-text .h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--color-black);
    line-height: 1;
}

.amount-of-search {
    font-size: 12px;
    color: var(--color-gray-main);
}

.catalog-wholesale__icon-wrapper {
    background-color: var(--color-white);
    border-radius: 4px;
    color: var(--color-ginger-main);
    aspect-ratio: 1;
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-wholesale {
    padding: 16px 32px 16px 16px;
}

.br-8 {
    border-radius: 8px;
}

.catalog-wholesale__title {
    font-weight: 500;
    color: var(--color-black);
}

.catalog-wholesale__description {
    color: var(--color-black);
}

.aside-content__wrapper {
    gap: 52px;
    margin-bottom: 72px;
}

.categories {
    width: 333px;
}

.category__title {
    font-size: 14px;
    color: var(--color-black);
    font-weight: 500;
    padding-block: 10px;
}

.category-sub__title {
    display: block;
    font-size: 14px;
    color: var(--color-black);
    padding: 6px 16px;
}

.category-sub__title:hover {
    color: var(--color-ginger-main);
    cursor: pointer;
}

.category__counter {
    font-size: 12px;
    color: var(--color-gray-main);
}

.btn--more {
    border: 1px solid var(--color-gray-light3);
    font-size: 12px;
    color: var(--color-black);
    border-radius: 8px;
    background-color: #fff;

    width: 200px;
    height: 48px;
}

.btn--more:hover {
    border: 1px solid var(--color-gray-light4);
    background-color: var(--color-gray-light4);
}

.pagination__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination__item {
    max-height: 40px;
}

.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-black);
    border-radius: 999px;
    transition: .3s ease;

    font-size: 12px;
}

.pagination__link:hover {
  background-color: var(--color-gray-light4);
  text-decoration: none;
}

.pagination__link--active {
    background-color: var(--color-ginger-main);
    color: var(--color-white);
    pointer-events: none;
}

.pagination__link--disabled,
.pagination__link:disabled {
  color: var(--color-gray-main);
  pointer-events: none;
  background: none;
}

@media (max-width: 960px) {
    .h2 {
        font-size: 26px;
    }
    .more__link {
        font-size: 12px;
    }
    .title--descriptor {
        font-size: 10px;
    }
    .collections-card__title {
        font-size: 20px;
    }
    .product-card__price, .product-card__price--old, .product-card__price--new {
        font-size: 12px;
    }
    .header__top {
        display: none !important;
    }
    .px-md-16 {
        padding-inline: 16px;
    }
    .catalog-btn__text {
        display: none !important;
    }
    .header__nav {
        display: none !important;
    }
    .header__main {
        padding-inline: 4px;
    }
    .header__main-child {
        height: 48px !important;
    }
    .header__main-child:last-child {
        gap: 24px !important;
    }
    .hero .h1 {
        font-size: 32px !important;
        margin-bottom: 4px;
    }
    .hero {
        height: 418px;
        margin-bottom: 56px;
    }
    .hero__title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .btn {
        padding: 11px 24px;
        font-size: 12px;
    }
    .btn-catalog-wrapper {
        width: 300px;
        margin-bottom: 32px;
    }


    .collections {
        margin-bottom: 56px;
    }
    .collections-card {
        height: 326px;
    }
    .advantages {
        padding-block: 12px;
        padding-inline: 10px;
    }
    .advantages__item {
        gap: 16px;
        padding-block: 24px;
    }
    .about {
        padding-block: 32px;
    }
    .title--descriptor {
        margin-bottom: 4px;
        font-size: 10px;
    }
    .h2--white {
        margin-bottom: 16px;
        font-size: 26px;
    }
    .about__p {
        margin-bottom: 32px;
        font-size: 12px;
    }
    .about__link {
        margin-bottom: 32px;
    }
    .product-card__img {
        height: 395px;
    }
    .footer__links {
        gap: 32px;
    }
    .footer__top {
        padding-block: 32px;
    }
    .footer__link-logo {
        margin-bottom: 32px;
    }
    .footer-bottom__links {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }
    .social-media__telegram svg, .social-media__whatsapp svg {
        width: 20px;
        height: 20px;
    }
    .social-media a {
        padding: 6px;
    }
    .social-media {
        margin-bottom: 40px;
    }
}

.social-media__telegram,
.social-media__whatsapp{
    fill: var(--color-black);
    transition: all 0.2s ease-in-out;
}

.social-media__telegram:hover,
.social-media__whatsapp:hover{
    fill: var(--color-ginger-main);
}

.popup {
    width: 500px;
    position: absolute;

    background-color: var(--color-white);
    padding: 32px;
    border-radius: 12px;

    border: 1px solid var(--color-black);

    z-index: 10;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.input-wrapper {
    position: relative;
    margin-bottom: 24px;
    max-width: 555px;
}
input {
    font-size: 14px;
    width: 100%;
    height: 56px;
    padding: 27px 16px 9.5px;
    line-height: 1.4;
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    outline: none;
    transition: border 0.2s;
}
input:hover {
    border-color: var(--color-black);
}
input:focus {
    border-color: var(--color-black);
}
input::placeholder {
    color: transparent; /* скрываем стандартный плейсхолдер */
}
.floating-label {
    position: absolute;
    font-size: 14px;
    color: var(--color-gray-main);
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.2s ease all;
    pointer-events: none;
    background-color: transparent;
}
input:focus ~ .floating-label,
input:not(:placeholder-shown) ~ .floating-label {
    /* top: 9.5px; */
    transform: translateY(-19.5px);
    font-size: 12px;
}

/* Кнопка-глазик */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    transition: color 0.2s;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--color-black75);
}

/* Иконка глаза */
.eye-icon {
    display: block;
}

/* У инпута должен быть отступ справа, чтобы текст не наезжал на кнопку */
.input-wrapper--password input {
    padding-right: 44px; /* место под кнопку */
}

.submit-btn {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-ginger-main);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;

    width: 100%;
    height: 48px;

    transition: .3s ease all;
}

.submit-btn:hover {
    background-color: var(--color-ginger-dark2);
}

.form-checkboxes {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Контейнер чекбокса */
.form-options .checkbox-wrapper {
    height: 20px;
}

/* Метка-обёртка */
.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

/* Скрываем стандартный чекбокс */
.checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

/* Кастомный квадрат */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-gray-light3);
    border-radius: 2px;
    background-color: var(--color-white);
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

/* Галочка (псевдоэлемент) */
.checkbox-custom::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: solid var(--color-ginger-main);
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Состояние checked */
.checkbox-input:checked + .checkbox-custom {
    background-color: var(--color-white);
    border-color: var(--color-ginger-main);
}

.checkbox-input:checked + .checkbox-custom::after {
    opacity: 1;
}

/* Состояние focus (для доступности) */
.checkbox-input:focus + .checkbox-custom {
    box-shadow: 0 0 0 0 var(--color-ginger-main);
    outline: none;
}

/* Состояние hover */
/* .checkbox-label:hover .checkbox-custom {
  border-color: var(--color-gray-light1);
} */

/* Текст чекбокса */
.checkbox-text {
    font-size: 12px;
    color: var(--color-black);
    margin-top: 1px;
}

/* Ссылка внутри текста (если нужна) */
.checkbox-text a {
    color: #3b82f6;
    text-decoration: none;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Контейнер табов */
.tabs {
  display: flex;
  width: 100%;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-gray-light3);

  transition: opacity 0.2s ease;
}

/* Опционально: анимация при скрытии */
.tabs-hidden {
    display: none;
}


/* Кнопка таба */
.tab-btn {
  flex: 1;           /* занимает 50% ширины */
  width: 50%;        /* fallback */
  background: none;
  border: none;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: center; /* центрируем текст */
}

/* Подчёркивание активного таба */
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--color-ginger-main);
}

/* Hover-эффект */
.tab-btn:hover:not(.active) {
  color: var(--color-gray-main);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.forgot-link {
    font-size: 12px;
    color: var(--color-ginger-main);
}

.forgot-link:hover {
    color: var(--color-ginger-dark2);
}

.reset-form__header {
    display: block;
    margin-bottom: 24px;
    font-weight: 500;
}

.reset-form__p {
    display: block;
    margin-bottom: 16px;
    
    font-size: 14px;
}

.notification-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    left: 500px;
}

.notification-modal__icon-wrapper {
    background-color: var(--color-beige);
    border-radius: 999px;
    color: var(--color-ginger-main);
    aspect-ratio: 1;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
}

.notification-modal__header {
    font-weight: 500;
    margin-bottom: 8px;
}

.notification-modal__p {
    font-size: 14px;
    color: var(--color-gray-dark1);
    text-align: center;
}

.profile-logout {
    border-top: 1px solid var(--color-gray-light3);
    padding-top: 16px;
}

.profile-sidebar {
    border-right: 1px solid var(--color-gray-light3);
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* height: calc(100vh - 154px); */
    min-height: 650px;
}

.persona-card {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-light3);
    margin-bottom: 24px;
}

.persona-card__discount {
    color: var(--color-white);
    background-color: var(--color-ginger-main);
    padding: 2px 8px;
    border-radius: 999px;

    font-size: 10px;
}

.persona-card__full-name {
    display: block;
    padding: 16px 0 4px 0;
}

.profile-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    margin: 0 -12px 2px;
}

.profile-nav {
    margin-bottom: 32px;
}

.profile-menu__item {
    border-radius: 4px;
    position: relative;

    transition: .3s ease all;
}

.profile-menu__item:hover {
    background-color: var(--color-gray-light3);
}

.profile-menu__item.active {
    color: var(--color-white);
    background-color: var(--color-black);
    .profile-menu__text {
        color: var(--color-white) !important;
    }
}

.profile-menu__text {
    color: var(--color-black);
    width: 100%;
    height: 100%;

    font-size: 14px;
    font-weight: 500;
}

.profile-menu__link {
    position: absolute;
    width: 100%;
    height: 100%;
    margin-left: -12px;
}

.manager-card {
    padding: 16px;
    border-radius: 8px;
    background-color: var(--color-gray-light4);
    margin-bottom: 32px;
}

.manager-card__descriptor {
    display: block;
    color: var(--color-gray-dark1);
    margin-bottom: 16px;

    font-size: 12px;
}

.manager-card__full-name {
    display: block;
    color: var(--color-black);
    margin-bottom: 8px;

    font-size: 14px;

}

.manager-card__email {
    display: block;
    color: var(--color-black);
    margin-right: 16px;

    font-size: 12px;
}

.manager-card__number {
    display: block;
    color: var(--color-black);

    font-size: 12px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-dark1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.logout-btn:hover {
    color: var(--color-black);
}

.profile-info {
    padding: 32px 20px;
}

.profile-info .h1 {
    font-family: 'header-font', serif;
    font-size: 26px;
    margin-bottom: 32px;
}

.profile-info__title {
    display: block;
    font-weight: 500;
    margin-bottom: 24px;
}

.inputs-group {
    margin-bottom: 32px;
}

@media (max-width: 960px) {
    .hidden-960 {
        display: none;
    }
    .profile-info__title {
        font-size: 14px;
        margin-bottom: 16px;
    }
}

.orders-info {
    padding: 32px 20px;
}

.orders-info .h1 {
    font-family: 'header-font', serif;
    font-size: 26px;
    margin-bottom: 32px;
}

.order:not(:last-child) {
    margin-bottom: 8px;
}

.order {
    width: 100%;
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    padding: 23px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;

    transition: .3s ease all;
}

.order:hover {
    background-color: var(--color-gray-light3);
}

.order-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.order-header__uniter {
    display: flex;
    align-items: center;
}

.order-header__number {
    width: 80px;
    font-size: 14px;
    color: var(--color-black);
    margin-right: 24px;
}

.order-header__date {
    width: 80px;
    font-size: 14px;
    color: var(--color-gray-main);
    margin-right: 48px;
}

.order-info__status {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 4px;
    height: 28px;
    padding-inline: 8px;
    border-radius: 4px;
}

.status--delivered, .status--in-processing {
    color: var(--color-black);
    background-color: var(--color-gray-light4);
}

.status--cancelled {
    color: var(--color-gray-main);
    background-color: var(--color-gray-light4);
}

.status--sent {
    color: var(--color-ginger-main);
    background-color: var(--color-beige);
}

.status--new {
    color: var(--color-white);
    background-color: var(--color-black);
}

.order-info__wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--color-black);
}

.order-info__price {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .order {
        padding: 16px;
    }
    .orders-info {
        padding: 24px 4px;
    }
    
    .order-header__number {
        width: fit-content;
        margin-right: 16px;
        font-size: 12px;
    }
    .order-header__date {
        margin-right: 0;
        font-size: 12px;
    }
    .order-info__status {
        font-size: 12px;
    }
    .order-info__price {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .order-header {
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }
    .order-info__wrapper {
        flex-direction: column-reverse;
        align-items: end;
    }
}

.order-info {
    padding: 32px 20px;
}

.order-info .h1 {
    font-family: 'header-font', serif;
    font-size: 26px;
}

.link-with-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-ginger-main);
    margin-bottom: 16px;
}

.link-with-icon:hover {
    color: var(--color-ginger-dark2);
}

.header-status-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.order-info__counter {
    display: block;
    font-weight: 500;
    margin-bottom: 16px;
}

.products {
    padding: 24px;
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    margin-bottom: 32px;
}

.product:not(:first-child) {
    margin-top: 12px;
}

.product:not(:last-child) {
    border-bottom: 1px solid var(--color-gray-light3);
    padding-bottom: 12px;
}

.product {
    display: flex;
    justify-content: space-between;
    column-gap: 16px;
}

.product img {
    height: 88px;
    width: 64px;
    object-fit: contain;
    border-radius: 4px;
    margin-right: 16px;
}

.product__header {
    display: flex;
}

.product__name {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.product__info {
    display: flex;
    column-gap: 12px;
    row-gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.product__info span {
    font-size: 12px;
    color: var(--color-gray-main);
}

.product__price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: end;
    margin-top: 8px;
}

.product__price, .product__price--new {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.product__price--old {
    font-size: 12px;
    color: var(--color-gray-main);
    text-decoration: line-through;
    white-space: nowrap;
}

.buyer-info {
    display: flex;
    column-gap: 32px;
    row-gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    border: 1px solid var(--color-gray-light3);
    padding: 24px;
    border-radius: 8px;
    width: 100%;
}

.info-card__title {
    display: block;
    margin-bottom: 24px;
    font-weight: 500;
}

.info-card__wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 4px;
}

.info-card__wrapper:not(:last-child) {
    margin-bottom: 16px;
}

.info-card__descriptor {
    font-size: 14px;
    color: var(--color-gray-dark1);
}

.info-card__value {
    font-size: 14px;
}

.calculation {
    padding: 24px;
    background-color: var(--color-gray-light4);
    border-radius: 8px;
}

.calculation__wrapper:not(:last-child) {
    margin-bottom: 12px;
}

.calculation__wrapper--last {
    margin-bottom: 16px !important;
}

.calculation__wrapper, .calculation-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calculation-total {
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-light3);
}

.calculation__descriptor {
    font-size: 12px;
}

.calculation__counter {
    font-size: 12px;
    color: var(--color-gray-main);
}

.calculation__value, .calculation__value--orange {
    font-size: 12px;
}

.calculation__value--orange {
    color: var(--color-ginger-main);
}

.calculation-total__descriptor, .calculation-total__value {
    font-size: 14px;
    font-weight: 700;
}


@media (max-width: 960px) {
    .header-status-wrapper {
        margin-bottom: 24px;
    }
    .products {
        padding: 16px;
        margin-bottom: 24px;
    }
    .order-info__counter {
        font-size: 14px;
    }
    .product__name {
        font-size: 12px;
        margin-top: 4px;
    }
    .product__price-wrapper {
        margin-top: 4px;
    }
    .product__price, .product__price--new {
        font-size: 12px;
    }
    .product__price--old {
        font-size: 10px;
    }
    .product__info span {
        font-size: 10px;
    }
    .product img {
        height: 77px;
        width: 56px;
        margin-right: 12px;
    }
    .buyer-info {
        flex-direction: column;
        margin-bottom: 24px;
    }
    .info-card {
        padding: 16px;
    }
    .info-card__title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .info-card__descriptor {
        font-size: 12px;
    }
    .calculation {
        padding: 16px;
    }
}

.product-deeper__imgs-wrapper {
    display: flex;
    gap: 8px;
}

.product-deeper__miniatures {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-deeper__miniatures img {
    width: 64px;
    height: 88px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.product-deeper__miniatures img.slick-current {
    border: 1px solid var(--color-ginger-main);
}

.product-deeper__img {
    border-radius: 8px;
    max-width: 650px;
    max-height: 890px;
    overflow: hidden;
    position: relative;
}

.product-deeper__img img {
    object-fit: cover;
}

.product-deeper__badge-wraapper {
    position: absolute;
}

.product-deeper__info .h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--color-black);
    line-height: 1;
    
    margin-bottom: 8px;
}

.stars {
    background-size: 1em 1em;
    background-image: url(../img/star--grey.svg);
    background-repeat: repeat-x;
    width: 5em;
    height: 1em;
    position: relative;
    margin-right: 8px;
}

.stars__filled {
    width: 100%;
    background-size: 1em 1em;
    background-repeat: repeat-x;
    background-image: url(../img/star--yellow.svg);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
}

.reviews-info__wrapper {
    display: flex;
    margin-bottom: 32px;
}

.reviews-info__average {
    font-size: 12px;
    margin-right: 4px;
}

.reviews-info__quantity-wrapper {
    font-size: 12px;
}

.reviews-info__quantity {
    font-size: 12px;
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    transition: .3s ease all;
}

.reviews-info__quantity:hover {
    color: var(--color-ginger-main);
}

.reviews-info__quantity::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    width: 100%;
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        currentColor 0,
        currentColor 2px,
        transparent 2px,
        transparent 4px  /* 2px линия + 2px отступ = 4px */
    );
    background-repeat: repeat-x;
}

.product-deeper__price-wrapper {
    margin-bottom: 32px;
}

.product-deeper__price--new, .product-deeper__price {
    font-size: 32px;
    font-weight: 700;
    margin-right: 12px;
}

.product-deeper__price--old {
    font-size: 20px;
    color: var(--color-gray-main);
    margin-right: 12px;
    text-decoration: line-through;
}

.product-deeper__sale {
    font-size: 20px;
    color: var(--color-ginger-main);
}

.product-deeper__size-title, .product-deeper__color-title{
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.product-deeper__about-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-deeper__size-buttons, .product-deeper__color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.color-btn {
    width: fit-content;
    height: 48px;
    padding: 12px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn {
    width: 48px;
    aspect-ratio: 1;
    font-size: 14px;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-btn:hover:not(.size-btn--disabled):not(:disabled):not(.size-btn--active),
.color-btn:hover:not(.color-btn--disabled):not(:disabled):not(.color-btn--active) {
    background-color: var(--color-gray-light3);
}

.size-btn--active,
.color-btn--active {
    background-color: var(--color-ginger-main);
    border-color: var(--color-ginger-main);
    color: var(--color-white);
}

.size-btn--active:hover,
.color-btn--active:hover {
    background-color: var(--color-ginger-main);
    border-color: var(--color-ginger-main);
}

.size-btn--disabled,
.size-btn:disabled,
.color-btn--disabled,
.color-btn:disabled {
    background-color: var(--color-gray-light4);
    border-color: var(--color-gray-light3);
    color: var(--color-gray-main);
    cursor: not-allowed;
}

.add-to-cart-btn {
    height: 56px;
    border-radius: 4px;
    margin-bottom: 48px;
}

.product-deeper__about-wrapper {
    margin-bottom: 32px;
}

.product-deeper__about-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-gray-light3);
}

.product-deeper__about-line:not(:first-of-type) {
    margin-top: 12px;
}

.product-deeper__about-descriptor {
    font-size: 12px;
    color: var(--color-gray-dark2);
}

.product-deeper__about-value {
    font-size: 12px;
}

.accordion__text {
    display: block;
    font-size: 12px;
    color: var(--color-gray-dark1);
    margin-bottom: 12px;
}

.accordion__more-link{
    display: flex;
    align-items: center;
    gap: 4px;
    
    font-size: 12px;
    color: var(--color-ginger-main);
}

.accordion__more-link:hover {
    color: var(--color-ginger-dark2);
}

/* Основные стили аккордеона */
.accordion {
  max-width: 100%;
  margin: 0 auto;
}

/* Элемент аккордеона */
.accordion__item {
  border-bottom: 1px solid var(--color-gray-light3); /* линия снизу */
}

/* Кнопка-заголовок */
.accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.accordion__header:hover {
  color: var(--color-ginger-main);
}

/* Заголовок */
.accordion__title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

/* Иконка-стрелка */
.accordion__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Поворот стрелки при открытии */
.accordion__header[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

/* Контент аккордеона */
.accordion__content {
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #6b7280;
}

/* Анимация появления контента */
.accordion__content:not([hidden]) {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-page h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    margin-top: 0;
    margin-bottom: 12px;
}

.text-page h2 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 32px;
    
    margin-top: 0;
    margin-bottom: 24px;
}

.text-page h3 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 26px;
    
    margin-top: 0;
    margin-bottom: 24px;
}

.text-page h4 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 20px;
    
    margin-top: 0;
    margin-bottom: 24px;
}

.text-page h5 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 16px;

    margin-top: 0;
    margin-bottom: 24px;
}

.text-page p {
    margin-bottom: 16px;
}

.date-of-article {
    display: flex;
    align-items: center;
    gap: 4px;

    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-dark1);

    margin-bottom: 24px;
}

.text-page img {
    /* margin-top: 36px;
    margin-bottom: 52px; */
    border-radius: 12px;
    max-width: 400px;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.text-page img::after {
    content: attr(alt);
    font-size: 12px;
    color: var(--color-gray-dark1);
}

.text-page figure {
  margin-top: 36px;
  margin-bottom: 52px;
  margin-inline: 0;
  width: fit-content;
}

.text-page figure::after {
  content: attr(data-caption);
  display: block;
  font-size: 12px;
  color: var(--color-gray-dark1);
  margin-top: 12px;
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    max-height: 450px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    aspect-ratio: 1;
    background-color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button:hover {
    background-color: var(--color-gray-light2);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-icon {
    color: var(--color-black);
}

.quote {
    margin: 36px 0;
    padding-left: 24px;
    border-left: 2px solid var(--color-ginger-main);
}

.quote__author {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-gray-dark1);
}

.text-page strong {
    display: block;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 16px;
}

.text-page ul {
    list-style: disc;
    padding-left: 24px;

    margin-top: 0;
    margin-bottom: 36px;
}

.text-page ul li {
    margin-bottom: 8px;
    padding-left: 10px;
}

.text-page ul li::marker {
    font-size: 14px;
    color: var(--color-ginger-main);
}

.text-page ol {
    list-style: none;
    padding-left: 0;

    margin-top: 0;
    margin-bottom: 28px;
}

.text-page ol li::marker {
    font-size: 12px;
    font-weight: 500;
}

.text-page ol li {
    counter-increment: list;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.text-page ol li::before {
    content: counter(list) " ";  /* можно убрать точку: content: counter(list) " "; */
    font-size: 12px;
    font-weight: 500;
    color: var(--color-ginger-main);
    background-color: var(--color-beige);
    border-radius: 999px;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
    line-height: 1;

    padding: 3px 4px;
    margin-top: 3px;
}

.article-table {
    margin-top: 16px;
    margin-bottom: 28px;
}

.table-wrapper {
    max-width: 900px;
    overflow-x: auto;
  -webkit-overflow-scrolling: touch;

    border: 1px solid var(--color-gray-light3);
    border-radius: 12px;
}

.table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
    max-width: 900px;
    min-width: 608px;
}

.table thead {
    background-color: var(--color-gray-light4);
}

.table tr:not(:last-of-type) {
    border-bottom: 1px solid var(--color-gray-light3);
}

.table th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-gray-dark1);
    padding: 12px 16px;
}

.table td {
    font-size: 12px;
    padding: 12px 16px;
}

.questions, .to-catalog {
    display: flex;
    align-items: center;
    gap: 24px;

    max-width: 900px;
    padding: 24px;
    border-radius: 12px;
    background-color: var(--color-gray-light4);

    margin-top: 28px;
    margin-bottom: 40px;
}

.questions__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    aspect-ratio: 1;
    border-radius: 8px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-light3);
}

.questions__header {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.questions__text {
    display: block;
    font-size: 14px;
}

.article__link {
    color: var(--color-ginger-main);
    transition: .3s ease all;
}

.article__link:hover {
    color: var(--color-ginger-dark2);
}

.to-catalog {
    justify-content: space-between;
}

.to-catalog__header {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
}

.to-catalog__text {
    display: block;
    font-size: 14px;
}

.link-btn {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-ginger-main);
    border-radius: 8px;

    transition: .3s ease all;
}

.link-btn:hover {
    background-color: var(--color-ginger-dark2);
}

.link-btn--4r {
    padding: 18px 32px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-ginger-main);
    border-radius: 4px;

    transition: .3s ease all;
}

.link-btn--4r:hover {
    background-color: var(--color-ginger-dark2);
}

@media (max-width: 960px) {
    .text-page h1 {
        font-size: 32px;
    }

    .text-page h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .text-page h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .text-page h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .text-page h5 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .quote__author {
        font-size: 12px;
    }

    .text-page p {
        font-size: 14px;
    }

    .text-page strong {
        font-size: 14px;
        margin-top: 16px;
        margin-bottom: 12px;
    }

    .text-page ul {
        margin-bottom: 24px;
    }

    .text-page ul li {
        font-size: 14px;
    }

    .text-page ol {
        margin-bottom: 24px;
    }

    .text-page ol li {
        font-size: 14px;
    }

    .article-table {
        margin-bottom: 24px;
    }

    .questions, .to-catalog {
        flex-direction: column;
        align-items: start;
        gap: 16px;
        padding: 16px;
    }

    .questions__header {
        margin-bottom: 8px;
    }

    .to-catalog__header {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .to-catalog__text {
        font-size: 12px;
    }
    
    .link-btn {
        font-size: 12px;
    }
}

.basket-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    margin-bottom: 72px;
}

.basket-empty__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    aspect-ratio: 1;
    background-color: var(--color-beige);
    border-radius: 50%;
    margin-bottom: 24px;
}

.basket-empty__icon {
    color: var(--color-ginger-main);
}

.basket-empty h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 32px;
    
    margin-top: 0;
    margin-bottom: 16px;
}

.basket-empty__text {
    font-size: 14px;
    margin-bottom: 24px;
}

.basket-empty__text-br {
    display: none;
}

@media (max-width: 960px) {

    .basket-empty {
        margin-top: 16px;
        margin-bottom: 80px;
    }

    .basket-empty__icon-wrapper {
        width: 80px;
        aspect-ratio: 1;
    }

    .basket-empty__icon {
        width: 32px;
        aspect-ratio: 1;
    }

    .basket-empty h1 {
        font-size: 26px;
    }

    .basket-empty__text {
        text-align: center;
    }

    .basket-empty__text-br {
        display: block;
    }

    .link-btn--4r {
        padding-block: 14px;
    }

}

.basket__products {
    margin-bottom: 72px;
}

.basket__product{
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-light3);
}

.basket__search-header {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 32px;
}

.basket .h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--color-black);
    line-height: 1;
}

.basket__products {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 48px;
}

.basket__product-header {
    flex-grow: 1;
}

.basket__product {
    display: flex;
    gap: 16px;
}

.basket__product-img {
    width: 100px;
    height: 138px;
}

.basket__product-img img {
    border-radius: 4px;
    object-fit: contain;
}

.basket__product-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    transition: .3s ease all;
}

.basket__product-name:hover {
    color: var(--color-ginger-main);
}

.basket__product-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.basket__product-quantity-text {
    font-size: 14px;
    color: var(--color-gray-main);
}

.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-gray-light3);
    border-radius: 4px;
    overflow: hidden;
    background: transparent;
}

.quantity__btn {
    width: 40px;
    aspect-ratio: 1;
    background: transparent;
    border: none;
    color: var(--color-black);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity__btn:hover {
    background: var(--color-gray-light3);
}

.quantity__btn:active {
    background: var(--color-gray-light4);
}

.quantity__input {
    width: 64px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-gray-light3);
    border-right: 1px solid var(--color-gray-light3);
    font-size: 14px;
    color: var(--color-black);
    padding: 0;
    border-radius: 0;
}

.quantity__input:hover {
    border-color: var(--color-gray-light3);
}

/* Убираем стрелки у number input */
.quantity__input::-webkit-inner-spin-button,
.quantity__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity__input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity__input:focus {
    border-color: var(--color-gray-light3);
}

/* Кнопка удаления товара из корзины */
.basket__product-remove {
    /* Позиционирование и размеры */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0px;

    /* Сброс стандартных стилей кнопки */
    background: none;
    border: none;

    /* Внешний вид */
    cursor: pointer;

    /* Анимация */
    transition: all 0.2s ease-in-out;

    /* Доступность */
    outline: none;
    flex-shrink: 0;
}

/* Иконка внутри кнопки */
.basket__product-remove svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--color-gray-light1);
    pointer-events: none; /* Чтобы клик проходил сквозь иконку к кнопке */
}

/* Путь иконки (анимируем цвет) */
.basket__product-remove svg path {
    transition: fill 0.2s ease-in-out;
}

/* Hover эффект */
.basket__product-remove:hover {
    color: var(--color-gray-dark1);
}

.basket__product-remove:hover svg path {
    fill: var(--color-gray-dark1);
}

/* Active эффект (при нажатии) */
.basket__product-remove:active {
    transform: scale(0.92);
}

/* Disabled состояние */
.basket__product-remove:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.basket__product-remove:disabled:hover {
    background: none;
    transform: none;
}

.basket__product-remove:disabled:hover svg path {
  fill: #CBCFD8;
}

.basket__product-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.basket__product-price--new, .basket__product-price {
    font-weight: 700;
    white-space: nowrap;
}

.basket__product-price--old {
    font-size: 12px;
    color: var(--color-gray-main);
    text-decoration: line-through;
}

.basket__product-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.to-checkout {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    
}

.basket__product-deleted {
    display: flex;
    align-items: center;
    background-color: var(--color-beige);
    padding: 8px 12px;
    gap: 12px;
}

.basket__product-deleted-icon {
    color: var(--color-ginger-main);
    flex-shrink: 0;

}

.restore-btn {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--color-ginger-main);
    transition: .3s ease all;
    text-align: start;
}

.restore-btn:hover {
    color: var(--color-ginger-dark2);
}

.basket__product-deleted-header {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.basket__product-deleted-info {
    display: flex;
    flex-direction: column;
}

@media (max-width: 960px) {
    .basket__search-header {
        justify-content: space-between;
    }

    .basket .h1 {
        font-size: 26px;
    }

    .basket__product-remove {
        width: 16px;
        height: 16px;
    }
    
    .basket__product-remove svg {
        width: 16px;
        height: 16px;
    }

    .basket__product-img {
        width: 56px;
        height: 77px;
    }

    .basket__product-name {
        font-size: 12px;
    }

    .product__info span {
        font-size: 10px;
    }

    .quantity__btn {
        width: 32px;
    }

    .quantity__input {
        width: 40px;
        height: 32px;
    }

    .basket__product-quantity-wrapper {
        margin-top: 12px;
    }

    .basket__product-price--new, .basket__product-price {
        font-size: 14px;
    }

    .basket__product-price--old {
        font-size: 10px;
    }

    .basket__product-quantity-text {
        font-size: 10px;
    }

    .basket__products {
        margin-bottom: 32px;
    }

    .calculation-wrapper {
        margin-bottom: 56px;
    }

    .basket__products {
        padding-right: 0px;
    }

    .basket__product {
        gap: 12px;
    }

    .basket__search-header {
        margin-bottom: 24px;
    }

    .basket__product-quantity-wrapper {
        gap: 8px;
    }
}

.organization-info, .addresses-info {
    padding: 32px 20px;
}

.organization-info .h1, .addresses-info .h1 {
    font-family: 'header-font', serif;
    font-size: 26px;
    margin-bottom: 32px;
}

.organization__title {
    display: block;
    font-weight: 500;
    margin-bottom: 24px;
}

@media (max-width: 960px) {
    .organization-info, .addresses-info {
        padding: 24px 0px 56px 0px;
    }
    
}

/* /GENERAL ================================================================================================================================ */


.filters{
    display: flex;
    width: 100%;
}

.filter{
    position: relative;
    padding: 0.3em 1em;
    border: 1px solid var(--color-gray-light3);
    border-radius: 0.3em;
    margin-right: .7em;
    cursor: pointer;
}

.filter .filter__title{
   font-size: 0.8em;
   color: var(--color-black);
}

.filter .filter__title::after{
    content: '';
    display: inline-block;
    margin-left: .5em;
    width: 0.45em;
    height: 0.45em;
    border-right: 1.5px solid black;
    border-bottom: 1.5px solid black;
    rotate: 45deg;
    transform: translate(-1px, -1px);
}

.filter .filter__wrap{
    display: none;
    position: absolute;
    top: 100%;
    width: auto;
    max-width: 250%;
    min-width: 250px;
    left: 50%;
    padding-top: 1em;
    z-index: 998;
    border-radius: 5px;
    max-height: 400px;
    
    transform: translateX(-50%);
}

.filter .filter__wrap::before{
    content: '';
    width: 15px;
    height: 15px;
    background: #ffffff;
    position: absolute;
    top: 7.5px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    z-index: 998;
    border-top: 1px solid var(--color-gray-light3);
    border-right: 1px solid var(--color-gray-light3);
}

.filter .filter__content{
    position: relative;
   background: #fff;
   padding: .8em 1em;
   border-radius: 5px;
   /* z-index: 999; */
}

.filter:hover .filter__wrap{
    display: block;
}
.filter:hover .filter__content{
    border: 1px solid var(--color-gray-light3);
}

.filter-radio-wrapper{
    display: block;
    margin: .3em;
}

.filter-radio-input{
    display: none;
}

.filter-radio-custom{
    padding: .5em;
    border: 1px solid var(--color-gray-light3);
    border-radius: 5px;
}

.filter-radio-input:checked + .filter-radio-custom{
    background-color: var(--color-ginger-main);
    border: 1px solid var(--color-ginger-main);
    color: #fff;
}


.filter-input{
    display: inline-block;
    height: 1em;
    padding: 1.2em;
    min-width: 100px;
    box-sizing: border-box;
    border-radius: 3px;
    font-size: .8em;
    min-width: 150px;
    padding: 1.2rem 0.8em;
}

.filter-input::placeholder{
    color: var(--color-gray-main);
}

.filter-input::-webkit-outer-spin-button,
.filter-input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
}

.qty-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    height: 56px;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--color-gray-light3);
    padding-inline: 12px;
}

.qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
    padding: 0;
    background-color: transparent;
    border: none;
    color: var(--color-black);
    transition: .3s ease all;
}

.qty-btn:not(:disabled):hover {
    color: var(--color-gray-light2);
}

.qty-btn:not(:disabled):active svg {
    color: var(--color-black);
}

.qty-btn:disabled {
    color: var(--color-gray-light1);
}

.qty-value {
    flex-grow: 1;
    text-align: center;
}

.view-cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 56px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
}

.product-deeper__buttons-wrapper {
    display: flex;
    gap: 8px;
}

.wholesale-btn {
    height: 56px;
    padding-inline: 55px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    border-radius: 4px;
    background-color: transparent;
    border: 1px solid var(--color-gray-light3);
    flex-shrink: 0;
    transition: .3s ease all;
}

.wholesale-btn:hover {
    background-color: var(--color-gray-light3);
}

@media (max-width: 960px) {
    .product-deeper__buttons-wrapper {
        flex-direction: column;
        margin-bottom: 48px;
    }
    .product-deeper__buttons-wrapper .add-to-cart-btn {
        margin-bottom: 0;
    }
    .wholesale-btn {
        width: 100%;
    }
    .quantity-controls {
        flex-direction: column;
    }
    .quantity-controls .view-cart-link {
        width: 100% !important;
    }
}

.addresses-popup {
    top: 100px;
    right: 100px;
}

.wholesale-popup__title {
    display: block;
    font-weight: 500;
    margin-bottom: 16px;
}

.wholesale-popup__descriptor {
    display: block;
    font-size: 14px;
    margin-bottom: 32px;
}

.wholesale-popup__siz-n-qty-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.wholesale-popup__size-n-qty {
    display: flex;
    gap: 4px;
}

.wholesale-popup__size {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 100%;
    background-color: var(--color-gray-light4);
    font-size: 14px;
    text-transform: uppercase;
    border-radius: 4px;
}

.wholesale-popup .qty-btn-wrapper {
    height: 48px !important;
}

.wholesale-popup__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.wholesale-popup__total-title, .wholesale-popup__total-price{
    font-weight: 700;
}

.wholesale-popup .add-to-cart-btn {
    margin-bottom: 0;
}

.has--sticky{
    position: sticky;
    top: 0;
}

.addresses-info__wrapper {
    display: flex;
    justify-content: space-between;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--color-gray-light3);
}

.addresses-info__title {
    display: block;
    font-weight: 500;
    margin-bottom: 16px;
}

.addresses-info__descriptor {
    display: block;
    font-size: 14px;
}

.addresses-info__btn-wrapper {
    display: flex;
    gap: 16px;
}

.edit-address-btn, .delete-address-btn {
    height: 20px;
    aspect-ratio: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-light1);
    transition: all 0.2s;
    /* если кнопка внутри flex-контейнера, чтобы не сжималась */
    flex-shrink: 0;
}

.edit-address-btn:hover, .delete-address-btn:hover {
    color: var(--color-gray-main);
}

.edit-address-btn:active .delete-address-btn:active {
    color: var(--color-black);
}

.edit-address-btn:active svg path, .delete-address-btn:active svg path {
    fill: var(--color-black);
}

.add-address-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 110px;
    background: transparent;
    border: 1px dashed var(--color-gray-light3); /* пунктирный бордер */
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2C2C2C;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.add-address-btn:hover {
    background: var(--color-gray-light3);
}

.add-address-btn:active {
    background: var(--color-gray-light1);
}

.add-address-btn:focus-visible {
    outline: 2px solid #10479a;
    outline-offset: 2px;
}

.add-address-btn svg {
    flex-shrink: 0;
}

.add-address-btn svg path {
    fill: #2C2C2C;
    transition: fill 0.25s ease;
}

.addresses-popup__title {
    display: block;
    font-weight: 500;
    margin-bottom: 16px;
}

.addresses-popup__descriptor {
    display: block;
    font-size: 14px;
    margin-bottom: 32px;
}

.addresses-popup__house-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 8px;
}

.addresses-popup-btn {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.checkout  .checkout__steps{
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.checkout  .checkout__steps::after{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 0;
    border-top: 1px solid var(--color-gray-light3);
    height: 1px;
    width: 100%;
}

.checkout  .checkout__steps:has(.checkout-nav-step.is--completed)::after{
    border-top: 1px solid var(--color-ginger-main);
}

.checkout-nav-step{
    z-index: 1;
    background: #fff;
    padding: 1em;
    display: flex;
    align-items: center;
    font-size: 0.8em;
}

.checkout-nav-step:first-child{
    padding-left: 0;
}

.checkout-nav-step:last-child{
    padding-right: 0;
}

.checkout-nav-step .checkout-nav-step__num{
    width: 2.5em;
    height: 2.5em;
    border: 1px solid var(--color-gray-light4);
    background-color: var(--color-gray-light4);
    color: var(--color-black);
    border-radius: 50%;
    display: flex; 
    justify-content: center;
    align-items: center;
}

.checkout-nav-step.is--current .checkout-nav-step__num{
    border: 1px solid var(--color-ginger-main);
    background-color: transparent;
    color: var(--color-ginger-main);
}

.checkout-nav-step .checkout-nav-step__title{
    padding: 0.5em;
}

.checkout-nav-step.is--completed .checkout-nav-step__num{
    background-color: var(--color-ginger-main);
    color: #fff;
}

.checkout-delivery .checkout-delivery__labels{
    display: flex;
    padding: 1em 0;
}

.checkout-delivery .checkout-delivery__label{
    flex-grow: 1;
    padding: 1.3em 1em;
     border: 1px solid var(--color-gray-light3);
    border-radius: 4px;
    margin: 0 15px;
    display: flex;
    align-items: center;
}

.checkout-delivery .checkout-delivery__label:first-child{
    margin-left: 0;
}

.checkout-delivery .checkout-delivery__label:last-child{
    margin-right: 0;
}

.checkout-delivery .checkout-delivery__label::before{
    content: '';
    display: block;
    border: 1px solid var(--color-gray-light3);
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    margin: 0 1em;
}

.checkout-delivery .checkout-delivery__label:has(input:checked)
{
    border: 1px solid var(--color-ginger-main);
}

.checkout-delivery .checkout-delivery__label:has(input:checked)::before
{
    border: 1px solid var(--color-ginger-main);
    background: var(--color-ginger-main);
    box-shadow: inset 0 0 0px 4px #fff;
}

.checkout-result{
    display: flex;
    flex-direction: column;
}

.checkout-result .checkout-result__wrap{
    background: var(--color-gray-light4);
    padding: 1em;
    border-radius: 0.8em;
}


.checkout-result .checkout-result-line{
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8em;
    font-size: 0.8em;
    font-weight: 500;
}

.checkout-result hr{
    color: var(--color-gray-light3);
    border-style: solid;
}

.checkout-result .checkout-result-line.is--total{
    font-weight: 600;
    font-size: 0.9em;
}

.checkout-result-line .checkout-result-line__value.color--sale{
    color: var(--color-ginger-main)
}

.checkout-result .checkout-result__actions{
    margin-top: 1em;
    display: flex;
    flex-direction: column;
}

.btn.btn--checkout--accept{
    width: 100% !important;
    display: block;
}
.btn.btn--checkout--back{
    width: 100% !important;
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-gray-light3);
    color: #000;
    margin-top: 1em;
}
.btn.filter--submit{
    font-size: .8em;
    padding: .7em 1em;
    margin-right: .7em;
}

.btn.filter--reset{
    font-size: .8em;
    padding: .7em 1em;
    margin-right: .7em;
    color: var(--color-black);
    border: 1px solid;
    background: transparent;
    
}

.checkout-pickup{
    padding: 1em;
    border: 1px solid var(--color-gray-light3);
    border-radius: 4px;
    margin-bottom: 1em;
}
.checkout-pickup .checkout-pickup__address{
    padding: 1em;
    background: var(--color-gray-light4);
    margin-bottom: 1em;
}
.checkout-pickup .checkout-pickup-address__title{
    font-size: .8em;
    color: var(--color-gray-main);
}
.checkout-pickup .checkout-pickup-address__value{
    font-size: .9em;
    font-weight: 500;
}
/* .checkout-pickup{} */
.contacts .h1 {
    font-size: 40px;
    font-family: 'header-font', serif;
    margin-bottom: 16px;
    line-height: 1;
}

.contacts .descriptor {
    display: block;
    font-size: 14px;
    color: var(--color-gray-dark1);
    margin-bottom: 32px;
}

.info-instance {
    background-color: var(--color-gray-light4);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
}

.info-instance__icon-wrapper {
    display: inline-flex;
    background-color: var(--color-white);
    border-radius: 4px;
    padding: 10px;
    border: 1px solid var(--color-gray-light3);
    margin-bottom: 24px;
}

.info-instance .title {
    display: block;
    font-size: 12px;
    color: var(--color-gray-dark1);
    margin-bottom: 12px;
}

.info-instance .info {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    width: fit-content;
}

.info-instance a:hover {
    color: var(--color-ginger-main);
}

.info-instance .descriptor {
    display: block;
    font-size: 12px;
    color: var(--color-gray-dark1);
}

.map-wrapper {
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.how-to-find,
.contact-us {
    margin-top: 40px;
}

.how-to-find .h2,
.contact-us .h2,
.on-social-media .h2 {
    font-size: 26px;
    font-family: 'header-font', serif;
    margin-bottom: 12px;
    line-height: 1;
}

.how-to-find .descriptor,
.contact-us .descriptor,
.on-social-media .descriptor {
    display: block;
    font-size: 14px;
    color: var(--color-gray-dark1);
    margin-bottom: 24px;
}

.contact-us .input-wrapper {
    max-width: 100% !important;
}

/* Специальные стили для textarea */
.input-wrapper textarea {
    resize: none !important;
    width: 100%;
    height: 116px;
    padding: 24px 16px 6px; /* больше сверху для лейбла */
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s;
    background: transparent;
    font-family: inherit;
    line-height: 1.5;
}

.input-wrapper textarea:focus {
    border-color: var(--color-black);
    outline: none;
}

/* Лейбл для textarea (немного смещаем вверх) */
.input-wrapper textarea + .floating-label {
    position: absolute;
    left: 12px;
    top: 16px;              /* вместо 50% для textarea */
    transform: translateY(0);
    transition: all 0.2s ease;
    pointer-events: none;
    color: var(--color-gray-main);
    font-size: 14px;
    padding: 0 4px;
}

/* Поднимаем лейбл */
.input-wrapper textarea:focus + .floating-label,
.input-wrapper textarea:not(:placeholder-shown) + .floating-label {
    top: 6px;
    transform: translateY(0);
    font-size: 12px;
}

.input-wrapper textarea:not(:placeholder-shown) + .floating-label {
    color: var(--color-gray-main);
}

.input-wrapper textarea:hover {
    border-color: var(--color-black);
}

.contact-us .form-checkboxes {
    margin-bottom: 16px;
}

.on-social-media {
    margin-top: 44px;
    margin-bottom: 56px;
}

.on-social-media__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    background-color: var(--color-gray-light4);
    border-radius: 8px;
    transition: .3s ease all;
}

.on-social-media__link:hover {
    background-color: var(--color-gray-light2);
}

@media (max-width: 960px) {
    .contacts .h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    .contacts .descriptor {
        font-size: 12px;
    }
    .info-instance__icon-wrapper {
        margin-bottom: 16px;
    }
    .info-instance {
        padding: 16px;
    }
    .how-to-find,
    .contact-us {
        margin-top: 16px;
    }
    .how-to-find .h2,
    .contact-us .h2,
    .on-social-media .h2 {
        font-size: 20px;
    }
    .how-to-find .descriptor,
    .contact-us .descriptor,
    .on-social-media .descriptor {
        font-size: 12px;
    }
    .on-social-media {
        margin-top: 28px;
    }
}

.news .h1 {
    font-size: 32px;
    font-family: header-font, serif;
    margin-top: 0;
    margin-bottom: 32px;
    line-height: 1;
}

.news-card .title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.news-card .descriptor {
    font-size: 12px;
    color: var(--color-gray-dark1); 
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-card__img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    height: 224px;
    width: 100%;
}

.news-card__img-wrapper a {
    display: flex;
    width: 100%;
    height: 100%;
}

.news-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s ease;
}

.news-card__img-wrapper:hover img {
    transform: scale(1.1);
}

.news-card__img-wrapper:hover ~ .title  {
    color: var(--color-ginger-main);
}

@media (max-width: 1440px) {
    .news-card__img-wrapper {
        height: 200px;
    }
}

@media (max-width: 1200px) {
    .news-card__img-wrapper {
        height: 164px;
    }
}

@media (max-width: 960px) {
    .news-card__img-wrapper {
        height: 298px;
    }
}

@media (max-width: 600px) {
    .news-card__img-wrapper {
        height: 224px;
    }
}

@media (max-width: 360px) {
    .news-card__img-wrapper {
        height: 224px;
    }
}

.search-modal-found {
    position: absolute;
    top: 100px;
    left: 100px;

    background-color: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-gray-light3);
    width: 1008px;
}

.search-modal-not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    top: 450px;
    left: 100px;

    background-color: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-gray-light3);
    width: 1008px;
    padding-block: 32px;
}

.search-modal-found__qty {
    display: block;
    font-size: 12px;
    color: var(--color-gray-dark1);
}

.search-modal-found__header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-gray-light3);
}

.search-modal-found__card img {
    width: 56px;
    height: 77px;
    object-fit: cover;
    border-radius: 4px;
}

.search-modal-found__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--color-gray-light3);
}

.search-modal-found__text {
    flex-grow: 1;
}

.search-modal-found__title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.search-modal-found__descriptor {
    font-size: 12px;
    color: var(--color-gray-main);
}

.search-modal-found__price-wrapper {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
}

.search-modal-found__price,
.search-modal-found__price--new {
    font-size: 14px;
    font-weight: 700;
}

.search-modal-found__price--old {
    font-size: 12px;
    color: var(--color-gray-main);
    text-decoration: line-through;
}

.search-modal-found__footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-found__link {
    display: flex;
    align-items: center;
    padding-block: 16px;
    gap: 8px;

    font-size: 12px;
    font-weight: 500;
    transition: .3s ease all;
}

.search-modal-found__link:hover {
    color: var(--color-ginger-main);
}

.search-modal-not-found__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    aspect-ratio: 1;
    background-color: var(--color-beige);
    border-radius: 50%;
    margin-bottom: 16px;
}

.search-modal-not-found .title {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.search-modal-not-found .descriptor {
    display: block;
    font-size: 12px;
    color: var(--color-gray-dark1);
    text-align: center;
    line-height: 1.4;
}

.success {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-block: 72px;
    width: 438px;
}

.success__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 120px;
    aspect-ratio: 1;
    background-color: var(--color-beige);
    margin-bottom: 24px;
}

.success .h1 {
    font-family: 'header-font', serif;
    font-weight: 700;
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.4;
}

.success .descriptor {
    display: block;
    font-size: 14px;
    margin-bottom: 24px;
}

.success__calculations {
    background-color: var(--color-gray-light4);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.success__calculations-instance {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.success__calculations-instance:last-child {
    margin-bottom: 16px;
}

.success__calculations-instance .title {
    font-size: 12px;
}

.success__calculations-instance .info {
    font-size: 12px;
}

.success__calculations-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    padding-top: 16px;
    border-top: 1px solid var(--color-gray-light3);
}

.success__links-wrapper {
    display: flex;
    gap: 16px;
    width: 100%;
}

.link--border {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    height: 56px;
    width: 100%;
    border: 1px solid var(--color-gray-light3);
    border-radius: 8px;
    transition: .3s ease all;
}

.link--border:hover {
    background-color: var(--color-gray-light3);
}

.link--ginger {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    height: 56px;
    width: 100%;
    background-color: var(--color-ginger-main);
    color: var(--color-white);
    border-radius: 8px;
    transition: .3s ease all;
}

.link--ginger:hover {
    background-color: var(--color-ginger-dark2);
}

@media (max-width: 960px) {
    .success__icon-wrapper {
        width: 80px;
    }
    .success__icon-wrapper svg {
        width: 32px;
        aspect-ratio: 1;
    }
    .success .h1 {
        font-size: 26px;
    }
    .success__links-wrapper {
        flex-direction: column-reverse;
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .success__calculations-instance {
        flex-direction: column;
        gap: 4px;
    }
    .success__calculations-instance .title {
        font-size: 10px;
        color: var(--color-gray-dark1);
    }
}

@media (max-width: 575px) {
    .success {
        width: 100%;
    }
}

.password-reset {
    padding: 32px;
    margin-block: 72px;
    width: 500px;
    border: 1px solid var(--color-gray-light3);
    border-radius: 12px;
}

.password-reset .title {
    display: block;
    font-weight: 500;
    margin-bottom: 24px;
}

@media (max-width: 959px) {
    .password-reset {
        width: 100% !important;
        margin-block: 56px;
    }
}

@media (max-width: 600px) {
    .password-reset {
        border: none;
        padding: 0;
        border-radius: none;
    }
}
/* SLICK FIX */
    .product-deeper__miniatures:not(.slick-initialized) img{
        display: none;
    }

    .product-deeper__miniatures:not(.slick-initialized) img:first-child{
        display: block;
    }

    .product-deeper__slider:not(.slick-initialized) img{
        display: none;
    }

    .product-deeper__slider:not(.slick-initialized) img:first-child{
        display: block;
    }
/*  */


.sorting-wrap{
    display: flex;

}

.sorting{
    position: relative;
    display: flex;
    align-items: center;
    font-size: .8em;
    cursor: pointer;
    margin-left: 1em;
    color: var(--color-gray-main);
    fill: var(--color-gray-main);
}

.sorting.is--active{
    color: var(--color-gray-dark3);
    fill: var(--color-gray-dark3);
    font-weight: 500;

}

.sorting .sorting__direction svg{
    display: block;
    fill: inherit;
    rotate: 180deg;
}

.sorting .sorting__direction.desc--direction svg{
    rotate: 0deg;
}

/* HOTFIXES */
    .category-sub__item.is--active .category-sub__title{
        color: var(--color-ginger-main)
    }

    a.has--products
    {
        position: relative;
    }

    a.has--products::after
    {
        content: attr(data-count);
        width: 15px;
        height: 15px;
        font-size: .5em;
        background: var(--color-ginger-main);
        color: #fff;
        border-radius: 50%;
        position: absolute;
        top: -10px;
        right: -10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    a.link--dashed
    {
        color: var(--color-ginger-main);
        display: inline-block;
        border-bottom: 1px dashed var(--color-ginger-main);

    }

    .has--error
    {
        color: var(--color-ginger-main);
        border: 1px solid var(--color-ginger-main);
        /* background: var(--color-ginger-light2); */
    }
/* #.HOTFIXES */

/* #.MOBILE */
    .index-products{
        width: 100%;
        overflow-x: scroll;
        scroll-behavior: smooth;
        padding-right: 50px;
    }

    @media (min-width: 992px) {
        .index-products{
            overflow-x: clip;
            padding-right: none;
        }
    }
    
/* #.MOBILE */