@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Hebrew:wght@100;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=BBH+Sans+Bartle&family=Noto+Serif+Hebrew:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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


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

body {
    font-family: "Open Sans", sans-serif !important;
    background-color: #f2e8dc;
    font-size: 18px !important;
    padding: 0;
    margin: 0;
    overflow-x: hidden;

  
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
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;
}

.header-container {

  font-size: 20px;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 15px;
  align-items: center;
  position: relative;
  

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

}
.heavy-logo{
    max-width: 14.3%;
    position: fixed;
    top: 0.5% ;
    left: 45%;
    position: absolute;

   
}
.header{
    height: 200px;
    background-color: #f2e8dc;
   


}


.header-list{
    text-transform: uppercase;


}
.header_li {
    position: relative;       /* нужно для ::after */
    display: inline-block;    /* обязательно для псевдоэлемента */
    text-decoration: none;    /* убираем стандартное подчеркивание */
    color: #000;              /* цвет текста */
}

.header_li::after {
    content: '';
    position: absolute;
    right: 0;                 /* начинаем с правой стороны */
    bottom: 0;                /* снизу текста */
    width: 0%;                /* изначальная ширина 0 */
    height: 2px;              /* толщина линии */
    background-color: #000000;/* цвет линии */
    transition: width 0.3s ease; /* плавное появление */
}

.header_li:hover::after {
    width: 100%; /* при наведении растягиваем на всю ширину */
    left: 0;     /* линия движется к левому краю */
    right: auto;
}
.home{
    align-items: center;
}

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

}

.home-card {
    width: 402px;
    max-width: 100%;
    border: 1px solid #00000027;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    transition: all 0.5s ease;
}
.home-card:hover{
    border: 1px solid #000000

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

.card-img{
    width: 400px;
    height: 400px;

}

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

}



.home-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 50px;
    border: 1px solid #00000027;
    border-radius: 5px;
    transition: all .4s ease;
    z-index: 2;
}
.home-btn:hover{
    border: 1px solid #000000
}
/* .logok{

    position: absolute;
    top: 6%;
    left: 40%;
    width: 400px;
    height: 300px;

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

.detail-image{
   max-width: 550px;
   height: 550px;

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

}
.detail-description{
    margin-left: 40px;
    margin-top: 40px;
    flex: 0 0 48%;
    max-width: 520px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: fit-content;

}


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

.detail-description h2 span{

    font-size: 56px;

}

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

}

.cart-discount .price{

    margin-top: 1px;
}

.line{

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

.cart-btn{

    width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    transition: all .4s ease;
    z-index: 2;
    margin-top: 20px;
    background: linear-gradient(135deg, #d4a574 0%, #c89360 100%);
    color: #5a5a5a;
    font-weight: 600;
    
}
.cart-btn:hover{
    background-color: #f8f4ef;
    color: #ffffff;
    transform: translateX(4px);
}
.home-product-item{
    display: flex; flex-direction: column; align-items: center;
}
.main{

    margin-left: 150px;
    flex: 1;

}
.main-title{

    font-size: 36px;
    margin-bottom: 10px;
    margin-top: 65px;

}

.home-products-grid{
display: flex; flex-wrap: wrap; gap: 20px; width: 900px; justify-content: center;
    
}

.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    justify-items: start;
    padding: 0 20px;
}
.sidebar{
    margin-top: 70px;
    width: 350px;          /* Фиксированная ширина */
    min-width: 350px;      /* Минимальная ширина (не сожмется меньше) */
    height: 900px;
    max-height: 900px;
    flex-shrink: 0;  

}

.item {
    width: 100%; /* растягиваем под колонку сетки */
}

.llist{
    margin-left: 80px;
}

.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:0px solid #d40e0e;


}






.inputnum{

        border-radius: 10px;
    border: 1px solid #ccc;
    padding: 8px 12px;
    outline: none;
}
input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.filter_card{
    font-size: 20px;
}




.text1{
   font-family: "Open Sans", sans-serif;
   font-size: 40px !important; 

    
}

.main_img{
    width: 350px;
    height: 350px;
    transition: all 0.3s ease;
}
.main_img:hover {
    /* transform: scale(1.05); */
    box-shadow: 0 8px 20px rgba(194, 3, 3, 0.15);
    filter: brightness(1.1);
}



