@import url('https://fonts.googleapis.com/css2?family=Carrois+Gothic&display=swap');

:root {
    --box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.363);
}

@font-face {
    font-family: "dark";
    src: url(../fonts/Blackblade.ttf);
}

span {
    font-family: "Carrois Gothic", sans-serif;
    font-size: 14px;
    line-height: 0;
}




body {
    font-family: "Carrois Gothic", sans-serif;
    font-size: 18px;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

ul {
    list-style: none;
    padding: 0;
}

a {
    text-decoration: none;
    color: #000;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 48px;
    font-weight: 600;
}

h3 {
    font-size: 36px;

}

h5 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
}

form select {
    background-color: #fff;
    border: none;
}

form select:focus {
    background-color: #fff;
    border: 1px solid #000;
}

input:focus {
    box-shadow: none;
}

.window {
    width: 1210px;
    height: 600px;
    margin-top: 100px;
    border: 1px solid #00000036;
    border-radius: 10px;
}

.window-login {
    width: 1000px;
    height: 600px;
    margin-top: 100px;
    border: 1px solid #00000036;
    border-radius: 10px;
}

.windowp {
    width: 1210px;
    height: 600px;
    margin-top: 100px;
    border: 1px solid #00000036;
    border-radius: 10px;
    background-image: url(../img/window.png);
    background-repeat: no-repeat;
}

.header {
    height: 80px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
}

.header-list {
    text-transform: uppercase;
}

.header-container {
    box-sizing: border-box;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
    padding: 0 15px;
    align-items: center;
}

.container {
    box-sizing: border-box;
    max-width: 1600px;
    margin: 0 auto;
}

.home {
    align-items: center;
}

.home-title {
    margin-top: 10px;
    margin-bottom: 50px;
}

.home-cards {
    width: 650px;
    overflow-x: hidden;
}

.home-card {
    width: 200px;
    height: 325px;
    border: 1px solid #00000027;
    border-radius: 5px;
    transition: all 0.5s ease;
    background-color: #fff;
}

.home-card:hover {
    border: 1px solid #000000;
}

.title-card {
    max-width: 185px;
    margin-top: 20px;
    min-height: 70px;
}


.card-img {
    width: 195px;
    height: 195px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    margin-top: -10px;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border: 1px solid #0000004b;
    border-radius: 5px;
    background-image: url(../img/btnh.png);
    transition: all .4s ease;
    z-index: 2;
}

.home-btn:hover {
    border: 1px solid #000000;
}

.dada {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
    top: -16%;
}

.frame1 {
    position: absolute;
    right: -0.5%;
    bottom: 60%;
    z-index: -1;
}

.frame2 {
    position: absolute;
    left: -0.5%;
    bottom: 60%;
    z-index: -1;
}

.frame3 {
    position: absolute;
    left: -0.3%;
    top: 73.4%;
    z-index: -1;
}

.frame4 {
    position: absolute;
    right: -0.3%;
    top: 73.4%;
    z-index: -1;
}

.logogothic {
    position: absolute;
    top: 6%;
    left: 40%;
    width: 400px;
    height: 300px;
}

.subtitlee {
    position: absolute;
    bottom: 0%;
    left: 44.5%;
}

.detail-image {
    width: 650px;
    height: 650px;
    transform: translateX(260px);
}

.detail-product {
    margin-top: 80px;
}

.detail-description {
    margin-left: 40px;
    margin-top: 40px;
}

.detail-description p {
    margin-top: 30px;
    max-width: 700px;
}

.detail-description h2 span {
    font-size: 56px;
}

.card-discount {
    margin-top: -10px;
    font-weight: 600;
}

.card-discount .price {
    margin-top: -1px;
}

.line {
    opacity: 0.7;
    text-decoration: line-through;
    font-weight: 300;
}

.cart-btn {
    width: 180px;
    height: 50px;
    border: 1px solid #000;
    border-radius: 5px;
    margin-top: 20px;
}

.main {
    margin-left: 150px;
}

