@font-face {
  font-family: 'Montserrat';
  src: url('../Fonts/Montserrat-Regular.ttf') ;
}
@font-face {
  font-family: 'Montserrat-thin';
  src: url('../Fonts/Montserrat-Thin.ttf') ;
}

body{
font-family: 'Montserrat';
background-color: black;
color:white;
margin: 0;
padding: 0;
overflow-x: hidden
}
/* затемнение */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
}

/* боковая панель корзины */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: -1000px; /* изначально скрыта */
    width: 400px;
    height: 97%;
    background: white;
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    z-index: 99;
    padding: 20px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 2500;
}

#cart-sidebar.active {
    right: 0;
}

/* хедер корзины */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* список */
#cart-sidebar-items {
    flex: 1;
    padding: 0;
    margin: 20px 0;
    list-style: none;
    overflow-y: auto;
}

#cart-sidebar-items li {
    margin-bottom: 15px;
}

/* футер */
.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.view-cart-btn{
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: black;
    color: rgb(244, 45, 45);
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    
}
.view-cart-btn{
    color: white;
}
#cart-sidebar .view-cart-btn {
    color: white !important;
    background-color: black !important;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    padding: 12px;
}



#container {
    width: 100%;          
    max-width: 1550px;   
    margin: 0 auto;      
}

#container > * {
    text-align: center;
}
a {
    text-decoration: none; 
    color: inherit;
}

header{
    display:flex;
    align-items: center;
    position: fixed;
    color:#000000;
    background-color: white;
    width: 1550px;
    z-index: 1000;
    top: 0;
    
}

.photo img{
width: 60px;
border-radius: 100%;
margin-left: 1rem;
cursor: pointer;
}
.logo-text{
    padding-left:1rem;
    cursor: pointer;
}
.home{
    margin-left: 24rem;
    cursor: pointer;
    font-family: 'Montserrat-thin';
}
.store{
    margin-left: 2rem;
    cursor: pointer;
    font-family: 'Montserrat-thin'; 
}
.about-us{
padding-left: 2rem;
min-width: 120px;
cursor: pointer;
font-family: 'Montserrat-thin';
}
.conctacts{
padding-left: 2rem;
cursor: pointer;
font-family: 'Montserrat-thin';
}
.home, .store, .about-us, .conctacts, .logo-text{
    transition: color 0.3s ease;
}
.logo-text:hover{
    color:red;

}
.about-us:hover{
    color:red;

}
.store:hover{
    color:red;
}
.home:hover{
    color:red;
}
.conctacts:hover{
    color:red;
}
.cart img{
    width: 40px;
    margin-left: 22rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.cart{
    position: relative;
}
.cart-dropdown {
    position: absolute;
    top: 50px; /* ниже иконки */
    right: 0;
    width: 250px;
    background-color: #3a3939;
    color: white;
    border-radius: 10px;
    padding: 10px;
    display: none; /* по умолчанию скрыто */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
}

.cart-dropdown h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.cart-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-dropdown ul li {
    padding: 5px 0;
    border-bottom: 1px solid #555;
    font-size: 14px;
}
#cart-count {
    position: absolute;
    top: 0px;
    right: -6px;
    background: red;
    color: white;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}
.cart img:hover{
    transform: scale(1.2);
}
a.active h2 {
    border-bottom: 2px solid rgb(0, 0, 0);  /* подчеркивание */
    padding-bottom: 4px;
}



.add-to-cart {
  position: absolute;
  top: 20px;
  left: 68%;
  display: flex;
  align-items: center;
  background-color: black;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: right;
  cursor: pointer;
}
.add-to-cart img {
  width: 30px;
  height: 30px;
  margin-right: 5px;
  margin-top: 5px;
}

