* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    font-family: "PT Sans", sans-serif;
    font-weight: 600;
    font-style: normal;

    -ms-user-select: none; 
	-moz-user-select: none; 
	-webkit-user-select: none; 
	user-select: none;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
}
.webkit-box {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
}
button {
    -webkit-tap-highlight-color: transparent;
}
h1 {
    font-family: "Exo 2", sans-serif;
    font-weight: 600;
    font-style: normal;

    font-size: 38px;
}
h1.title {
    font-size: 40px;
    text-align: center;
}
body {
    --black: #080808;
    --gray: #e5e5e5;
    --gray-2: #bdbfbe;
    --gray-3: #303030;
    --gray-4: #d9d9d9;
    --red: #b90d04;
    --white: #ffffff;
    --gray-text: #555555;
    --brown: #b58863;
    --brown-hover: #d0a078;

    --button-border: #e5e5e5;
    --button-background: #fafafa;
}
a {
    text-decoration: none;
    cursor: pointer;
    color: #000;
    -webkit-tap-highlight-color: transparent;
}
.btn-1 {
    width: 150px;
    height: 50px;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    border-radius: 40px;
    border: 2px solid var(--button-border);
    background-color: var(--button-background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease-in-out;
}
.btn-1-active {
    background-color: var(--black);
    color: var(--white);
    border: #000;
}
.btn-1:hover {
    background-color: var(--black);
    color: var(--white);
}
#select_car:hover {
    color: #000;
    background-color: var(--button-background);
}
.btn-2 {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--button-border);
    background-color: var(--button-background);
    cursor: pointer;
    padding: 8px;
}
.btn-2 img {
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}   
label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}
header {
    position: sticky;
    top: 0;
    padding-left: max((100% - 1500px) / 2, 0px);
    padding-right: max((100% - 1500px) / 2, 0px);
    width: 100vw;
    height: 100px;
    display: flex;
    align-items: center;
    background-color: var(--white);
    z-index: 5;
}
header div.d1 {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
header div.d1:nth-child(1) {
    width: 20%;
    height: 100%;
}
header div.d1:nth-child(2) {
    flex: 1;
    height: 100%;
}
header div.d1:nth-child(3) {
    width: 10%;
    height: 100%;
    justify-content: center;
}
header div.d1:nth-child(3) button:last-child {
    margin-left: 10px;
}
header div.d1 .d2 {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
header div.d1 .d2 button:last-child {
    margin-left: 10px;
}
header.admin-header div.d1 .d2 {
    width: 100%;
    padding: 0 10px;
    text-align: center;
}
header.mobile {
    display: none;
}
header.mobile .d1 {
    width: 30%;
}
header.mobile .d1:nth-child(2) {
    flex: 1;
}
header.mobile div.d1:nth-child(3) {
    width: 20%;
}
.header-link {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background-color: #fff;
    left: -150%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.2s all linear;
}
.header-link a {
    font-size: 24px;
}
.mobile-link-active {
    color: #d0a078;
    border-bottom: 1px solid #d0a078;
}

section.auth {
    position: fixed;
    top: -150%;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.803);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}
section.auth form {
    position: relative;
    width: 360px;
    height: 480px;
    background-color: var(--white);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(#555555, #636363);
    padding: 30px 20px;
}
section.auth form button.exit {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
}
section.auth form button.exit:hover {
    background: none;
    border: none;
}
section.auth form button.exit img {
    width: 100%;
    height: 100%;
    transform: rotate(45deg);
}
section.auth form p {
    font-size: 30px;
    color: #fff;
}
section.auth form div.inp {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 0;
}
section.auth form label {
    width: 100%;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.200);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 5px 20px;
}
section.auth form label img {
    height: 60%;
    aspect-ratio: 1;
}
section.auth form label input {
    flex: 1;
    padding-left: 10px;
    height: 100%;
    background: none;
    color: #fff;
    border: none;
    outline: none;
    font-size: 17px;
    font-weight: 400;
}
section.auth form label input::placeholder {
    color: #fff;
}
section.auth form button {
    width: 100%;
    height: 60px;
    background: none;
    border: 1px solid var(--white);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    border-radius: 50px;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}
section.auth form button:hover {
    background-color: var(--white);
    color: #000;
}
section.auth form div.input-code {
    margin-top: 10px;
    width: 100%;
    display: flex;
    text-align: center;
    flex-direction: column;
}
section.auth form div.input-code p {
    font-size: 18px;
}
section.auth form div.input-code label input {
    padding: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 20px;
    cursor: default;
}

section.carfon {
    padding-left: max((100% - 1500px) / 2, 40px);
    padding-right: max((100% - 1500px) / 2, 40px);
    width: 100vw;
    height: 550px;
    display: flex;
    padding-top: 50px;
    position: relative;
}
section.carfon img.fon {
    position: absolute;
    z-index: -1;
    width: min(1100px, 95%);
    left: 50%;
    bottom: 0;
    transform: translateX(calc(-50% + 100px));
    object-fit: contain;
}
section.carfon div.d1 {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
section.carfon div.d1 h1 {
    font-size: 48px;
}
section.carfon div.d1 h1:nth-child(2) {
    font-size: 32px;
    color: rgba(0, 0, 0, 0.759);
}
section.carfon div.d2 {
    margin-top: 60px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
section.carfon div.d1:last-child {
    align-items: flex-end;
}
section.carfon div.d1 .infoblock {
    width: 300px;
    height: 200px;
    background-color: #000;
    border-radius: 32px;
    display: flex;
    flex-direction: column;
}
section.carfon div.d1 .infoblock .d1 {
    width: 100%;
    height: 40%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
section.carfon div.d1 .infoblock .d1 p {
    color: var(--white);
    margin-left: 15px;
    font-size: 18px;
    font-weight: 500;
}
section.carfon div.d1 .infoblock .d1 button {
    background-color: var(--gray-3);
    border: none;
}
section.carfon div.d1 .infoblock .d1:last-child {
    background-color: #fff;
    border: 2px solid var(--button-border);
    border-radius: 30px;
    height: 60%;
}
section.carfon div.d1 .infoblock .d1:last-child p {
    color: var(--gray-3);
    text-align: center;
    margin: 0;
    padding: 8px;
}

section.profile {
    padding-left: max((100% - 1500px) / 2, 40px);
    padding-right: max((100% - 1500px) / 2, 40px);
    width: 100vw;
    min-height: calc(100vh - 100px);
    background-color: #e5e5e5;
}
section.profile div.info-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
}


section.profile div.profile {
    width: 100%;
    display: grid;
    grid-auto-columns: 1fr; 
    grid-template-columns: 1.3fr 2fr 2fr; 
    gap: 30px;
}
div.profile div.d1 div.profile-block {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    padding: 30px;
}
div.profile div.d1 div.profile-block img.img {
    width: 100%;
    border-radius: 15px;
    aspect-ratio: 1/1;
    object-position: center;
    display: block;
}
div.profile-block div.name {
    display: flex;
    flex-direction: column;
    align-items: center;
}
div.profile-block div.name p {
    text-align: center;
    margin: 15px 0;
    font-size: 30px;
    font-weight: 550;
    width: 250px;
}



label.input-file {
    width: 100%;
    display: inline-block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
label.input-file span.input-file-button {
    display: inline-block;
    width: 100%;
    height: 50px;
    background-color: var(--button-background);
    border: 1px solid var(--button-border);
    border-radius: 40px;
    transition: 0.3s ease-in-out;
}
label.input-file span.input-file-button p {
    width: 100%;
    height: 100%;
    display: flex;
    font-size: 17px;
    font-weight: 550;
    align-items: start;
    justify-content: center;
    padding: 0;
}  
label.input-file:hover span.input-file-button {
    background-color: var(--black);
    color: var(--white);
}
.input-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}


div.profile-block .tel {
    padding-top: 20px;
    border-top: 2px solid var(--gray-2);
}
div.profile-block label {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0;
}
div.profile-block label p {
    padding-left: 10px;
}

div.profile div.d1:nth-child(2) {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px;
}
div.profile form.block-2 {
    width: 100%;
    height: 100%;
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
div.profile form.block-2 div.name {
    width: 100%;
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
}
div.profile form.block-2 button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: none;
    cursor: pointer;
}
div.profile form.block-2 button img {
    width: 100%;
    height: 100%;
}
div.profile form.block-2 div.name p {
    font-size: 26px;
}
div.profile form.block-2 div.desc {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    padding-top: 20px;
}
div.desc label {
    width: 100%;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
div.desc label p {
    font-size: 18px;
    color: var(--gray-text);
}
div.desc label input {
    height: 100%;
    flex: 1;
    outline: none;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--gray-text);
    text-align: end;
    pointer-events: none;
    padding-left: 20px;
}

form.block-2 div.card {
    width: 100%;
    aspect-ratio: 1.5/1;
    border-bottom: 2px solid var(--gray-2);
    padding-bottom: 20px;
}
form.block-2 div.card img {
    width: 100%;
    height: 100%;
}

.mt-1 {
    padding-left: max((100% - 1500px) / 2, 40px);
    padding-right: max((100% - 1500px) / 2, 40px);
    width: 100vw;
    height: auto;
}
.mt-1 .category-car {
    margin-top: 50px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 250px);
    gap: 40px;
    justify-content: center;
}
.mt-1 .category-car div.card {
    background-color: var(--gray-4);
    border-radius: 18px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
}
.mt-1 .category-car div.card .d1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.mt-1 .category-car div.card .d1:first-child {
    width: 100%;
    height: 75%;
    align-items: flex-end;
    justify-content: end;
}
.mt-1 .category-car div.card .d1:last-child {
    flex: 1;
    padding: 0 10px;
}
.mt-1 .category-car div.card .d1 img {
    width: 80%;
    height: 80%;
}
.mt-1 .category-car div.card .d1 h1 {
    font-size: 20px;
    font-weight: 800;
}
.mt-1 .category-car div.card .d1 p {
    font-size: 16px;
}


section.catalog {
    display: grid;
    grid-auto-columns: 1fr; 
    grid-template-columns: 1fr 2.7fr; 
    gap: 30px;
}
section.catalog .d1 {
    overflow: hidden;
}
section.catalog .d1 .filter {
    position: relative;
    width: 100%;
    border: 2px solid var(--gray-2);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: flex;
    flex-direction: column;
}
section.catalog .d1 .filter img.exit {
    display: none;
    width: 40px;
    position: absolute;
    top: 20px;
    right: 20px;
    transform: rotate(45deg);
    cursor: pointer;
}
.filter p {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
} 
.filter .filter-section p {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}
.filter .filter-section {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
}
.filter .filter-section label {
    display: flex;     
    align-items: center;
    cursor: pointer;   
    user-select: none;
    padding: 5px 0;
}
.filter .filter-section label p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    color: var(--gray-text);
}
.filter .filter-section label input {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    cursor: pointer;
}
.filter .filter-section label.price {
    width: 100%;
    height: 45px;
    background: var(--button-background);
    border: 2px solid var(--button-border);
    border-radius: 8px;
    margin-top: 10px;
    cursor: auto;
}
.filter .filter-section label.price input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    height: 100%;
    padding: 5px 10px;
    color: #000;
    font-size: 15px;
    cursor: auto;
}
.filter .filter-section label.price span {
    min-height: 45px;
    aspect-ratio: 1/1;
    background-color: var(--gray-text);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 8px 0 0 8px;
}
.filter .filter-section label.price span img {
    width: 100%;
    height: 100%;
}


