  @font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:300;src:local('Roboto Condensed Light'), local('RobotoCondensed-Light'), url(fonts/roboto/ieVi2ZhZI2eCN5jzbjEETS9weq8-33mZGCkYb8td.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;font-display: swap;}

@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:300;src:local('Roboto Condensed Light'), local('RobotoCondensed-Light'), url(fonts/roboto/ieVi2ZhZI2eCN5jzbjEETS9weq8-33mZGCAYb8td.woff2) format('woff2');unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;font-display: swap;}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:300;src:local('Roboto Condensed Light'), local('RobotoCondensed-Light'), url(fonts/roboto/ieVi2ZhZI2eCN5jzbjEETS9weq8-33mZGCoYb8td.woff2) format('woff2');unicode-range:U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;font-display: swap;}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:300;src:local('Roboto Condensed Light'), local('RobotoCondensed-Light'), url(fonts/roboto/ieVi2ZhZI2eCN5jzbjEETS9weq8-33mZGCQYbw.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;font-display: swap;}

@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;src:local('Roboto Condensed'), local('RobotoCondensed-Regular'), url(fonts/roboto/ieVl2ZhZI2eCN5jzbjEETS9weq8-19-7DRs5.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;font-display: swap;}

@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;src:local('Roboto Condensed'), local('RobotoCondensed-Regular'), url(fonts/roboto/ieVl2ZhZI2eCN5jzbjEETS9weq8-19a7DRs5.woff2) format('woff2');unicode-range:U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;font-display: swap;}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;src:local('Roboto Condensed'), local('RobotoCondensed-Regular'), url(fonts/roboto/ieVl2ZhZI2eCN5jzbjEETS9weq8-19y7DRs5.woff2) format('woff2');unicode-range:U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;font-display: swap;}
@font-face{font-family:'Roboto Condensed';font-style:normal;font-weight:400;src:local('Roboto Condensed'), local('RobotoCondensed-Regular'), url(fonts/roboto/ieVl2ZhZI2eCN5jzbjEETS9weq8-19K7DQ.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;font-display: swap;}
  
  :root {
  --p: #f5811e;
  --text: #000;
  --bg: #fcfcfc;
  --header-blur: rgba(251, 251, 251, 0.6);
}
.admin-edit-btn{
    display: inline-block;
    margin: 15px 0;
    padding: 10px 20px;
    background: #000000;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.hidden-validation-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* site notice */
.top-announcement-bar{        background: #fff3cd;
    color: #856404;
    border-bottom: 1px solid #ffeeba;
    padding: 10px 15px;
    font-size: 14px;
    position: relative;
    z-index: 9999;
    border-radius: 10px;}
.top-announcement-bar-wrap{    width: 95%;
        margin: 0 auto;
    max-width: 1600px;}
.top-announcement-bar p{padding: 5px 0;}
/* cookie modal popup */
/* Позициониране на попъпа */
.cookie-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 400px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 24px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    border: 1px solid #f0f0f0;
}

.cookie-hidden {
    transform: translateY(50px);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-icon {
    font-size: 28px;
}

.cookie-text h3 {
    margin: 0 0 6px 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
}

.cookie-text p {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

/* Бутони */
.cookie-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    border: none;
}

.btn-cookie:active {
    transform: scale(0.98);
}

.btn-primary-cookie {
    background: #0071e3; /* Модерно Apple синьо */
    color: #ffffff;
}

.btn-cookie.btn-primary-cookie:hover {
    background: #0077ed;
}

.btn-secondary-cookie {
    background: #f5f5f7;
    color: #1d1d1f;
}

.btn-cookie.btn-secondary-cookie:hover {
    background: #e8e8ed;
}

/* Стилизиране на контейнера за видеото */
.video-container {
    position: relative;
    width: 560px;
    height: 315px;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    padding: 20px;
    text-align: center;
    font-family: sans-serif;
    z-index: 2;
}

.video-container.allowed .video-placeholder {
    display: none;
}

@media (max-width: 480px) {
    .cookie-popup {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }
}
/* BASE */
body {
      font-family: Roboto Condensed;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
input, textarea{    font-size: 16px;}
strong{font-weight: 400;}
  * {
            margin: 0; padding: 0; box-sizing: border-box;
        }
        button{font-family: Roboto Condensed; color: var(--text);}
a{text-decoration: none; color: #000;}
h1, h2, h3, h4, h5{font-weight: 300;}
.social{display: flex; gap:10px;}
.social img:hover{opacity:0.7}

.main-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
/*  */
.cat-text{  

    font-weight: 300;
    /* border-radius: 10px; */
    /* background: #f6f6f6; */
    color: #000;
    line-height: 28px;
    font-size: 16px;}
.cat-text b{font-weight: 400;}
.read-more-wrap b{font-weight: 400;}
.read-more-wrap ul li{margin-left: 20px;}
/* banners header */

.two-banners{    display: flex;
    justify-content: space-between;
    gap: 15px;}
.tree-icons{    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    /* border-bottom: 1px solid #e5e5e5; */
    /* padding: 0 0 10px 0; */
    /* margin: 0 0 10px 0; */
}
.tree-icons img{width: 35px; height: auto;}
.info-box p{  font-weight: 300;
    margin: -15px 0 0 47px;
    line-height: 22px;}
/* .two-banners img{width: 100%; max-width: 420px; height: auto; border-radius: 10px;} */
.rating-box{margin-bottom: 8px; display: flex; align-items: center; gap: 6px;}
.stars-inner{color: #f1c40f; font-size: 14px;}
.rating-product{font-size: 14px; color: #888; margin-bottom: 15px;}
/* Стил за бутона за премахване в Wishlist */
.wishlist-checkout{width: 100%;}
.remove-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #eee;
    color: #888;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.remove-wish-btn:hover {
    background: #b3322e;
    color: #fff;
    border-color: #b3322e;
    transform: scale(1.1);
}
.btn-primary{       
    padding: 15px 25px;
    background: #000;
    color: #fff;
    font-size: 14px;
    margin: 80px 0;
    border: none;
    text-transform: uppercase;
    border-radius: 10px;
    cursor:pointer;
    display: inline-block;
}
.info-box{
    /* background: #f6f6f6; */
    width: 100%;
    /* padding: 20px; */
    /* border-radius: 10px; */
        display: flex;
    flex-direction: column;
    gap: 10px;
}
/* HERO */
.hero-section {
     position: relative;
    width: 95%;
    max-width: 2100px;
    height: 700px;
    overflow: hidden;
    /* background: #000; */
    border-radius: 20px;
    margin: 15px auto 0 auto;
    /* border: 5px solid #ffffff; */
    /* padding: 10px; */
    /* background: #fff; */
    /* box-shadow: 0 0 30px #b7b7b7; */
}

.video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}
#video-placeholder {
    position: absolute; 
    width: 100%; 
    height: 100%; 
    top: 0; 
    left: 0; 
    background-size: cover; 
    background-position: center; /* Добави това, за да е центрирано */
    z-index: 10;
    transition: opacity 0.5s ease; /* Добави плавно избледняване */
}
#player {
    width: 100vw; height: 56.25vw;
    min-height: 600px; min-width: 106.66vh;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.main-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 7%, transparent 100%);
    /* background: rgba(0, 0, 0, 0.6); */
    display: flex;
    align-items: flex-end; /* Позиционира съдържанието долу */
    justify-content: space-between; /* Текст вляво, стрелки вдясно */

}

.slider-overlay {
      position: absolute;
    inset: 0;
    z-index: 10;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 7%, transparent 100%); */
    /* background: rgba(0, 0, 0, 0.6); */
    display: flex;
    align-items: flex-end;
    /* padding: 40px; */
    width: 95%;
    max-width: 1600px;
    justify-content: space-between;
    margin: 0 auto;
}

