




body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #E6EDED;
    margin: 0;
    padding: 0;
    color: #333;
}

/* ==============================
   Хедър
============================== */
.site-header {
    background: #0077cc;
    color: #fff;
    padding: 10px 0;
}

.site-header a {
    color: #fff;
    text-decoration: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
}



.cart a {
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
   
}

/* Основен стил за навигацията */

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start; /* Разположи елементите отляво */
}

.main-nav li {
    margin-right: 20px; /* Разстояние между елементите */
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.main-nav a:hover {
    color: #ffcc00; /* Променяме цвета при hover */
}

/* Скриваме бутонa на мобилни устройства */
.menu-toggle {
    display: none;
}

/* Показване на бутон за мобилното меню само на малки екрани */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        background-color: #333;
        color: white;
        border: none;
        font-size: 14px;
    }

    .main-nav ul {
        display: none; /* Скриваме менюто по подразбиране на мобилни устройства */
        list-style-type: none;
        padding: 0;
    }

    .main-nav.active ul {
        display: block; /* Показваме менюто, когато класът 'active' е добавен */
        padding: 10px 0;
    }

    /* Стилове за мобилното меню */
    .main-nav ul li {
        text-align: center;
        padding: 10px;
    }

    .main-nav ul li a {
        text-decoration: none;
        color: white;
        font-size: 14px;
        display: block;
    }

    .main-nav ul li a:hover {
        background-color: #555;
    }
}


/* ==============================
   Мини-количка
============================== */
.cart {
    position: relative;
}

.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
}

.mini-cart ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mini-cart ul li {
    margin-bottom: 5px;
}

.cart:hover .mini-cart,
.cart:focus-within .mini-cart {
    display: block;
}

/* ==============================
   Мини-количка с картинки
============================== */
.mini-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.mini-cart-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.mini-cart-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.mini-cart-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.mini-cart-name {
    font-weight: bold;
}

.mini-cart-qty, .mini-cart-price {
    font-size: 13px;
    color: #555;
}

.mini-cart-total {
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-weight: bold;
    text-align: right;
}

.mini-cart a {
    display: block;
    text-align: center;
    margin-top: 10px;
    background: #0077cc;
    color: #fff;
    padding: 8px 0;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.mini-cart a:hover {
    background: #005fa3;
}
table tr {
    transition: opacity 0.5s, height 0.5s;
}

/* ==============================
   Количка и checkout
============================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th {
    background: #f0f0f0;
}

button {
    background: #0077cc;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #005fa3;
}

input[type="text"], input[type="number"], textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* ==============================
   Breadcrumb / навигация
============================== */
.breadcrumb {
    font-size: 0.9rem;
    margin: 15px 0;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb span {
    color: #555; /* текущата страница/текст без линк */
    font-weight: 500;
}

.breadcrumb a::after,
.breadcrumb span::after {
    content: ' » '; /* символ за разделител */
    margin: 0 5px;
}

.breadcrumb span::after {
    content: ''; /* последният елемент няма разделител */
}

/* Мобилен вариант */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* ==============================
   Responsive
============================== */
@media (max-width: 992px) {
    .category-list li, .subcategory-list li, .product-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 600px) {
    .category-list li, .subcategory-list li, .product-card {
        flex: 1 1 100%;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    table tr {
        margin-bottom: 15px;
    }

    table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        text-align: left;
    }
}


/* ==============================
   Контейнер
============================== */
.container {
    
    max-width: 998px;
    margin: 0 auto;
    padding: 10px;
    
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    
}
/* ==============================
   index.php
============================== */
/* Карусел */
.carousel-container {
    position: relative;
    width: 100%;
    margin-bottom: 2px;
    margin-top: 2px;
    overflow: hidden;
}



/* Стилове за карусела */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}


/* Скриване на карусела на мобилни устройства (под 768px) */
@media (max-width: 768px) {
    .carousel {
        display: none; /* Скриваме каруселата на мобилни устройства */
    }
}


.carousel-item {
    min-width: 25%; /* ширина на елементите в карусела */
    margin-right: 10px;
    text-align: center;
     border: 1px solid #ADD8E6; /* Черна рамка с дебелина 1px */
       padding: 2px; /* Разстояние между съдържанието и рамката */
            margin: 5px; /* Разстояние между рамката и останалото съдържание */
}

.carousel-item img {
    width: 200px; /* задаваме ширината на изображението */
    height: 100px; /* задаваме височината на изображението */
    object-fit: cover; /* запазва пропорциите и изрязва картинката при нужда */
    border-radius: 5px; /* добавяме заоблени ъгли, ако искаш */
    margin-bottom: 10px;
    
           
}

.carousel-item a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.carousel-item a:hover {
    color: #007BFF;
}

/* Контроли за карусела */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.carousel-control.left {
    left: 0;
}

.carousel-control.right {
    right: 0;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #f5f5f5;
    border-radius: 5px;
    color: #333;
}

.pagination a:hover {
    background-color: #007bff;
    color: #fff;
}

.pagination span {
    padding: 8px 16px;
}

.carousel-control.right {
    right: 0;
}




.info-bar {
    background-color: #f1f1f1;
    padding: 5px 0;
    font-size: 12px;
    display: flex;
    color: #333;
    gap: 50px;
    justify-content: center;  /* Центрира елементите по хоризонтала */
    align-items: center;      /* Центрира елементите по вертикала */
}


@media (max-width: 600px) {
    .info-bar {
        font-size: 10px;
        gap: 20px;
    }
}

    
    
}