section.catalog .d1 .catalog-card {
    display: grid;
    width: 100%;
    grid-auto-columns: 1fr; 
    grid-template-columns: repeat(3, 300px); 
    gap: 20px;
    justify-content: center;
    margin-bottom: 20px;
}
.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    height: 350px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}
.card .b1 {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.card .b1:first-child {
    border-radius: 8px 8px 0 0;
    background-color: #e7e8eb;
}
.card .b1 img.first-image {
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
    object-position: center;
    object-fit: contain;
}
.card .b1:last-child {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    padding: 12px;
}
.card .b1 .a1 {
    width: 100%;
    height: 22%;
    display: flex;
}
.card .b1 .a1 p {
    font-size: 18px;
    font-weight: 500;
}
.card .b1 .a1:nth-child(2) {
    flex: 1;
    display: block;
}
.card .b1 .a1 p.name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 600;
}
.card .b1 .a1 p.sold {
    position: relative;
    font-size: 15px;
    margin-left: 5px;
    color: var(--gray-text);
}
.card .b1 .a1 .c1 {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
}
.card .b1 .a1 .c1:first-child {
    flex: 1;
}
.card .b1 .a1 .stars {
    width: 80px;
    height: 100%;
    background-color: #b58863;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.card .b1 .a1 .stars p {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}
.card .b1 .a1 p.quantity {
    font-size: 18px;
    color: #01e083;
    font-weight: 600;
}
.card .b1 .a1 .c1 button {
    width: 45px;
    height: 45px;
    background-color: var(--brown);
    transition: 0.2s ease-in-out;
}
.card .b1 .a1 .c1 button:hover {
    background: var(--brown-hover)
}
section.catalog .d1 .filter-link::-webkit-scrollbar {
    height: 4px;
}
section.catalog .d1 .filter-link::-webkit-scrollbar-thumb {
    background-color: var(--button-border);
    border-radius: 2px;
}
section.catalog .d1 .filter-link::-webkit-scrollbar-track {
    background: transparent;
}
section.catalog .d1 .filter-link {
    width: 100%;
    height: 80px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    overflow-x: scroll;
    overflow-y: hidden; 
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}
section.catalog .d1 .filter-link::-webkit-scrollbar {
    display: none;
}
section.catalog .d1 .filter-link a {
    flex: 0 0 auto;
    border: 2px solid var(--button-border);
    background-color: var(--button-background);
    padding: 10px 20px;
    height: min-content;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--gray-text);
}
section.catalog .d1 .filter-link a img {
    transform: rotate(45deg);
}
section.catalog .d1 .filter-link a.reset-all {
    color: var(--brown);
    border: 2px solid var(--brown);
}
section.catalog .search-line {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
section.catalog .search-line button.btn-2 {
    display: none;
}
section.catalog label.search {
    width: 70%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--button-background);
    border: 2px solid var(--button-border);
    border-radius: 24px;
}
section.catalog label.search input {
    background: none;
    border: none;
    flex: 1;
    height: 100%;
    outline: none;
    padding: 3px 15px;
    font-size: 16px;
}
section.catalog label.search span {
    width: 120px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brown);
    cursor: pointer;
    border-radius: 0 24px 24px 0;
    transition: 0.2s ease-in-out;
    font-size: 17px;
}
section.catalog label.search span:hover {
    background: var(--brown-hover);
}
section.catalog div.select {
    height: 75%;
    display: flex;
    align-items: center;
}
section.catalog div.select select {
    padding: 0 25px;
    height: 100%;
    background-color: var(--button-background);
    border: 2px solid var(--button-border);
    color: var(--gray-text);
    outline: none;
    transition: 0.2s ease-in-out;
    border-radius: 8px;
    cursor: pointer;
}
section.catalog div.select select option {
    transition: 0.2s ease-in-out;
}
div.add-new-product .b1 img {
    width: 50%;
    height: 50%;
}
div.add-new-product .b1:last-child {
    width: 100%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
section.catalog-admin {
    grid-template-columns: 1fr;
}
section.catalog-admin .d1 .catalog-card {
    grid-template-columns: repeat(4, 300px);
}
section.catalog-admin .d1 .search-line {
    justify-content: center;
    margin-bottom: 20px;
}
div.add-new-product .b1 h1 {
    text-align: center;
    width: 50%;
    font-size: 30px;
}

div.add-new-card {
    position: fixed;
    top: -150%;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000a0;
    z-index: 5;
    padding-left: max((100% - 1500px) / 2, 40px);
    padding-right: max((100% - 1500px) / 2, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}
div.add-new-card form {
    width: 60%;
    height: 500px;
    background-color: #fff;
    display: flex;
    border-radius: 12px;
    position: relative;
}
div.add-new-card form img.close-add-cart {
    position: absolute;
    width: 30px;
    transform: rotate(45deg);
    cursor: pointer;
    top: 10px;
    right: 10px;
    z-index: 2;
}
div.add-new-card form .d1 {
    width: 50%;
    height: 100%;
}
div.add-new-card form .image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
div.add-new-card form .image .b1 {
    width: 100%;
    height: 80%;
}
div.add-new-card form .image .b1:first-child {
    position: relative;
}
div.add-new-card form .image .b1:first-child input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}
div.add-new-card form .image .b1:last-child {
    height: 20%;
}
div.add-new-card form .image .b1 img {
    width: 100%;
    height: 100%;
    border-radius: 12px 0 0 0;
}
div.add-new-card form .image .b1 .block-img {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
    gap: 10px;
}
div.add-new-card form .image .b1 .block-img .card-img {
    width: 18%;
    aspect-ratio: 1/1;
    cursor: pointer;
    background-color: var(--gray-2);
    border-radius: 8px;
}
div.add-new-card form .image .b1 .block-img .card-img img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
div.add-new-card form .form-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    gap: 8px;
}
div.add-new-card form .form-data p {
    font-size: 28px;
}
div.add-new-card form .form-data label {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    font-size: 22px;
}
div.add-new-card form .form-data label .new-input {
    width: 100%;
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
    border: 2px solid var(--button-border);
    background: var(--button-background);
    font-size: 16px;
    display: flex;
    align-items: center;
}
div.add-new-card form .form-data label .new-input input {
    background: none;
    border: none;
    padding: 0;
    border-radius: none;
    outline: none;
    height: 100%;
    padding: 5px;
    flex: 1;
}
div.add-new-card form .form-data label .new-input span {
    height: 100%;
    aspect-ratio: 2/1;
    background-color: #555555;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 22px;
}
div.add-new-card form .form-data label input, 
div.add-new-card form .form-data label textarea {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline: none;
    border: 2px solid var(--button-border);
    background: var(--button-background);
    padding: 5px;
    resize: none;
    font-size: 16px;
}
div.add-new-card form .form-data label textarea {
    height: 100px;
}
div.add-new-card form .form-data button {
    width: 100%;
    cursor: pointer;
}



