:root {
    --primary-color: #006d77; /* Koyu turkuaz/petrol mavisi */
    --primary-light: #83c5be; /* Açık turkuaz - hover efektleri için */
    --secondary-color: #e29578; /* Somon - vurgular için */
    --text-color: #2c3338;
    --border-color: #edf6f9;
    --shadow-color: rgba(0, 109, 119, 0.1);
    --background-light: #fafafa;
    --text-muted: #6c757d;
    --text-light: #ffffff;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-light);
    margin: 0;
    padding: 0;
}

/* Geri dön butonu için yeni stil */
.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    color: white;
}

@media (max-width: 768px) {
    .back-button {
        left: 25px;
        width: 35px;
        height: 35px;
    }
}

.pdf-menu {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    box-shadow: 0 0 20px var(--shadow-color);
    border-radius: 8px;
    min-height: calc(100vh - 150px);
}

.menu-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.menu-header img {
    max-width: 120px;
    height: auto;
}

.category-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.category-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-title-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 109, 119, 0.7));
    padding: 20px;
    color: white;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.category-content {
    padding: 20px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: background-color 0.5s ease;
}

.product-item:last-child {
    border-bottom: none;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 500;
}

.product-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.product-price .main-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 16px;
}

.product-price .discounted-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: normal;
}

.no-products {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .pdf-menu {
        margin: 10px;
        padding: 15px;
    }

    .category-header {
        height: 150px;
    }

    .category-title {
        font-size: 20px;
    }

    .category-content {
        padding: 15px;
    }

    .product-item {
        flex-direction: column;
    }

    .product-price {
        margin-top: 10px;
    }
}

/* Hover efektleri */
.category-section:hover .category-image {
    transform: scale(1.05);
}

.product-item:hover {
    background-color: var(--border-color);
    transition: background-color 0.3s ease;
}

/* Alerjen bildirimi için yeni stiller */
.allergen-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.allergen-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.allergen-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.allergen-item:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: var(--text-light);
}

.allergen-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

/* Alerjen gösterimi için yeni stiller */
.product-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    align-items: center;
}

.allergen-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-right: 4px;
}

.product-allergen {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--border-color);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--primary-color);
    transition: all 0.2s ease;
}

.product-allergen:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.product-allergen i {
    font-size: 11px;
}

.allergen-text {
    font-size: 11px;
    font-weight: 500;
}

/* Mobil görünüm için düzenleme */
@media (max-width: 768px) {
    .product-allergens {
        gap: 6px;
    }

    .product-allergen {
        padding: 3px 6px;
    }
}

/* Tooltip artık gerek kalmadığı için kaldırılabilir */
.product-allergen:hover::after {
    display: none;
}

/* Popup için yeni stiller */
.allergen-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 109, 119, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.allergen-popup.active {
    display: flex;
}

.allergen-popup-content {
    background: var(--text-light);
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.allergen-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    line-height: 1;
}

.allergen-close:hover {
    transform: scale(1.1);
}

/* Alerjen butonu - Sol alt */
.show-allergens {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow-color);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 900;
    transition: all 0.3s ease;
}

.show-allergens:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Yukarı kaydır butonu - Sağ alt */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Mobil görünüm için düzenlemeler */
@media (max-width: 768px) {
    .show-allergens {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
        font-size: 14px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

/* Alt kategori stilleri */
.sub-category {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.sub-category-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid var(--primary-color);
}

/* Mobil görünüm için alt kategori stilleri */
@media (max-width: 768px) {
    .sub-category {
        margin-top: 20px;
        padding-top: 15px;
    }

    .sub-category-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

/* Güncellenmiş Arama kutusu stilleri */
.search-container {
    position: sticky;
    top: 0;
    z-index: 999;
    background: white;
    padding: 15px;
    box-shadow: 0 2px 10px var(--shadow-color);
    border-radius: 8px;
    margin: 0 0 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    -webkit-appearance: none; /* Safari için */
    appearance: none;
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--shadow-color);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    pointer-events: none; /* İkonun tıklanabilir olmasını engelle */
}

/* Arama sonuçları için dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-color);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-top: 5px;
}

.search-result-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--border-color);
}

.search-result-item .result-category {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-weight: 500;
}

.search-result-item .result-name {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
}

/* Mobil için güncellenmiş stiller */
@media (max-width: 768px) {
    .search-container {
        margin: 0 0 15px 0;
        padding: 10px;
    }

    .search-input {
        padding: 10px 40px 10px 15px;
        font-size: 14px;
    }

    .search-icon {
        right: 15px;
        font-size: 14px;
    }

    .search-result-item {
        padding: 10px;
    }

    .search-result-item .result-category {
        font-size: 11px;
    }

    .search-result-item .result-name {
        font-size: 13px;
    }

    /* iOS için input stillerini düzelt */
    input[type="text"],
    input[type="search"] {
        -webkit-appearance: none;
        margin: 0;
    }
}

/* Scroll bar stilleri */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a03238;
}

/* Dil seçimi dropdown stilleri */
.language-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-dropdown select {
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    background-color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23006d77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}


.language-dropdown select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-color);
}

/* Mobil cihazlar için düzenleme */
@media (max-width: 768px) {
    .language-dropdown {
        top: 20px;
        right: 25px;
    }

    .language-dropdown select {
        padding: 6px 28px 6px 10px;
        font-size: 13px;
    }
}

/* Copyright stili */
.copyright {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--text-light);
    border-top: 1px solid var(--border-color);
}

.copyright p {
    margin: 0;
}

.copyright span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Mobil görünüm için düzenleme */
@media (max-width: 768px) {
    .copyright {
        margin-top: 30px;
        padding: 15px 0;
        font-size: 12px;
    }
}