body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #d1d5db;
}

/* Центриране на езиковия превключвател под логото */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Запазване на оригиналния цвят на текста в тъмната кутия при превод */
.about-dark-box, 
.about-dark-box * {
    color: inherit;
}

.logo {
    max-height: 180px;
    width: 100%;
    display: block;
}

.main-nav ul {
    list-style: none;
    background-color: #ffffff;
    margin: 0;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-bottom: 1px solid #d1d5db;
}

.main-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: #0284c7;
}

.main-content {
    flex: 1;
    padding: 30px 0;
}

.page-intro-container {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto 25px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.page-title {
    font-size: 22px;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-description {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
}

.page-description:last-child {
    margin-bottom: 0;
}

.catalog-controls-inline {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.search-box-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    padding: 4px;
    position: relative;
}

.search-box-container input {
    flex: 1;
    padding: 10px 14px;
    font-size: 15px;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
}

.search-box-container .search-clear-btn {
    background-color: #f5f5f5 !important;
    color: #2d3748 !important;
    border: none !important;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 4px;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.search-box-container .search-clear-btn:hover {
    background-color: #e2e8f0 !important;
    color: #dc2626 !important;
}

.search-box-container button {
    background-color: #0284c7;
    color: #ffffff;
    border: none;
    padding: 0 20px;
    border-radius: 9px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.search-box-container button:hover {
    background-color: #0369a1;
}

.search-box-container .search-clear-btn ~ .search-clear-btn {
    display: none !important;
}

input[type="text"]::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.dropdown-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 320px;
}

.filter-label {
    font-weight: bold;
    color: #4a5568;
    font-size: 15px;
    white-space: nowrap;
}

.custom-dropdown {
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    cursor: pointer;
    width: 100%;
    outline: none;
    color: #333;
    appearance: none;
}

.pagination-row {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto 25px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.total-products-info {
    font-weight: bold;
    color: #4a5568;
    font-size: 15px;
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}

.pagination-container button {
    padding: 0 10px;
    height: 30px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pagination-container button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-container button.active,
.pagination-container button:hover:not(:disabled) {
    background-color: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
}

.products-grid {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    box-sizing: border-box;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #94a3b8;
}

.product-image-container {
    width: 190px;
    height: 190px;
    min-width: 190px;
    overflow: hidden;
    background: #d1d5db;
    cursor: zoom-in;
    position: relative;
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    flex: 1;
    padding: 15px 15px 15px 0;
}

.product-title {
    font-size: 17px;
    font-weight: bold;
    color: #2d3748;
    line-height: 1.3;
}

.product-number {
    display: inline-block;
    background-color: #f1f5f9;
    color: #0284c7;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #e2e8f0;
    align-self: flex-start;
}

.product-prices {
    font-size: 18px;
    font-weight: bold;
    color: #dc2626;
    margin-top: 2px;
}

.unit-text {
    font-size: 15px;
    font-weight: normal;
    color: #4a5568;
    margin-left: 6px;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #0284c7;
}

.about-container {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto;
    box-sizing: border-box;
}

.about-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.about-content-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 30px;
    border-radius: 12px;
    box-sizing: border-box;
}

.about-content-box h2 {
    font-size: 20px;
    font-weight: bold;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 15px;
}

.about-content-box p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-content-box p:last-child {
    margin-bottom: 0;
}

.about-dark-box {
    background-color: #2d3748;
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.about-dark-box h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

.about-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-checklist li {
    margin-bottom: 15px;
    font-size: 15px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.about-checklist li span {
    color: #0284c7;
    font-weight: bold;
    font-size: 18px;
}

/* Настройка за 4-те снимки (ако са с клас about-grid-4 или са в about-grid-3) */
.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 25px;
}

.about-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 25px;
    border-radius: 12px;
    box-sizing: border-box;
}

.about-card h3 {
    font-size: 18px;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.site-footer {
    background-color: #ffffff;
    color: #333;
    text-align: center;
    padding: 25px 20px;
    margin-top: auto;
    border-top: 1px solid #d1d5db;
}

.home-slider-container {
    width: 1400px;
    max-width: 95%;
    margin: 0 auto 25px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-sizing: border-box;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 550px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0));
    color: #ffffff;
    padding: 40px 20px 25px 20px;
    text-align: center;
}

.slide-caption h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #ffffff;
}

.slide-caption p {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.6);
    color: #ffffff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: #0284c7;
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 25px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #0284c7;
}

/* ========================================== */
/* МОБИЛНА АДАПТИВНОСТ                        */
/* ========================================== */

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid,
    .about-grid-2 {
        grid-template-columns: 1fr;
    }
    /* Тук гарантираме, че 4-те снимки стават по 2 на ред на мобилни */
    .about-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-controls-inline,
    .pagination-row {
        flex-direction: column;
        align-items: stretch;
    }
    .dropdown-filter-container {
        width: 100%;
    }
    .pagination-container {
        justify-content: center;
    }
    .total-products-info {
        text-align: center;
    }
    .slider-wrapper {
        height: 350px;
    }
    .main-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media screen and (max-width: 900px) {
    .about-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 900px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 900px) {
    .sales-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .sales-grid > div:last-child {
        grid-column: span 1 !important;
    }
}

.about-grid-3 {
    max-width: 100% !important; /* Разпъва се до пълната ширина */
    width: 100% !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колони на десктоп */
    gap: 25px; /* Уеднаквява разстоянието между картите */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* На мобилни устройства: Слага ги една под друга или по 1-2, според желанието */
@media screen and (max-width: 900px) {
    .about-grid-3 {
        grid-template-columns: 1fr !important; /* Всички на един ред (вертикално) */
    }
}