/* карточка товара */
div.card-profile {
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    gap: 20px;
}
div.card-profile .d1 {
    width: 50%;
    height: 100%;
}
div.card-profile .slider {
    position: relative;
    background: #e1e1df;
    object-fit: cover;
    object-position: center;
    display: flex;
    align-items: center;
    border-radius: 12px;
    max-width: 100%;
    aspect-ratio: 1/1;
}
div.card-profile .slider .slide {
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 12px;
}
div.card-profile .slider .slide_active {
    display: block;
    width: 100%;
    height: 100%;
    animation: fade 0.2s ease-in-out;
    padding: 15px;
}
@keyframes fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
div.card-profile .slider div.button {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
    gap: 30px;
}
div.card-profile .slider div.button button {
    width: 20%;
    height: 5px;
    border: none;
    background-color: var(--gray-2);
    border-radius: 18px;
    transition: 0.2s;
    cursor: pointer;
}
div.card-profile .slider div.button button.dot_active {
    background-color: #333;
}
div.card-profile .d1 .b1 {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 15px 0;
}
div.card-profile .d1 .b1 p {
    font-size: 22px;
    font-weight: 500;
}
div.card-profile .d1 .b1 p.name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 26px;
    font-weight: 600;
}
div.card-profile .d1 .b1 p.name-product {
    height: 70px;
}
div.card-profile .d1 .quantity {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}
div.card-profile .d1 .quantity p {
    font-size: 18px;
    font-weight: 600;
    color: #01e083;
}
div.card-profile .d1 .button-b1 {
    display: flex;
    align-items: center;
    flex-direction: row;
}
div.card-profile .d1 .button-b1 .button-to-card {
    flex: 1;
}
div.card-profile .d1 .button-b1 button.btn-1 {
    width: 100%;
    cursor: pointer;
}
div.card-profile .d1 .description {
    margin-top: 30px;
    background: var(--button-background);
    border: 2px solid var(--button-border);
    border-radius: 12px;
    padding: 10px;
    max-height: 290px;
}
div.card-profile .d1 .description p {
    font-size: 19px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* paginate */
div#pagination {
    padding-left: max((100% - 1500px) / 2, 40px);
    padding-right: max((100% - 1500px) / 2, 40px);
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}
div#pagination button {
    width: 40px;
    height: 40px;
    background: var(--button-background);
    border: 2px solid var(--button-border);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease-in;
    font-size: 15px;
}
div#pagination button:hover {
    background: #000;
    color: #fff;
    border: #000;
}
div#pagination button.active-paginate-button {
    background: #000;
    color: #fff;
    border: #000;
}
div.loadingform {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 5;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.255);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast-container .toast {
    position: relative;
    padding: 8px 15px;
    border-radius: 8px;
    color: #fff;
    opacity: 1;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    display: flex;
    align-items: center;
    background-color: #000000cf;
    gap: 20px;
}
.toast-container .toast img {
    width: 30px;
    aspect-ratio: 1/1;
}
.toast-container .show {
    opacity: 1;
    transform: translateX(0);
}
.toast-container .hide {
    opacity: 0;
    transform: translateY(-20px);
}





