@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@400;500;600&display=swap');

:root {
    --bg-color: #FBFaf8;
    /* Много меко, топло бяло */
    --text-color: #212529;
    /* По-плътно тъмно сиво за четимост */
    --accent-light: #E9ECE6;
    /* Фин пастелен зелен/sage нюанс за картите */
    --accent-dark: #A5AFA8;
    /* По-тъмен sage нюанс за линии и детайли */
    --btn-color: #3A423D;
    /* Елегантно сиво-зелено за бутоните */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    /* Увеличена дебелина за четимост */
    font-size: 1rem;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    /* По-плътни заглавия */
}

/* --- НАВИГАЦИЯ --- */
header {
    background-color: var(--bg-color);
    padding: 20px 0;
    position: sticky;
    /* Вече е залепено отгоре при скролиране */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    padding: 0 40px;
}

.logo {
    font-size: 2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    /* По-голям шрифт в менюто */
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

/* Падащо меню */
.dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    min-width: 220px;
    border: 1px solid var(--accent-light);
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.85rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    /* По-дебели черти на менюто */
    background-color: var(--text-color);
    margin: 4px 0;
    transition: 0.4s;
}

/* --- HERO СЕКЦИЯ --- */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #ffffff 0%, var(--bg-color) 100%);
}

.hero h1 {
    font-size: 5rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
    max-width: 900px;
}

.hero h1 i {
    font-style: italic;
    color: var(--accent-dark);
}

.hero p {
    font-size: 1.2rem;
    /* По-голям текст */
    max-width: 600px;
    margin-bottom: 50px;
    opacity: 0.85;
}

/* Бутони */
.btn {
    display: inline-block;
    padding: 16px 45px;
    background-color: var(--btn-color);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.4s ease;
    border: 1px solid var(--btn-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--btn-color);
}

/* --- СЕКЦИИ И КАРТИ --- */
.page-section {
    padding: 100px 40px 80px 40px;
    max-width: 1400px;
    margin: auto;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 60px;
}

.category-title {
    font-size: 2.2rem;
    margin: 80px 0 40px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-light);
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: var(--accent-light);
    /* Фин пастелен цвят за картите */
    padding: 50px 30px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.card:hover {
    transform: translateY(-8px);
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
}

.card-decoration {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--accent-dark);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 40px;
    flex-grow: 1;
}

.order-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--btn-color);
    color: var(--btn-color);
    padding: 5px 0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
    font-family: 'Montserrat', sans-serif;
    align-self: center;
}

.order-btn:hover {
    opacity: 0.6;
}

/* --- КОНТАКТИ --- */
.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.contact-info p {
    font-size: 1.2rem;
    margin: 20px 0;
}

.contact-divider {
    width: 60px;
    height: 2px;
    background-color: var(--accent-light);
    margin: 40px auto;
}

/* --- ФУТЪР --- */
footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: auto;
    background-color: white;
    border-top: 1px solid var(--accent-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- АНИМАЦИИ --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- МОБИЛНА ВЕРСИЯ --- */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 20px 0;
        border-bottom: 1px solid var(--accent-light);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .dropdown-content {
        position: relative;
        border: none;
        box-shadow: none;
        display: block;
        background: transparent;
    }
}
/* --- ВЪТРЕШНА НАВИГАЦИЯ (ПОДКАТЕГОРИИ) --- */
.subcategory-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.subcategory-nav a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--text-color);
    /* Бордюр с основния тъмен цвят */
    background-color: var(--text-color);
    /* Тъмен фон */
    color: var(--bg-color);
    /* Светъл текст */
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    /* Леко удебелен шрифт за по-добра четимост */
}

/* Ефект при посочване с мишката (инверсия) */
.subcategory-nav a:hover {
    background-color: transparent;
    /* Премахваме тъмния фон */
    color: var(--text-color);
    /* Текстът става тъмен */
}

/* Офсет при скролиране, за да не се скрива заглавието под хедъра */
.scroll-section {
    scroll-margin-top: 120px;
}


/* --- БУТОН "НАГОРЕ" --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: 1px solid var(--text-color);
    /* Добавен лек бордюр за контур */
    border-radius: 50%;
    font-size: 1.2rem;
    /* Леко намален размер, за да стои по-фино */
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#back-to-top.show {
    opacity: 0.85;
    /* Леко по-прозрачно за елегантност */
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    opacity: 1;
    background-color: transparent;
    /* Инверсия на цветовете при ховър */
    color: var(--text-color);
    transform: translateY(-5px);
}

/* --- ПРОМЕНЕНАТА СТРЕЛКА --- */
#back-to-top::before {
    /* Използваме Unicode символ за по-фина и тънка стрелка (&#x2191; или ⭡) */
    content: '⭡';
    font-family: 'Montserrat', sans-serif;
    /* Използваме изчистения шрифт */
    font-weight: 300;
    /* Правим я много тънка и елегантна */
    letter-spacing: 0;
}

@media screen and (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.sun-logo {
    width: 0.85em;
    height: 0.85em;
    margin: 0 2px;
    color: var(--accent-dark, #d4af37); 
    transition: transform 0.8s ease-in-out;
}

/* При посочване с мишката, слънцето се завърта на 180 градуса */
.logo:hover .sun-logo {
    transform: rotate(180deg);
}