/*
0. Icons & Pagination
1. Header
2. Footer
3. Mobile buttons
4. Home Page
5. Category Page
6. Category List
7. Product Page
8. Blog Page
9. 404 Page
10. Cart Style
*/

/* ========================================= */
/* ITALIC 400 (Курсивное начертание)         */
/* ========================================= */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inter/cyrillic-ext-italic-400.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inter/cyrillic-italic-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inter/latin-ext-italic-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/inter/latin-italic-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================= */
/* NORMAL 300 (Light / Легкое начертание)    */
/* ========================================= */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter/cyrillic-ext-normal-300.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter/cyrillic-normal-300.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter/latin-ext-normal-300.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter/latin-normal-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================= */
/* NORMAL 400 (Regular / Стандартное)        */
/* ========================================= */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter/cyrillic-ext-normal-400.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter/cyrillic-normal-400.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter/latin-ext-normal-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter/latin-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ========================================= */
/* NORMAL 700 (Bold / Жирное начертание)     */
/* ========================================= */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter/cyrillic-ext-normal-700.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter/cyrillic-normal-700.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter/latin-ext-normal-700.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter/latin-normal-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
Работа форм обратной связи
*/
#callback-message {
    display: block !important;
    font-size: 14px;
    min-height: 2rem;
}
#callback-message.text-success {
    color: #28a745;
}
#callback-message.text-danger {
    color: #dc3545;
}

/*
Правка меню нижней жемчужины
*/
#offcanvasNavigation div.offcanvas-header {
    padding-bottom: 0;
}

#column-left:has(.search-container) {
    padding: 0;
}
.search-bar.fixed{
    padding: 5px;
}
/*
Кастомный инпут чекбокс
*/
input[type="checkbox"] {
      display: none;
    }

.custom-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: text-bottom;
  margin-right: 10px;
}

.custom-checkbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-color: #C9C9C9; /* внешний круг */
  border-radius: 50%;
  box-sizing: border-box;
}

input[type="checkbox"]:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: #221F20; /* Темный внутренний круг */
  border-radius: 50%;
}

:root {
    /*--main-bg-color: #F2F1EC;  var(--main-bg-color);*/
    --main-bg-color: #F7F7F4;
}
#menu-desk {
  margin-bottom: 20px !important;
}
/* Затухание */
#menu-mob, #menu-desk, .products-row, .beke-pagination, div.bf-panel-wrapper {
  position: relative;
}

