/* Основна винтидж тема (Пергамент) */
body {
    font-family: 'Book Antiqua', 'Palatino Linotype', 'Georgia', serif;
    background: radial-gradient(circle, #f9f1d8 20%, #d4b473 100%);
    color: #2b1a10;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    min-height: 100vh;
}

/* Изящно заглавие (Хедър) */
header {
    text-align: center;
    padding: 60px 20px 30px 20px;
    background-color: rgba(43, 26, 16, 0.05);
    border-bottom: 2px solid #5c3a21;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
}

/* Селектор на езици */
.lang-selector {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Georgia', serif;
    font-size: 0.9em;
    letter-spacing: 2px;
    border: 1px solid #a67c52;
    padding: 5px 10px;
    background-color: #fdf6e3;
    box-shadow: 2px 2px 0px #5c3a21;
    z-index: 100;
}
.lang-selector a {
    color: #5c3a21;
    text-decoration: none;
    padding: 0 5px;
    cursor: pointer;
}
.lang-selector a:hover {
    color: #1a110a;
    font-weight: bold;
}
.lang-selector .active {
    color: #8b5a2b;
    font-weight: bold;
    border-bottom: 1px solid #8b5a2b;
}

/* Главен банер в хедъра */
.header-banner-container {
    max-width: 960px;
    margin: 0 auto 20px auto;
}
.header-banner-container img {
    max-width: 100%;
    height: auto;
    border: 8px solid #2b1a10;
    border-radius: 2px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
    filter: sepia(0.3) contrast(1.1); 
}

.subtitle {
    font-style: italic;
    font-size: 1.4em;
    color: #5c3a21;
    letter-spacing: 1px;
    margin: 15px 0 0 0;
}

/* Контейнер и оформление */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
    text-align: center;
}

/* Разделител мотив */
.separator {
    font-size: 1.5em;
    color: #5c3a21;
    margin: 30px 0;
    letter-spacing: 10px;
}

/* СТИЛОВЕ ЗА ВЪРТЕЛЕЖКАТА (CAROUSEL) */
.carousel-section {
    position: relative;
    margin: 40px 0 50px 0;
    padding: 30px 0;
    border-top: 1px dashed #a67c52;
    border-bottom: 1px dashed #a67c52;
}

