/* Шапка сайта -- НАЧАЛО --- Поиск */


.search-form {
    display: flex;
    align-items: center;
    background-color: #2c3e50;
    padding: 0px 8px;
    border-radius: 8px;
    margin: 15px 0;
    width: 100%;
    max-width: 500px;
}

.search-input {
    flex: 1;
    border: none;
    background: white; /* Изменено на белый фон */
    color: #2c3e50; /* Изменен цвет текста для контраста */
    font-size: 16px;
    padding: 8px 12px;
    outline: none;
    border-radius: 4px; /* Добавлены скругленные углы */
}

.search-input::placeholder {
    color: #95a5a6; /* Изменен цвет плейсхолдера */
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.search-button:hover {
    opacity: 0.8;
}

/* Шапка сайта -- КОНЕЦ --- Поиск */

/* Сказпласт -- НАЧАЛО --- Закрепление верха */

#topblock {
    position: sticky;
    top: 0px;
    z-index: 1000;
    background: #fff;
    height: auto; /* Убедитесь, что высота автоматическая */
    min-height: 10px; /* Минимальная высота вместо фиксированной */
}

#topnav {
    position: sticky;
    top: 10px; /* высота header */
    z-index: 900;
    background: #fff;
    height: auto; /* Автоматическая высота */
    min-height: 10px; /* Минимальная высота */
}

.sticky-toppanels {
    position: sticky;
    top: 80px; /* высота header + nav текст корзинки */
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: auto; /* Важно: автоматическая высота */
    min-height: auto; /* Минимальная высота автоматическая */
    overflow: visible; /* Убедитесь, что контент не обрезается */
    border-top: #2c3e50 1px solid;
    padding: 4px;
}

/* Убедитесь, что у body нет overflow: hidden */
body {
    margin: 0;
    padding: 0;
}

.wrapper {
    position: relative;
}

.quantity-container {
    display: inline-block;
    margin: 5px;
}

.quantity-wrapper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
}

.quantity-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #e8e8e8;
}

.quantity-btn:active {
    background: #d8d8d8;
}

.color-images {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.color-image {
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    object-fit: cover;
}
.color-image.selected {
    border-color: #007bff;
}
.color-image:hover {
    opacity: 0.8;
}

/* Сказпласт -- КОНЕЦ --- Текст корзинки */

/* Главная страница -- НАЧАЛО --- Картинки Надписи */

td.glav1 {
	background: #2d3748 url(img/text1.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
}
div.glav11 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Жирное начертание */
        color: #E2E8F0;
        font-size: 30px; /* 2% от ширины viewport */
	padding: 30px 0px 0px 60px; /* сверху/снизу и слева/справа */
}
div.glav12 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
        color: #E2E8F0;
        font-size: 24px; /* 2% от ширины viewport */
	padding: 10px 0px 0px 90px; /* сверху/снизу и слева/справа */
}
.buttons-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    padding: 0px 0px 0px 120px; /* такой же отступ как у glav11 */
}

.red-button {
    font-family: "Sitka Text", Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase; /* добавляем эту строку */
    background-color: #2c3e50;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 11px 24px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
   text-decoration: none; /* убираем подчеркивание при нажатии */
}

.redd-button {
    font-family: "Sitka Text", Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase; /* добавляем эту строку */
    background-color: #2c3e50;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 11px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
   text-decoration: none; /* убираем подчеркивание при нажатии */
}

.red-button:hover {
    background-color: #D12A2F;
    color: white; /* фиксируем цвет текста */
   text-decoration: none; /* убираем подчеркивание при нажатии */
}

.red-button:active {
    background-color: #B52226;
    transform: translateY(1px);
   text-decoration: none; /* убираем подчеркивание при нажатии */
}
td.glava1 {
	background: #2d3748 url(img/text2.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
        text-align: right;
}
div.glava11 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Жирное начертание */
        color: #E2E8F0;
        font-size: 30px; /* 2% от ширины viewport */
	padding: 30px 0px 0px 60px; /* сверху/снизу и слева/справа */
}
div.glava12 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-style: normal;
        color: #E2E8F0;
        font-size: 24px; /* 2% от ширины viewport */
	padding: 10px 30px 0px 0px; /* сверху/снизу и слева/справа */
}
td.glava7 {
	background: #2d3748 url(img/text7.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
}
td.glava3 {
	background: #2d3748 url(img/text3.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
}
td.glava4 {
	background: #2d3748 url(img/text4.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
        text-align: right;
}
td.glava5 {
	background: #2d3748 url(img/text5.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
}
td.glava6 {
	background: #2d3748 url(img/text6.jpg) center;
        background-repeat: no-repeat;
        background-size: 100% auto; /* или конкретные размеры */
        color: #E2E8F0;
        text-align: right;
}