.pulse-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #F7F7F49c; /* Фон из переменной, fallback на белый */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.pulse-dot {
  width: 20px;
  height: 20px;
  background: black;
  border-radius: 50%;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.5); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.7; }
}
/* Icons */
.discount-badge {
    position: absolute;
    bottom: 15px;
    right: 10px;
    width: 40px;
    height: 40px;
    
    background-image: url('../images/proc.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    
    display: flex;
    align-items: center;
    justify-content: center;
    

    z-index: 10;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}

.badge-text {
    color: #ACACAC;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    margin-top: -3px;
    margin-left: -2px;
}

.beke-heart,
.beke-heart-o,
.beke-filters,
.beke-search {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  cursor: pointer;
}
.beke-filters {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Заполненное сердце */
.beke-heart {
  background-image: url('../images/heart.svg');
}

.beke-heart.white {
  background-image: url('../images/heart-white.svg');
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}


/* Пустое сердце */
.beke-heart-o {
  background-image: url('../images/heart-o.svg');
}

.beke-heart-o.white {
  background-image: url('../images/heart-o-white.svg');
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.products-row i.beke-heart, .products-row i.beke-heart-o {
    opacity: 0.5;
    width: 24px;
    height: 24px;
}
@media (min-width: 576px) {
    .products-row i.beke-heart, .products-row i.beke-heart-o {
    width: 20px;
    height: 20px;
    }
}

/* Фильтр */
.beke-filters {
  background-image: url('../images/filters.svg');
}

/* Поиск */
.beke-search {
  background-image: url('../images/search.svg');
}

/* Pagination */
.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
  justify-content: center;
  align-items: center;
  font-family: inherit;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #221F20;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
}

/* Настройки input */

input,
textarea,
textarea.form-control,
input.form-control {
  background: transparent;
  border: none;
  border-bottom: 1px solid #221F20;
  border-radius: 0;
  color: #221F20;
  resize: vertical;
}
textarea,
textarea.form-control {
  background: #E8E7E2;
  width: 100%;
}

input:focus,
textarea:focus,
input.form-control:focus,
textarea.form-control:focus {
  outline: none;
  border-bottom: 1px solid #C9C9C9;
}
textarea:focus,
textarea.form-control:focus {
  background: #E8E7E2;
}
input.form-control:focus {
  background: transparent;
}

/* Активная страница */
.pagination li.active span {
  background-color: #C9C9C9;
  color: #fff;
  font-weight: 500;
  border: none;
}

/* Наведение */
.pagination a:hover {
  color: #C9C9C9;
  border-color: #C9C9C9;
}

/* Элементы типа ... */
.pagination span {
  cursor: default;
}


body {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  background-color: var(--main-bg-color); /* Цвет фона, как на макете */
  font-size: 14px;
  line-height: 20px;
  width: 100%;
  color: #221F20;
}
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #221F20;
}
/* default font size */
.fa {
  font-size: 14px;
}
/* Override the bootstrap defaults */
h1 {
  font-size: 33px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 21px;
}
h4 {
  font-size: 15px;
}
h5 {
  font-size: 12px;
}
h6 {
  font-size: 10.2px;
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.7rem;
}
p {
    margin-bottom: 1.5rem;    
}
a {
  color: #23a1d1;
}
a:hover {
  text-decoration: none;
  color: #C9C9C9 !important;
}
legend {
  font-size: 18px;
  padding: 7px 0px
}
label {
  font-size: 12px;
  font-weight: normal;
}
select.form-control, textarea.form-control, input[type="text"].form-control, input[type="password"].form-control, input[type="datetime"].form-control, input[type="datetime-local"].form-control, input[type="date"].form-control, input[type="month"].form-control, input[type="time"].form-control, input[type="week"].form-control, input[type="number"].form-control, input[type="email"].form-control, input[type="url"].form-control, input[type="search"].form-control, input[type="tel"].form-control, input[type="color"].form-control {
  font-size: 12px;
}
/* Bootstrap */
.offcanvas{
  background-color: var(--main-bg-color);
}
.container {
  padding: 0 20px 0 20px;
}
.btn.btn-beke {
  border-radius: 0; /* Без закруглений на кнопке */
  border: 1px solid black;
  background: none;
  color: black;
  font-size: 14px;
}
.btn.btn-beke.active {
    border-radius: 25px;
    border: 1px dashed black;
}
/* header */
@media (min-width: 768px){
    header {  
      margin-bottom: 60px;
    }
}
.logo-container {
  display: flex;
  justify-content: center; /* Центрируем по горизонтали */
  align-items: center; /* Центрируем по вертикали */
  padding: 20px 0; /* Добавляем отступы сверху и снизу */
}

/* Изображение логотипа */
.logo-img {
  max-width: 200px; /* Ограничиваем максимальную ширину */
  height: auto; /* Сохраняем пропорции */
}

/* Стили для текста, если логотипа нет */
.logo-text a {
  font-size: 32px; /* Размер шрифта */
  font-weight: bold; /* Жирный текст */
  text-decoration: none; /* Убираем подчеркивание */
  color: #221F20;
}

/* Меню навигации */
.nav-pills {
  display: flex; /* Выравниваем элементы по горизонтали */
  justify-content: center; /* Центрируем элементы */

}

.nav-pills li {
  margin-right: 30px;
}

.nav-pills li a {
  color: #221F20;
  font-size: 14px;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-pills li a:hover {
  color: #C9C9C9;
}

/* Кнопки */
header .btn-link {
  color: #221F20;
  text-decoration: none;
  font-size: 14px;
  margin: auto;
}

header .btn-link:hover {
  color: #C9C9C9;
  text-decoration: none;
}

/* Добавим flexbox для выравнивания меню и кнопок в одну линию */
header.head .row {
  display: flex;
  justify-content: space-between; /* Распределяем пространство между элементами */
  align-items: center; /* Выравниваем по вертикали */
}

.nav-pills li a.active {
  color: #C9C9C9;
}
a.active {
  color: #C9C9C9 !important;
}
/* Footer */
footer {
    padding: 40px 20px;
    margin-top: 0;
    border-top: 0;
}
@media (min-width: 768px){
    footer{
        margin-top: 20px;
    }
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: flex-start; /* Align all content to the left */
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 15px;
}

.footer-logo {
    font-size: 32px; /* Logo size */
    font-weight: bold;
    text-align: left; /* Align logo to the left */
    margin-bottom: 20px; /* Logo space */
}

.footer-section h5 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-section p, 
.footer-section a {
    font-size: 14px;
    color: #221F20;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 50px;
    justify-content: flex-start; /* Align social media icons to the left */
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    gap: 20px;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid black;
}

.footer-bottom a {
    font-size: 7px;
    color: #221F20;
    text-decoration: none;
    margin-left: 10px;
}
a:hover{
  color: #C9C9C9 !important;
}

/* Desktop version adjustments */
@media (min-width: 767px) {
    .footer-logo {
        text-align: left; /* Ensure logo is aligned to the left */
        margin-bottom: 10px; /* Reducing margin on desktop */
    }
    .footer-content {
        justify-content: flex-start; /* Keep content aligned to left on desktop */
    }
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: left; /* Align text to the left in mobile version */
    }

    .footer-logo {
        font-size: 24px; /* Logo size for mobile */
        margin-bottom: 20px;
    }

    .social-links {
        justify-content: flex-start;
        gap: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
}
/* Mobile buttons */
/* Позиционирование кнопок */
.bottom-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: #fff;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1043;
  background-color: var(--main-bg-color);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .bottom-buttons {
    display: flex;
  }
}

/* Для более крупных экранов скрыть кнопки */
@media (min-width: 769px) {
  .bottom-buttons {
    display: none;
  }
}

/* Home Page */


/* Category Page */

/* Анимация появления товаров */
.product-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInProduct 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInProduct {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили текстового индикатора загрузки */
.loading-indicator {
    margin: 50px 0 30px;
}

.vintage-spinner {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: vintagePulse 1.5s infinite ease-in-out;
}

@keyframes vintagePulse {
    0%, 100% { opacity: 0.3; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

.search-beke-desk {
    margin: 7px 10px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #221F20;
    padding: 5px 30px 5px 5px;
    outline: none;
    font-size: 16px;
    width: 200px;
    transition: border-color 0.3s ease;
    max-width: 150px;
}

.search-beke-desk:focus {
    border-bottom-color: #C9C9C9;
}

.product-layout{
  padding: 5px;
}
.product-layout2{
  padding: 5px;
}
.product-thumb {
  background-color: #F0F0EB;
}
.product-card {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Картинка без изменения, затемнение будет отдельным слоем */
.product-image img {
    width: 100%;
    transition: opacity 0.4s ease-in-out;
}

/* Затемняющий слой, но он находится ПОД текстом */
.product-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Прозрачный по умолчанию */
    transition: background 0.4s ease-in-out;
    z-index: 1; /* Слой затемнения под текстом */
}

/* Центрирование информации о товаре */
.product-info {
    position: absolute;
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    z-index: 2; /* Текст выше слоя затемнения */
}

@media (max-width: 768px) {
  .product-image {
    position: relative;
    overflow: hidden;
  }

.product-card .circle-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
  }

  .product-info {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    transform: translate(-50%, -60%);
    text-align: center;
    color: white;
    font-size: 16px;
    opacity: 1;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
}

.product-info {
    font-weight: normal;
    color: white;
}

.product-info h2 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: white;
}

.product-info p {
    margin: 5px 0 0;
    font-size: 16px;
    font-weight: normal;
}

.product-info span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
    font-weight: normal;
}
span.products-price-count-display {
    margin-top: 10px;
}

/* При наведении равномерное затемнение */
@media (hover: hover) {
    .product-image:hover::after {
        background: rgba(0, 0, 0, 0.5); /* Однородное затемнение */
    }

    .product-image:hover img {
        opacity: 0.7;
    }

    .product-image:hover .product-info {
        opacity: 1;
    }
}

/* Кнопка "избранное" */
.wishlist-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    margin: 15px 15px;
    opacity: 0.4;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 3; /* Поверх всего */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
button.wishlist-btn .fa {
  font-size: 16px;	
}
a.wishlist-btn .fa {
  font-size: 16px;	
}

@media (max-width: 769px) {
  button.wishlist-btn .fa {
    font-size: 25px;	
  }
  a.wishlist-btn .fa {
    font-size: 25px;	
  }
  .wishlist-btn {
      margin: 15px 10px;
  }
}

/* Кнопка вида страницы list - defoult */
/* Блок-обертка */
.list-view-block {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 15px;
  margin-left: -3px;
}

/* Базовое состояние кнопки (Квадрат 25х25px) */
#list-view {
  width: 25px;
  height: 25px;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  cursor: pointer;
}

/* Две половинки, которые в дефолте теперь разделены на две полоски */
#list-view::before,
#list-view::after {
  content: '';
  position: absolute;
  top: 0;
  height: 25px;
  background-color: #D9D9D9;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1); 
}

