@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --color-primary: #4a1c28; /* Bordo */
    --color-secondary: #c5a073; /* Altın/Şampanya */
    --color-dark: #2a0f16;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fcfbfa;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Kategori Sekmeleri İçin Gizli Scrollbar */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-tab.active {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    border-color: var(--color-primary);
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:active {
    transform: scale(0.98);
}

/* Menü ve kategori: tüm ürün/kategori görselleri aynı kare boyutta */
.menu-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f3f4f6;
}

@supports not (aspect-ratio: 1 / 1) {
    .menu-image-frame::before {
        content: "";
        display: block;
        padding-top: 100%;
    }
}

.menu-image-frame > img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.menu-image-frame > .menu-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

/* Kart gövdesi: fiyat satırı hizalı kalsın */
.product-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    width: 100%;
    min-height: 5.5rem;
    padding: 0.65rem 0.75rem 0.85rem;
}

.product-card-body .product-card-title {
    width: 100%;
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1.25;
    color: #1f2937;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.product-card-body .product-card-desc {
    width: 100%;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
    font-size: 0.625rem;
    line-height: 1.35;
    color: #6b7280;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 1 1 auto;
    min-height: 0;
}

@media (min-width: 768px) {
    .product-card-body {
        padding: 0.85rem 1rem 1rem;
        min-height: 6rem;
    }

    .product-card-body .product-card-title {
        font-size: 0.9rem;
    }

    .product-card-body .product-card-desc {
        font-size: 0.6875rem;
    }
}

/* Dil seçici — açılır menü */
.lang-dropdown {
    position: relative;
    z-index: 40;
}

.lang-dropdown__toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    min-height: 44px;
    padding: 0.5rem 2rem 0.5rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 28, 40, 0.15);
    background: #fff;
    color: var(--color-primary);
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 28, 40, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-dropdown__toggle:hover,
.lang-dropdown.is-open .lang-dropdown__toggle {
    border-color: var(--color-secondary);
    box-shadow: 0 4px 14px rgba(74, 28, 40, 0.12);
}

.lang-dropdown__title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-secondary);
    line-height: 1.2;
}

.lang-dropdown__current {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.2;
}

.lang-dropdown__icon {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--color-secondary);
    transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-dropdown__icon {
    transform: translateY(-50%) rotate(180deg);
}

.lang-dropdown__toggle {
    position: relative;
}

.lang-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 11rem;
    width: max-content;
    margin: 0;
    padding: 0.35rem;
    list-style: none;
    border-radius: 0.75rem;
    border: 1px solid rgba(74, 28, 40, 0.12);
    background: #fff;
    box-shadow: 0 8px 24px rgba(74, 28, 40, 0.15);
}

.lang-dropdown__menu[hidden] {
    display: none;
}

.lang-dropdown__option {
    display: block;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-dropdown__option:hover {
    background: rgba(197, 160, 115, 0.15);
}

.lang-dropdown__option.is-active {
    background: var(--color-primary);
    color: var(--color-secondary);
    font-weight: 600;
}

.lang-dropdown--dark .lang-dropdown__toggle {
    background: rgba(17, 17, 17, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.lang-dropdown--dark .lang-dropdown__title {
    color: var(--color-secondary);
}

.lang-dropdown--dark .lang-dropdown__current {
    color: #fff;
}

.lang-dropdown--dark .lang-dropdown__menu {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.1);
}

.lang-dropdown--dark .lang-dropdown__option {
    color: #f3f3f3;
}

.lang-dropdown--dark .lang-dropdown__option.is-active {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Eski TR|EN pill (ana sayfa vb.) */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.lang-switcher--dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.lang-switcher--light {
    background: rgba(74, 28, 40, 0.06);
    border-color: rgba(74, 28, 40, 0.12);
}

.lang-switcher__btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switcher--dark .lang-switcher__btn {
    color: rgba(255, 255, 255, 0.75);
}

.lang-switcher--dark .lang-switcher__btn:hover,
.lang-switcher--dark .lang-switcher__btn.is-active {
    background: var(--color-secondary);
    color: #fff;
}

.lang-switcher--light .lang-switcher__btn {
    color: var(--color-primary);
}

.lang-switcher--light .lang-switcher__btn:hover,
.lang-switcher--light .lang-switcher__btn.is-active {
    background: var(--color-primary);
    color: var(--color-secondary);
}
