@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Inconsolata:wght@200..900&family=Libre+Bodoni:ital@0;1&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --red: #962020;
}

@font-face {
    font-family: '18cent';
    src: url('../fonts/18cent-normal.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: #000;
    color: #d6d6d6;
    font-family: "18cent", serif;
    font-size: 18px;
    letter-spacing: 3px;
}

li {
    list-style: none;
}

ul {
    padding: 0;
}

a {
    transition: all .4s ease;
    color: #ffffff; 
    text-decoration: none;
}

a:hover {
    color: var(--red);
}

h4 {
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

h5 {
    font-weight: 300;
    font-size: 16px;
    margin: 0;
}

p {
    font-weight: 300;
    font-size: 18px;
}

select {
    letter-spacing: 1.5px;
}

option {
    letter-spacing: inherit;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    padding: 0px 40px;
    height: 90px;
    justify-content: space-between;
    border-bottom: 1px solid #fff;
    background-color: #000;
}

.header-logo {      
    position: absolute;
    left: 50%;
    transform: translateX(-50%); 

}

.header-logo a img {
    height: 85px;
}

.search_form {
    display: flex;
}

.small-nav {
    font-size: 14px;
}

.input-container {
    position: relative; 
}

.search {
    padding-right: 150px;
    padding-bottom: 10px;
}

.form_input {
    border: none;
    background-color: #000;
    border-bottom: 1px solid #fff;
    width: 350px;
    padding: 5px 10px;
    padding-right: 40px;
}

.icon {
    width: 40px;
    height: 40px;
}

.form_input::placeholder {
    color: #000;
}

.form_input:focus {
    all: unset;
    border: none;
    background-color: #000;
    width: 330px;
    padding: 5px 10px;
    border-bottom: 1px solid #fff;
    letter-spacing: normal;
}

.form_input, textarea {
    color: #fff;
}

.btnforsearch {
    position: absolute;
    left: 90%;
    background-color: #000;
    top: 20%;
    background: url(../img/search.png);
    border: none;
    width: 20px;
    height: 20px;
}

/* catalog */
.sidebar {
    max-width: 300px;
    margin-right: 80px;
}

#filter-form {
    width: 330px;
}

.sidebar h4 {
    font-weight: 600;
}

.card-container {
    gap: 30px;
}

.card {
    width: 240px;
    height: 460px;
    background-color: #000;
    color: #fff;
    text-transform: uppercase;
}

.card img {
    width: 240px;
    height: 330px;
}

.card-info {
    padding-top: 15px;
}

.rev-head {
    font-size: 27px;
    text-align: center;
    padding-bottom: 40px;
}

.category-option {
    position: relative;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    margin-bottom: 5px;    
    font-size: 14px;
}

.category-option input[type="checkbox"],
.subcategory-option input[type="checkbox"] {
    display: none;
}

.category-option label {
    position: relative;
    padding-left: 30px;
    padding-top: 2px;
    cursor: pointer;
    color: white;
    font-size: 18px;
}

/* Стили для блока address-type */
.address-type {
    margin-top: 1rem;
}

.address-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #ffffff;
}

/* Скрываем стандартные радиокнопки */
.address-option input[type="radio"] {
    display: none;
}

/* Стили для кастомного квадратика */
.address-option .custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #323232;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

/* Стили для выбранного состояния */
.address-option.selectedd .custom-radio {
    background-color: #fff;
}

/* Добавляем внутренний квадрат для выбранного состояния */
.address-option.selectedd .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--red);
    border-radius: 2px;
    transform: translate(-50%, -50%);
}

/* Эффект при наведении */
.address-option:hover .custom-radio {
    border-color: var(--red);
}

/* Стили для инпутов в block1 */
.block1 input {
    all: unset;
    border-bottom: 1px solid #323232;
    padding: 5px;
    transition: all .2s ease;
    width: 250px;
}

.subcategory-option label {
    position: relative;
    padding-left: 30px;
    padding-top: 2px;
    cursor: pointer;
    color: white;
    font-size: 16px;
}

.subcategory-option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px; 
    background-color: black; 
    border: 1px solid white; 
    border-radius: 3px; 
}