section.basket {
    padding-left: max(50% - 750px, 0px);
    padding-right: max(50% - 750px, 0px);
    display: flex;
    min-height: calc(100vh - 100px);
}
section.basket .d1 {
    width: 35%;
    padding: 90px;
    display: flex;
    flex-direction: column;
}
section.basket .d1 h1 {
    font-size: 34px;
    font-weight: 500;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-2);
    text-align: center;
}
section.basket .d1:first-child {
    flex: 1;
    padding: 90px 50px;
}
section.basket .d1:last-child {
    background-color: #fff;
    transition: all 0.5s linear;
    position: relative;
    right: 0;
}
section.basket div.total {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
}
section.basket div.total p {
    font-size: 18px;
    font-weight: 500;
}
section.basket div.last-element {
    border-bottom: 2px solid var(--gray-2);
}
section.basket div.itog p {
    font-size: 25px;
}
section.basket div.button {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}
section.basket div.button button {
    width: 100%;
    cursor: pointer;
    height: 55px;
}
section.basket div.button button.in-order {
    background-color: #000;
    color: #fff;
}
section.basket div.button button.clear-basket:hover {
    background-color: var(--button-background);
    color: #000;
}


section.basket .line {
    width: 100%;
    display: flex;
}
section.basket .line p {
    font-size: 22px;
    padding-left: 15px;
}
section.basket .line .b1 {
    width: 20%;
    padding: 20px 0;
}
section.basket .line .product {
    flex: 1;
}
section.basket .head {
    border-bottom: 2px solid var(--gray-2);
}




