@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600&display=swap');

/* ===== VARIABLES ===== */
:root {
    --primary-color: #282828;
    --color-heart: #EA442B;
    --easing: cubic-bezier(.7,0,.3,1);
    --duration: .5s;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fff;
    color: rgb(82, 80, 80);
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== HEADER STYLES ===== */
header {
    color: rgb(82, 80, 80);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 82px;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 301;
}

.header-left {
    flex: 1;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}
.logo img {
    height: 58px;
    width: auto;
    object-fit: contain;
}
.header-right-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-button {
    font-size: 14px;
    font-weight: 600;
    color: #525050 !important;
    line-height: 20px;
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.header-right {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
}

.header-right i {
    font-size: 18px;
    display: inline-block;
    vertical-align: middle;
}

.language-selector {
    cursor: pointer;
    user-select: none;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 8px;
    margin-top: 8px;
    z-index: 999;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
}
.language-selector.open .language-dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.language-option {
    padding: 10px 18px;
    color: #525050;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-radius: 8px;
}
.language-option:hover {
    background: #f7f7f7;
    color: var(--primary-color);
}

.login-button {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: rgb(82, 80, 80);
}

.menu-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: rgb(82, 80, 80);
    padding-right: 2px;
}

.menu-button i {
    font-size: 20px;
}

/* ===== MAIN CONTENT STYLES ===== */
main {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    max-width: none;
    margin: 0;
}

.restaurant-info {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 64px;
    border-bottom: 1px solid #eee;
}

.restaurant-info h1 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    margin: 0;
    font-size: 30px;
}

.info-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #222;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-top: 12px;
}

.info-button i {
    font-size: 22px;
    display: flex;
    align-items: center;
}

.dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    align-items: center;
    position: relative;
}

.tab-button {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: rgb(82, 80, 80);
    color: #fff;
    border-color: rgb(82, 80, 80);
}

.search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    position: relative;
}

.search-container input {
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    width: 200px;
}

.search-container i {
    position: absolute;
    right: 45px;
    color: #777;
}

.filter-button {
    background: none;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    color: rgb(82, 80, 80);
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.menu-item-container {
    height: 100%;
    width: 100%;
    min-height: 152px;
}

.menu-item {
    background-color: #fff;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px;
    height: 100%;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-content .item-title {
    font-size: 16px;
    font-weight: 700;
    color: rgb(82, 80, 80);
    margin-bottom: 10px;
}

.item-content .item-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Maksimum satır */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgb(82, 80, 80);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 35px;
}

.price {
    font-weight: 700;
    color: rgb(82, 80, 80);
    font-size: 18px;
}

.price-small {
    font-size: 14px !important;
    text-wrap: nowrap;
}

.item-image {
    width: 100px;
    height: 100px;
    position: relative;
    margin-left: 15px;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
}

.item-image img {
    width: 133.33px;
    height: 100px;
    object-fit: cover;
    object-position: center;
}

.favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: white;
    padding: 4px;
    margin: 0;
    outline: none;
    cursor: pointer;
    transition: transform var(--duration) var(--easing);
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.like-wrapper {
    display: grid;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 16px;
    height: 16px;
}

.heart {
    width: 16px;
    height: 16px;
    display: block;
    transform-origin: center 80%;
}

.heart svg {
    width: 100%;
    height: 100%;
}

.heart path {
    stroke: var(--color-heart);
    stroke-width: 2;
    fill: transparent;
    transition: fill var(--duration) var(--easing);
}

.favorite-button.liked .heart path {
    fill: var(--color-heart);
}

.favorite-button.liked .heart {
    animation-name: heart-bounce;
    animation-duration: var(--duration);
    animation-timing-function: var(--easing);
}

.favorite-button .heart path {
    transition: fill var(--duration) var(--easing);
}

@keyframes heart-bounce {
    40% {
        transform: scale(0.7);
    }
    0%, 80%, 100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .search-container {
        width: 100%;
        margin-top: 15px;
    }
    .search-container input {
        width: 100%;
    }
}

/* ===== SIDE MENU STYLES ===== */
.side-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 1021;
    backdrop-filter: blur(4px);
}

.side-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100%;
    padding-top: 82px;
    background: #fff;
    box-shadow: -2px 0 16px rgba(0,0,0,0.08);
    border-top: none;
    transform: translateX(100%);
    transition: transform 0.3s;
    z-index: 1022;
    display: flex;
    flex-direction: column;
}

.side-menu-header {
    height: 80px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
}

/* ===== SIDE MENU NAVIGATION STYLES ===== */
.side-menu-links {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    max-height: calc(100% - 80px - 162px);
    position: relative;
}