.category-option label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px; 
    background-color: black; 
    border: 1px solid white; 
    border-radius: 3px; 
}

.category-option input[type="checkbox"]:checked + label::before,
.subcategory-option input[type="checkbox"]:checked + label::before {
    background-color: white; 
}

.category-name {
    width: 200px;
}

.category-len {
    padding-left: 40px;
}

.price-range {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-family: "18cent", serif;
}

.category-head {
    margin-top: 40px;
    margin-bottom: 15px;
}

.size-head {
    margin-top: 40px;
    margin-bottom: 15px;
}

.price-head {
    margin-bottom: 15px;
}

input[type="number"] {
    width: 120px;
    border: none;
    background-color: black; 
    padding-left: 20px;
    padding-bottom: 5px;
    color: white;
    outline: none; 
    border-bottom: 0.5px solid white; 
    transition: border-color 0.3s; 
}

input[type="number"] {
    -moz-appearance: textfield; 
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none; 
    margin: 0; 
}

.forsearch {
    position: relative; 
}

.price {
    font-size: 20px;
}
.h-profile {
    font-size: 20px;
}

.search-popup {
    position: absolute; 
    top: 100%; 
    right: 0; 
    width: 250px; 
    z-index: 1000;
    padding: 10px; 
    margin-right: 92px;
    margin-top: 20px;
}

.input-container {
    display: flex;
}

.form_input {
    padding: 5px; 
    flex: 1; 
}

#filter-form {
    padding: 20px;
}

.sort-select {
    background-color: #000000;
    border: none;
    box-shadow: none;
    color: #fff;
    border-bottom: 0.5px solid #fff;
    margin-bottom: 30px;
    padding: 10px;
    width: 260px;
}

.sort-select:focus-visible {
    outline: none;
}

/* login */
.loginform p {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 70px;
}

.loginform p input {
    all: unset;
    border-bottom: 1px solid #ffffff;
    padding: 5px;
    transition: all .2s ease;
}

.loginform p input:focus {
    border-bottom: 1px solid var(--red);
}

.login-container {
    margin-top: 7%;
}

.loginbtn {
    width: 140px;
    height: 50px;
    border: 1px solid #fcfcfc;
    background-color: #000000;
    color: #ffffff;
}

.create-account-btn {
    padding: 10px;
    color: var(--red);
    transition: all .2s ease;
}

.create-account-btn:hover {
    color: #fff;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 350px;
    height: 70px;
}

.form-group input {
    all: unset;
    border-bottom: 1px solid #ffffff;
    padding: 5px;
    transition: all .2s ease;
}

.form-group input:focus {
    border-bottom: 1px solid var(--red);
}

.error {
    position: absolute;
    width: 300px;
    right: 25%;
    font-size: 14px;
}

.errorlist {
    position: absolute;
    width: 300px;
    right: 25%;
    font-size: 14px;
}

.detail-card {
    margin-left: 40px;
    margin-top: 20px;
}

.size-name {    
    width: 50px;
    height: 35px;
    background-color: #000;
    border: 1px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all .3s ease;
    color: #fff;
}

.size-name:hover {
    border: 1px solid var(--red);
    color: var(--red);
}

.price-in-detail {
    font-size: 24px;
}

.selected {
    border: 1px solid var(--red);
    color: var(--red);
}

.cart-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    height: 50px;
    background-color: #000;
    transition: all .3s ease;
    border: none;
    font-size: 20px;
}

.cart-btn:hover {
    color: var(--red);
}

.select-size {
    margin-top: 40px;
}

.qwe {
    margin-right: 20px;
}

.detail-img {
    width: 700px;
}

.detail-img {
    position: relative; 
    display: flex; 
    justify-content: center; 
}

.detail-image {
    max-width: 700px;
    max-height: 700px;
}

.detail-desc {
    max-width: 600px;
}

.image-nav {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
}

.prev-btn, .next-btn {
    background-color: #000;
    border: none; 
    cursor: pointer; 
    font-size: 24px; 
    padding: 10px; 
    color: #fff;
}

.prev-btn:hover, .next-btn:hover {
    color: var(--red); 
}

#size-display {
    color: var(--red);
}

