/* 1. СВЕТЛА ТЕМА (По подразбиране) */
:root {
    --primary: #25abd2;
    --dark: #1e293b;
    --text: #334155;
    --bg: #f1f5f9;
    --white: #ffffff;
    --accent: #2a9dbe;
    --silver: #f8fafc;
    --btnl: #f59e0b;
    --btnr: #d97706;
    --logo: #1e293b;
    --footer: #ffffff;
    --border: #e2e8f0;
    --secondary: #64748b;
    --bg-pattern: none;
}

/* 2. РЪЧНА ТЪМНА ТЕМА (Форсирана от бутона) */
:root.dark-mode {
    --bg: #121212;
    --white: #1c1c1c;
    --text: #e1e1e1;
    --border: #2a2a2a;
    --primary: #b91c1c;
    --accent: #990000;
    --silver: #161616;
    --btnl: #b91c1c;
    --btnr: #990000;
    --logo: #ffffff;
    --footer: #0a0a0a;
    --bg-pattern: linear-gradient(45deg, #161616 25%, transparent 25%),
        linear-gradient(-45deg, #161616 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #161616 75%),
        linear-gradient(-45deg, transparent 75%, #161616 75%);
}

/* 3. АВТОМАТИЧНА СИСТЕМНА ТЕМА */
@media (prefers-color-scheme: dark) {
    /* Активира се само ако потребителят НЕ е избрал ръчно светла тема */
    :root:not(.light-mode) {
        --bg: #121212;
        --white: #1c1c1c;
        --text: #e1e1e1;
        --border: #2a2a2a;
        --primary: #b91c1c;
        --accent: #990000;
        --silver: #161616;
        --btnl: #b91c1c;
        --btnr: #990000;
        --logo: #ffffff;
        --footer: #0a0a0a;
        --bg-pattern: linear-gradient(45deg, #161616 25%, transparent 25%),
            linear-gradient(-45deg, #161616 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, #161616 75%),
            linear-gradient(-45deg, transparent 75%, #161616 75%);
    }
}
html {
    font-size: 100%;
}
h1{
    font-size: 1.5rem;
}
h2{
    font-size: 1.3rem;
}
h3 {
    display: flex;
    gap: 10px;
    width: 100%;
    font-size: 1.2rem;
}

h3 svg {
    flex-shrink: 0;          /* Пречи на иконата да се смачка */
}
h4{
    font-size: 1.1rem;
}
h5{
    font-size: 1rem;
}
body {
    background-color: var(--bg);
    background-image: var(--bg-pattern);
    background-size: 4px 4px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

/* --- HEADER --- */
header {
    background: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-btn {
    display: none;
    background: var(--bg);
    color: white;
    border: none;
    padding: 8px 0px;
    border-radius: 8px;
    cursor: pointer;
}

/* --- ОСНОВНА СТРУКТУРА (Wrapper) --- */
.main-wrapper {
    display: flex;
    max-width: 100rem;
    margin: 2rem auto;
    gap: 25px;
    padding: 0 1rem;
}

/* --- ЛЯВО МЕНЮ (Sidebar) --- */
.sidebar-menu {
    width: 17.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 20px;
    flex-shrink: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0); /* Активира 3D ускорение */
    -webkit-overflow-scrolling: touch;
}
.sidebar-menu::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Височина на избледняването */
    /* Градиентът трябва да прелива от прозрачно към цвета на фона на менюто (бяло) */
    background: linear-gradient(to bottom, transparent 0%, var(--white) 100%);
    pointer-events: none; /* Позволява кликане върху линковете под градиента */
    z-index: 2; /* Поставя го над списъка */
}
.sidebar-menu h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}
.sidebar-menu ul {
    list-style: none;
    max-height: 70vh;
    overflow-y: auto;
}
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    /*transition: 0.2s;*/
}
.sidebar-menu a:hover {
    background: var(--silver);
    color: var(--primary);
    padding-left: 15px;
}
.sidebar-menu a.active {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.sidebar-menu a.active .icons {
    fill: #ffffff;
}
/* Показва слоя само когато менюто е отворено */
.sidebar-menu.open + .menu-overlay {
    display: block;
}
/* --- ПРОДУКТОВА ЧАСТ --- */
.content-area {
    flex-grow: 1;
}
.product-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.gallery img {
    width: 100%;
    border-radius: 10px;
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.specs-section {
    margin-top: 2rem;
}

#specs dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

dt {
    background: var(--silver);
    font-weight: 600;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

dd {
    background: var(--white);
    padding: 12px;
    border-bottom: 1px solid var(--border);
}


.specs-wrapper {
    position: relative;
    max-height: 25rem; /* Ограничаваме височината */
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.specs-wrapper.expanded {
    max-height: 187rem; /* Достатъчно голямо, за да побере всичко */
}

/* Градиентът, който подсказва, че има още */
.specs-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
}

.specs-wrapper.expanded .specs-fade {
    display: none;
}

.show-more-btn {
    display: block;
    margin: 10px auto;
    padding: 8px 20px;
    background: var(--silver);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

/* --- ФОРМИ (Мнения/Запитване) --- */
.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.form-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.form-card input {
    padding: 8px;
}
input, textarea {
    outline: none;
    width: 100%;
    padding: 4px;
    margin: 10px 0;
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--silver);
  color: var(--text);
  border: 1px solid var(--border);
  
}
input:hover, textarea:hover {
  outline: 1px solid var(--accent);
  
}
/* Слой за затваряне на менюто при клик отвън */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачно черно */
    z-index: 1500; /* Под менюто, но над съдържанието */
    display: none; /* Скрито по подразбиране */
    backdrop-filter: blur(2px); /* Леко размазване на фона за стил */
}

.icons {
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease;
    fill:var(--accent);
    height:24px;
    width: 24px;
}

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--logo);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

/* Търсачка */
.search-bar {
    flex-grow: 1;
    /*max-width: 600px;*/
    display: flex;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    /*overflow: hidden;*/
    transition: border-color 0.2s;
}
.search-bar:focus-within {
    border-color: var(--primary);
}
.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: var(--text);
}
.search-bar button {
    background: transparent;
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--secondary);
}

/* Количка */
.cart-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: var(--bg);
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text);
    border: 1px solid var(--border);
}

.cart-info {
    display: flex;
    flex-direction: column;
}
.cart-label {
    font-size: 0.6rem;
    color: var(--secondary);
    text-transform: uppercase;
}
.cart-total {
    font-weight: 700;
    font-size: 0.9rem;
}
.theme-toggle{
    padding: 8px 0px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 8px;
    cursor: pointer;
    width: 2.5rem;
}
/* Контейнер за списъка с мнения */
.reviews-wrapper {
    position: relative;
    max-height: 32rem; /* Показва около 2-3 мнения */
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 15px;
}

.reviews-wrapper.expanded {
    max-height: 312rem; /* Голяма стойност за всички коментари */
}

/* Градиент за загатване на още коментари */
.reviews-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(transparent, var(--white));
    pointer-events: none;
    transition: opacity 0.3s;
}