/* Левая полоска в дефолте (11px) */
#list-view::before {
  left: 0;
  width: 11px; 
}

/* Правая полоска в дефолте (11px) */
#list-view::after {
  right: 0;
  width: 11px;
}

/* --- ПЛАВНЫЙ ПЕРЕХОД В АКТИВНОЕ СОСТОЯНИЕ (Целый квадрат 25x25) --- */

/* Левая половинка увеличивается до центра (12.5px) */
#list-view.active::before {
  left: 0;
  width: 12.5px;
}

/* Правая половинка увеличивается до центра (12.5px) */
#list-view.active::after {
  right: 0;
  width: 12.5px;
}

/* Эффект при наведении */
#list-view:hover {
  opacity: 0.8;
}
/* Category List */

/*.circle-button {
  width: 25px;
  height: 25px;
  background-color: black;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px;
  border: black;
  
  /* Анимация подпрыгивания 
  animation: bounce 3s ease-in-out infinite;
}

/* Анимация подпрыгивания 
@keyframes bounce {
  0% {
    transform: translateY(0); /* Исходное положение 
  }
  50% {
    transform: translateY(-10px); /* Подпрыгиваем вверх 
  }
  100% {
    transform: translateY(0); /* Возвращаемся обратно 
  }
}

.circle-button .shadow {
  width: 40px;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(3px);
  transition: all 0.3s ease;
}
background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 47%) 0%, rgb(255 255 255 / 38%) 30%, rgb(0 0 0 / 28%) 80%), linear-gradient(to bottom, rgba(50, 50, 50, 0.8) 0%, rgba(0, 0, 0, 1) 100%);
background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 41%) 0%, rgb(255 255 255 / 8%) 30%, rgb(0 0 0) 80%), linear-gradient(to bottom, rgba(50, 50, 50, 0.8) 0%, rgba(0, 0, 0, 1) 100%);

*/
.circle-button-wrapper {
  position: relative;
  display: inline-block;
  padding: 0 50px 0 50px;

  --circle-button-size: 16;
  --circle-button-offset-x: -50px;
  --circle-button-offset-y: 0px;
  --shadow-distance: -13px;


  --shadow-blur: calc(var(--circle-button-size) * 0.12px);
  --shadow-width: calc(var(--circle-button-size) * 1.6px);
  --shadow-height: calc(var(--circle-button-size) * 0.8px);
  --bounce-height: calc(var(--circle-button-size) * -0.4px);
}