.buttons-container2 {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    margin-top: 20px;
    padding-right: 120px; /* отступ от правого края */
}

.red-button2 {
    font-family: "Sitka Text", Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase; /* добавляем эту строку */
    background-color: #ED3237;
    border: none;
    border-radius: 0.8rem;
    color: white;
    padding: 12px 24px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
   text-decoration: none; /* убираем подчеркивание при нажатии */
}

.red-button2:hover {
    background-color: #D32F2F; /* опционально: немного темнее фон */
    color: white; /* фиксируем цвет текста */
   text-decoration: none; /* убираем подчеркивание при нажатии */
}

.red-button2:active {
    background-color: #B52226;
    transform: translateY(1px);
   text-decoration: none; /* убираем подчеркивание при нажатии */
}


/* Главная страница -- КОНЕЦ --- Картинки Надписи */


/* ВСПЛЫВАЮЩЕЕ МЕНЮ - НАЧАЛО _____ */

/* Стили для кнопки */
.red-button-top {
    font-size: 1.1rem;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
  display: inline-block;
  padding: 5px 20px;
  background-color: #ED3237;
  color: white;
  text-decoration: none;
  border-radius: 0.8em;
  cursor: pointer;
}

/* Базовые стили меню */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px; /* Скрыто за пределами экрана */
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: left 0.3s ease;
  cursor: pointer; /* Курсор указывает, что можно кликать */
}

/* Когда меню открыто */
.side-menu.open {
  left: 0;
}

/* Контент меню */
.menu-content {
  padding: 20px;
}

.menu-content div {
  margin-bottom: 15px;
}

.menu-content a {
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  padding: 5px;
  transition: background-color 0.2s;
  cursor: pointer; /* Курсор для ссылок */
}

.menu-content a:hover {
  background-color: #f5f5f5;
  color: #ED3237;
}

.topheightm {
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
  width: 20px;
  height: 20px;
    font-size: 20px;
  margin-right: 10px;
}

/* ВСПЛЫВАЮЩЕЕ МЕНЮ - КОНЕЦ _____ */


/* Картинка в товарах - НАЧАЛО _____ */
div.lefts {
    margin: 0 auto;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

div.lefts img {
    transform: scale(1.5);
    transform-origin: center center;
    margin: 15px;
    max-width: none !important;
    
    /* Убираем все возможные виды рамок */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    
    /* На всякий случай сбрасываем все */
    all: initial !important;
}


/* Картинка в товарах - КОНЕЦ _____ */


/* Рамка вокруг товаров - НАЧАЛО _____ */
        .framed-block {
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
            width: 210px;
            height: 343px;
            border: 1px solid #2D3748;
            border-radius: 10px;
            background-color: #F8F5F2;
            padding: 15px;
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            text-align: center;
            margin: 0px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            color:#2D3748;
            text-decoration: none; /* убирает подчеркивание */
        }
        a.div.framed-block {
            text-decoration: none; /* убирает подчеркивание */
        }
h3 {
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color:#2D3748;
    text-decoration: none; /* убирает подчеркивание */
}

a.h3 {
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    color:#2D3748;
    text-decoration: none; /* убирает подчеркивание */
}


        a.div.content-below {
            text-decoration: none; /* убирает подчеркивание */
        }


/* Рамка вокруг товаров - КОНЕЦ _____ */

/* Увеличение картинок - НАЧАЛО _____ */

.image-popup {
    pointer-events: none; /* Чтобы popup не мешал взаимодействию с другими элементами */
}

.framed-block .lefts {
    cursor: pointer;
    position: relative;
}

.framed-block .lefts:hover {
    opacity: 0.9;
}

 /* Увеличение картинок - КОНЕЦ _____ */      
        