.reviews-wrapper.expanded .reviews-fade {
    opacity: 0;
}
.reviews-list{
    max-height: 1200px;
    overflow-y: auto;
}

.btn-show-reviews {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: block;
    margin: 0 auto;
    transition: 0.3s;
}

.btn-show-reviews:hover {
    background: var(--primary);
    color: white;
}

.site-footer {
    background: var(--footer);
    border-top: 1px solid var(--border);
    margin-top: 50px;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.footer-column a:hover {
    color: var(--primary);
    transform: translateX(-1px);
}

.footer-column .icons {
    width: 20px;
    height: 20px;
    font-size: 18px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--secondary);
    font-size: 0.85rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
}

/* Главна снимка */
.main-image {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    cursor: crosshair;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.1); /* Леко приближение при посочване */
}

.zoom-hint{
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}
.zoom-hint .icons{
    fill: var(--primary);
}

/* Лента с малки снимки */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnails img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    background: #fff;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnails img:hover {
    opacity: 1;
}

.thumbnails img.active {
    border-color: var(--primary); /* Червено в Carbon темата / Синьо в Standard */
    transform: translateY(-1px);
    opacity: 1;
}

/* Тъмна тема корекция */
body.dark-mode .main-image,
body.dark-mode .thumbnails img {
    background: #161616;
}

/* Основен контейнер */
#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    touch-action: none; /* Важно за Firefox: пречи на браузъра да мести страницата при слайд */
}

/* Снимката в центъра */
#lightbox-img {
    max-width: 80%;
    max-height: 80%;
    z-index: 10000;
    pointer-events: none; /* Позволява на слайдването да минава "през" снимката */
}

/* Общ стил за стрелките */
#lightbox .icons {
    position: absolute;
    z-index: 10001; /* Винаги най-отгоре */
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    user-select: none;
    transition: background 0.3s;
    width: 96px;
    height: 96px;
    fill:#ffffff;
}

#lightbox .icons:hover {
    background: rgba(255,255,255,0.3);
}

/* Позициониране на бутоните */
.close-btn {
    top: 20px;
    right: 20px;
}
.prev-btn {
    left: 20px;
}
.next-btn {
    right: 20px;
}
/* Мрежата - адаптивна еластичност */
.products-grid {
    display: grid;
    /* Автоматично запълване: всяка карта е минимум 16rem (~256px) */
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Картата - оптимизация за рендиране */
.item-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    /* МАГИЯТА ЗА 2026: Браузърът не рендира картата, докато не я наближите при скролване */
    content-visibility: auto;
    contain-intrinsic-size: 350px; /* Запазва място от 350px височина, за да няма "подскачане" */
}