.profile-form input {
    all: unset;
    border-bottom: 1px solid #ffffff;
    padding: 5px;
    transition: all .2s ease;
}

.profile-form input:focus {
    border-bottom: 1px solid var(--red);
}

.default-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    height: 50px;
    background-color: #000;
    transition: all .3s ease;
    border: none;
    font-size: 20px;
}

.default-btn:hover {
    color: var(--red);
}

.profile-btn {
    margin-top: 40px;
    border: 1px solid #fff;
    width: 250px;
}

.profile-btn:hover {
    border: 1px solid var(--red);
}

.logout-btn {
    margin-top: 40px;
    width: 250px;
    border: 1px solid var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--red);
    height: 50px;
    background-color: #000;
    transition: all .3s ease;
    font-size: 20px;
}

.logout-btn:hover {
    border: 1px solid #fff;
    color: #fff;
}

.profile-info {
    margin-right: 20px;
}

.profile-history {
    margin-left: 40px;
}

.order-card {
    border: 1px solid #323232;
    width: 500px;
    margin-bottom: 10px;
    transition: all .3s ease;
}

.order-card:hover {
    border: 1px solid var(--red);
}

.order-items {
    padding-top: 20px;
}
.order-item {
    margin-bottom: 10px;
}
.item-image {
    height: 120px;
}

.order-image {
    width: 160px;
    display: flex;
    justify-content: center;
}

.orders {
    max-height: 58.5vh;
    overflow-y: auto;
    width: 510px;
    scrollbar-width: thin; 
    scrollbar-color: #323232 #000; 
}

.order-title {
    font-size: 20px;
}

::-webkit-scrollbar {
    width: 4px; 
}

::-webkit-scrollbar-track {
    background: black; 
}

::-webkit-scrollbar-thumb {
    background: var(--red); 
}

.block1 input {
    all: unset;
    border-bottom: 1px solid #323232;
    padding: 5px;
    transition: all .2s ease;
    width: 250px;
}

.block1 input:focus {
    border-bottom: 1px solid var(--red);
}

.block2 input {
    all: unset;
    border-bottom: 1px solid #323232;
    padding: 5px;
    transition: all .2s ease;
}

.block2 input:focus {
    border-bottom: 1px solid var(--red);
}

.cart-list-items {
    margin-top: 20px;
}

.pickup-fields input {
    all: unset;
    border-bottom: 1px solid #323232;
    padding: 5px;
    transition: all .2s ease;
    width: 250px;
}

.pickup-fields input:focus {
    border-bottom: 1px solid var(--red);
}

.cart-item {
    width: 600px;
    height: 135px;
    border: 1px solid #323232;
    padding: 0 20px 0 10px;
}

.item-name-in-cart {
    max-width: 400px;
}

.c-item-img {
    width: 160px;
}

.c-item-img img {
   height: 120px;
}

.total_price_cart {
    margin-top: 40px;
}

.right-cart {
    margin-left: 60px;
}

.delivery-icon {
    width: 50px;
    height: 45px;
}

.method-title {
    margin-bottom: 20px;
}

.delivery-button {
    background-color: #000;
    box-shadow: none;
    color: #fff;
    border: 1px solid #323232;
    width: 150px;
    height: 120px;
    margin-left: 10px;
}

.delivery-button:focus {
    border: 1px solid var(--red);
}

.order-btn {
    width: 240px;
    height: 60px;
    justify-content: center;
    margin-top: 30px;
    border: 1px solid #fff;
}

.order-btn:hover {
    border: 1px solid var(--red);
}

#total-price {
    margin-left: 20px;
    font-size: 20px;
    font-weight: 500;
}

.track-info {
    width: 650px;   
    margin-top: 80px;
}

.logo-img {
    height: 200px;
    width: 200px;
}

.block-tag {
    width: 250px;
    text-align: center;
    margin-top: 7px;
}

.price-line {
    margin: 0;
    text-decoration: line-through;
    color: var(--red);
}

.clothing-item-name {
    max-width: 700px;
}

.p-on-order {
    width: 280px;
}

.order-form-btn {
    width: 220px;
}

.total-for-order {
    margin-top: 40px;
}

.gallery {
    flex-wrap: wrap;
}

::-webkit-scrollbar {
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555; 
}