/* ===== SIDE MENU DROPDOWN STYLES ===== */
.side-menu-dropdown {
    position: static;
}

.side-menu-dropdown-list {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.25s, max-height 0.35s ease;
}

.side-menu-dropdown-list.open {
    opacity: 1;
    max-height: 1000px;
}

.side-menu-footer-address-block {
    height: 162px;
    flex-shrink: 0;
    padding: 24px 32px 32px 32px;
    box-sizing: border-box;
    border-top: 1px solid #eee;
    width: 100%;
    background: #fff;
}

.side-menu.open {
    transform: translateX(0);
}

.side-current-branch {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    letter-spacing: 0.01em;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
}

.side-menu-address {
    font-size: 15px;
    color: #525050;
    text-align: left;
    line-height: 1.5;
    width: 100%;
}

.side-menu-phone {
    font-size: 16px;
    font-weight: 700;
    color: #525050;
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    padding: 0;
    border-radius: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.side-menu-phone span {
    font-weight: 600;
    margin-right: 2px;
}

.side-menu-phone a {
    color: #525050;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
}

.side-logo {
    height: 60px;
    width: auto;
    display: block;
    margin: 0 auto 8px auto;
}

.side-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
    margin-bottom: 24px;
    gap: 0;
}

.side-menu-link, .side-menu-dropdown-item {
    display: block;
    width: 100%;
    color: #525050;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 18px 32px;
    border-bottom: 1px solid #eee;
    background: none;
    text-align: left;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    position: relative;
}

.side-menu-dropdown-item {
    font-size: 16px;
    font-weight: 400;
    padding: 14px 48px 14px 48px;
}

.side-menu-link:visited, .side-menu-link:active, .side-menu-link:focus,
.side-menu-dropdown-item:visited, .side-menu-dropdown-item:active, .side-menu-dropdown-item:focus {
    color: #525050;
    text-decoration: none;
}

.side-menu-link:hover, .side-menu-dropdown-item:hover {
    color: var(--primary-color);
    background: #f7f7f7;
}

/* ===== SIDE MENU FOOTER STYLES ===== */
.side-menu-footer {
    margin-top: auto;
    padding: 0 32px 32px 32px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 600px) {
    .side-menu {
        width: 100vw;
        padding: 0;
    }
    .side-menu-header, .side-menu-content, .side-menu-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    .side-menu-link, .side-menu-branches-toggle, .side-menu-branch {
        padding-left: 16px;
        padding-right: 16px;
    }
    .side-menu-footer {
        padding-left: 0;
        padding-right: 0;
    }
}

.side-menu-contact-gap {
    padding-left: 8px;
}

.side-menu-mail {
    font-size: 16px;
    font-weight: 700;
    color: #525050;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.side-menu-mail a {
    color: #525050;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.side-menu-mail i {
    font-size: 18px;
    color: #525050;
}

.side-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 12px;
    margin-bottom: 0;
}

.side-menu-dropdown-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    color: #525050;
    padding: 18px 32px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s, color 0.2s;
}

.side-menu-dropdown-arrow {
    transition: transform 0.25s ease, color 0.2s;
    font-size: 20px;
    color: #525050;
}
.side-menu-dropdown-arrow.open {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.side-menu-link-text, .side-menu-dropdown-item-text {
    position: relative;
    display: inline-block;
}
.side-menu-link-text::after, .side-menu-dropdown-item-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: unset;
    bottom: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-in-out;
    opacity: 0.8;
    width: 100%;
    pointer-events: none;
}
.side-menu-link:hover .side-menu-link-text::after,
.side-menu-dropdown-item:hover .side-menu-dropdown-item-text::after,
.side-menu-dropdown-toggle.active .side-menu-link-text::after {
    transform: scaleX(1);
}

.flag-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 3px;
    object-fit: cover;
    display: inline-block;
}

.menu-section {
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    padding: 48px 64px;
}

/* ===== CATEGORY SECTION STYLES ===== */
.category-header {
    padding: 24px 64px;
    transition: all 0.3s ease;
}
.category-section {
    overflow: hidden;
}
.category-section, category-section-main {
    width: 100%;
    padding: 48px 64px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.category-section-top {
    min-height: 108px;
    transition: all 0.2s ease;
}

.category-section-top.collapsed {
    min-height: 62px;
}

.category-title-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-title-dropdown.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.category-title {
    font-size: 22px;
    font-weight: 700;
    color: rgb(82, 80, 80);
    margin: 0;
}

.category-title-dropdown i {
    font-size: 20px;
    color: rgb(82, 80, 80);
}

.category-search-container:focus-within {
    border: 2px solid #222;
}

/* ===== TAG BUTTON STYLES ===== */
.category-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    min-width: 0;
    max-width: 100%;
    transition: all 0.2s ease;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-tags::-webkit-scrollbar {
    display: none;
}

.category-tags:after {
    content: '';
    padding-right: 24px;
}

.tag-button {
    border: 1px solid #222;
    background: #fff;
    color: #222;
    border-radius: 0.25rem;
    padding: 8px 16px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    line-height: 20px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border 0.15s;
    white-space: nowrap;
}

.tag-button.active, .tag-button:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* ===== CATEGORY SEARCH & FILTER STYLES ===== */
.category-search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    padding: 0 16px;
    height: 40px;
    gap: 8px;
    min-width: 270px;
}