.main-title {
    font-size: 36px;
    margin-bottom: 10px;
    margin-top: 65px;
}

.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, 225px);
    width: 100%;
    max-width: 1300px;
    justify-content: center;
    justify-items: center;
    column-gap: 0px;
    row-gap: 10px;
    margin: 0 auto;
}

.sidebar {
    margin-top: 70px;
    margin-left: 50px;
}

.llist {
    margin-left: 0px;
}

.sidebar ul li {
    font-size: 20px;
    width: 165px;
    height: 35px;
    margin-bottom: 5px;
}

.sidebar ul li a {
    margin-left: 15px;
    width: 165px;
}

.sidebar ul {
    margin-top: 20px;
}

.selected {
    border: 1px solid #000;
    border-radius: 5px;
    background-image: url(../img/categories-gtn.png);
}

.grob {
    width: 35px;
    height: 35px;
    margin-right: 10px;
}

.cart-quantity {
    position: absolute;
    border-radius: 20px;
    width: 20px;
    height: 20px;
    font-size: 13px;
    border: 1px solid #000;
    text-align: center;
    margin-left: 20px;
    margin-top: -40px;
}

.pagination {
    display: flex;
    position: absolute;
    bottom: 1.5%;
    left: 46%;
    gap: 12px;
    justify-content: center;
}

.disabled {
    opacity: 0.2;
}

.cart {
    flex-direction: column;
}

.cart-title {
    margin-top: 60px;
    margin-bottom: 30px;
}

.cart-cards {
    max-height: 52vh; 
    max-width: 600px;
    overflow-y: auto;
}

.cart-cardsrem {
    max-height: 52vh; 
    width: 600px;
    overflow-y: auto;
}

.cart-cardsproc {
    max-height: 40vh; 
    width: 600px;
    overflow-y: auto;
}

.cart-card {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 570px;
    height: 150px;
    border: 1px solid #00000042;
    border-radius: 10px;
    margin-bottom: 10px;
    background-image: url(../img/cfr2.png);
    background-repeat: no-repeat;
}

.cart-card:nth-child(even) {
    background-image: url(../img/cfr1.png);
    background-repeat: no-repeat;
}

.cart-card-img img {
    width: 125px;
    height: 125px;
    border: 1px solid #00000086;
}



.cart-card-name {
    width: 180px;
}

.remove-btn {
    background-color: #fff;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 30px;
    border: 1px solid #00000034;
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.5s ease;
}

.remove-btn:hover {
    border: 1px solid #000000;
}

.cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border: 1px solid #00000034;
    border-radius: 5px;
    margin: 0;
    transition: all 0.5s ease;
}

.cart-btn:hover {
    border: 1px solid #000000;
}


.cart-price {
    font-size: 16px;
}

.opac {
    opacity: 0.5;
    margin: 0;
}

.cart-total-price-ots {
    font-size: 18px;
    margin-bottom: 25px;
}

.cart-total-price {
    margin: 0;
}

.total {
    margin: 50px 0 25px 0;
}

.cart-form {
    margin-top: 25px;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border: 1px solid #00000034;
    border-radius: 5px;
    margin: 0;
    transition: all 0.5s ease;
    background-color: #fff;
    margin-top: 25px;
}

.add-to-cart-btn:hover {
    border: 1px solid #000000;
}

.login {
    width: 400px;
    height: 600px;
    margin-top: 100px;
    border: 1px solid #00000036;
    border-radius: 10px;
}

.login-reg {
    width: 600px;
    height: 600px;
    margin-top: 100px;
    border: 1px solid #00000036;
    border-radius: 10px;
}

.login-title h2 {
    margin-bottom: 30px;
    margin-left: 20px;
    margin-top: 20px;
}

.form-style {
    width: 250px;
    margin-left: 40px;
}

.login-btn {
    display: flex;
    justify-content: center;
    width: 100px;
    height: 50px;
    align-items: center;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #00000034;
    margin-top: 20px;
    transition: all 0.5s ease;
}

.login-btn:hover {
    border: 1px solid #000000;
}

