:root {
    --color-bg: #faf7f2;
    --color-surface: #ffffff;
    --color-text: #2a2420;
    --color-text-muted: #6b6058;
    --color-border: #e8e0d6;
    --color-brand: #b5652d;
    --color-brand-dark: #8f4e21;
    --color-accent: #2f6f5e;
    --radius: 14px;
    --shadow: 0 6px 24px rgba(42, 36, 32, 0.08);
    --max-width: 1160px;
    font-size: 16px;
}

body.theme-tile {
    --color-brand: #2f6f9e;
    --color-brand-dark: #24567c;
    --color-accent: #b5652d;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Prompt", "Segoe UI", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.brand:hover {
    text-decoration: none;
}

.brand__logo {
    height: 40px;
    width: auto;
    display: block;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.lang-switch a {
    display: flex;
    padding: 3px;
    border-radius: 6px;
    border: 2px solid transparent;
    line-height: 1;
}

.lang-switch a:hover {
    text-decoration: none;
    background: var(--color-bg);
}

.lang-switch a.is-active {
    border-color: var(--color-brand);
}

.lang-switch__flag {
    font-size: 1.15rem;
    filter: grayscale(70%);
    transition: filter 0.15s ease;
}

.lang-switch a.is-active .lang-switch__flag,
.lang-switch a:hover .lang-switch__flag {
    filter: grayscale(0%);
}

.main-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-brand-dark);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__toggle {
    background: none;
    border: none;
    font: inherit;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown__toggle::after {
    content: '';
    border: 4px solid transparent;
    border-top-color: var(--color-text-muted);
    margin-top: 3px;
}

.nav-dropdown.is-open .nav-dropdown__toggle {
    color: var(--color-brand-dark);
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 8px;
    z-index: 30;
}

.nav-dropdown.is-open .nav-dropdown__menu {
    display: block;
}

.nav-dropdown__menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.92rem;
    color: var(--color-text);
    white-space: nowrap;
}

.nav-dropdown__menu a:hover {
    background: var(--color-bg);
    text-decoration: none;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive nav collapse */
@media (max-width: 860px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        order: 3;
        border-top: 1px solid var(--color-border);
        margin-top: 14px;
        padding-top: 8px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav > a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-dropdown {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-dropdown__toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 4px;
    }

    .nav-dropdown__menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        border-radius: 0;
        background: var(--color-bg);
        min-width: 0;
        padding: 0 0 8px 16px;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: block;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }
}

/* Hero */
.hero {
    padding: 64px 0 48px;
    text-align: center;
}

/* Hero carousel */
.hero-carousel {
    position: relative;
    height: min(56vh, 560px);
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0 48px;
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-carousel__slide.is-active {
    opacity: 1;
}

.hero-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 16, 14, 0.75) 0%, rgba(20, 16, 14, 0.15) 55%, rgba(20, 16, 14, 0.05) 100%);
}

.hero-carousel__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 32px;
    text-align: center;
    color: #fff;
}

.hero-carousel__content h1 {
    color: #fff;
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.75rem);
}

.hero-carousel__content p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.hero-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.hero-carousel__arrow:hover {
    background: rgba(255, 255, 255, 0.35);
}

.hero-carousel__arrow--prev {
    left: 16px;
}

.hero-carousel__arrow--next {
    right: 16px;
}

.hero-carousel__dots {
    position: absolute;
    bottom: 16px;
    right: 24px;
    display: flex;
    gap: 8px;
}

.hero-carousel__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
}

.hero-carousel__dot.is-active {
    background: #fff;
}

.hero__badge {
    display: inline-block;
    background: #f0e3d4;
    color: var(--color-brand-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    margin: 0 0 12px;
}

.hero p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Category tiles */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0 56px;
}

.category-tile {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

/* Section heading */
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 48px 0 20px;
}

.section-heading h2 {
    font-size: 1.5rem;
    margin: 0;
}

.section-heading a {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Product grid + card */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.product-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: var(--color-text);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

.product-card__image {
    aspect-ratio: 1 / 1;
    background: #f0e9df;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.06);
}

.product-grid--feature {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-grid--feature .product-card__image {
    aspect-ratio: 4 / 3;
}

.product-card__body {
    padding: 14px 16px;
}

.product-card__name {
    font-weight: 600;
    margin: 0 0 4px;
}

.product-card__price {
    color: var(--color-brand-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px 0 56px;
}

@media (min-width: 780px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
    }
}

/* Product gallery */
.gallery__main {
    background: #f0e9df;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery__main img:hover {
    transform: scale(1.03);
}

.gallery__placeholder {
    padding: 40px;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery__thumb {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: #f0e9df;
    flex-shrink: 0;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery__thumb.is-active {
    border-color: var(--color-brand);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 14, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 40px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 2.4rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lightbox__nav--prev {
    left: 16px;
}

.lightbox__nav--next {
    right: 16px;
}

.product-detail h1 {
    margin-top: 0;
    font-size: 1.75rem;
}

.product-detail__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    margin: 8px 0 16px;
}

.breadcrumb {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 24px 0 0;
}

/* Contact / bank cards */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin: 32px 0 56px;
}

@media (min-width: 780px) {
    .contact-layout {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.contact-info-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 20px;
}

.contact-info-card h3 {
    margin-top: 0;
}

.contact-info-card p {
    margin: 6px 0;
    color: var(--color-text-muted);
}

.fb-embed-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

.fb-embed-card .fb-page,
.fb-embed-card iframe {
    width: 100% !important;
}

.bank-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
}

.bank-card__name {
    font-weight: 700;
}

.bank-card__account {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    margin: 4px 0;
}

form.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    background: var(--color-surface);
    color: var(--color-text);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.btn {
    display: inline-block;
    background: var(--color-brand);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    align-self: flex-start;
}

.btn:hover {
    background: var(--color-brand-dark);
    text-decoration: none;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert--success {
    background: #e4f3ec;
    color: #1c6b4a;
}

.alert--error {
    background: #fbe9e7;
    color: #a5341f;
}

/* Static content pages (About us, Production, Map, Gallery items) */
.content-page {
    max-width: 860px;
    margin: 24px auto 56px;
}

.content-page h1 {
    text-align: center;
    margin-bottom: 24px;
}

.content-page__image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.content-page__image img {
    width: 100%;
    height: auto;
}

.content-page__body {
    color: var(--color-text);
    line-height: 1.8;
}

.content-page__body p {
    margin: 0 0 14px;
}

.content-page__body img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 12px 0;
}

.page-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.page-gallery__item {
    padding: 0;
    border: none;
    background: #f0e9df;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.page-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.page-gallery__item:hover img {
    transform: scale(1.06);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    margin-top: 64px;
    padding: 32px 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
}

.footer-grid p {
    margin: 2px 0;
}

.footer-grid__about strong {
    color: var(--color-text);
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.social-link:hover {
    color: var(--color-brand-dark);
    text-decoration: none;
}

.footer-grid__copy {
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

@media (min-width: 700px) {
    .footer-grid {
        grid-template-columns: 1.3fr 1fr;
        text-align: left;
    }

    .footer-grid__copy {
        grid-column: 1 / -1;
        text-align: center;
    }
}