/* Базов стил за всички слайдове */
.slide-video {
    position: absolute;
    bottom: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Когато слайдът е активен */
.slide-video.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) !important;
}

/* Посоки на влизане/излизане */
.slide-from-right { transform: translateX(70px); }
.slide-from-left { transform: translateX(-70px); }

.exit-left {
    transform: translateX(-70px) !important;
    opacity: 0 !important;
}

.exit-right {
    transform: translateX(70px) !important;
    opacity: 0 !important;
}

.content-box {
    max-width: 800px;
    color: white;
}

.content-box h2 { margin: 0 0 10px 0; font-size: 2.5rem;     font-weight: 500;}
.content-box p { margin-bottom: 20px;     font-size: 18px;    font-weight: 300; }

.btn-more-video {
    display: inline-block;
    padding: 10px 25px;
    background: #fff;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
        font-weight: 300;
    border-radius: 4px;
}

/* Стрелки вдясно */
.nav-arrows {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    z-index: 99;
}

.arrow {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow:hover { background: white; color: black; border-radius: 50%; }
.video-card{    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    width: 100%;
    height: auto;}
@media (max-width: 1300px) {
    #player {
        width: 177.78vh; /* 16/9 * 100 */
        height: 106%;
    }
}
/* ========= STATIC PAGES ========== */
.static-page h1{    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 300;}
.page-content{    line-height: 28px;
    color: #000000;
    font-size: 16px;
    font-weight: 300;}
.page-content b{font-weight: 400;}
.page-content ul {    margin-left: 25px;}
.page-content p{margin: 15px 0;}
.main-page-text{    margin: 40px auto;
    background: #f6f6f6;
    padding: 30px;
    border-radius: 10px;
}
.page-content h3{    margin: 20px 0;
    font-size: 22px;
   }
.main-page-text h1{    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 300;}
.footer-column{    background: #f5f5f5;
    padding: 10px 0;}
.footer-container {
       display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 95%;
    max-width: 1600px;
    margin: 40px auto;
    justify-content: space-between;
}
.footer-container ul{    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;}
.col{    display: flex;
    flex-direction: column;
    font-weight: 300;  
    line-height: 28px;
    gap: 10px;}
.col h5{    margin: 0 0 15px 0;
    font-size: 20px; }
.col a{display: flex;     gap: 15px;    align-items: center; }
.google-map{ width: 100%; margin-bottom: 30px;}
.contact-grid{display: flex; gap: 40px; flex-wrap: wrap;    width: 100%;}
.contact-info{    flex: 1;
    display: flex;
    font-weight:300;
    min-width: 300px;
        line-height: 24px;
    gap: 10px;
    flex-direction: column;}
