@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;
}
.store-start{
    position: relative;
}
.store-img img{
    margin-top: 4.5rem;
    width: 1550px;
    display: block;
}
.store-title{
    position: absolute;  
    top: 50%;            
    left: 35%;           
    transform: translate(-50%, -50%); 
    color: white;
    text-align: center;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    font-size: 3rem;
    width: 650px;
}
.assortiment-title{
    margin-top:5rem;
    font-size: 2rem;
    margin-bottom: 4rem;
}
.assortiment-subtitle{
    display: flex;
    justify-content: space-between;
    margin: 3rem;
    align-items: center;
    
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 500px); /* 4 колонки */
  gap: 30px; /* расстояние между карточками */
  margin: 2rem 3rem;
  justify-content: center;
}

.product {
  background-color: #3a3939;
  color: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
   
}

.product img {
  width: 450px;
  height: 400px;       /* размер картинки */
  max-width: 100%;    
  border-radius: 10px;
  align-self: center;  /* центрируем картинку в карточке */
  margin-bottom: 10px;
   
}

.product .product-info {
  text-align: center;
  padding-top: 2rem;
}

.product h3 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-size: 3rem;
}

.product .price {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
  color: #ffcc00;
  font-size: 2rem;
}
.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); /* поднимается на место */
}
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;
}