.item-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 2;
}
.item-card.active{
    /*border: 1px solid var(--accent);*/
    position: relative; /* Важно за позиционирането на баджа */
    border-color: #27ae60;
}
.item-card.active::before {
    content: "✓ В количката";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #27ae60;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Линкът обхваща цялата горна част */
.item-link {
    text-decoration: none;
    color: inherit;
    padding: 1rem;
    flex-grow: 1;
}

.item-img-box {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.item-img-box img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    /* Ограничаване до 2 реда с многоточие */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
}

/* Компактен бутон "Купи" */
.item-buy {
    margin: 0px 1rem 1rem 1rem;
    padding: 0.8rem 0px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--btnl), var(--btnr));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.item-buy:hover {
    filter: brightness(1.1);
}

.item-buy span {
    font-size: 1.2rem;
}
.details .item-buy, .bottom-grid .item-buy, .commentForm .item-buy {
    margin: 1rem 0px;
    width: 100%;
    padding: 1.2rem 0px;
}

/* Променяме .catalog-header на .catalog-top */
.catalog-top {
    margin-bottom: 1.5rem;
    display: block;
}

.category-heading h1 {
    font-size: 1.8rem;
    color: var(--dark);
    margin: 0.5rem 0;
}

/* Останалото остава същото... */


.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    font-size: 1rem;
}

.category-info h1 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.results-count {
    font-size: 0.9rem;
    color: var(--text);
    opacity: 0.8;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
  gap: 15px; /* Добавен gap за по-добро разстояние между елементите */
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.sort-box select {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
}

/* Базов стил за инпута (ако нямаш такъв) */
.category-filter input {
  padding: 6px 12px; position: relative; flex-grow: 1;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-options button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    padding: 5px;
    transition: 0.2s;
}

.view-options button.active {
    color: var(--primary);
}

/* Изглед в списък (активира се чрез клас .list-view) */
.products-grid.list-view {
    grid-template-columns: 1fr; /* Една колона */
}

.products-grid.list-view .item-card {
    flex-direction: row; /* Хоризонтално подреждане */
    align-items: center;
    gap: 20px;
    padding: 15px;
    height: auto;
}

.products-grid.list-view .item-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.products-grid.list-view .item-img-box {
    width: 150px; /* Малка снимка в списъка */
    margin-bottom: 0;
    flex-shrink: 0;
}

.products-grid.list-view .item-title {
    -webkit-line-clamp: 3; /* Повече текст за заглавието в списък */
    font-size: 1.1rem;
}

.products-grid.list-view .item-buy {
    width: auto;
    margin: 0 1rem 0 0;
    padding: 10px 25px;
}

.item-buy .icons {
    color:#ffffff;
    fill:#ffffff;

}


.cart-container h1 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

/* Таблица */
.cart-table {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.cart-thead {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: var(--silver);
    padding: 15px;
    font-weight: bold;
    border-bottom: 1px solid var(--border);
}
.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

/* Бутони за количество */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    padding: 5px;
    border-radius: 8px;
    width: fit-content;
}
.qty-btn, .crt-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.qty-btn:hover,  .crt-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}
.qty-btn .icons,  .crt-btn .icons {
    font-size: 18px;
}

/* Статус на склад */
.stock-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}
.in-stock-bg {
    background: #22c55e;
    box-shadow: 0 0 5px #22c55e;
}
.in-stock-eu {
    background: #3b82f6;
    box-shadow: 0 0 5px #3b82f6;
}

/* Обобщение */
.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 25px;
    align-items: start;
}
.cart-summary-box {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.summary-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed var(--border);
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

/* Форма */
.client-details-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
    border-top: 4px solid var(--primary);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}
.checkout-form textarea {
    height: 80px;
    margin-bottom: 15px;
}
.terms-check {
    margin-bottom: 20px;
    font-size: 0.9rem;
}


.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1rem 0rem;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

/* Лява част: Снимка и инфо */
.item-main {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.item-img {
    width: 120px;
    height: 120px;
    background: var(--silver);
    border-radius: 12px;
    padding: 10px;
    position: relative;
    flex-shrink: 0;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Статус етикети върху снимката */
.stock-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}
.pi {
    position: inherit;
}
.eu {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59,130,246,0.5);
}
.bg {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.5);
}
.mq {
    background: #f43f5e;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}
.na {
    background: #64748b;
    box-shadow: 0 0 10px rgba(100, 116, 139, 0.5);
}
.wq {
    background: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}


.item-name {
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    display: block;
    margin-bottom: 0.5rem;
    transition: 0.2s;
    overflow-wrap: break-word;
    word-break: break-word;
}

.item-name:hover {
    color: var(--primary);
}

.item-meta {
    font-size: 0.8rem;
    color: var(--secondary);
}
.item-meta mark {
    background: none;
    color: var(--primary);
    font-weight: bold;
}

/* Дясна част: Цени и контроли */
.item-pricing {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--silver);
    padding: 1.5rem;
    border-radius: 12px;
}