.contact-form{       flex: 1;
    display: flex;
    font-weight: 300;
    min-width: 300px;
    background: #ffffff;
    gap: 10px;
    padding: 25px;
    flex-direction: column;
    border-radius: 10px;
    border: 1px solid #eee;}
.contact-form input, textarea{    padding: 10px;    border-radius: 5px;    border: 1px solid #a3a3a3;  width: 100%;    margin-bottom: 10px;}
/* ALERT MESSAGES */
.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
/* ================= HEADER ================= */
.wrap{margin: 0 auto; max-width: 1600px; width: 95%; display: flex;position: relative;  gap: 30px;  justify-content: space-between;}
.wrap-banners {
       margin: 0 auto 0 auto;
    width: 100%;
    display: flex;
    position: relative;
    gap: 15px;
    justify-content: space-between;
    flex-direction: column;
}
.combine{display: flex; gap: 15px; align-items: center;    width: 100%;}
header {
     background: var(--header-blur);
         backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 0;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    position: sticky;
    top: 0;
    z-index: 99;
    /* border-bottom: 1px solid #e8e8e8; */
}
.logo img {
  height: 36px;
  width: auto;
}

.wishlist-badge{      position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;}
.wishlist-btn-listing{  background: rgba(255,255,255,0.9); border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; 
    outline: none;}
/* ============= SEARCH ============= */
.search-field{    display: flex;
    border: 1px solid #f5811e;
    border-radius: 5px;
    overflow: hidden;

    background: #fff;}
.search-bnt{    
    background: #f5811e;
    color: #ffffff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;}
.search-wrapper{position: relative; width: 100%; }
.search-wrapper button:hover {
    background: #c0392b;
}

/* Wishlist */
.wishlist{ position: absolute; 
        top: -5px; 
        right: -5px; 
        background: #b3322e; 
        color: #fff; 
        
        padding: 2px 6px; 
        border-radius: 50%; }
.wishlist-link{ 
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
    gap:3px;
    align-items: center;
   }

/* Login */
.btn-login{    display: flex;
    flex-direction: column;
   gap: 3px;
    color: var(--text);
    align-items: center;}
.promo{ display: flex;
    flex-direction: column;
    width: 60px; gap:3px;
    
    align-items: center;}
.btn-back{padding: 6px 8px 6px 0;}
.mobile-header{display: none;}
.mobile-hide{display: flex;}
.mobile-show{display: none;}
/* ================= LANGUAGE ================= */
.cur-lang{    border-radius: 50%;
    padding: 2px;
    border: 1px solid #ccc;}
.lang-selector {
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    padding: 0 5px;
    text-transform: lowercase;
}
    .back-head {
            display: flex;
        align-items: center;
        gap: 10px;
    }

.lang-dropdown {
  /* display: none; */
  position: absolute;
  top: 50px;
  right: 0;
  width: 115px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}
.lang-dropdown a:hover {
  background: #f8f9fa;
}
/* ================= LAYOUT ================= */
.main-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    width: 95%;
    max-width: 1600px;
    margin: 40px auto;
}
.related-products{margin-top: 50px;
    width: 100%;}
/* ================= MAIN CONTENT ================= */
.main-title{    font-size: 26px;}
.title{margin-bottom: 20px; }
.full-container {
    display: flex;
    gap: 30px;
        flex-direction: column;
    align-items: flex-start;
    width: 95%;
    max-width: 1600px;
    margin: 40px auto;
}
.container {
    display: flex;
    gap: 30px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 1600px;
    margin: 0px auto 40px auto;
}

.review-text{font-weight: 300;
    color: #000;}
    .order-wishlist-text{    font-weight: 300;
    color: #000;
    margin: 15px 0;
    padding: 20px;
    border-radius: 5px;
        font-size: 14px;
    background: #fff8e4;}
/* ================= SIDEBAR ================= */
aside {
    max-width: 410px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
    background: #f6f6f6;
    padding: 20px;
    border-radius: 10px;
}
.title-cat-menu{
    font-size: 18px;
    margin-bottom: 15px;
        font-weight: 300;
    text-transform: uppercase;
    color: var(--text);}
.cat-main {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 600;
}
/* Подменюто в затворено състояние */
/* 1. ЛЕКАРСТВОТО ПРОТИВ ЗАСТЪПВАНЕ: Форсираме нормален поток на елементите */
.cat-item, 
.sub-menu {
    position: relative !important;
    float: none !important;
    display: block;
    width: 100%;
    height: auto !important;   /* Премахва всякакви твърди височини */
    max-height: none !important;
}

/* Спираме преливането по време на анимациите и изчистваме списъците */
ul.sub-menu {

    list-style: none;
    box-sizing: border-box;
}


/* Задължително ресетваме линковете вътре в подменютата */
.sub-menu a {
    display: block;
    /* padding: 8px 0 8px 10px; */
    color: #000000;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
    border-radius: 5px;

    text-decoration: none;
    text-transform: uppercase;
}

.sub-menu a:hover {
    color: #ffffff;
    background: var(--p);
}

/* ==========================================================================
   2. ДИЗАЙН НА ОТДЕЛНИТЕ НИВА (ЙЕРАРХИЯ)
   ========================================================================== */
/* .active a{color: var(--p);} */
/* --- НИВО 1 --- */
.cat-item.level-1 {
    border-bottom: 1px solid #e5e5e5;
    padding: 5px 0;
}
.cat-link-level-1 {
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    padding: 8px 0 8px 0px;
}

/* --- НИВО 2 --- */
.sub-menu-level-1 {
    padding: 5px 0;
    background-color: #fbfbfb;
    margin: 5px 0;
    border-radius: 10px;
}
.cat-link-level-2 {
    font-size: 14px;
   padding: 8px 0 8px 5px;
}

/* --- НИВО 3 --- */
.sub-menu-level-2 {
    /* padding-left: 10px;  */
    background-color: #f0f0f0; 
}
.cat-link-level-3 {
    font-size: 14px;
    color: #555555;
    padding: 8px 0 8px 15px;
}

/* --- НИВО 4 --- */
.sub-menu-level-3 {
    /* padding-left: 15px; */
}
.cat-link-level-4 {
    font-size: 14px;
    /* color: #333 !important; */
    padding: 8px 0 8px 20px;
    /* background: none !important; */
}
.cat-link-level-4:hover {
    background: none !important;
    color: var(--p) !important;
}
/* ==========================================================================
   МАРКЕРИ ПРЕД КАТЕГОРИИТЕ (НИВА 2-4)
   ========================================================================== */

/* Общи базови стилове за маркерите на всички поднива */
.cat-link-level-2::before,
.cat-link-level-3::before,
.cat-link-level-4::before {
    display: inline-block;
    margin-right: 5px;       /* Разстояние между символа и текста */
    font-size: 11px;         /* Идеален размер, за да не доминира над текста */
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* --- МАРКЕР ЗА НИВО 2 (Малко запълнено триъгълниче, сочещо надясно) --- */
.cat-link-level-2::before {
    content: "▸"; 
    color: #f5811e;          /* Дискретно сиво в начално състояние */
}

/* Ефект при посочване (hover) на Ниво 2 - триъгълничето става бяло, 
   защото фонът се оцветява в основния ти цвят */
.sub-menu a.cat-link-level-2:hover::before {
    color: #ffffff;
    transform: translateX(2px); /* Леко се измества надясно за динамика */
}


/* --- МАРКЕР ЗА НИВО 3 (Празно/контурно кръгче за визуално олекотяване) --- */
.cat-link-level-3::before {
    content: "◦"; 
    font-size: 14px;         /* Кръгчето има нужда от малко по-голям размер, за да се вижда добре */
    font-weight: bold;
    color: #f5811e;
}

.sub-menu a.cat-link-level-3:hover::before {
    color: #ffffff;
}


/* --- МАРКЕР ЗА НИВО 4 (Малко тиренце/чертичка) --- */
.cat-link-level-4::before {
    content: "–"; 
    color: #000000;
}

.sub-menu a.cat-link-level-4:hover::before {
    color: #ffffff;
}
/* Бутон за иконката */
.cat-btn {
cursor: pointer;
    padding: 6px 5px 7px 5px;
    border-radius: 5px;
    background: #fbfbfb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Анимация за иконката */
.arrow-icon {
    transition: transform 0.25s ease;
    display: block;
}

.sub-menu li:last-child a{
    border-bottom: none;
}

/* ================= BANNER ================= */
.btn-all {
padding: 10px 15px;
    color: #000000;
    font-weight: 300;
    background: #f6f6f6;
    border-radius: 5px;
    font-size: 14px;
}
.btn-all:hover {
    background: #000;
    color:#fff;
}
.slider-box {
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
    height: auto;
    width: 100%;
  position: relative;
}
.slides {
  display: flex;
  gap: 20px;
  will-change: transform;
}
.slide {
    flex: 0 0 100%; /* Всеки слайд заема точно 100% от контейнера */
    width: 100%;
  min-width: 100%;
}
.slide a {
    -webkit-user-drag: none;
    user-drag: none;
}
.slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  pointer-events: none;
  user-select: none;
    -webkit-user-drag: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}
/* Контейнерът за точките */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
/* Стил на самата точка */
.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
/* Активна точка */
.dot.active {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}
/*  */
.no-products-alert{    padding: 50px 20px;
    text-align: center;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    margin: 30px 0;
    background: #fdfdfd;
    width: 100%;}
/* ================= GLOBAL IMG FIX ================= */
img {
  user-select: none;
  -webkit-user-drag: none;
}
a {
  -webkit-user-drag: none;
}
/* product page */
.brand-section{    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;}
.brand-section h2{    font-size: 20px;
    font-weight: 300;}
.product-container {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 40px;
}
hr{    border: 0;
    width: 100%;
    border-top: 1px solid #eee;
        margin: 30px 0;}
    .similar-title{    margin-bottom: 25px; border-left: 4px solid #f5811e; padding-left: 15px;}

    .product-media {
       width: 50%;
}
.product-head{    width: 100%;
    display: flex;
    gap: 40px;}
.product-info { flex: 1;    width: 50%; }
 .thumb-slider-container{display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px; /* Важно за S23 Ultra */
    overflow: hidden;}
 /* Слайдър на thumbnails */
.thumb-scroll-viewport {
display: flex;
    overflow-x: auto;
    flex: 1 1 0;      /* flex-grow: 1, flex-shrink: 1, flex-basis: 0 */
    min-width: 0;     /* ТОВА Е КЛЮЧЪТ ЗА ANDROID */
    width: auto;      /* Позволява на flex: 1 да контролира размера */
    
    /* Твоите стилове */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 5px;
    -webkit-overflow-scrolling: touch;
}
.thumb-scroll-viewport::-webkit-scrollbar { display: none; } /* Скриваме скролбара */

.thumb-item {
       flex: 0 0 110px;
       width: 110px;
    height: 110px;
    scroll-snap-align: start;
    cursor: pointer;
    border: 1px solid #e7e7e7;
    border-radius: 10px;
        background: #fff;
    overflow: hidden;
    position: relative;
    padding: 10px;
}
.thumb-item:hover{border-color: #f5811e;}
.thumb-item.active { border-color: #f5811e; }

.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
#prevThumb{padding-right: 10px;}
#nextThumb{padding-left: 10px;}
.thumb-nav {
       background: rgb(252 252 252);
    color: #181818;
    border: 1px solid #fcfcfc;
    border-radius: 5px;
    /* padding: 10px 0px; */
    cursor: pointer;
    height: 110px;
    z-index: 2;
    margin: 0 0px;
}

.play-icon-small {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #b3322e; color: white; padding: 2px 8px; border-radius: 4px; font-size: 12px;
}

/* Lightbox Стили */
.lightbox {
    display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); align-items: center; justify-content: center;    backdrop-filter: blur(3px);
}
.lightbox-content { max-width: 90%; max-height: 80%; object-fit: contain; }
.lightbox-nav { position: absolute; top: 50%;     color: #e5e5e5;    font-size: 30px; cursor: pointer; padding: 20px; }
.lightbox img{border-radius: 10px;}
.prev { left: 10px; } .next { right: 10px; }
.close-lightbox { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; }

        .main-img-wrap { border: 1px solid #eee; margin-bottom: 15px; border-radius: 10px; overflow: hidden; padding: 25px;
    background: #fff;}
        .main-img-wrap img { width: 100%; height: auto; display: block; }
        .thumb-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
        .thumb-grid img {     width: 100%;
    border: 1px solid #eeeeee;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px;
    background: #fff;}
    .thumb-grid img:hover{ border: 1px solid #c7c7c7;}
        .price-box-product { margin: 40px 0; }
        .current-price {     font-size: 24px; color: #b10500;}
        .old-price { text-decoration: line-through; color: #888; margin-right: 10px; }
.video-grid{
    /* display: flex; */
    gap: 20px;
    margin-bottom: 40px;
    justify-content: flex-start;}
#videoModal {
    backdrop-filter: blur(5px); /* Леко замазва фона на сайта */
}

.youtube-trigger:hover .play-button-overlay {
    background: rgba(0,0,0,0) !important;
    transition: background 0.3s;
}

.youtube-trigger:hover div[style*="background: #b3322e"] {
    background: #c0392b !important; /* По-тъмно червено при ховър */
    transform: scale(1.1);
    transition: all 0.2s;
}
.title-collapse{       
       font-size: 27px;
    margin: 0 0 15px 0;
    cursor: pointer; 
    display: flex;
    align-items: center;
    gap: 10px;
    /* border-top: 1px solid #333; */
    border-bottom: 1px solid #d5d5d5;
    padding: 0 0 15px 0;}
    .description-wrapper {
    position: relative;
    margin-bottom: 50px;
    overflow: hidden;
}
.title-collapse:hover{color: #f5811e;}
/* Градиент за избледняване */
.read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgb(252 252 252));
    pointer-events: none; /* За да може да се клика под него */
}

.btn-read-more {
    display: none;
    margin: 35px 0;
    padding: 10px 20px;
    background: #fcfcfc;
    width: 100%;
    color: #3F51B5;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #3F51B5;
    font-size: 14px;
}

.btn-read-more:hover {
    background: #2c3e50;
    color: #fff;
}
    .content-text{    line-height: 28px;
    color: #000000;
    /* max-height: 1000px; */
    /* overflow: hidden; */
    /* transition: max-height 0.5s ease;  */
    font-size: 18px;
    font-weight: 300;}
    .content-text p{margin: 10px 0;}
    .content-text strong{font-weight: 400;}
  /* Звездички рейтинг */
        .stars { color: #f1c40f; font-size: 1.2rem; }
        .stars-gray { color: #ccc; }
        /* Секция Коментари */
        
       .review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    animation: fadeIn 0.5s ease-in;
}
.review-item strong{font-weight: 400;}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.stock-status{    margin: 20px 0;}
.instock{color: #27ae60; background: #eafaf1; padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; border: 1px solid #27ae60;}
.outofstock{color: #b3322e; background: #fdedec; padding: 5px 12px; border-radius: 20px; font-size: 0.9rem; border: 1px solid #b3322e;}
.product-btns {
    display: flex;
    gap: 15px;
    margin-top: 20px;
        align-items: center;
            justify-content: space-between;
}
.wishlist-action{  width: 100%;}
.wishlist-info{      font-size: 14px;
    color: #1e1e1e;
    text-transform: lowercase;
    font-weight: 300;
}
.btn-main-text{text-transform: uppercase;}
.btn-sub-text{    font-size: 13px;
    color: #6b6b6b;
    line-height: 18px;
    margin-top: 5px;}
.wishlist-btn {      cursor: pointer;
    display: flex;
    align-items: center;
    /* text-align: left; */
    gap: 10px;
    color: #ffffff;
    transition: background 0.2s;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    justify-content: center;
    width: 100%;
    background: #673AB7;}
.wishlist-btn:hover{background: #512da8;}
.btn-fast-checkout{width: 100%; padding: 15px; background: #27ae60; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; transition: background 0.2s;}
.fast_checkout-input{    width: 100%;
    padding: 12px;
    
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 12px;
    box-sizing: border-box;}
.fast-phone{display: flex; gap: 8px; margin-bottom:12px;}
.fast-phone-select{padding:12px 6px; border:1px solid #ddd; border-radius:6px; background:#f4f4f4; width: 100px;}
.input-phone{flex:1; padding:12px; border:1px solid #ddd; border-radius:6px; box-sizing: border-box;}
.success-msg{display:none; text-align:center; padding: 20px 0;}
.tick{color: #27ae60; font-size: 50px; margin-bottom: 15px;}
.success-msg h3{margin-bottom: 10px;}
.success-msg button{width: 100%; padding: 12px; background: #333; color: #fff; border: none; border-radius: 6px; cursor: pointer;}
.agree{    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;}
.agree label{font-size:12px; color:#555; line-height: 1.4; cursor: pointer;}
    .btn-quick-order{       
        padding: 15px 0;
    background: #27ae60;
    color: #fff;
        font-size: 14px;
            justify-content: center;
    border: none;
    width: 100%;
    transition: background 0.2s;
    text-transform: uppercase;
    border-radius: 10px;
    display: flex;
    gap: 10px;
        align-items: center;
    cursor: pointer;
}
.btn-quick-order:hover{background: #1e8449;}
.model{margin: 0 0 10px 0;}
/*  */
.company-box{         background: #fcf7f3;
    color: #000;
    padding: 20px;
    border-radius: 10px;
    /* border-top: 1px solid #e1e1e1; */
    margin: 20px 0 0 0;
    font-weight: 300;
    line-height: 24px;}
.company-box a{font-weight: 400; color: #000;}
.company-box p{    margin: 5px 0 0 0;display: flex; gap: 10px;    align-items: center;}
.delivery-days{color: #ad6227;
background: #faf7ea;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.9rem;
border: 1px solid #b6910f;
display: inline-block;}
/*  */
#brandsTrack {
    opacity: 0;
    transition: opacity 0.3s ease; /* Плавно появяване, след като е центрирано */
}

#brandsTrack.is-ready {
    opacity: 1;
}
.brand-model{   padding: 10px 10px;
    margin: 10px 0;
    border-radius: 10px;
    gap: 15px;
    display: flex;
    background: #f6f6f6;
    align-items: center;}
.brand-product img{ 
    border-radius: 10px;}

.tbi{width: 100%;}
.tbi:hover{opacity: 0.8;}
.tbi a{    display: flex;
    gap: 10px;
    align-items: center;
    background: #040404;
        justify-content: center;
    border: 1px solid #eeeeee;
    padding: 8px 10px;
        line-height: 32px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;}
    /* .tbi a{width: 100%;} */
.btn-load-more {
       background: #f8f9fa;
    border: 1px solid #eeeeee;
    padding: 10px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
}
.btn-load-more:hover {
    background: #e9ecef;
   
}
        .review-meta { font-size: 0.85rem; color: #777; margin-bottom: 10px; }
        /* Форма за коментар */
        .review-form { background: #f8f9fa; padding: 25px; border-radius: 10px; margin-top: 30px; }
        .review-form textarea, .review-form select { 
            width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; border-radius: 5px; 
        }
        .review-form h4{    margin-bottom: 15px;}
        .input-100{width: 100%;    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;}
    .check-terms{margin: 15px 0; display: flex; align-items: flex-start; gap: 8px;    align-items: center;font-size: 13px; color: #666; cursor: pointer; line-height: 1.4;}
        .btn-submit {    background: #3F51B5;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    margin: 30px 0 0 0;
    font-size: 14px;}
        .docs-section {      margin: 15px 0;
     }
     #docsContainer{margin-bottom: 50px;}
        .doc-link {     width: 100%;
    display: flex;
    align-items: center;
    background: #f6f6f6;
    padding: 13px 15px;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    margin: 0 0 10px 0;
    gap: 15px;
    font-size: 16px; }
        .video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin-top: 20px; }
        .video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
/* ================= BRANDS (INFINITE + HOVER PAUSE) ================= */
/* БРАНДОВЕ - Махаме snap-а тук, за да върви мазно авто-скрола */
/* Общ контейнер за ограничаване */
.brands-wrap, .home-products-wrap {
    width: 100%;
    overflow: hidden;
    /* padding: 0 15px; */
    box-sizing: border-box;
    /* background: #f6f6f6; */
    border-radius: 10px;
}
 .products-track {
    display: flex;
    gap: 40px; 
    width: max-content; /* Позволява на елементите да излизат извън 1000px */
    align-items: center;
}
/* Responsive Брандове */
.brands-scroll-container {
    width: 100%;
    max-width: 100vw; /* Задължително ограничаваме до ширината на екрана */
    overflow: hidden !important; /* Форсираме скриването */
    position: relative;
    display: block; /* Важно: да не е flex, за да работи overflow правилно */
}
.brands-track {
    display: flex;
    gap: 20px;
    width: max-content;
    will-change: transform;
    text-align: center;
}
.brand-row{    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 10px;
    flex-wrap: wrap;
    border: 1px solid rgb(238, 238, 238);
    padding: 20px;
    background: #fff;}
.brand-logo img{width: 100%;     max-width: 100px; height: auto;     border-radius: 10px; background: #fff; transition: transform 0.3s;}
.btn-more{   display: block;
    padding: 15px 0px 0 0;
    border-top: 1px solid #eeeeee;
    text-decoration: none;
    font-size: 14px;}
    /* Когато контейнерът е разпънат, скрий овърлея, който е вътре в него */
.category-description.expanded .read-more-overlay {
    display: none !important;
}
.category-description h3{margin: 10px 0; font-weight: 500;}
.category-description a{color: var(--p); font-weight: 400;}
.category-description a:hover{color: #c0392b;}
/*  */
.brand-description.expanded .read-more-overlay {
    display: none !important;
}
.brand-description h3{margin: 10px 0; font-weight: 500;}
.brand-description a{color: var(--p); font-weight: 400;}
.brand-description a:hover{color: #c0392b;}
/* Ако брандовете са в Main контейнера, увери се, че самият Main не се разпъва */
main {
    min-width: 0; /* Този малък трик спира flex-децата от "избухване" на ширината */
    flex: 1;
}
.brand-badge-mini{     margin: -40px 0 10px 0;max-width: 45px;}
.brand-badge-mini img{    width: auto;
    height: 50px;
    max-width: 45px;
    border-radius: 10px;
    object-fit: contain;}
.brand-badge-mini:hover img{opacity: 0.7;}
.brand-link {
    flex: 0 0 145px;
    user-select: none;
    -webkit-user-drag: none;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f6f6f6;
    font-size: 12px;
    opacity: 0.7;
    color: #000;
    padding: 15px 0;
    transition: all 0.3s ease;
}
.brand-link:hover  {
    border: 1px solid var(--p);
    opacity: 1;
}
.brand-link img {
    border-radius: 10px;
    pointer-events: none;
    width: 70px; /* Твоят размер */
    height: auto;
    display: block;
    margin: 0 auto 8px; /* Разстояние до текста под логото */
        /* -webkit-filter: grayscale(100%); */
    /* filter: grayscale(100%); */
    transition: all 0.3s ease;
}
.brand-link:hover img {
    /* -webkit-filter: grayscale(0%); */
    /* filter: grayscale(0%); */
   
}
/* ================= PRODUCTS (APPLE STYLE SCROLL) ================= */
.scroll-container {
    overflow: hidden;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    position: relative;

    touch-action: pan-y;
}
.scroll-container::after{
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    background: linear-gradient(to right, rgb(255 255 255 / 0%), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 90%, rgb(252 252 252));
    z-index: 2;}

.scroll-track {
    display: flex;
    gap: 20px;

    will-change: transform;
    transform: translate3d(0,0,0);

    cursor: grab;
    user-select: none;
}

.scroll-track.dragging {
    cursor: grabbing;
}





.p-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
position: relative;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 20px;

    transition: all 0.3s ease;
}

/* OPTIONAL (по-добро UX) */
.p-card:hover {
    border: 1px solid var(--p);
}


.p-card-img {
  width: 100%;
  height: 230px;
  object-fit: contain;
}
.p-card h4 {
  font-size: 1rem;
  margin: 0 0 10px;
  height: 40px;
  color: var(--text);
  overflow: hidden;
}
.price-box { font-weight: normal; }
.old-p {
  text-decoration: line-through;
  color: #585858;
  font-size: 16px;
}
.new-p {
     color: #000000;
  font-size: 1.1rem;
}
.promo-tag {
    background: #b3322e;
    color: #fff;
    padding: 3px 8px;
    margin: 0 0 10px 0;
    position: absolute;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
}
.promo-tag-product {
    background: #b3322e;
    color: #fff;
    padding: 3px 15px;  
    border-radius: 4px;
    font-size: 16px;
    display: inline-block;
}
.tag-promo{    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0 0 7px 0;}
/* ================= ARROWS ================= */
.cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
      width: 100%;
}
.cat-link {
    flex: 1; /* Заема цялото налично пространство */
transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
    display: block;
    padding: 8px 0 8px 8px;
        text-transform: uppercase;
    font-size: 14px;
}
.cat-link:hover {
    /* color: var(--p); */
       color: #ffffff;
    background: #000000;
    
    border-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cat-header .cat-btn{
   transition: all 0.3s ease;
}
.cat-header:hover .cat-btn{
    background: var(--p);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* .cat-link:last-child{padding-bottom: 0;} */
.toggle-sub {
    padding: 12px 20px; /* По-голяма зона за кликане на мобилни */
    cursor: pointer;
    transition: transform 0.3s ease;
    border-left: 1px solid #f9f9f9;
}
/* category */
  .breadcrumbs { padding: 10px 0;  font-size: 14px; color: #666; font-weight: 300; }
        .breadcrumbs a { color: #000; text-decoration: none; }
      
        .category-description {     position: relative;
    overflow: hidden;
    max-height: 210px;
    transition: max-height 0.4s ease;
    margin: 50px 0 20px 0;
    line-height: 26px;
    background: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #eeeeee;
 }
 .category-description strong{font-weight: 400;}
 .category-description p{padding: 10px 0;}
        .category-description.expanded { max-height: 100%; }
/*  */
.all-brand-description{    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 14px;}
        /* .brand-description { position: relative;
    overflow: hidden;
    max-height: 210px;
    transition: max-height 0.4s ease;
    margin: 0px 0 20px 0;
    line-height: 26px;
    background: #f6f6f6;
    padding: 20px;
    border-radius: 10px; 
 } */
  .brand-description {
   
    position: relative;
   

    transition: max-height 0.4s ease;
    margin: 0px 0 20px 0;
    line-height: 26px;
    background: #f6f6f6;
    padding: 20px;
    border-radius: 10px;
}

/* Скриваме бутона и преливащия ефект на десктоп */
.read-more-btn-wrap,
.brand-description .read-more-overlay {
    display: none !important;
}
 .brand-description strong{font-weight: 400;}
 .brand-description p{    padding: 5px 0;
    font-weight: 300;
    color: #000;}
        .brand-description.expanded { max-height: 100%; }
/*  */
        .pagination { margin-top: 30px; display: flex; gap: 10px; justify-content: center; align-items: center;}
        .pagination a {    padding: 8px 12px;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: #fff;}
     .pagination a:hover { background: #f5811e; color: #fff; border-color: #f5811e; }
        .pagination a.active {     background: #f5811e;
    color: #fff;border: 1px solid #f5811e;
    }
        /* Добави тези стилове в <style> секцията */
/* .cat-item.active > .cat-header { background: #f0f7fd; border-left: 3px solid #3498db; }
.cat-item.active > .cat-header .cat-link { font-weight: bold; color: #3498db; } */
/* .sub-menu li.active a { color: #3498db; font-weight: bold; text-decoration: underline; } */
.brands-list{    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 20px;
    width: 100%;}
.brand-filter-wrapper{    position: relative;
    width: 100%;}

/* .cat-item.active .sub-menu { display: block; } */
.brand-header{    display: flex;
    align-items: center;
    gap: 20px;}
    .brand-header img{    background-color: #fff;
    border-radius: 10px;
    width: 70px;
    border: 1px solid #eeeeee;
    height: auto;
    padding: 2px;}
.read-more-wrap{ font-weight: 300;   margin: 0; width: 100%;}
.read-more-btn{    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    background: #000000;
    padding: 7px 0;
    border-radius: 5px;
    margin: 0 auto;
    display: block;
    width: 100%;}
/* Контейнер на филтърната лента */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f6f6;
    padding: 10px 10px;
    border-radius: 5px;
    width: 100%;
    gap: 10px;
}
/* Бутонът, който отваря филтъра */
.filter-trigger {
height: 38px;
display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    width: 100%;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 5px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
}
.filter-trigger:hover {
    border-color: #f5811e;
}
/* Дропдаун менюто за марките */

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Списъкът с марки вътре */
.brand-list-container {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding-right: 5px;
}
/* Стилизиране на скролбара за марш */
.brand-list-container::-webkit-scrollbar {
    width: 6px;
}
.brand-list-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
/* Чекбоксовете и етикетите */
.brand-item {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}
.brand-item:hover {
    background: #f5f5f5;
}
.brand-item input[type="checkbox"] {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
/* Бутонът "Приложи" */
.btn-apply {
    width: 100%;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
        font-size: 16px;
    transition: background 0.3s;
}
.btn-apply:hover {
    background: #2980b9;
}
/* Селектът за сортиране */
.sort-wrapper{    width: 100%; position: relative;}
.sort-wrapper select {
appearance: none;
    background: #fff url(/main/icons/arrow_down.png) no-repeat right 12px center;
    background-size: 18px;
    padding: 10px 35px 10px 45px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 16px;
    color: #444;
    width: 100%;
    cursor: pointer;
    outline: none;
    font-family: Roboto Condensed, sans-serif;
}
.sort-wrapper::before{
       content: '';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: url(/main/icons/sort.png) no-repeat center center;
    background-size: contain;
    pointer-events: none;
}
.sort-wrapper select:hover {
    border-color: #f5811e;
}
.sort-wrapper select:focus {
    border-color: #f5811e;
}
/* Бутонът за изчистване "X" */
.clear-filter-btn {
    background: #f6f6f6;
    color: #c70000;
    border: none;
    width: 38px;
    height: 38px;
    /* border-radius: 6px; */
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.clear-filter-btn:hover {
    background: #c0392b;
        border-radius: 6px;
    color: #ffffff;
}
/* user dropdown */
.btn-profile{    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    }
.dropdown {
    position: relative;
    display: inline-block;
    text-align: center;
}

.dropdown-content-dash {
    display: none; /* Скрито по подразбиране */
    position: absolute;
    right: 0;
    background-color: #fff;
    min-width: 160px;
       border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 13px;
    padding: 10px 0;
}

/* Показване на менюто, когато добавим клас 'show' чрез JS */
.dropdown-content-dash.show {
    display: block;
}

.dropdown-content-dash a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    /* display: block; */
    font-size: 14px;
    /* text-align: left; */
    display: flex;
    gap: 10px;
}

.dropdown-content-dash a:hover {
    background-color: #f8f9fa;
}
/* Поправка за дропдауна - гарантираме, че няма да пречи на други елементи */
.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}
/* Правим filter-trigger да заема цялото пространство за по-лесен клик */


/* Анимация на стрелката при активно меню */
.cat-item.active .toggle-sub {
    transform: rotate(180deg);
}
.cat-item.active .sub-menu {
    display: block;
    max-height: 800px; /* Достатъчно голяма стойност */
    transition: max-height 0.5s ease-in;
       
}
.cat-item:last-child{border-bottom: none;padding-bottom: 0;}
.cat-item.active > .cat-header > .cat-link {
    color: var(--p);
    padding: 8px 0 8px 8px;
    border-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.sub-menu .cat-item.active > .cat-header > .cat-link {
    color: #ffffff;
    background: var(--p);
    border-radius: 5px;
}
.sub-menu li.active a {    color: #ffffff;
    background: var(--p);
    border-radius: 5px; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 40px 0 20px;
}
.arrows {
  display: flex;
  gap: 10px;
}
.price-no-vat{    color: #b10500;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.1;}
.product-price-no-vat{  margin-bottom: 10px;}
.grid{display: grid; grid-template-columns: repeat(auto-fill, minmax(315px, 1fr)); gap: 20px; width: 100%;}
.arrow-btn {
  background: #fcfcfc;
  border: 1px solid #fcfcfc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.arrow-btn:hover {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}
 .head-menu {display: none;}

/* category short text */
/* Настолна версия - бутонът е скрит, текстът си се вижда изцяло */
.toggle-text-btn {
    display: none;
}

/* ================= MOBILE ================= */

 .flex-head{display: flex;  
    }
 .flex-head-menu{display: flex;  font-size: 12px;  align-items: center;
    gap: 8px;}

    @media (max-width: 1420px) {
       .product-btns {
    flex-direction: column;
}
    }
@media (max-width: 820px) {

    .product-head {
    flex-direction: column;
}
.product-media{width: 100%;}
    .product-container {
    flex-direction: column;
}
.product-info {
    width: 100%;
}
    .flex-head-menu {
    gap: 30px;
}
    /*  */
    .head-menu {display: flex;}
.hamburger {
            width: 25px;
        padding: 0 3px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Средната линия */
.navicon {
    width: 24px;
    height: 2px;
    background: #000;
    position: relative;
    transition: background 0.2s ease-out;
}

/* Горната и долната линия */
.navicon:before,
.navicon:after {
    content: '';
    background: #000;
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: all .2s ease-out;
}

/* Позициониране на горната линия */
.navicon:before {
    top: 6px;
}

/* Позициониране на долната линия */
.navicon:after {
    top: -6px;
}

/* АНИМАЦИЯ ПРИ АКТИВНО СЪСТОЯНИЕ (X) */

/* 1. Скриваме средната линия */
.hamburger.active .navicon {
    background: transparent;
}

/* 2. Завъртаме горната линия на 45 градуса */
.hamburger.active .navicon:before {
    top: 0;
    transform: rotate(45deg);
}

/* 3. Завъртаме долната линия на -45 градуса */
.hamburger.active .navicon:after {
    top: 0;
    transform: rotate(-45deg);
}

    /* Контейнерът на формата за търсене */
header {
        position: relative;
                backdrop-filter: unset;
    }

    /* Контейнерът wrap вътре в хедъра */

header .wrap {
        display: grid;
        /* Дефинираме две колони: една за логото/хамбургера и една за бутоните */
        grid-template-columns: 1fr auto; 
        /* Дефинираме редовете: автоматична височина */
        grid-template-rows: auto auto;
        gap: 15px;
        width: 95%;
    }

    /* Първият блок (Хамбургер + Лого) заема първа колона, първи ред */
    header .wrap > span:first-of-type {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Вторият блок (Бутони/Меню) заема втора колона, първи ред */
    header .wrap > span:last-of-type {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 15px;
    }

    /* Търсачката заема целия втори ред (от колона 1 до край) */
    .search-wrapper {
        grid-column: 1 / span 2; 
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    /* Оптимизация на иконите, за да се съберат на един ред */
    header .wrap > span:last-of-type a span:last-child {
        display: none; /* Скриваме текстовете, оставяме само иконите */
    }
    
    .logo img {
        max-height: 32px; /* Намаляваме логото, за да има място за иконите */
    }
   .promo{width: 42px;}
  .search-fixed {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: #fff !important;
        padding: 10px 10px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
        animation: slideDown 0.3s ease-out; /* Малка анимация за плавност */
    }

    @keyframes slideDown {
        from { transform: translateY(-100%); }
        to { transform: translateY(0); }
    }

    /* Малко разстояние за инпута вътре, за да не опира в краищата */
    .search-fixed div[style*="display: flex"] {
        max-width: 92% !important;
        margin: 0 auto !important;
    }

    /* Корекция на отместването за мобилното меню */

     aside {
    display: none;
  }
  aside.mobile-active {
    display: block;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    z-index: 100;
    max-width:100%;
    height: calc(100% - 65px);
    overflow-y: auto;
    border-radius: 0;
  }

   
       .flex-head{ align-items: center;  gap: 10px;}

.hero-section {
        height: 500px;
        border-radius: 10px;
        margin: 0px auto 35px auto;
        width: 95%;
        box-shadow: none;
}
}

/* Мобилна версия */
@media (max-width: 768px) {
    .brand-description:not(.expanded) {
        max-height: 150px; /* Промени височината (напр. 120px или 150px) по твой вкус */
        overflow: hidden;
    }
    
    /* Показваме сивия градиент (overlay) само когато е свит на мобилен */
    .brand-description:not(.expanded) .read-more-overlay {
        display: block !important;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); /* Нагласи цвета спрямо бекграунда ти */
    }

    /* Показваме бутона на мобилни устройства */
    .read-more-btn-wrap {
        display: block !important;
        text-align: center;
        margin-top: 10px;
    }
    /*  */
    .cat-text {
        max-height: 100px;
        overflow: hidden;
        position: relative;
        transition: max-height 0.4s ease; /* Плавна анимация при разпъване */
    }

    /* Ефект на избледняване в долната част на отрязания текст */
    .cat-text::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: linear-gradient(transparent, #ffffff); /* Смени #ffffff с цвета на твоя фон */
        transition: opacity 0.3s ease;
    }

    /* Когато текстът е разпънат, премахваме ограничението и избледняването */
    .cat-text-container.expanded .cat-text {
        max-height: 2000px; /* Достатъчно голяма стойност, за да хване целия текст */
    }

    .cat-text-container.expanded .cat-text::after {
        opacity: 0;
        pointer-events: none;
    }

    /* Показваме бутона само на мобилни */
    .toggle-text-btn {
        display: block;
        margin-top: 8px;
        background: #f6f6f6;
        border: none;
        color: #000000;
        /* font-weight: bold; */
        font-size: 13px;
        cursor: pointer;
        padding: 10px 0;
        border: none;
        width: 100%;
        border-radius: 5px;
    }
    /*  */
    .wishlist-checkout{
            text-align: center;
    margin: 10px 0;
    width: 90%;
    position: fixed;
    bottom: 0;
    z-index: 9;
    }


    .content-box h2{font-size: 26px;}
   .content-box p { font-size: 16px;   }
    .footer-container {
    flex-direction: column;
}
    .static-page h1 { font-size: 28px;}
    .title-collapse {
    font-size: 20px;
    }
      .dropdown-content{width: 100%;}
.banners {
    flex-direction: column;
}

section{ margin: 0 auto;}
      .main-container {
    margin: 0 auto 40px auto;
  }
  .full-container {
    margin: 0px auto 40px auto;
}
  .container {
    width: 95%;
    margin: 0px auto 40px auto;
}


    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

}

@media (max-width: 550px) {
    .flex-head-menu {
    gap: 15px;
}
    .video-grid {
        flex-direction: column;
    align-items: center;
}
}
@media (max-width: 480px) {
    .two-banners {
        flex-direction: column;
        gap: 30px;
    }
    /* .two-banners img {
    max-width: 100%;
    } */
    .docs-section {
    display: flex;
    flex-direction: column;
}
 h1{font-size: 24px;}
h2{    font-size: 16px;}
    .brand-product img{
    width: 50px;
}
    .search-btn-text { display: none; }
    .search-wrapper button { padding: 0 15px; }
}
@media (max-width: 420px) {
            aside.mobile-active {
        top: 95px;
        height: calc(100% - 95px);
    }
    .lang-dropdown {
    top: -15px;
    right: 0;
    z-index: 999;
}
    .mobile-header {
        display: flex;
               justify-content: space-between;
        padding: 5px 15px;
        background: #fafafa;
        box-shadow: 0 5px 20px #dddddd;
        font-size: 12px;
        gap: 20px;
        /* border-bottom: 1px solid #eeeeee; */
        align-items: center;
        color: #fff;
        background-color: #333;
        /* border-radius: 5px; */
        /* margin: 5px auto 0 auto; */
         /* width: 95%; */
    }
    .mobile-header-link {color: #fff;}
    .mobile-show{display: flex;align-items: center;
        gap: 5px;}
    .mobile-hide{display: none;}
    /* .logo img {
        max-height: 22px;
    } */
     .scroll-container::after{display: none;}
}