.footer-container {

  font-size: 20px;
  box-sizing: border-box;
  max-width: 1400px;
  margin: 0 auto;
  justify-content: space-between;
  padding: 0 15px;
  align-items: center;
  position: relative;
  

    
    
}

.footer{
    height: 100px;
}

.footer-list{
 
    font-size: 20px;

}
/* ===== СТИЛИ ДЛЯ SIDEBAR И ФИЛЬТРА ===== */

.sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sidebar h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    display: block;
    padding: 10px 16px;
    color: #5a5a5a;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar ul li a:hover {
    background-color: #f8f4ef;
    color: #2c2c2c;
    transform: translateX(4px);
}

.sidebar ul li.selected a {
    background: linear-gradient(135deg, #d4a574 0%, #c89360 100%);
    color: white;
    font-weight: 600;
}

.sidebar hr {
    border: none;
    border-top: 1px solid #e8dfd4;
    margin: 20px 0;
}

/* ===== СТИЛИ ФОРМЫ ФИЛЬТРА ===== */

.filter-form h5 {
    font-size: 13px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inputnum {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8dfd4;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #faf8f5;
}

.inputnum:focus {
    outline: none;
    border-color: #d4a574;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.inputnum::placeholder {
    color: #b5a99a;
}

.filter_card {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s ease;
}

.filter_card:hover {
    color: #d4a574;
}

.filter_card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d4a574;
}

/* ===== СТИЛИ КНОПОК ===== */

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    margin-right: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4a574 0%, #c89360 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background-color: #f8f4ef;
    color: #5a5a5a;
    border: 2px solid #e8dfd4;
}

.btn-secondary:hover {
    background-color: #ede7dd;
    border-color: #d4a574;
    color: #2c2c2c;
}

.logo-cart{
  
    width: 50px;
    height: 30px;
    margin-top: 0px;

}
.cart-quantity{
            position: absolute;
            background: #c9a870;
            color: white;
            border-radius: 50%;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: bold;

}
.header-profile{
    display: flex;
    align-items: center;
    gap: 10px;

}
.cart-container {
    position: relative;
    display: inline-block;
}

.cart{
    flex-direction: column;
}
.cart-title{
    margin-top: 60px;
    margin-bottom: 30px;
}
.cart-cards{
    max-height: 52vh;
    width: 600px;
    overflow-y: auto;

}
.cart-card{
            position: relative;
            display: grid;
            grid-template-columns: 120px 1fr auto;
            gap: 25px;
            align-items: center;
            background: rgba(255, 255, 255, 0.6);
            border: 1px solid #d4b896;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            transition: all 0.3s ease;
            width: 700px;

}
.cart-card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(212, 184, 150, 0.3);
    transform: translateY(-2px);
        }
.home-product-link{
    margin: 0 0 0 40px; display: flex; flex-direction: column; align-items: center;
}

.cart-card-img img{
    width: 125px;
    height: 125px;
    border: 2px solid #d4b896;
    border-radius: 8px;
}
.cart-card-name{
    width: 180px;
}
.remove-btn{
    background: #c9a870;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.remove-btn:hover{
    background: #b8945d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 112, 0.4);
}

.card-card-name{
    width: 400px;
    font-size: 18px;
    color: #c9a870;
    font-weight: 600;
}

.cart-card-q{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #666;
}
.cart-card-price{
    display: flex;
    align-items: center;
    
    gap: 10px;
    font-size: 15px;
    color: #666;
}

.total{
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid #c9a870;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1000px;

}
.total-sum1{
    font-size: 25px;
    font-weight: 700;
    color: #0e0a0a;
}
.total-text1{
    font-size: 20px;
    color: #000000;
    font-weight: 500;
    letter-spacing: 1px;
    
}
.home-main-title{
    margin: 0 0 0 40px; text-align: center; font-size: 40px;
}
.total-sum{
    font-size: 32px;
    font-weight: 700;
    color: #c9a870;
}
.total-text{
    font-size: 25px;
    color: #3d3d3d;
    font-weight: 500;
    letter-spacing: 1px;
    font-weight: bold
}
.cart-btn-count{
    width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    z-index: 2;
    margin-top: 20px;
    background: transparent;
    border: 2px solid #c9a870;
    color: #c9a870;
    transition: all .4s ease;
}
.cart-btn-count:hover {
    background: #c9a870;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 112, 0.3);
        }