.price-each, .price-total {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.price-each .label, .price-total .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 4px;
}

.price-each .val {
    font-size: 0.95rem;
    font-weight: 600;
}

.price-total .val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'JetBrains Mono', monospace;
}

/* Контроли за количество */
.item-controls-mobile {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: var(--silver); /* Малко по-тъмен фон от картата */
    border-radius: 30px;
    padding: 2px;
    border: 1px solid var(--border);
    min-width: 110px;
    justify-content: space-between;
}

/* Стил за самото число */
.qty-selector input,
.qty-selector .qty-val {
    width: 50px;
    border: none;
    background: none;
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary); /* Правим цифрата с акцентния цвят */
    font-family: 'JetBrains Mono', monospace;
    appearance: none; /* Премахва стрелките на браузъра */
    margin: 0;
}

/* Премахваме стрелките при Chrome/Safari/Edge */
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Премахваме стрелките при Firefox */
.qty-selector input[type=number] {
    -moz-appearance: textfield;
}

/* Бутоните + и - */
.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.2s;
}



.qty-btn:hover {
    background: var(--primary);
    color: #fff;
}

.remove-item {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
}
.remove-item:hover {
    opacity: 1;
    transform: scale(1.1);
}




/* Основната карта */
.luxe-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    color: var(--primary);
}
.card-header h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 0;
}

.form-group-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
    color: var(--secondary);
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--silver);
    padding-bottom: 8px;
}

/* Контейнер за инпут */
.input-field {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-field input, .input-field textarea {
    width: 100%;
    padding: 1.2rem 1rem 0.6rem 3rem; /* Място за иконата и лейбъла */
    border: 1px solid var(--border);
    background: var(--silver);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
    outline: none;
}

.input-field textarea {
    height: 100px;
    resize: none;
}

/* Плаващият етикет (Label) */
.input-field label {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: var(--secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

/* Магията: Когато полето е на фокус или има текст */
.input-field input:focus ~ label,
.input-field input:not(:placeholder-shown) ~ label,
.input-field textarea:focus ~ label,
.input-field textarea:not(:placeholder-shown) ~ label {
    top: 0.4rem;
    left: 3rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
}

.input-field input:focus, .input-field textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Икони вътре в полетата */
.input-field .icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--secondary);
    font-size: 1.4rem;
    transition: 0.3s;
    fill: var(--secondary);
}

.input-field input:focus ~ .icon, .input-field textarea:focus ~ .icon {
    color: var(--primary);
    fill: var(--primary);
}

/* Грид за подредба */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}
.form-grid.full-width {
    grid-template-columns: 1fr;
}

/* Персонализиран Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}
.custom-checkbox input {
    display: none;
}
.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
}
.custom-checkbox input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}
.custom-checkbox input:checked + .checkmark::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 4px;
    top: 1px;
}

/* Луксозен бутон за финал */
.finish-btn {
    background: linear-gradient(135deg, var(--btnl), var(--btnr));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.4s;
    margin-left: auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.finish-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}


/* Контейнер за всяка секция (линк, форум, html) */
.share-input-group {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 15px;
    text-align: left;
}

/* Стил за текстовото поле */
.share-input-group textarea {
    width: 100%;
    height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: Arial, sans-serif; /* Или шрифта на сайта ви */
    font-size: 13px;
    color: #333;
    resize: none; /* Забранява ръчното разтягане */
    box-sizing: border-box; /* Важно за ширината */
    display: block;
    margin-bottom: 10px;
}