.add-to-cart span {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* Появление при наведении на карточку */
.product:hover .add-to-cart {
  opacity: 1;
}

.cart-img {
    width: 200px;
    height: auto;
    border-radius: 4px;
}
#cart-sidebar,
#cart-sidebar * {
    color: black !important;
}
#cart-sidebar-items li {
    display: flex;
    align-items: center;
    flex-direction: column;       /* центрируем по вертикали */
    gap: 12px;                 /* расстояние между картинкой и текстом */
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 2rem; /* линия между товарами */
}
#cart-sidebar-items li {
    justify-content: center;   /* центр по горизонтали */
}
.cart-item .quantity {
    font-weight: bold;  /* x3 жирным */
}
.filter{
    font-size: 24px;
    font-weight:bolder;
}
label[for="sort-select"] {
    
    margin-right: 10px; /* отступ от select */  /* при желании увеличить размер */
}
.results{
    font-size: 24px;
}
#sort-select {
    width: 200px;      /* ширина списка */
    height: 40px;      /* высота */
    font-size: 1.2rem; /* размер текста внутри */
    padding: 5px 10px; /* внутренние отступы */
    border-radius: 5px; /* скругление краёв */
}
.subtotal{
    font-size: 24px;
    padding-bottom: 20px;
}

/* затемнение */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 98;
}

/* боковая панель корзины */
#cart-sidebar {
    position: fixed;
    top: 0;
    right: -500px; /* изначально скрыта */
    width: 350px;
    height: 97%;
    background: white;
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    z-index: 1500;
    padding: 20px;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #000000;
}

#cart-sidebar.active {
    right: 0;
}

/* хедер корзины */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-header button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* список товаров */
#cart-sidebar-items {
    flex: 1;
    padding: 0;
    margin: 20px 0;
    list-style: none;
    overflow-y: auto;
}

#cart-sidebar-items li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: center;
    font-size: 2rem;
}

#cart-sidebar-items li img {
    width: 250px;
    height: auto;
    border-radius: 4px;
}

#cart-sidebar-items li .remove-item {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* футер корзины */
.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.subtotal {
    font-size: 24px;
    margin-bottom: 10px;
    padding-left: 12px;
}

.view-cart-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
      font-family: 'Montserrat', sans-serif;
    font-weight: 600; /* или 500, как на главной */
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.fade-up {
    opacity: 0;
    transform: translateY(50px); /* стартовое положение снизу */
    transition: all 0.8s ease-out;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0); /* поднимается на место */
}

/* Контейнер */
.contact-section {
    max-width: 600px;
    margin: 6rem auto 4rem;
    padding: 40px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    color: #343a40;
    font-family: 'Montserrat', sans-serif;
}

/* Заголовок */
.contact-title h1 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
}

.contact-title h3 {
    text-align: center;
    padding-bottom: 3rem;
    font-size: 24px;
}

/* Форма */
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}

/* Кнопка отправки */
.submit-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #e03e3e;
    box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
}

/* Сообщение после отправки */
#form-message {
    margin-top: 15px;
    font-weight: bold;
    text-align: center;
}
.title{
    text-align: center;
    font-size: 2rem;
    margin-top: 10rem;
}
textarea {
    resize: vertical; /* разрешить только вертикальное растягивание */
    max-width: 100%;  /* поле не выходит за пределы контейнера */
    min-width: 100%;  /* минимальная ширина равна контейнеру */
    width: 100%;      /* ширина по умолчанию */
    box-sizing: border-box; /* чтобы padding не увеличивал ширину */
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 400px;
    margin: 50px auto;
}

.row-social {
    display: flex;
    justify-content: center;
}

.media img {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
    padding: 30px;
    cursor: pointer;
    margin-top: 50px;
    transition: transform 0.3s ease; /* плавная анимация */
}



.media img:hover {
    transform: scale(1.15); /* увеличение при наведении */
}

footer{
    display: flex;
    
    margin-top: 20rem;
    height: 300px;
    background-color: #b4b4b4;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
    color:#000000;
    justify-content: center;
}
.footer-main{
    margin-top: 4rem;
    display: flex;
    gap:15rem;
    
}
.footer-logo img{
    width: 150px;
}

#cart-message {
    color: red !important;
}