.gallery-image {
    max-width: 600px;
    max-height: 600px;
}

.profile {
    display: flex;
}

#id_code {
    all: unset;
    border-bottom: 1px solid #fff;
    background-color: #000;
    box-shadow: none;
    width: 200px;
}

.gallery-item {
    position: relative;
    width: 420px;
    height: 600px;
}

.slide a img {
    width: 420px;
    height: 600px;
}

.slider {
    position: relative;
    overflow: hidden; /* Скрывает неактивные слайды */
}

.slide {
    display: none; /* Скрывает все слайды по умолчанию */
}

.arrow-container {
    position: absolute;
    top: 50%; /* Центрирует стрелки по вертикали */
    width: 100%; /* Занимает всю ширину родителя */
    display: flex;
    justify-content: space-between; /* Распределяет стрелки по краям */
    transform: translateY(-50%); /* Центрирует стрелки по вертикали */
}

.btn-gallery {
    background-color: #00000070;
}

.sort-select option {
    letter-spacing: 3px;
}

/* Стили для мобильного меню */
.menu-button {
    display: none;
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 80px; /* Позиция под заголовком */
    left: 0;
    right: 0;
    background-color: rgb(0, 0, 0);
    border: 1px solid #ccc;
    z-index: 1000;
}
.mobile-menu a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.header-nav {
    display: flex;
    gap: 20px;
}

.block2 {
    flex-direction: column;
}

.order-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.order-card {
    padding: 10px;
}

#toggle-sidebar {
    display: none;
}

#id_email {
    font-family: "18cent", serif;
}
#id_tg_username {
    font-family: "18cent", serif !important;
}
.about-left {
    width: 400px;
    text-align: center;
}
.tgus {
    font-family: "18cent", serif !important;
}

.img-in-about {
    width: 200px;
}

.about-info {
    margin-top: 80px;
}

.about-right {
    padding-top: 70px;
}
.loginform p, .form-group label {
    font-family: "18cent", serif;
}
.about-btn {
    font-family: "18cent", serif;
}
.pagination {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
/* Стили для контейнера ошибок */
.error-box {
    position: fixed;
    top: 100px;
    right: 20px;
    background-color: #ffffff;
    border: 1px solid #ffcdd2;
    border-radius: 5px;
    padding: 15px;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-content {
    position: relative;
}

.loginbtns {
    padding-top: 35px;
}

.close-error-box {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    font-size: 20px;
    color: #f44336;
}

.close-error-box:hover {
    color: #d32f2f;
}

#error-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#error-list li {
    color: #d32f2f;
    margin-bottom: 5px;
}

.errorlist {
    display: none;
}

.total-view h4 {
    margin-top: 10px;
}

.conf-info {
    font-family: "18cent", serif;
    font-weight: 200;
    font-size: 14px;
    margin-top: 40px;
}

.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Фиксированное позиционирование */
    z-index: 1000; /* На переднем плане */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Прокрутка при необходимости */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
}

.modal-content {
    background-color: #000000;
    margin: 15% auto; /* Центрирование */
    margin-top: 90px;
    padding: 20px;
    border: 1px solid #888;
    width: 97%; /* Фиксированная ширина */
    position: relative; /* Для позиционирования кнопки закрытия */
    font-family: "18cent", serif;
}