.reset-pass {
    margin-left: 40px;
    margin-top: 200px;
}

.form-stylereg {
    width: 250px;
    margin-left: 20px;
}

.form-styleprofile {
    width: 250px;
}

.profile {
    width: 570px;
    height: 600px;
    margin-top: 100px;
    border: 1px solid #00000036;
    border-radius: 10px;
}

.box2 {
    margin-top: 212px;
    margin-left: 20px;
}

.box22 {
    margin-left: 20px;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    border: 1px solid #00000034;
    border-radius: 5px;
    margin: 0;
    transition: all 0.5s ease;
    background-color: #fff;
}

.profile-btn:hover {
    border: 1px solid #000000;
}

.checkout {
    margin-top: 70px;
    width: 600px;
}

.order-info {
    margin-left: 40px;
}

.order-form input {
    border-radius: 5px;
    width: 250px;
    height: 38px;
    background-color: #fff;
    box-shadow: none;
    border: 1px solid #00000046;
}

.order-form {
    display: flex;
    flex-direction: column;
}

.order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border: 1px solid #00000034;
    border-radius: 5px;
    margin: 0;
    transition: all 0.5s ease;
    background-color: #fff;
}

.order-btn:hover {
    border: 1px solid #000000;
}

.paynow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border: 1px solid #00000034;
    border-radius: 5px;
    transition: all 0.5s ease;
    background-color: #fff;
}

.paynow:hover {
    border: 1px solid #000000;
}

.pay-title {
    margin-top: 20px;
    margin-left: 20px;
}

.pay-card {
    width: 600px;
    margin-top: 40px;
    margin-left: 20px;
}

.payform {
    position: fixed;
    top: 75%;
}

.castle {
    position: absolute;
    width: 450px;
    height: 650px;
    left: 37%;
    top: 15%;
}

.castlep {
    position: absolute;
    width: 450px;
    height: 650px;
    left: 45%;
    top: 15%;
}

.vl {
    position: absolute;
    width: 1px;
    height: 500px;
    background-color: #000;
    left: 32%;
    top: 25%;   
    opacity: 0.2;
}

.orderss {
    margin-left: 70px;
    width: 520px;
    max-height: 52vh; 
    overflow-y: auto;
}

