/* Ana Stil Dosyası */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    /* Mobil alt menü için padding ekle */
    padding-bottom: 60px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Logo */
.logo-img {
    max-height: 50px;
    max-width: 200px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Kategori Kartları */
.category-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding-top: 75%; /* 4:3 aspect ratio */
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-img-container img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
    text-align: center;
}

.category-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ürün Kartları */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #fff;
}

.product-card .card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #333;
}

.product-card .card-text {
    color: #6c757d;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-card .price {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.25rem;
    margin-bottom: 0;
    margin-top: auto;
}

.category-badge {
    position: absolute;
    top: -15px;
    right: 10px;
    background-color: #0d6efd;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Kategori Banner */
.category-banner {
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.category-banner:hover::before {
    background: rgba(0, 0, 0, 0.4);
}

.category-banner-content {
    position: relative;
    color: white;
    text-align: center;
    padding-top: 100px;
    z-index: 2;
}

.category-banner-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.category-banner-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

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

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

/* Kategori Tabs */
.category-tabs {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-radius: 10px;
}

.category-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #0d6efd #f0f0f0;
}

.category-nav::-webkit-scrollbar {
    height: 6px;
}

.category-nav::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.category-nav::-webkit-scrollbar-thumb {
    background-color: #0d6efd;
    border-radius: 10px;
}

.category-nav .nav-link {
    color: #495057;
    border-radius: 20px;
    padding: 8px 20px;
    margin: 0 5px;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-nav .nav-link.active {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 2px 5px rgba(13, 110, 253, 0.3);
}

.category-nav .nav-link:hover:not(.active) {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

/* Öne Çıkan Ürünler Slider */
.featured-products-slider {
    position: relative;
    margin: 0 -15px;
    padding: 0 15px;
}

.featured-products-slider .row {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.featured-products-slider .row::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Ürün Açıklama Kısaltma */
.product-description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.read-more {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0;
    margin-top: -0.5rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.read-more:hover {
    text-decoration: underline;
    color: #0a58ca;
}

/* Modal Düzenlemeleri */
.modal-body img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease-in-out;
}

.modal-content {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .product-card .card-img-top {
        height: 150px;
    }
    
    .category-banner {
        height: 200px;
    }
    
    .category-banner-content {
        padding-top: 60px;
    }
    
    .category-banner-content h1 {
        font-size: 2rem;
    }
    
    /* Logo için mobil düzenleme */
    .logo-img {
        max-height: 40px;
        max-width: 150px;
    }
    
    /* Kategori başlıkları için mobil düzenleme */
    .category-title {
        font-size: 0.95rem;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler */
@media (max-width: 576px) {
    .logo-img {
        max-height: 35px;
        max-width: 120px;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .price {
        font-size: 1rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    /* Kategori başlıkları için daha küçük ekran düzenlemesi */
    .category-title {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 3rem;
}

footer a {
    transition: color 0.3s ease, transform 0.3s ease;
}

footer a:hover {
    transform: translateY(-2px);
}

footer .social-icons a {
    display: inline-block;
    margin-right: 15px;
    transition: transform 0.3s ease;
}

footer .social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Sayfa Başlıkları */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Butonlar */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    border-radius: 20px;
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

/* Öne Çıkan Ürünler Başlığı */
.featured-products h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.featured-products h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Sıralama için sürükle bırak stilleri */
.sortable-item {
    cursor: grab;
    position: relative;
}

.sortable-item:active {
    cursor: grabbing;
}

.sortable-handle {
    cursor: grab;
    color: #6c757d;
}

.sortable-handle:hover {
    color: #0d6efd;
}

.sort-buttons {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sort-btn {
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1;
}

/* Öne çıkan ürünler için geliştirilmiş stiller */
.featured-section {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #ff6b6b, #ff9e7d, #ffd082);
}

.featured-title {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
}

.featured-title:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: #ff6b6b;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.featured-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: none;
    margin: 0 5px;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.featured-card .card-img-top {
    height: 120px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img-top {
    transform: scale(1.05);
}

.featured-card .card-body {
    padding: 12px;
}

.featured-card .card-title {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card .price {
    font-weight: 700;
    color: #ff6b6b;
    font-size: 1rem;
    margin-top: 5px;
}

.featured-card .category-tag {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    display: inline-block;
    margin-bottom: 5px;
}

.featured-controls {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.featured-controls:hover {
    opacity: 1;
    background-color: #ff6b6b;
    color: white;
}

.featured-controls.prev {
    left: 10px;
    transform: translateY(-50%);
}

.featured-controls.next {
    right: 10px;
    transform: translateY(-50%);
}

.featured-products-container {
    position: relative;
    padding: 0 20px;
}

/* Kategori bölümü için geliştirilmiş stiller */
.category-section {
    padding: 20px 0;
}

.category-title-main {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
}

.category-title-main:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Ana Slider Stilleri */
.main-slider {
    position: relative;
    width: 100%;
    height: 450px; /* Daha küçük slider yüksekliği */
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 0 0 10px 10px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 1;
}

.slider-item.active {
    opacity: 1;
    z-index: 2;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    max-width: 800px;
}

.slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease-out;
}

.slider-description {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.slider-button {
    font-size: 1rem;
    padding: 8px 25px;
    border-radius: 30px;
    background-color: #ff6b6b;
    border-color: #ff6b6b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 1.2s ease-out;
}

.slider-button:hover {
    background-color: #ff5252;
    border-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Slider Kontrolleri */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.slider-arrows {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.slider-arrow:hover {
    background-color: white;
    transform: scale(1.1);
}

.slider-arrow.prev {
    margin-right: auto;
}

.slider-arrow.next {
    margin-left: auto;
}

/* Responsive Slider */
@media (max-width: 992px) {
    .main-slider {
        height: 400px;
    }
    
    .slider-title {
        font-size: 2rem;
    }
    
    .slider-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-slider {
        height: 300px;
    }
    
    .slider-title {
        font-size: 1.8rem;
    }
    
    .slider-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .slider-button {
        font-size: 0.9rem;
        padding: 7px 20px;
    }
}

@media (max-width: 576px) {
    .main-slider {
        height: 250px;
    }
    
    .slider-title {
        font-size: 1.5rem;
    }
    
    .slider-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .slider-button {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .slider-arrow {
        width: 30px;
        height: 30px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}

/* Sayfa içi bağlantılar */
.page-link {
    color: #0d6efd;
    border-radius: 5px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.page-item.active .page-link:hover {
    background-color: #0b5ed7;
}

/* Geri dönüş butonu */
.back-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-button.visible {
    opacity: 1;
    visibility: visible;
}

.back-button:hover {
    background-color: #0b5ed7;
    transform: translateY(-5px);
}

/* Mobil Alt Menü Stilleri */
.mobile-bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.mobile-bottom-menu .menu-container {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.mobile-bottom-menu .menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.mobile-bottom-menu .menu-item.active {
    color: #0d6efd;
}

.mobile-bottom-menu .menu-item i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.mobile-bottom-menu .menu-item:hover {
    color: #0d6efd;
    transform: translateY(-3px);
}

/* Garson Çağırma Butonu Özel Stili */
.mobile-bottom-menu .menu-item#waiterCallBtn {
    background-color: #dc3545;
    color: #ffffff;
    border-radius: 20px;
    padding: 5px 10px;
    margin-top: -5px;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.mobile-bottom-menu .menu-item#waiterCallBtn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.mobile-bottom-menu .menu-item#waiterCallBtn i {
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0% { transform: rotate(0); }
    5% { transform: rotate(15deg); }
    10% { transform: rotate(-15deg); }
    15% { transform: rotate(10deg); }
    20% { transform: rotate(-10deg); }
    25% { transform: rotate(5deg); }
    30% { transform: rotate(-5deg); }
    35% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

/* Garson Çağırma Modal Stili */
#waiterCallModal .modal-content {
    border-radius: 15px;
    overflow: hidden;
}

#waiterCallModal .modal-header {
    background-color: #dc3545;
    color: white;
    border-bottom: none;
}

#waiterCallModal .modal-header .btn-close-white {
    color: white;
}

#waiterCallModal .form-label {
    font-weight: 600;
}

#waiterCallModal .btn-primary {
    background-color: #dc3545;
    border-color: #dc3545;
}

#waiterCallModal .btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Mobil Alt Menü Responsive */
@media (max-width: 768px) {
    .mobile-bottom-menu {
        display: block;
    }
}

/* Off-Canvas Mobil Menü Stil Ayarları */
.offcanvas-custom-width {
    --bs-offcanvas-width: 300px; /* Genişliği buradan ayarlayabilirsiniz */
    background-color: var(--header-color); /* Arkaplan rengini header ile aynı yapar */
    color: var(--header-text-color); /* Yazı rengini header ile aynı yapar */
}

.offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas-header .offcanvas-title {
    color: var(--header-text-color);
}

/* Off-canvas kapatma (X) butonunu beyaz yapar */
.offcanvas-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-body .nav-link {
    color: var(--header-text-color);
    opacity: 0.8;
    font-size: 1.1rem;
    padding: 0.75rem 0.5rem;
    border-radius: 5px;
}

.offcanvas-body .nav-link:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas-body .nav-link.active {
    opacity: 1;
    font-weight: bold;
    color: var(--mobile-menu-active-color, #ffffff); /* Aktif link rengi */
}

.offcanvas-body hr {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