/* Стил за бутона за копиране */
.share-input-group button {
    background-color: #2c3e50; /* Тъмен цвят като менютата */
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.share-input-group button:hover {
    background-color: #34495e;
}

/* Стил за иконите (ако ползвате Google Material Symbols) */
.share-btn {
    cursor: pointer;
    margin-right: 5px;
    padding: 10px;
    background: var(--silver);
    border: 1px solid var(--border);
    border-radius: 5px;
}
.share-btn:hover {
    background: #e0e0e0;
}
.no-scroll {
    overflow: hidden;
}
.visible {
    display: block;
}
.success {
    background-color: #27ae60;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card, .sidebar-menu, .form-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Забавяне за втория и третия елемент, за да изглежда по-динамично */
.sidebar-menu {
    animation-delay: 0.1s;
}
.content-area {
    animation-delay: 0.2s;
}
.bottom-grid {
    animation-delay: 0.3s;
}
.product-card, .sidebar-menu, .form-card, .sidebar-menu a {
    /* transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;*/
}

.product-card:hover, .form-card:hover {
    transform: translateY(-1px) !important; /* Повдигане нагоре */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.sidebar-menu a:hover {
    transform: scale(1.01); /* Странично мръдване за елементи от меню */
}
.cart-btn:hover, .theme-toggle:hover, .search-bar:hover, .logo:hover, .share-btn:hover, .simulated-hover {
    transform: scale(1.1);
    transition: 0.2s;

}
.toast-container {
    position: fixed;
    top: 60px;
    right: 20px;
    z-index: 9999;
}
.custom-toast {
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
    animation: slideIn 0.3s ease-out;
}
.error{
    background: #ef4444;
}
.search-bar {
    position: relative; /*width: 100%; max-width: 500px;*/
}
#search-results {
    position: absolute;
    top: 100%;
    width:550px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
    max-height: 450px;
    overflow-y: auto;
}
.search-item {
    display: flex;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: 0.2s;
}
.search-item:hover, .search-item.search-active {
    background: var(--bg);
}
.search-item img {
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
    background: #eee;
}
.search-info {
    display: flex;
    flex-direction: column;
}
.search-name {
    font-size: 14px;
    font-weight: 500;
}
.search-name strong {
    color: var(--primary);
    font-weight: 700;
}
.search-price {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 2px;
}

/* Стил за историята */
.search-history-title {
    padding: 10px 12px 5px;
    font-size: 11px;
    color: var(--secondary);
    text-transform: uppercase;
}
.search-history-item {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.search-history-item span {
    font-size: 18px;
    margin-right: 8px;
    color: var(--secondary);
}
.search-history-item:hover, .search-history-item.search-active {
    background: var(--bg);
}

.rating-input {
    display: inline-block;
    direction: rtl; /* Обръщаме посоката за правилния hover ефект */
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0px 8px;
    background-color: var(--silver);
}

.rating-input input {
    display: none; /* Скриваме стандартните радио бутони */
}

.rating-input label {
    font-size: 2em;
    color: var(--secondary); /* Цвят на празните звезди */
    cursor: pointer;
    display: inline-block;
    transition: color 0.2s;
}

/* Ефект при посочване (hover) и върху избраната звезда */
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: #fbbf24; /* Златист цвят при избор/hover */
}

/* Малка корекция: за да не светят всички звезди, когато минаваме над тях */
.rating-input label:hover ~ label {
    color: #fbbf24;
}

.star-rating-container {
    display: inline-block;
    position: relative;
    font-size: 2rem; /* Големина на звездите */
    line-height: 1;
    font-family: Times, "Times New Roman", serif; /* За по-хубави звезди */
}

.star-rating-base {
    color:  var(--secondary); /* Цвят на празните звезди (сиво) */
    display: block;
}

.star-rating-filler {
    color: #fbbf24;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.review-author {
    font-weight: 700;
}
.reviews-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}
.sort-btn {
    background: none;
    border: 1px solid var(--border);
    padding: 8px 15px;
    cursor: pointer;
    color: var(--secondary);
    font-weight: 600;
    border-radius: 8px;
}
.sort-btn.active {
    background: linear-gradient(135deg, var(--btnl), var(--btnr));
    color: var(--text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.review-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: 0.3s;
    text-align: left;
}
.author-info {
    display: flex;
    align-items: center;
    gap:4px;
    color: var(--secondary);
}
.verified-badge {
    position: relative;
    top: -3px;
    transform: skewX(-10deg);
}
.verified-badge svg {
    fill: var(--primary);
    height: 18px;
    width: 18px;
}

.review-title {
    margin: 10px 0;
    font-size: 1.1rem;
}
.review-content {
    line-height: 1.6;
    color: #4b5563;
}
.star-rating-static {
    color: #fbbf24;
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.review-footer {
    display: flex;
    border-top: 1px solid var(--border);
    margin-top: 15px;
    padding-top: 15px;
    gap: 7px;
}
.helpful-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: 0.2s;
}
.helpful-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}
.helpful-btn .icons {
    font-size: 16px;
}

#star-filter {
    appearance: none; /* Премахва стандартната стрелка на браузъра */
    -webkit-appearance: none;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px 15px; /* Повече място отдясно за иконата */
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}
#star-filter:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
#star-filter option {
    padding: 10px;
    background-color: var(--white);
    font-size: 0.65rem;
}



.share-review{
    display: flex;
    /*justify-content: center;  Центрира ги хоризонтално (ляво-дясно) */
    align-items: center;
    gap: 20px;
    margin: 20px;
}
.share{
    padding-right: 20px;
    border-right: 1px solid var(--accent);
}
.share svg{
    height: 2rem;
    width: 2rem;
    fill: var(--accent);
}
.avg-box{
    text-align: center;
}