.cart-btn-checkout{
    
    width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    transition: all .4s ease;
    z-index: 2;
    margin-top: 20px;
    background: linear-gradient(135deg, #d4a574 0%, #c89360 100%);
    color: #5a5a5a;
    font-weight: 600;
    
}
.cart-btn-checkout:hover{
    background-color: #f8f4ef;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 112, 0.4);
}
.title2{
width: 200px;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
flex-direction: column;
right: 0;
}
.price1{
    font-size: 25px;
    font-weight: 700;
    margin-top: -10px;
    margin-right: 30px;
}

.login-title {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(15px);
border-radius: 20px;
padding: 50px 60px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
width: 100%;
max-width: 450px;
animation: slideUp 0.6s ease-out;
margin-left: 55px;
}
.login-btn {
width: 100%;
padding: 16px;
background: linear-gradient(135deg, #c9a875 0%, #b8956a 100%);
color: white;
border: none;
border-radius: 12px;
font-size: 1.1em;
font-weight: 600;
cursor: pointer;
margin-top: 15px;
transition: all 0.3s;
box-shadow: 0 4px 15px rgba(201, 168, 117, 0.3);
}
.login-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(201, 168, 117, 0.4);
}

.login-btn:active {
transform: translateY(0);
}
.label-log{
    display: block;
    color: #6b5344;
    font-size: 0.95em;
    margin-bottom: 8px;
    font-weight: 500;
}
.input-log[type="text"],
.input-log[type="password"] ,
.input-log[type="email"] {
width: 100%;
padding: 15px 20px;
border: 2px solid #e8d5c4;
border-radius: 12px;
font-size: 1em;
background: rgba(255, 255, 255, 0.9);
transition: all 0.3s;
color: #6b5344;
        }

.input-log[type="text"]:focus,
.input-log[type="password"]:focus,
.input-log[type="email"]:focus  {
outline: none;
border-color: #c9a875;
box-shadow: 0 0 0 3px rgba(201, 168, 117, 0.1);
transform: translateY(-2px);
        }

.input-log::placeholder {
color: #b8a591;
        }

.reset-pass {
        margin-top: 25px;
        text-align: center;
        color: #8b7355;
        font-size: 0.95em;
    }

    .reset-pass a {
        color: #c9a875;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .reset-pass a:hover {
         color: #b8956a;
        text-decoration: underline;
    }
    .login{
        display: flex;
        justify-content: center;
    }
    .logh{
            
color: #6b5344;
font-size: 2.5em;
margin-bottom: 40px;
text-align: center;
font-weight: 300;
letter-spacing: 2px;
        
    }
.registration-title{

background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(15px);
border-radius: 20px;
padding: 50px 60px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
width: 100%;
max-width: 900px;
animation: slideUp 0.6s ease-out;
margin-left: 55px;
}

.input-reg[type="text"],
.input-reg[type="email"],
.input-reg[type="password"] {
width: 100%;
padding: 15px 20px;
border: 2px solid #e8d5c4;
border-radius: 12px;
font-size: 1em;
background: rgba(255, 255, 255, 0.9);
transition: all 0.3s;
color: #6b5344;
        }

.input-reg[type="text"]:focus,
.input-reg[type="email"]:focus,
.input-reg[type="password"]:focus {
outline: none;
border-color: #c9a875;
box-shadow: 0 0 0 3px rgba(201, 168, 117, 0.1);
transform: translateY(-2px);
        }

.input-reg::placeholder {
color: #b8a591;
        }
.label-reg {
color: #6b5344;
font-size: 0.95em;
margin-bottom: 8px;
font-weight: 500;
}
.regh{
color: #6b5344;
font-size: 2.5em;
margin-bottom: 40px;
text-align: center;
font-weight: 300;
letter-spacing: 2px;
}
.login-reg{
        display: flex;
        justify-content: center;
}

.windowp{
display: grid;
grid-template-columns: 400px 1fr;
gap: 30px;
animation: slideUp 0.6s ease-out;
        }

.formclass{
display: flex;
justify-content: center;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(15px);
border-radius: 20px;
padding: 40px;
box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
width: 100%;
height: auto;
}

.plabel {
display: block;
color: #6b5344;
font-size: 0.95em;
margin-bottom: 8px;
font-weight: 500;
}

.pinput[type="text"],
.pinput[type="email"] {
width: 100%;
padding: 15px 20px;
border: 2px solid #e8d5c4;
border-radius: 12px;
font-size: 1em;
background: rgba(255, 255, 255, 0.9);
transition: all 0.3s;
color: #6b5344;
}

.pinput[type="text"]:focus,
.pinput[type="email"]:focus {
outline: none;
border-color: #c9a875;
box-shadow: 0 0 0 3px rgba(201, 168, 117, 0.1);
transform: translateY(-2px);
}

.pinput::placeholder {
color: #b8a591;
}
.profile-logout-btn{
padding: 14px 30px;
border: 2px solid #c9a875;
border-radius: 12px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.profile-save-btn{
background: linear-gradient(135deg, #c9a875 0%, #b8956a 100%);
border: 2px solid #c9a875;
color: white;
flex: 1;
border-radius: 12px;
font-size: 1em;
font-weight: 600;
cursor: pointer;
transition: all 0.3s;
}
.profile-save-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(201, 168, 117, 0.4);
}

.profile-logout-btn {
background: transparent;
color: #6b5344;
}

.profile-logout-btn:hover {
background: rgba(201, 168, 117, 0.1);
}
.h2pr{
text-align: center;
color: #6b5344;
font-size: 2.5em;
margin-bottom: 30px;
font-weight: 300;
letter-spacing: 2px;
}
.profile-image {
width: 150px;
height: 150px;
margin: 0 auto 30px;
display: flex;
align-items: center;
justify-content: center;
background: #f5f5f5;
border-radius: 15px;
border: 2px dashed #c9a875;
        }

.imginput {
            margin-bottom: 30px;
}

.imginput[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8d5c4;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b5344;
    cursor: pointer;
    transition: all 0.3s;
}

.imginput[type="file"]:hover {
    border-color: #c9a875;
}
.img-fluid{
     width: 100%;
    padding: 12px;
    border: 2px solid #e8d5c4;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #6b5344;
    cursor: pointer;
    transition: all 0.3s;
}
.orders{

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);

}
.orderss{
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;

}
.orderss::-webkit-scrollbar {
            width: 8px;
}

.orderss::-webkit-scrollbar-track {
            background: rgba(232, 213, 196, 0.3);
            border-radius: 10px;
}

.orderss::-webkit-scrollbar-thumb {
            background: #c9a875;
            border-radius: 10px;
        }

.orderss::-webkit-scrollbar-thumb:hover {
            background: #b8956a;
}
.order-cart {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
    color: #6b5344;
    line-height: 1.8;
}

.order-cart:hover {
    border-color: #c9a875;
    box-shadow: 0 5px 20px rgba(201, 168, 117, 0.2);
    transform: translateX(5px);
}
.order-cart a{
    color: #6b5344;
    line-height: 1.8;
}
.order-title {
    color: #c9a875;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.order-details {
    color: #6b5344;
    line-height: 1.8;
}

.order-details div {
    margin-bottom: 5px;
}

.order-name {
    font-weight: 500;
}

.order-date {
    color: #8b7355;
    font-size: 0.9em;
}

    .forcreate {
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem;
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 2rem;
        min-height: 100vh;
    }

    @media (max-width: 968px) {
        .forcreate {
            grid-template-columns: 1fr;
            padding: 1rem;
        }
    }

    .profile {
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    
    }


    .profile h2 {
        color: #2c3e50;
        font-weight: 700;
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 3px solid #f39c12;
        position: relative;
    }

    .profile h2::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 80px;
        height: 3px;
        background: linear-gradient(90deg, #f39c12, #e67e22);
    }

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

    .form-label {
        font-weight: 600;
        color: #34495e;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
        display: block;
    }

    .form-styleprofile {
        border: 2px solid #e8ecef;
        border-radius: 10px;
        padding: 0.9rem 1rem;
        font-size: 1rem;
        transition: all 0.3s ease;
        background-color: #fafbfc;
    }

    .form-styleprofile:focus {
        outline: none;
        border-color: #f39c12;
        background-color: #fff;
        box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
        transform: translateY(-1px);
    }

    .form-styleprofile::placeholder {
        color: #95a5a6;
    }

    .order-form input[type="submit"] {
        background: linear-gradient(135deg, #d4a574 0%, #c89360 100%);
        color: #ffffff;
        border: none;
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
        margin-top: 1rem;
    }

    .order-form input[type="submit"]:hover {
        transform: translateY(-2px);
        background-color: #f8f4ef;
        color: #ffffff;
    }

    .order-form input[type="submit"]:active {
        transform: translateY(0);
    }

    .checkout {
        background: white;
        border-radius: 16px;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        position: sticky;
        top: 2rem;
        height: fit-content;
    }

    .checkout h1 {
        color: #2c3e50;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #ecf0f1;
    }

    .order-info {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .order-info li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
        border-radius: 10px;
        border-left: 4px solid #f39c12;
        transition: all 0.3s ease;
    }

    .order-info li:hover {
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
    }

    .order-info li p {
        margin: 0;
        font-weight: 700;
        color: #e67e22;
        font-size: 1.1rem;
    }

    .order-info > p {
        background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
        color: white;
        padding: 1.25rem;
        border-radius: 12px;
        font-size: 1.3rem;
        font-weight: 700;
        margin-top: 1.5rem;
        text-align: center;
        box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
    }

    .col-md-12 {
        margin-bottom: 1.25rem;
    }

@media (max-width: 968px) {
        .checkout {
            position: static;
            margin-top: 2rem;
        }
    }
/* ===== СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ ===== */

/* Layout для страницы со списком товаров и фильтрами */
/* ===== DESKTOP LAYOUT - Keep horizontal ===== */
/* ===== DESKTOP LAYOUT - Keep horizontal ===== */
.list {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.list .sidebar {
    flex-shrink: 0;
}

.list .main {
    flex: 1;
    min-width: 0;
}

/* Кнопка toggle - скрыта на десктопе */
.filter-toggle-btn {
    display: none;
}

/* На десктопе фильтры всегда видны */
.sidebar .filter-form {
    display: block !important;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible !important;
}

.sidebar hr {
    display: block !important;
    opacity: 1 !important;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

/* Планшеты и небольшие десктопы (до 1024px) */
@media (max-width: 1024px) {
    .header-container,
    .footer-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .heavy-logo {
        max-width: 20%;
        left: 40%;
    }

    .main {
        margin-left: 0;
        padding: 0 20px;
    }

    .items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        max-width: 100%;
    }
    .home-card,
    .card-img {
        width: 100%;
        max-width: 100%;
    }

    .card-img {
        height: auto;
        aspect-ratio: 1;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        margin-top: 50px;
    }

    .detail-image {
        max-width: 100%;
        height: auto;
    }

    .detail-description {
        margin-left: 20px;
        max-width: 100%;
    }

    .cart-cards {
        width: 100%;
        max-width: 500px;
    }

    .cart-card {
        width: 100%;
        grid-template-columns: 100px 1fr auto;
        gap: 15px;
        padding: 15px;
    }

    .total {
        width: 100%;
        max-width: 800px;
        padding: 20px;
    }
}

/* Планшеты и мобильные (до 768px) - ГЛАВНЫЕ ПРАВИЛА */
@media (max-width: 768px) {
    /* КРИТИЧНО: Вертикальный layout для .list */
    .list {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    body {
        font-size: 16px !important;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 28px;
    }

    h5 {
        font-size: 16px;
    }

    .header {
        height: auto;
        min-height: 120px;
        padding: 15px 0;
    }

    .heavy-logo {
        position: static !important;
        max-width: 120px;
        margin: 0 auto 15px;
        display: block;
    }

    .header-container {
        font-size: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 10px 15px;
    }

    .header-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 15px;
        font-size: 13px;
        width: 100%;
    }

    .header-list li {
        display: inline-block;
    }

    .header-profile {
        margin-top: 0;
        display: flex;
        gap: 15px;
        align-items: center;
    }

    /* Главная страница */
    .home {
        padding: 15px;
    }

    .home-title-wrapper {
        margin: 20px 0;
    }

    .home-main-title {
        font-size: 28px;
        padding: 0 10px;
    }

    .home-products-container {
        margin: 30px 0;
    }

    .home-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .home-product-name {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .main_img {
        max-width: 100%;
    }

    .home-info {
        margin-top: 40px;
        padding: 20px 15px;
    }

    .home-location,
    .home-delivery,
    .home-hours {
        font-size: 16px;
    }

    .home-location {
        font-size: 18px;
    }

    .items {
         grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }

    .home-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .card-img {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: cover;
    }

    .title-card {
        max-width: 100%;
        padding: 0 10px;
    }

    .main {
        margin-left: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
    }

    .main-title {
        font-size: 28px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .product-list {
        width: 100% !important;
        padding: 0 10px;
    }

    /* === SIDEBAR И ФИЛЬТРЫ - МОБИЛЬНАЯ ВЕРСИЯ === */
    .sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        height: auto !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        padding: 20px !important;
        flex: none !important;
        flex-shrink: 0 !important;
        order: -1;
        overflow: visible !important;
    }

    /* Показываем кнопку toggle */
    .filter-toggle-btn {
        display: block !important;
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #d4a574 0%, #c89360 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 15px;
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .filter-toggle-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
    }

    .filter-toggle-btn::after {
        content: ' ▼';
        font-size: 12px;
        margin-left: 8px;
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .filter-toggle-btn.active::after {
        transform: rotate(180deg);
    }

    /* Скрываем фильтры по умолчанию */
    .sidebar .filter-form {
        display: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        transition: all 0.4s ease !important;
    }

    .sidebar hr {
        display: none !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        border: none !important;
        transition: all 0.3s ease !important;
    }

    /* Показываем когда открыты */
    .sidebar.filters-open {
        overflow: visible !important;
    }

    .sidebar.filters-open .filter-form {
        display: flex !important;
        flex-direction: column !important;
        max-height: 2500px !important;
        opacity: 1 !important;
        padding-top: 15px !important;
        margin-top: 15px !important;
        overflow: visible !important;
        gap: 15px;
    }

    .sidebar.filters-open hr {
        display: block !important;
        opacity: 1 !important;
        max-height: 20px !important;
        margin: 15px 0 !important;
        border-top: 1px solid #e8dfd4 !important;
    }

    /* Categories - горизонтальный layout */
    .sidebar h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .sidebar ul {
        display: flex !important;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }

    .sidebar ul li {
        width: auto !important;
        height: auto !important;
        margin-bottom: 0 !important;
        flex: 0 0 auto;
    }

    .sidebar ul li a {
        width: auto !important;
        margin-left: 0 !important;
        padding: 10px 20px;
        white-space: nowrap;
        display: inline-block;
    }

    /* Форма фильтров */
    .filter-form {
        flex-direction: column;
        gap: 12px;
    }

    .inputnum {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .llist {
        margin-left: 0;
    }

    /* Footer адаптация */
    .footer {
        height: auto;
        padding: 20px 0;
    }

    .footer-container {
        flex-direction: column !important;
        height: auto !important;
        padding: 10px 15px;
    }

    .footer-list {
        flex-direction: column !important;
        font-size: 14px;
        gap: 10px;
        text-align: center;
    }

    .footer-list li {
        margin: 5px 0 !important;
    }

    .footer-list li p {
        font-size: 14px;
    }

    /* Детальная страница товара */
    .detail-product {
        flex-direction: column;
        margin-top: 40px;
    }

    .detail-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .detail-description {
        margin-left: 0;
        margin-top: 20px;
        max-width: 100%;
        padding: 20px;
    }

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

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

    /* Корзина */
    .cart-title {
        margin-top: 40px;
        font-size: 28px;
    }

    .cart-cards {
        max-height: none;
        width: 100%;
    }

    .cart-card {
        grid-template-columns: 80px 1fr;
        gap: 10px;
        padding: 15px;
        width: 100%;
    }

    .cart-card-img img {
        width: 80px;
        height: 80px;
    }

    .cart-card-name {
        width: 100%;
    }

    .title2 {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .remove-btn {
        width: 100%;
        margin-top: 10px;
        padding: 8px 15px;
    }

    .total {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
        padding: 20px;
    }

    .total-sum,
    .total-sum1 {
        font-size: 24px;
    }

    .total-text,
    .total-text1 {
        font-size: 18px;
    }

    .cart-btn-count,
    .cart-btn-checkout,
    .cart-btn {
        width: 100%;
        margin-top: 10px;
    }

    /* Формы входа и регистрации */
    .login-title,
    .registration-title {
        margin-left: 0;
        padding: 30px 20px;
        max-width: 100%;
    }

    .logh,
    .regh,
    .h2pr {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* Профиль */
    .windowp {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .formclass {
        padding: 25px 15px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    /* Заказы */
    .orders {
        padding: 25px 15px;
    }

    .orderss {
        max-height: none;
    }

    .order-cart {
        padding: 15px;
    }

    /* Форма создания заказа */
    .forcreate {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }

    .checkout {
        position: static;
        margin-top: 1.5rem;
        padding: 1.5rem;
    }

    .checkout h1 {
        font-size: 1.5rem;
    }

    .order-info li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
}

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px !important;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 20px;
    }

    .header {
        height: auto;
        min-height: 100px;
        padding: 10px 0;
    }

    .heavy-logo {
        position: static !important;
        max-width: 100px;
        margin: 0 auto 10px;
        display: block;
    }

    .header-container {
        font-size: 12px;
        padding: 5px 10px;
        gap: 10px;
    }

    .header-list {
        font-size: 11px;
        gap: 8px 12px;
    }

    .header-list li a {
        padding: 5px 8px;
    }

    /* Главная страница */
    .home {
        padding: 10px;
    }

    .home-title-wrapper {
        margin: 15px 0;
    }

    .home-main-title {
        font-size: 20px;
        padding: 0 5px;
        line-height: 1.3;
    }

    .home-products-container {
        margin: 20px 0;
    }

    .home-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 900px;
    justify-content: center;
    margin: 0 auto;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .home-products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
}
    .home-product-name {
        font-size: 18px;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .main_img {
        max-width: 100%;
        border-radius: 12px;
    }

    .home-info {
        margin-top: 30px;
        padding: 20px 15px;
    }

    .home-location,
    .home-delivery,
    .home-hours {
        font-size: 14px;
        margin: 8px 0;
    }

    .home-location {
        font-size: 16px;
    }

    .title-card {
        font-size: 16px;
        min-height: 50px;
    }

    .price,
    .price1 {
        font-size: 20px;
    }

    .home-btn,
    .cart-btn,
    .cart-btn-count,
    .cart-btn-checkout {
        width: 100%;
        height: 45px;
        font-size: 14px;
    }

    .main-title {
        font-size: 22px;
        margin-top: 30px;
    }

    .sidebar {
        padding: 15px !important;
        margin-top: 20px !important;
    }

    .sidebar h3 {
        font-size: 18px;
    }

    .sidebar ul li a {
        font-size: 14px;
        padding: 8px 12px;
    }

    .filter-form h5 {
        font-size: 12px;
    }

    .inputnum {
        padding: 10px 12px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .filter-toggle-btn {
        font-size: 14px !important;
        padding: 12px !important;
    }

    .sidebar.filters-open .filter-form {
        max-height: 3000px !important;
    }

    .detail-description {
        padding: 15px;
    }

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

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

    .cart-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-card-img img {
        width: 100%;
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }

    .cart-card-q,
    .cart-card-price {
        justify-content: center;
    }

    .total {
        padding: 15px;
    }

    .total-sum {
        font-size: 20px;
    }

    .total-text {
        font-size: 16px;
    }

    .login-title,
    .registration-title {
        padding: 20px 15px;
    }

    .logh,
    .regh,
    .h2pr {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .login-btn {
        padding: 14px;
        font-size: 1em;
    }

    .input-log,
    .input-reg,
    .pinput {
        padding: 12px 15px;
        font-size: 14px;
    }

    .profile-save-btn,
    .profile-logout-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .order-cart {
        padding: 12px;
        font-size: 14px;
    }

    .order-title {
        font-size: 1em;
    }

    .forcreate {
        padding: 0.5rem;
    }

    .profile,
    .checkout {
        padding: 1rem;
    }

    .profile h2,
    .checkout h1 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .form-styleprofile {
        padding: 0.7rem 0.8rem;
        font-size: 14px;
    }

    .order-form input[type="submit"] {
        padding: 0.8rem 1.5rem;
        font-size: 1em;
    }

    .order-info li {
        padding: 0.8rem;
        font-size: 14px;
    }

    .order-info li p {
        font-size: 1em;
    }

    .order-info > p {
        font-size: 1.1rem;
        padding: 1rem;
    }

    .logo-cart {
        width: 40px;
        height: 25px;
    }

    .cart-quantity {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Очень маленькие устройства (до 360px) - НЕ ДУБЛИРУЕМ ПРАВИЛА! */
@media (max-width: 360px) {
    .header {
        height: 100px;
    }

    .heavy-logo {
        max-width: 50%;
        left: 25%;
    }

    .header-list {
        font-size: 11px;
        gap: 8px;
    }

    .home-title {
        margin-top: 120px;
        font-size: 20px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .sidebar {
        padding: 12px !important;
    }

    .items {
         grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        padding: 0 5px;
        gap: 15px;
    }
}

/* Горизонтальная ориентация для мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        height: 80px;
    }

    .home-title {
        margin-top: 100px;
        margin-bottom: 20px;
    }

    .sidebar {
        margin-top: 20px;
        max-height: 100%;
        overflow-y: auto;
    }
}

/* Улучшение взаимодействия на touch устройствах */
@media (hover: none) and (pointer: coarse) {
    .home-btn,
    .cart-btn,
    .cart-btn-count,
    .cart-btn-checkout,
    .login-btn,
    .remove-btn,
    .btn {
        min-height: 44px;
    }

    .header_li::after {
        display: none;
    }

    .sidebar ul li a {
        padding: 12px 16px;
    }
}

@media (max-width: 768px) {
    /* Убираем overflow у ВСЕХ родительских контейнеров */
    body {
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }
    
    .forcreate {
        overflow: visible !important;
        min-height: auto !important;
    }
    
    .profile {
        overflow: visible !important;
        position: relative !important;
    }
    
    .order-form {
        overflow: visible !important;
        position: relative !important;
    }
    
    .col-md-12 {
        overflow: visible !important;
        position: relative !important;
    }
    
    /* Контейнер с датой */
    #delivery-date-container {
        overflow: visible !important;
        position: relative !important;
        z-index: 9999 !important;
        /* Добавляем отступ снизу чтобы календарь не обрезался */
        margin-bottom: 350px !important;
        padding-bottom: 20px !important;
    }
    
    /* Input для даты */
    #id_delivery_date {
        position: relative !important;
        z-index: 10000 !important;
        min-height: 48px !important; /* Для удобства нажатия пальцем */
    }
    
    /* Контейнер времени появляется после календаря */
    #delivery-time-container {
        margin-top: 20px !important;
        clear: both !important;
    }
    
    /* Убираем backdrop-filter который может мешать */
    .profile {
        backdrop-filter: none !important;
    }
}

/* Дополнительный фикс для очень маленьких экранов */
@media (max-width: 480px) {
    #delivery-date-container {
        margin-bottom: 380px !important;
    }
}


@media (max-width: 1366px) {
    .header-container,
    .footer-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .heavy-logo {
        max-width: 15%;
        left: 40%;
    }

    .main {
        margin-left: 0;
        padding: 0 20px;
    }

    .items {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        max-width: 100%;
    }
    .home-card,
    .card-img {
        width: 100%;
        max-width: 100%;
    }

    .card-img {
        height: auto;
        aspect-ratio: 1;
    }

    .sidebar {
        width: 250px;
        min-width: 250px;
        margin-top: 50px;
    }

    .detail-image {
        max-width: 100%;
        height: auto;
    }

    .detail-description {
        margin-left: 20px;
        max-width: 100%;
    }

    .cart-cards {
        width: 100%;
        max-width: 500px;
    }

    .cart-card {
        width: 100%;
        grid-template-columns: 100px 1fr auto;
        gap: 15px;
        padding: 15px;
    }

    .total {
        width: 100%;
        max-width: 800px;
        padding: 20px;
    }
}