.close-button {
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.info-on-home {
    position: fixed;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid #fff; padding: 10px; background-color: #000;
    border-radius: 20px;
}

@media (max-width: 768px) { 
    .pagination {
        position: relative;
        bottom: none;
        left: 0%;
        transform: none;
        padding: 20px;
    }
    .header {
        flex-direction: column;
        height: 80px;
        justify-content: space-between;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .header-logo {
        display: none;
    }
    .form_input {
        width: 250px;
    }
    .form_input:focus {
        width: 230px;
    }
    .slide {
        width: 100%;
        height: auto;
    }
    .slide a img {
        width: 100%;
        height: auto; 
    }
    .cart-sides {
        flex-direction: column;
    }
    .cart-item {
        width: auto;
        flex-direction: column;
        height: auto;
        padding: 5px;
    }
    .c-item-img img {
        width: 80px;
        height: 110px;      
        margin-right: 5px;
    }
    .track-info {
        width: 250px;
    }
    .right-cart {
        margin: 0;
        margin-top: 20px;
    }
    .header-first-nav,
    .header-nav {
        display: none;
    }
    .menu-button {
        display: block;
        position: absolute;
        top: 55%;
        background-color: #000;
        border: none;
        color: #fff;
    }
    #about-us, #gallery {
        display: none;  
    }
    .form_input {
        width: 200px;
        padding: 5px 10px;
        margin-left: 100px;
    }
    .form_input:focus {
        all: unset;
        border: none;
        background-color: #000;
        width: 200px;
        padding: 5px 10px;
        border-bottom: 1px solid #fff;
        margin-left: 100px;
    }
    .sidebar {
        max-width: 250px;
    }
    .sort-select {
        max-width: 210px;
    }
    input[type="number"] {
        width: 90px;
        padding-left: 15px;
    }
    .sidebar {
        display: none;
    }
    .sidebar.active {
        display: block; 
    }
    .catalog {
        flex-direction: column;
    }
    #toggle-sidebar {
        display: block;
    }
    .sort-button-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 40px;
        background-color: #000000;
        border: none;
        color: #fff;
        margin-bottom: 20px;
    }
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .delivery-button {
        width: 100px;   
        height: 120px;
        margin-bottom: 7px;
    }
    .del-methods {
        flex-wrap: wrap;
    }
    .detail-image {
        max-width: 100%;
        height: auto; 
    }
    .card {
        width: 100%;
        height: auto;
    }
    .card img {
        width: 100%;
        height: auto;
    }
    .detail-product {
        flex-direction: column;
        align-items: center;
    }
    .prev-btn, .next-btn {
        opacity: 0.7;
    }
    .detail-card {
        margin: 0;
        margin-top: 20px;
    }
    .detail-cart-form {
        margin-top: -30px;
    }
    .form-blocks {
        flex-direction: column;
    }
    .block1 input {
        width: auto;
    }
    .block2 input {
        width: auto;
    }
    .profile-history {
        margin: 0;
    }
    .profile {
        display: flex;
        flex-direction: column;
        
    }
    .order-card {
        width: 100%;
        height: auto;
    }
    .orders {
        width: 100%;
        height: auto;
    }
    .block2 {
        flex-direction: column-reverse;
    }
    .image-block {
        width: 200px;
    }
    .profile-btn, .logout-btn {
        text-align: center;
        width: 100px;
        font-size: 14px;
        margin-bottom: 40px;
    }
    .other-inpute {
        padding: 0;
        margin-top: -20px;
    }
    .profile-data {
        text-align: center;
    }
    .item-name-in-cart,
    .c-item-info,
    .order-card {
        font-size: 16px;
    }
    .item-details {
        margin-left: 10px;
    }
    .for-mob-p {
        font-size: 16px;
    }
    .order-card {
        padding: 5px;   
    }
    .tracking-number, .status-order {
        text-align: right;
    }
    .date-order-profile {
        font-size: 13px;
    }
    .order-form-container {
        display: flex;
        justify-content: baseline;
        align-items: baseline;
    }
    .form-on-order {
        flex-direction: column;
    }
    .p-on-order {
        margin-left: -10px;
    }
    .total-view {
        font-size: 14px;
    }
    .gallery-item {
        position: relative;
        width: 100%;
        height: auto;
    }
    .gallery-image {
        width: 100%;
        height: auto;
    }
    .about-info {
        flex-direction: column;
    }
    .about-left {
        width: 250px;
    }
    .about-right {
        padding: 0;
    }
    .about-right-ul {
        align-items: center;
        justify-content: center;
    }
    .menu {
        width: 18px;
        height: 22px;
        padding-top: 3px;
    }
    .loginform p {
        display: flex;
        flex-direction: column;
        width: 250px;
        height: 70px;
    }
    .loginbtn, .create-account-btn {
        width: 100px;
        font-size: 14px;
    }
    .form-group {
        width: 250px;
    }
    a:hover {
        color: #fff;
    }
    .detail-img {
        width: 97%;
    }
    .detail-desc {
        max-width: 95%
    }
    .about-info {
        align-items: center;
    }
}