.share {
    cursor: pointer;
    transition: transform 0.2s;
}
.share:hover {
    transform: scale(1.1);
}

/* Стил за прозореца */
.modal-overlay {
    display: none; /* Скрито по подразбиране */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

.modal-content textarea {
    height: 140px;
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}
.share-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}
.s-btn {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}
.fb {
    background: #1877F2;
}
.vb {
    background: #7360f2;
}
.link {
    background: var(--secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

/* Правим "Добави ревю" да изглежда като линк */
.avg-box small:last-of-type {
    cursor: pointer;
    color: var(--accent);
    text-decoration: underline;
}



.hidden-trap {
    display: none !important;
} /* Скрива Honeypot */
.commentForm label{
    font-weight: 700;
}
.short_desc{
    text-align: justify;
    margin-top: 40px;
}
/*

.nikem-box {
    margin: 40px auto;
    padding: 60px 20px;
    background: var(--accent);
    border-radius: 25px;
    text-align: center;
}

.nikem-box h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--white);
}
.nikem-box h2 span {
    color: var(--text);
}

.nikem-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    position: relative; 
}

.step-card {
    position: relative;
    flex: 1;
    min-width: 80px;
    padding: 25px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step-card span {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 10px;
    transition: 0.3s;
}
.step-card span svg {
    width: 3.5rem;
    height: 3.5rem;
    fill:#fff;
}
.step-card h3 {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
}


.step-card:hover, .step-card.active {
    background: rgba(255,255,255,0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
}


.bubble {
    display: none;
    position: absolute;
    bottom: 120%; 
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    padding: 15px;
    background: var(--primary);
    color: #fff;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    z-index: 100;
    pointer-events: none; 
}


.bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--bg);
    border-top-color: var(--primary);
}


.step-card.active .bubble {
    display: block;
    animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
        transform-origin: bottom;
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        transform-origin: bottom;
    }
}


@media (max-width: 768px) {
    .step-card {
        flex: 0 0 calc(50% - 20px);
    }
    .bubble {
        width: 180px;
        bottom: 110%;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .step-card {
        flex: 0 0 100%;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


*/
/*18.03*/
.homepage {
    text-align: center;
    margin-bottom: 80px;
}

.homepage button{
    background: var(--silver);
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    fill:var(--accent);
    height: 160px;
    width: 160px;
}

.homepage small {
    color: #666;
    margin-bottom: 20px;
}
.components{
    background-color: var(--silver);
    padding: 30px;
}
.components small{
    display: block;
    padding-bottom: 20px;
    color: #666
}
.components h2{
    display:inline-flex;
    align-items:center;
    gap:4px;
}
.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 40px;
}

.btn-primary {
    background: #007bff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
}

.btn-secondary {
    background: #eee;
    padding: 12px 20px;
    border-radius: 6px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.cat {
    display: block;
    padding: 15px;
    background: var(--silver);
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--border);
    min-height: 75px;
    font-weight: 800;
}

.badge {
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    top: -5px;
    transform: skewX(-10deg);
}
.pro{
    color: #ff0055;
    background: rgba(255, 0, 85, 0.2);
}
.basic{
    color: #27ae60;
    background: rgba(39, 174, 96, 0.2);
}
/* BENEFITS */
.benefits {
    margin-top: 40px;
    display: grid;
    gap: 15px;
}

.benefit {
    background: var(--bg);
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.benefit-icon {
    width: 45px;         /* Размер на контейнера за иконата */
    height: 45px;
    fill: var(--accent);
    margin-left: auto;
    margin-right: auto;
}

.benefit-text h3 {
    margin: 0 0 5px 0;   /* Премахваме излишните разстояния */
    justify-content: center;
    align-items: center;
}

.benefit-text p {
    margin: 0;
    color: #666;
}


/* TRUST */
.trust {
    margin-top: 30px;
    text-align: center;
    color: #666;
    display: flex;
    gap: 6px;
    justify-content: center;
}

/* SEO */
.seo-text {
    margin-top: 40px;
    text-align: center;
    color: #555;
}

/* DESKTOP */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits {
        grid-template-columns: repeat(4, 1fr);
    }
}


.ba {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 280px;
    background: var(--bg);
    color: var(--text);
    border-radius: 12px;
    border:1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-family: system-ui;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ba-hidden {
    display: none;
}

.ba-header {
    padding: 12px 14px;
    background: var(--accent);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.ba-body {
    padding: 14px;
}

#ba-progress {
    height: 6px;
    background: #222;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

#ba-progress::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, #00c6ff, #007bff);
}

.ba a {
    display: inline-block;
    margin-top: 10px;
    background: var(--accent);
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    width: 100%;
    text-align: center;
}

.ba-minimized .ba-body {
    display: none;
}


/* Стандартен (светъл) вид на картата */
.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    filter: grayscale(0.1); /* Леко стилизирана, за да не е твърде ярка */
    transition: filter 0.3s ease; /* Плавно преливане при смяна на темата */
}

/* Когато HTML има клас за тъмна тема (замени .dark-mode с твоя клас) */
html.dark-mode .map-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Адресът е по-тесен, картата по-широка */
    gap: 30px;
    align-items: start;
    line-height: 1.8;
}