.carousel-section h2 {
    font-size: 2em;
    color: #1a110a;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.carousel-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 250px;
    background: linear-gradient(135deg, #fdf6e3 0%, #e8d09f 100%);
    border: 1px solid #8b5a2b;
    padding: 25px 20px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    scroll-snap-align: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Контейнер за кориците на артикулите */
.item-cover-wrapper {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.item-cover-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 3px 5px 10px rgba(0,0,0,0.4);
    border: 1px solid #5c3a21;
    filter: sepia(0.15) contrast(1.05);
}
.carousel-item:hover .item-cover-wrapper img {
    filter: sepia(0) contrast(1.1);
}

.carousel-item h3 {
    font-size: 1.1em;
    margin: 10px 0 3px 0;
    color: #2b1a10;
    line-height: 1.3;
}
.carousel-item .item-author {
    font-size: 0.8em;
    color: #5c3a21;
    margin: 0 0 8px 0;
    font-weight: 600;
    letter-spacing: 0.03em;
    min-height: 1.2em;
}

.carousel-item .item-type {
    font-style: italic;
    font-size: 0.85em;
    color: #5c3a21;
    margin-bottom: 15px;
}

.carousel-btn {
    background-color: #2b1a10;
    color: #d4b473;
    border: 2px solid #1a110a;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    box-shadow: 2px 2px 0px #5c3a21;
}
.carousel-btn:hover {
    background-color: #5c3a21;
    color: #fdf6e3;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.8);
}

.btn-prev { left: -20px; }
.btn-next { right: -20px; }

/* ОБНОВЕН ДИЗАЙН: Бутоните в карусела съвпадат с каталога */
.buy-mini {
    display: inline-block;
    padding: 8px 22px;
    background-color: #2b1a10;
    color: #d4b473;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    letter-spacing: 1px;
    border: 2px solid #1a110a;
    box-shadow: 2px 2px 0px #5c3a21;
    position: relative;
    align-self: center;
}
.buy-mini:hover {
    background-color: #5c3a21;
    color: #fdf6e3;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    top: 2px;
    left: 2px;
}

/* Мрежа за основните категории */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: linear-gradient(135deg, #fdf6e3 0%, #e8d09f 100%);
    border: 1px solid #8b5a2b;
    padding: 40px 30px;
    box-shadow: inset 0 0 20px rgba(139, 90, 43, 0.1), 3px 3px 10px rgba(0,0,0,0.3);
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed #a67c52;
    pointer-events: none;
}
.card h2 {
    color: #2b1a10;
    font-size: 2em;
    margin-top: 0;
    border-bottom: 1px solid #a67c52;
    padding-bottom: 15px;
}
.card-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.action-link {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #2b1a10;
    color: #d4b473;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: 1px;
    border: 2px solid #1a110a;
    box-shadow: 2px 2px 0px #5c3a21;
    position: relative;
    z-index: 2;
}
.action-link:hover {
    background-color: #5c3a21;
    color: #fdf6e3;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    top: 2px;
    left: 2px;
}

/* СЕКЦИЯ ЗА ЛОКАЦИЯ И КАРТА */
.location-section {
    margin: 60px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #fdf6e3 0%, #e8d09f 100%);
    border: 1px solid #8b5a2b;
    box-shadow: inset 0 0 20px rgba(139, 90, 43, 0.1), 3px 3px 10px rgba(0,0,0,0.3);
    position: relative;
}
.location-section::before {
    content: '';
    position: absolute;
    top: 5px; left: 5px; right: 5px; bottom: 5px;
    border: 1px dashed #a67c52;
    pointer-events: none;
}
.location-header {
    margin-bottom: 30px;
}
.location-header h2 {
    color: #2b1a10;
    font-size: 2em;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr;
    }
}

.media-frame {
    border: 4px solid #5c3a21;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    position: relative;
    height: 300px;
    background-color: #2b1a10;
}
.media-frame img, .media-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}
.media-frame img {
    filter: sepia(0.3) contrast(1.1); 
}

.location-details {
    margin-top: 25px;
    font-size: 1.1em;
    color: #2b1a10;
}

/* СОЦИАЛНИ МРЕЖИ - ВОСЪЧНИ ПЕЧАТИ */
.social-section {
    margin: 60px 0 20px 0;
    text-align: center;
}
.social-section h3 {
    font-size: 1.5em;
    color: #2b1a10;
    font-style: italic;
    margin-bottom: 25px;
}
.social-network-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}
.seal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid #5c3a21;
    background-color: #fdf6e3;
    color: #5c3a21;
    text-decoration: none;
    position: relative;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.15);
}
.seal-btn svg {
    width: 24px;
    height: 24px;
    fill: #5c3a21;
}
.seal-btn:hover {
    background-color: #5c3a21;
    box-shadow: 0 8px 15px rgba(92, 58, 33, 0.4);
    border-color: #2b1a10;
}
.seal-btn:hover svg {
    fill: #fdf6e3;
}
.seal-btn::after {
    content: attr(data-network);
    position: absolute;
    bottom: -30px;
    font-size: 0.5em;
    font-family: 'Book Antiqua', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2b1a10;
    opacity: 0;
    pointer-events: none;
}
.seal-btn:hover::after {
    opacity: 1;
}

/* Футър */
footer {
    text-align: center;
    padding: 30px;
    background-color: #1a110a;
    color: #a67c52;
    border-top: 3px double #d4b473;
    margin-top: 40px;
    font-size: 0.9em;
}
footer a { color: #d4b473; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Плавна анимация при смяна на езика */
[data-i18n] {
    transition: opacity 0.15s ease-in-out;
}