.circle-button-wrapper-small {
  position: relative;
  display: inline-block;

  padding: 0 10px 0 10px;

  --circle-button-size: 16;
  --circle-button-offset-x: 0px;
  --circle-button-offset-y: 5px;
  --shadow-distance: -6px;

  --shadow-blur: calc(var(--circle-button-size) * 0.12px);
  --shadow-width: calc(var(--circle-button-size) * 1.6px);
  --shadow-height: calc(var(--circle-button-size) * 0.8px);
  --bounce-height: calc(var(--circle-button-size) * -0.4px);
}

.circle-button {
  width: calc(var(--circle-button-size) * 1px);
  height: calc(var(--circle-button-size) * 1px);
  background: radial-gradient(circle at 30% 30%, rgb(255 255 255 / 24%) 0%, rgb(255 255 255 / 8%) 30%, rgb(0 0 0) 80%),
              linear-gradient(to bottom, rgba(50, 50, 50, 0.8) 0%, rgba(0, 0, 0, 1) 100%);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  transform: translate(var(--circle-button-offset-x), var(--circle-button-offset-y));
  animation: bounce 3s ease-in-out infinite;
  z-index: 2;
}

.circle-shadow {
  width: var(--shadow-width);
  height: var(--shadow-height);
  background: rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateX(var(--circle-button-offset-x));
  bottom: calc(var(--circle-button-offset-y) + var(--shadow-distance));
  border-radius: 50%;
  filter: blur(var(--shadow-blur));
  transform-origin: center;
  animation: shadowSizeChange 3s ease-in-out infinite;
  z-index: 1;
}