.phone {
    color: blue; /* Показва телефона в синьо, като линк */
    text-decoration: none; /* Премахва подчертаването */
}
.phone:hover {
    text-decoration: underline; /* Подчертава при hover */
}

/* Стилове за футъра */
footer {
    background-color: #677878;
    color: #fff;
    padding: 3px 0;
    font-size: 14px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo img {
    max-width: 150px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1;
    min-width: 200px;
    color: #fff;
}

.footer-links ul, .footer-social ul {
    list-style-type: none;
    padding: 0;
}

.footer-links ul li, .footer-social ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-social a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-social a:hover {
    color: #31E026; /* зелен при ховър */
}

.footer-bottom {
    background-color: #222;
    padding: 10px 0;
    margin-top: 3px;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
}

/* Мобилна версия */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .footer-links, .footer-contact, .footer-social {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-links ul, .footer-social ul {
        padding-left: 0;
    }

    .footer-links ul li, .footer-social ul li {
        margin-bottom: 15px;
    }

    .footer-bottom {
        margin-top: 20px;
    }
}

/* Стил за банера */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none; /* Скрит по подразбиране */
}

/* Стил за съобщението в банера */
.cookie-banner .cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-banner p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    flex-grow: 1;
}

.cookie-banner .accept-cookies {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.cookie-banner .accept-cookies:hover {
    background-color: #45a049;
}

/* Уникални стилове за търсачката */



/* Стилове за контейнера с имейл и телефон */
.info-bar {
    
    
    align-items: center;
    
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.info-bar .email, .info-bar .phone {
    font-size: 12px;
    color: #333;
}

/* Стилове за търсачката в контейнера */
.search-form {
    display: flex;
    justify-content: flex-end; /* Подравняваме търсачката вдясно */
    align-items: center;
    margin: 0;
    gap: 10px; /* Разстояние между полето за търсене и бутона */
    padding: 1px 1px;
}

.search-form input[type="text"] {
    padding: 5px;
    font-size: 12px;
    border: 1px solid #3498db;
    border-radius: 25px;
    width: 250px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    outline: none;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.search-form input[type="text"]:focus {
    border-color: #2980b9;
    box-shadow: 0 0 10px rgba(41, 128, 185, 0.5);
}

.search-form button {
    padding: 1px 1px;
    font-size: 12px;
    border: 2px solid #3498db;
    background-color: #3498db;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-form button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.search-form button:active {
    background-color: #1c6d8c;
    transform: translateY(0);
}

/* Мобилен вариант */
@media (max-width: 768px) {
    .info-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .search-form input[type="text"] {
        max-width: 60%;
        margin-bottom: 10px;
    }

    .search-form button {
        max-width: 35%;
    }
}