.category-search-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 15px;
    color: rgb(82, 80, 80);
    width: 120px;
    padding: 0;
    min-width: 240px;
}

.category-search-container i.ph-magnifying-glass {
    font-size: 18px;
    color: #888;
}

.category-filter-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #888;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 50%;
    transition: background 0.15s;
    width: 40px;
    min-width: 40px;
}

.category-filter-button i {
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-filter-button:hover {
    background: #f5f5f5;
}

.food-warning {
    display: flex;
    gap: 8px;
}

.warning-container {
    width: 24px;
    height: 24px;
    padding: 3px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.warning-container:hover {
    transform: scale(1.1);
}

.warning-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.warning-icon path,
.warning-icon circle,
.warning-icon rect,
.warning-icon polygon {
    fill: white;
}

.allergen {
    background-color: #b7a53f;
}

.spicy {
    background-color: #c41e09;
}

.healthy {
    background-color: #16a429;
}

.tooltip.bs-tooltip-top .tooltip-inner {
    background-color: #222;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 1000;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #222;
}

.allergen-info-button {
    min-width: 40px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.allergen-info-button i {
    font-size: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* MODAL STYLES */
.modal .modal-title {
    font-weight: 500;
}

.modal .modal-content {
    border-radius: 1rem;
    overflow: hidden;
    color: rgb(82, 80, 80);
}

.modal .modal-header {
    border: none;
    align-items: center;
    min-height: 3.5rem;
    position: relative;
    padding: 1rem 1.5rem;
}

.modal .btn-close {
    font-size: 0.75rem;
    padding: 0.5rem;
    opacity: 0.75;
    filter: contrast(1.5) brightness(0.8);
    margin: 0;
    transform: scale(0.9);
    position: absolute;
    right: 1.5rem;
    z-index: 1;
}

.btn-close.button-over-image {
    position: absolute;
    right: 15px;
    top: 15px;
    background-color: white;
    filter: none;
    opacity: 1;
    transform: scale(1.1);
    cursor: pointer;
    z-index: 1060;
}

.campaign-modal-dialog {
    height: 90%;
}

.campaign-image {
    max-height: 100%;
    object-fit: cover;
}

.modal .modal-body {
    padding: 1rem 1.5rem;
}

.modal .modal-body-scrollable {
    max-height: calc(670px - 3.5rem);
    overflow-y: auto;
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.modal .modal-body-scrollable::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

.modal .btn-dark {
    background-color: #000;
    color: #fff;
}

.modal .btn-secondary {
    background-color: #fff !important;
    color: #222 !important;
    border: 1px solid #222 !important;
    transition: all 0.2s ease-in-out !important;
}

.modal .btn-secondary:hover {
    background-color: #f5f5f5 !important;
}

.modal .btn-dark {
    background-color: #222 !important;
    border-color: #222 !important;
    transition: all 0.2s ease-in-out !important;
}

.modal .btn-dark:hover {
    background-color: #333 !important;
}

.modal .accordion-button {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    border: 0;
    background: transparent;
}

.modal .accordion-button:not(.collapsed) {
    color: inherit;
    background: transparent;
    box-shadow: none;
}

.modal .accordion-button:focus {
    box-shadow: none;
    border: 0;
}

.modal .accordion-body {
    padding: 0.5rem 1.5rem 1.25rem 1.5rem;
}

.modal .form-check {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0.75rem;
}

.modal .form-check-input {
    float: none;
    margin-left: 0;
    margin-right: 0.75rem;
    margin-top: 0;
}

.modal .form-check-label {
    margin-bottom: 0;
    font-size: 0.9375rem;
    color: rgb(82, 80, 80);
}

.modal .form-check-input:checked {
    background-color: #000;
    border-color: #000;
}

.modal .form-check-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: none;
}

.modal .list-group {
    margin: 0 1.5rem;
    border: 0;
}

.modal .list-group-item {
    padding: 1.25rem 0;
    border-left: 0;
    border-right: 0;
    background: transparent;
}

.modal .list-group-item.list-group-item-action {
    color: rgb(82, 80, 80) !important;
}

.modal .list-group-item.list-group-item-action:hover {
    color: rgb(60, 58, 58) !important;
    font-weight: 600;
}

.modal .list-group-item:first-child {
    border-top: 0;
}

.modal .list-group-item:last-child {
    border-bottom: 0;
}

.modal-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.modal-link:hover {
    color: inherit;
}

/* Hover Effects */
.hover-opacity-75:hover {
    opacity: 0.75;
}

.transition {
    transition: all 0.2s ease-in-out;
}

/* Button Hover Effects */
.modal .btn-secondary {
    background-color: #fff !important;
    color: #222 !important;
    border: 1px solid #222 !important;
    transition: all 0.2s ease-in-out !important;
}

.modal .btn-secondary:hover {
    background-color: #222 !important;
    color: #fff !important;
}

.modal .btn-dark {
    background-color: #000 !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
}

.modal .btn-dark:hover {
    background-color: #222 !important;
    color: #fff !important;
}

.modal .btn {
    padding: 0.625rem 1.25rem !important;  /* 10px üst-alt, 20px sağ-sol */
}

.filter-modal-accordion-toggle i {
    transition: transform 0.2s ease-in-out;
    font-size: 1.25rem;
    color: rgb(82, 80, 80);
}

.filter-modal-accordion-toggle.active i {
    transform: rotate(90deg);
}

.filter-modal-accordion-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    font-weight: 600;
    color: rgb(82, 80, 80);
}

.filter-modal-accordion-content {
    display: none;
}

.filter-modal-accordion-content.show {
    display: block;
}

.filter-modal-accordion-toggle.accordion-button::after {
    display: none;
}

.modal .modal-footer {
    padding: 1.25rem !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0) !important;
    opacity: 0 !important;
    backdrop-filter: blur(0px);
    transition: all 0.3s ease !important;
    z-index: 1040;
}

.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.65) !important;
    opacity: 1 !important;
    backdrop-filter: blur(4px);
}

