/* Основни настройки и подредба */

/* Основният текст става с елегантен книжовен шрифт */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');

/* Заглавията И бутоните с тежкия шрифт */
h1, h2, h3, h4, .row-title, .btn, .btn-small {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.5px;
}

/* Описанията и текстовете с Lora */
body, p, .product-card h4 {
    font-family: 'Lora', serif;
}

/* Само цените остават на цифров/стандартен шрифт (Arial) */
.price {
    font-family: Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.4;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
section {
    padding: 20px 0;
}
h1 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 28px;
    color: #2c3e50;
    line-height: 1.2;
}

h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    color: #2c3e50;
    line-height: 1.2;
}

h3 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
    color: #2c3e50;
    line-height: 1.2;
}

/* 1. Лого */
.site-header {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}
.logo {
    max-height: 90px;
}

@media (max-width: 768px) {
    .site-header {
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}
.logo {
    max-height: 60px;
}
}

/* 2. Голяма снимка */
.hero-section {
    padding: 20px 0;
    text-align: center;
}
.hero-image {
    width: 100%;
    max-height: 580px;
    object-fit: cover;
    border-radius: 8px;
}

/* 3. Категории (3 броя) */
.categories-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.category-card {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.category-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #8B4513; /* Златисто-кафяв цвят, подходящ за икони */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}
.btn:hover {
    background-color: #5c2c0c;
}

/* 4. Продукти (Секции с подзаглавия) */
.products-section {
    background-color: #fdfdfd;
    padding: 20px 0 50px 0; /* Малко повече въздух отдолу */
}

/* Стил за центрираните подзаглавия на категориите */
.row-title {
    font-size: 22px;
    color: #2c3e50;
    margin-top: 40px; 
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    width: 100%;
    height: auto; /* Вече е на auto, както решихме */
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    margin-top: auto;
}

.price {
    font-weight: bold;
    color: #b12704;
    margin-bottom: 10px;
    margin-top: auto;
}

.btn-small {
    display: inline-block;
    padding: 6px 12px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

/* 5. Текст секция */
.text-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.site-footer {
    background-color: #fcfcfc;
    border-top: 1px solid #eaeaea;
    padding: 30px 0;
    text-align: center;
    font-family: 'Lora', serif;
    color: #666;
    font-size: 14px;
}

.footer-links-title {
    margin-bottom: 10px;
    font-weight: bold;
    color: #2c3e50;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: #8B4513;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #5c2c0c;
    text-decoration: underline;
}

.footer-copyright {
    font-size: 13px;
    color: #888;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* АДАПТИВНОСТ ЗА ТАБЛЕТИ И ТЕЛЕФОНИ (Responsive Breakpoints) */
@media (max-width: 900px) {
    /* Продуктите стават по 2 на ред на таблети */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    /* Трите категории стават една под друга на телефон */
    .categories-grid {
        flex-direction: column;
    }
    /* Продуктите остават по 2 на ред или стават 1 на ред (тук са 2 на ред) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

#backToTopBtn {
    display: none; /* Скрит по подразбиране, докато не се скропне надолу */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 20px;
    background-color: #8B4513; /* Цвят на бутона - можеш да го смениш */
    color: white;
    border: none;
    outline: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background-color 0.3s, transform 0.2s;
}

#backToTopBtn:hover {
    background-color: #5c2c0c;
    transform: scale(1.05);
}