.circle-button-text {
  position: absolute;
  left: 45px;              /* расстояние от жемчужины до текста — подстрой под себя */
  top: 50%;
  transform: translateY(-40%); /* точное выравнивание по центру жемчужины */
  font-family: inherit;     /* или укажи свой шрифт */
  font-size: 14px;
  font-weight: 400;
  color: #333;              /* цвет текста — подстрой под дизайн */
  white-space: nowrap;
  z-index: 3;               /* выше жемчужины и тени */
  pointer-events: none;     /* чтобы текст не мешал клику по всей кнопке */
}

@keyframes bounce {
  0%, 100% {
    transform: translate(var(--circle-button-offset-x), var(--circle-button-offset-y));
    opacity: 1;
  }
  50% {
    transform: translate(var(--circle-button-offset-x), calc(var(--circle-button-offset-y) + var(--bounce-height)));
    opacity: 0.8;
  }
}

@keyframes shadowSizeChange {
  0%, 100% {
    transform: translateX(calc(-50% + var(--circle-button-offset-x))) scale(1);
    filter: blur(var(--shadow-blur));
  }
  50% {
    transform: translateX(calc(-50% + var(--circle-button-offset-x))) scale(0.5);
    filter: blur(calc(var(--shadow-blur) * 0.3));
  }
}

.circle-base {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  background: var(--main-bg-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}



.offcanvas-start ~ .offcanvas-backdrop,
.offcanvas-end ~ .offcanvas-backdrop {
  z-index: 1044; /* Выше bottom-buttons для start/end */
}
@media (max-width: 576px){
    .offcanvas.offcanvas-end,
    .offcanvas.offcanvas-start {
      max-width: 80% !important;
    }
    #offcanvasMenu.offcanvas.offcanvas-start {
        max-width: 66% !important;
    }
}



.custom-list {
  padding-left: 0;
  margin: 0;
  text-transform: uppercase;
}

.custom-list li {
  padding: 0px;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: normal;
}
.custom-list ul {
  margin: 5px;
}

.custom-list li a {
  color: #221F20;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.custom-list li a:hover {
  color: #C9C9C9;
}
h1.menu-heading {
    margin-bottom: 0;
    line-height: 20px;
}
.custom-list .active, h1.menu-heading a {
  color: #C9C9C9;
  text-transform: uppercase;
  font-size: 14px;
}
/* Product Page */
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.product-description {
  padding: 20px;
}


/* Скрываем элемент изначально */
#product-product.product-image,
#product-product.product-description,
.image-animated .col-6,
.image-animated .col-12 {
  opacity: 0;
  transform: translateY(20px); /* Начальная позиция, немного смещена вниз */
  transition: opacity 0.6s ease, transform 0.6s ease; /* Плавная анимация */
}