div.card-on-basket {
    width: 100%;
    height: 200px;
    padding: 20px 20px;
    display: flex;
    position: relative;
}
div.card-on-basket button.delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: none;
    border: none;
    width: 35px;
    height: 35px;
    transform: rotate(45deg);
    cursor: pointer;
}
div.card-on-basket div.img {
    height: 100%;
    aspect-ratio: 1/1;
    background-color: var(--gray);
    border-radius: 12px;
    padding: 2px;
}
div.card-on-basket div.img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}
div.card-on-basket div.name {
    flex: 1;
    display: flex;
    padding: 10px 0;
}
div.card-on-basket div.name div.title {
    flex: 1;
    padding-left: 20px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}
div.card-on-basket div.name p {
    font-weight: 500;
    font-size: 20px;
}
div.card-on-basket div.name p.name {
    font-size: 22px;
    font-weight: 600;
}
div.card-on-basket div.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    border: 1px solid var(--gray-2);
    gap: 15px;
    border-radius: 12px;
    font-size: 18px;
}
div.card-on-basket div.counter p {
    padding: 0;
    font-size: 18px;
}
div.card-on-basket div.counter button {
    width: 35px;
    height: 35px;
    border: none;
    background: none;
    cursor: pointer;
}
div.card-on-basket div.counter button:first-child {
    border-right: 1px solid var(--gray-2);
}
div.card-on-basket div.counter button:last-child {
    border-left: 1px solid var(--gray-2);
}
#on-create-order {
    width: 100%;
    margin: 20px 0;
    display: none;
}
.close-order-list {
    width: 30px;
    position: absolute;
    top: 10px;
    right: 10px;
    transform: rotate(45deg);
    display: none;
}

.basket-card div.body {
    border-top: 2px solid var(--gray-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    display: none;
}
.basket-card div.body p {
    padding: 10px 0;
}