.order-cart {
    width: 500px;
    border: 1px solid #00000034;
    border-radius: 5px;
    background-color: #fff;
    margin: 0;
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

.order-cart:hover {
    border: 1px solid #000000;
}

.order-title {
    margin-top: 10px;
    margin-left: 10px;
}

.order-desc {
    margin-top: 5px;
    margin-left: 10px;
}

.orders h2 {
    margin-left: 60px;
}

.dadad {
    font-family: "Carrois Gothic", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.orders-carts {
    margin-left: 10px;
    margin-top: 10px;
}

.image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
}

.prev-btn, .next-btn {
    color: #000;
    background-color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.next-btn:hover {
    background-color: #00000013;
}

.prev-btn:hover {
    background-color: #00000013;
}

.notorders {
    margin-left: 70px;
    margin-top: 20px;
}

.mainvl {
    position: absolute;
    height: 650px;
    width: 1px;
    background-color: #000;
    opacity: 0.2;
    left: 18%;
    top: 23%;
}

.regform button {
    margin-left: 20px;
    margin-top: 30px;
}

.heavy-logo {
    
    top: 1.5%;
    left: 20%;
    transform: translateX(0%); /* Центрирование по горизонтали */
    /* Масштабирование относительно ширины viewport */
    max-width: 120px; /* Максимальный физический размер */
    min-width: 60px; /* Минимальный физический размер */
    height: auto;
    object-fit: contain;
    margin: 0;
    padding: 0;
    z-index: 1000; /* Чтобы лого было поверх других элементов */
    
}

.logo {
    
    
    max-width: 300px; /* Максимальный физический размер */
    min-width: 100px;
     position: absolute;
    right: 45%; /* Правый край изображения будет по центру экрана */
    left: 43%;
    transform: translateY(-700px);
}





















/* Header */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1020;
}

.heavy-logo {
    height: 60px;
    transition: transform 0.3s;
}

.heavy-logo:hover {
    transform: scale(1.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    font-weight: 600;
    color: #333;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e74c3c;
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-link, .profile-link, .login-link {
    color: #333;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.cart-link:hover, .profile-link:hover, .login-link:hover {
    color: #e74c3c;
    text-decoration: none;
}

.cart-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.navbar-brand, 
.nav-link,
.cart-quantity,
.profile-link,
.login-link {
    font-family: var(--bs-body-font-family);
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
}

.footer-logo {
    height: 50px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #e74c3c;
}

.footer-contacts li {
    margin-bottom: 0.8rem;
    color: #bdc3c7;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-link:hover {
    color: #e74c3c;
    transform: translateY(-3px);
}

.footer-bottom {
    color: #7f8c8d;
}

.footer-doc-link {
    color: #bdc3c7;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-doc-link:hover {
    color: #e74c3c;
}

/* Mobile styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .header-profile {
        margin-top: 1rem;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .footer .col-md-4, .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer-bottom .col-md-6 {
        text-align: center !important;
    }
    
    .footer-doc-link {
        display: block;
        margin-bottom: 0.5rem;
    }
}













.footer-bottom {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.social-links {
    display: inline-flex;
    gap: 0.5rem;
}

.social-link {
    color: #bdc3c7;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: #e74c3c;
}

.footer-doc-link {
    color: #bdc3c7;
    text-decoration: underline;
    transition: color 0.3s;
}

.footer-doc-link:hover {
    color: #e74c3c;
}

@media (max-width: 767.98px) {
    .footer-bottom .col-md-6 {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 0.5rem;
    }
}


/* Основная структура */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Мобильные стили */
@media (max-width: 767.98px) {
    .header-profile {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }
    
    .footer .col-md-4, .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer-bottom .col-md-6 {
        text-align: left !important;
    }
    
    .footer-bottom .col-md-6.text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .navbar-collapse {
        padding-top: 1rem;
    }
}







/* Основная структура */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

/* Мобильные стили */
@media (max-width: 767.98px) {
    .header-profile {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }
    
    .footer .col-md-4, .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer-bottom .col-md-6 {
        text-align: left !important;
    }
    
    .footer-bottom .col-md-6.text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .navbar-collapse {
        padding-top: 1rem;
    }
}






/* Обновленные стили для цены */
.price-row {
    margin-bottom: 3px;
    white-space: nowrap; /* Запрещаем перенос строк */
    overflow: hidden; /* Скрываем выходящий за пределы текст */
    text-overflow: ellipsis; /* Добавляем многоточие если текст не помещается */
    max-width: 100%; /* Ограничиваем максимальную ширину */
}

.final-price {
    font-weight: 600;
    color: #e31e24;
    display: inline-block; /* Чтобы span вел себя как блок */
}

.item-price {
    flex: 0 0 auto; /* Автоматическая ширина вместо фиксированной */
    min-width: 0; /* Разрешаем сжатие */
    text-align: left;
    font-size: 14px;
    padding-left: 10px; /* Добавляем отступ слева */
}





/* Обновленные стили для цены */
.item-price {
    flex: 0 0 auto; /* Автоматическая ширина */
    min-width: 0; /* Разрешаем сжатие */
    text-align: left;
    font-size: 12px;
    padding-left: 0px; /* Увеличили отступ слева */
    margin-left: auto; /* Отодвигаем блок к правому краю */
}

.price-row {
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.final-price {
    font-weight: 600;
    color: #e31e24;
    display: inline-block;
}

/* Для мобильной версии */
@media (max-width: 768px) {
    .item-price {
        padding-left: 0; /* Убираем отступ слева на мобильных */
        margin-left: 0; /* Убираем отступ слева на мобильных */
        text-align: left; /* Выравниваем по левому краю на мобильных */
        width: 100%; /* Занимаем всю ширину */
        padding-top: 10px;
        border-top: 1px solid #f5f5f5;
        margin-top: 10px;
    }
}