.location-grid address{
    text-align: left;
}
address span.icons {
    display: inline-flex;
    align-items: center;  /* Вертикално центриране */
    vertical-align: middle;
    margin-right: 10px;   /* Паузата между иконата и текста */
}
/* Дизайн 2026 за наследниците на section */
.home {
    margin: 2rem auto;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Заглавията - чисти и професионални */
.home h3, .home h2 {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    letter-spacing: -0.02em;
    align-items: center;
}

.home h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2rem 0 1rem 0;
}

/* Оформяне на div елементите като списък */
.home div, .home p, .home ul{
    margin-bottom: 0.5rem;
    padding-left: 2.5rem; /* Подравняване под заглавието, отмествайки иконата */
    position: relative;
}


/* Акценти - премахваме курсива за по-добра четливост на важните данни */
.home strong {
    font-style: normal;
    font-weight: 600;
}

.home ul {
    list-style: none;
}

summary {
    cursor: pointer;
}
details {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}


@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
@media (min-width: 2500px) {
    html {
        font-size: 18px; /* Увеличаваме базата */
    }
    .main-wrapper {
        max-width: 120rem;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
        gap: 2.5rem;
    }
    /* .main-wrapper автоматично става 1750px (87.5 * 20), 
       без да добавяш нов max-width тук! */
}
@media (min-width: 3800px) {
    html {
        font-size: 22px; /* Увеличаваме базата */
    }
    .main-wrapper {
        max-width: 140rem;
    }
    /* .main-wrapper автоматично става 1750px (87.5 * 20), 
       без да добавяш нов max-width тук! */
}