/* Когда элемент видим (класс in-viewport), меняем opacity и позицию */
.product-image.in-viewport,
.product-description.in-viewport,
.image-animated .col-6.in-viewport,
.image-animated .col-12.in-viewport {
  opacity: 1;
  transform: translateY(0); /* Элемент будет на своем месте */
}

.buy-wrapper {
  display: flex;
  justify-content: space-between; /* распределяет между span и actions */
  align-items: center;
  gap: 12px;
  margin-left: auto;
  width: 100%; /* если нужно, чтобы тянулось */
}


/* Кнопка: одинаковые размеры, разный стиль */
.buy-btn {
  font-size: 12px;
  font-weight: 600;
  color: black;
  background: none;
  border: 1px dashed black;
  border-radius: 25px;
  padding: 6px 18px;
  cursor: pointer;
  width: 110px;
  height: 34px;
  box-sizing: border-box;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  -webkit-appearance: none;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buy-btn .btn-text {
  white-space: nowrap;
  display: block;
}

.buy-btn.active {
  border: 1px solid black;
  border-radius: 0;
}

/* Blog Page */
.event-block {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
  transition: transform 0.3s, box-shadow 0.3s; /* Плавное изменение тени */
}

.event-block:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

.event-image {
  width: 100%;
  height: auto;
}

.event-text {
  padding: 15px;
  border: 1px solid #ccc; /* Рамка без закруглений */
  border: 0;
}

.event-text h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.event-text p {
  margin-bottom: 10px;
  font-size: 14px;
  color: #ACACAC;
}

.event-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

div.event-row .col {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.card-blog {
  width: 100%;
  max-width: 500px; /* Устанавливаем максимальную ширину */
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 0; /* Без закруглений на карточках */
  border: 0;
  background-color: var(--main-bg-color); /* Фон карточки */
}

.card-blog img {
  object-fit: cover;
  height: 300px; /* Задаем фиксированную высоту для изображений */
}



/* 404 Page */
#error-not-found {
min-height: 50vh;
background: url('../images/404-broken-furniture.png') center center / contain no-repeat;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 2rem;
text-align: center;
position: relative;
}
.error-overlay {
position: relative;
z-index: 1;
}

.error-overlay h1 {
font-size: 6rem;
font-weight: 800;
color: #221F20;
margin: 0 0 0.5rem;
line-height: 1;
text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-overlay p {
font-size: 1.35rem;
color: #221F20;
margin: 0 0 2rem;
max-width: 720px;
line-height: 1.6;
}

.btn-bake {
/* Ваш стиль уже определён в глобальных стилях — не переопределяем */
padding: 0.75rem 2.25rem;
font-weight: 600;
}

@media (max-width: 768px) {
.error-overlay h1 { font-size: 4.5rem; }
.error-overlay p { font-size: 1.15rem; }
#error-not-found { background-size: 85% auto; }
}

@media (max-width: 480px) {
.error-overlay h1 { font-size: 3.5rem; }
#error-not-found { padding: 1rem; }
}


/* Cart Style */
#cart .offcanvas {
  transition: transform 0.6s ease;
}

#cart .cart-item.bg-light {
  background-color: rgb(248 249 250 / 48%) !important;
}

#cart .remove-btn {
  background: none;
  border: none;
  color: #221F20;
  font-weight: 500;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color 0.2s;
  cursor: pointer;
}

#cart .remove-btn:hover {
  color: #C9C9C9;
}

#cart .btn-beke:hover {
  background-color: #221F20;
  color: #fff;
}
.badge-button-cart {
    font-size: 10px;
    font-weight: 400;
    color: #221F20;
    transform: translate(-130%, 10%) !important;
    top: 2px;
    right: 0px;
    pointer-events: none;
}
.badge-button-wl {
    font-size: 10px;
    font-weight: 400;
    color: #221F20;
    transform: translate(-130%, 10%) !important;
    top: 2px;
    right: 0px;
    pointer-events: none;
}