.allergen-icon-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.allergen-icon-container .warning-icon {
    width: 24px;
    height: 24px;
}

.modal-auth-link {
    color: var(--primary-color);
}

.modal-text-sm {
    font-size: 14px;
}


@media (max-width: 1200px) {
    .restaurant-info,
    .menu-section,
    .category-section, .category-section-main {
        padding: 48px 48px;
    }
    .category-header {
        padding: 24px 48px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 992px) {
    .restaurant-info,
    .menu-section,
    .category-section, .category-section-main {
        padding: 48px 32px;
    }
    .category-header {
        padding: 24px 32px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .restaurant-info,
    .menu-section,
    .category-section, .category-section-main {
        padding: 36px 24px;
    }
    .category-header {
        padding: 24px 24px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 576px) {
    .restaurant-info,
    .menu-section,
    .category-section, .category-section-main {
        padding: 32px 16px;
    }
    .category-header {
        padding: 24px 16px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 400px) {
    .category-search-container,
    .category-search-input {
        max-width: 250px;
        min-width: auto;
    }
}

.modal {
    z-index: 1050;
}

/* Product Modal Styles */
.product-modal-dialog {
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
}

.product-modal-dialog .modal-content {
    border-radius: 0;
    border: none;
    height: 100vh;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(82, 80, 80);
}

.new-badge {
    background: #EA442B;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-desc {
    color: rgb(82, 80, 80);
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-info {
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    margin-top: -1.5rem;
    position: relative;
}

.product-modal-dialog .favorite-button {
    position: static;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
}

@media (min-width: 576px) {
    .product-modal-dialog {
        max-width: 600px;
        margin: 1.75rem auto;
        height: auto;
        width: auto;
    }

    .product-modal-dialog .modal-content {
        border-radius: 1rem;
        height: auto;
    }

    .product-image-container {
        height: 50vh;
    }
}

/* Custom Livewire Product Animations */
.product-fade {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}
.product-fade.product-fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.product-fade.product-fade-out {
    opacity: 0;
    transform: translateY(-30px);
}

.product-fade-out {
    opacity: 0 !important;
    transform: translateY(30px) scale(0.98) !important;
    transition: opacity 0.12s cubic-bezier(.4,0,.2,1), transform 0.12s cubic-bezier(.4,0,.2,1);
}

.empty-products-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-radius: 18px;
    margin: 32px 0;
    padding: 32px 16px;
    transition: background 0.2s;
}
.empty-products-icon {
    margin-bottom: 18px;
    opacity: 0.7;
}
.empty-products-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}
.empty-products-desc {
    color: #888;
    font-size: 1rem;
    text-align: center;
}

.mb-6 {
    margin-bottom: 4rem !important;
}