@media (max-width: 1024px) {
    /* Променяме хедъра да подрежда елементите на два реда */
    #lightbox .icons {
        width: 36px;
        height: 36px;
    }
    .header-container {
        flex-wrap: wrap; /* Позволява на елементите да минат на нов ред */
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0px;
    }

    /* Логото и количката остават на първия ред */
    .logo {
        order: 1;
        font-size: 0.8rem;
        white-space: nowrap;
        background: var(--bg);
        padding: 11px 10px;
        border-radius: 8px;
        gap: 1px;
    }
    .price-tag{
        font-size: 1rem;
    }

    .logo span.icons {
        font-size: 1.5rem;
    }
    .header-actions {
        order: 2;
    }
    .mobile-menu-btn {
        order: 3;
    }

    /* Търсачката отива на нов ред и заема цялата ширина */
    .search-bar {
        display: flex !important; /* Връщаме видимостта */
        order: 4;
        position: relative;
        margin-left: auto;
        width: 2.5rem;
        height: 42px;
        /*overflow: hidden;*/
        transition: all 0.3s ease;
        /*border-radius: 999px;
        background: #f1f5f9;*/
        flex-shrink: 0;
        border: none;
    }

    .search-bar input {
        width: 100%;
        height: 42px;
        padding: 0 3rem 0 1rem;
        border: none;
        background: transparent;
        font-size: 0.9rem;
        opacity: 0;
        pointer-events: none;
        color: #000;
    }

    .search-bar button {
        position: absolute;
        inset: 0;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0px;
    }

    .search-bar span {
        font-size: 1.6rem;
        color: #475569;
    }
    .search-bar:hover{
        transform: none;
    }
    /* --- Разширяване при клик --- */
    .search-bar:focus-within {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 100%;
        width: 100%;
        z-index: 2000;
        border-radius: 0;
        background: var(--white);
        border: none;
    }
    .search-bar:not(:focus-within) {
        transition:none;
    }

    .search-bar:focus-within input {
        opacity: 1;
        pointer-events: auto;
        background: #f1f5f9;
        /*border-radius: 999px;*/
    }

    /* --- Скриване на иконите при търсене --- */
    .search-bar:focus-within ~ .header-actions,
    .search-bar:focus-within ~ .theme-toggle,
    .search-bar:focus-within ~ .mobile-menu-btn,
    .search-bar:focus-within ~ .logo {
        display: none;
    }
    .search-bar:focus-within span {
        font-size: 1.5rem;
    }
    #search-results {
        left: 0;
        right: 0;
        width: 100%;
    }
    /* Клас за плавно преливане на позицията */
    .item-card.animate-move {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    }

    /* Контейнерът трябва да е Grid */
    .products-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        align-items: start;
    }

    .cart-label {
        display: none;
    }
    .main-wrapper {
        flex-direction: column;
        padding: 0 10px;
        display: block; /* Понякога block работи по-сигурно от flex-column на стари устройства */
    }
    .content-area {
        width: 100%;
        margin-top: 20px;
    }
    .mobile-menu-btn {
        display: block;
        border: none;
        font-size: 0;
        width: 2.5rem;
    }
    .mobile-menu-btn span {
        font-size: 1.9rem;
    }
    .sidebar-menu {
        position: fixed;
        left: -300px;
        top: 0;
        height: 100%;
        z-index: 2000;
        border-radius: 0;
        transition: 0.3s;
        width: 280px;
        max-height: calc(100vh - 60px); /* Ограничава списъка до височината на екрана */
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: none !important; /* Сенките товарят много при скрол */
        border-right: 1px solid var(--border); /* Използвай тънка линия вместо сянка */
        backdrop-filter: none !important;

    }
    .sidebar-menu::after {
        display: none !important;
        content: none !important;
    }
    .sidebar-menu ul {
        max-height: none !important; /* Премахваме ограничението от десктоп версията */
        flex-grow: 1; /* Кара списъка да запълни цялото налично пространство */
        overflow-y: auto; /* Позволява скролване, ако категориите са много */
        padding: 20px; /* Връщаме отстоянието тук за по-добра визия */
    }
    .sidebar-menu.open {
        left: 0;
    }
  .catalog-toolbar {
    flex-wrap: wrap; /* Позволява на елементите да преминават на нов ред */
  }
  
  /* Пренареждаме елементите чрез 'order', въпреки че в HTML филтърът е по средата */
  .sort-box {
    order: 1;
  }
  
  .view-options {
    order: 2;
  }
  
  .category-filter {
    order: 3;
    width: 100%; /* Избутва филтъра на нов ред */
    margin-top: 5px;
  }
  
  .category-filter input {
    width: 100%; /* Полето заема цялата ширина на екрана */
    box-sizing: border-box; /* Предпазва от преливане заради padding */
  }
    .product-top, .bottom-grid, #specs dl {
        grid-template-columns: 1fr;
    }
    .product-top {
        display: block;
    }
    .main-wrapper {
        margin-top: 1rem;
    }
    .site-footer {
        padding: 50px 0 30px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .footer-column {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-column h4 {
        font-size: 1.1rem;
        letter-spacing: 2px;
        margin-bottom: 20px;
        text-align: center;
    }
    .footer-column ul {
        width: 100%;
        max-width: 280px;
        display: inline-block;
        text-align: left;
    }
    .footer-column ul li {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 18px;
    }
    .footer-column a {
        font-size: 1.2rem; /* ГОЛЕМИЯ ШРИФТ */
        gap: 15px;
        justify-content: flex-start;
    }
    .footer-column .icons {
        width: 26px; /* ГОЛЕМИТЕ ИКОНИ */
        height: 26px;
    }
    /* Допълнителни корекции за контактите */
    .footer-column p {
        font-size: 1.1rem;
        text-align: center;
    }
    .form-grid, .form-grid.two-cols {
        grid-template-columns: 1fr;
    }
    .finish-btn {
        width: 100%;
        justify-content: center;
    }
    .cart-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .item-pricing {
        width: 100%;
        padding: 1rem;
    }
    .cart-item:hover {
        transform: none;
    }
    .item-main{
        align-items: normal;
    }
    .products-grid.list-view .item-card {
        flex-direction: column; /* Връща се в колона на малки телефони */
        text-align: center;
    }
    .products-grid.list-view .item-buy {
        width: 100%;
    }
    .cart-wrapper {
        grid-template-columns: 1fr;
    }
    .cart-thead {
        display: none;
    }
    .cart-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .qty-controls {
        margin: 0 auto;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .l_name{
        display: none;
    }

    /* --- Количка --- */
    .cart-btn {
        border: none;
    }

    /* --- Тема --- */
    .theme-toggle {
        border: none;
    }

    .theme-toggle span {
        font-size: 1.7rem;
    }
    .search-bar:focus-within button {
        inset: auto;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: transparent;
    }
    section {
        padding: 0 1rem;
    }
    section div {
        padding-left: 1rem;
    }
    .location-grid {
        grid-template-columns: 1fr;
        padding: 0px;
    } /* На мобилни - един под друг */

    .home div, .home p, .home ul {
        padding-left: 0rem;
    }
}


@media (max-width: 480px) {
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch; /* Разпъва всички елементи от край до край */
    gap:0px;
  }
  
  .sort-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
  }
  
  .sort-box select {
    width: 100%;
  }

  .view-options {
    order: 1; /* Вдигаме иконките за изглед най-отгоре или ги оставяме под сортирането */
    align-self: flex-end;
    margin-bottom: 10px;
  }
  
  .sort-box {
    order: 2;
  }
  
  .category-filter {
    order: 3;
  }}