:root {
    --primary: #152943;
    --primary-hover: #2c9885;
    --secondary: #ff7f50;
    --dark: #333;
    --light: #f8f9fa;
    --danger: #e74c3c;
    --success: #152943;
    --warning: #f39c12;
    --info: #C9AF96;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: var(--primary);
    color: #C9AF96;
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-logo {
    position: relative;
    margin-right: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.logo-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

.logo-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.cart-icon {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    color: #C9AF96;
}

.cart-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--danger);
    color: #C9AF96;
    border-radius: 50%;
    font-size: 14px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category filter */
.categories {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-btn {
    background-color: #C9AF96;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 500;
    color: #152943;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.category-btn:hover {
    background-color: #f0f0f0;
}

.category-btn.active {
    background-color: var(--primary);
    color: #C9AF96;
}

/* Menu grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.menu-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.menu-item:hover {
    transform: translateY(-5px);
}

.menu-item-content {
    padding: 20px;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item-category {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-item-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--success);
}

.menu-item-actions {
    margin-top: 15px;
}

.options-badge {
    background-color: var(--info);
    color: #152943;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 65px;
}

.menu-item-ac.table-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #C9AF96;
    color: #152943;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

/* Options modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
    padding: 20px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.close-button, .modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    position: absolute;
    top: 10px;
    right: 15px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.option-group {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.option-group h3, .option-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.option-item:hover {
    background-color: #f8f9fa;
}

.option-label, .option-name {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.option-price {
    font-weight: 600;
    color: var(--success);
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-quantity {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.options-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Cart popup */
.cart-popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.cart-popup.open {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cart-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.cart-popup-header h2 {
    margin: 0;
    color: var(--primary);
}

.cart-popup-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cart-popup-close:hover {
    color: var(--dark);
}

.empty-cart {
    text-align: center;
    padding: 30px 0;
    color: #666;
}

.empty-cart i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

.empty-cart p {
    font-size: 18px;
    margin-bottom: 10px;
}

.cart-items-container {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-options small {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 2px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    margin-top: 10px;
    justify-content: space-between;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.quantity-control {
    display: flex;
    align-items: center;
}

.cart-summary {
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #C9AF96;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--info);
    color: #152943;
}

.btn-secondary {
    background-color: var(--secondary);
    color: #C9AF96;
}

.btn-secondary:hover {
    background-color: #e67e22;
}

.btn-success {
    background-color: var(--success);
    color: #C9AF96;
}

.btn-success:hover {
    background-color: #219651;
}

.btn-danger {
    background-color: var(--danger);
    color: #C9AF96;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #C9AF96;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background-color: var(--primary); /* Hover efektini engelle */
    color: #C9AF96;
}

/* Quantity input */
.quantity-input {
    display: flex;
    align-items: center;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background-color: #f0f2f5;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-value {
    width: 40px;
    height: 30px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.quantity-value:focus {
    outline: none;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-icon {
    font-size: 20px;
}

.alert-message {
    flex: 1;
}

.alert-close {
    cursor: pointer;
    color: #999;
    font-size: 18px;
}

.alert-hide {
    animation: fadeOut 0.3s;
}

/* Description popup */
.description-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.description-popup.open {
    display: flex;
}

.description-popup-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 10px;
    max-width: 80%;
    max-height: 70%;
    overflow-y: auto;
    text-align: center;
    position: relative;
}

.description-popup-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.description-popup-close:hover {
    color: black;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.image-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.4);
    animation: zoomIn 0.3s;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Ürün resimleri */
.menu-item-image {
    width: 100%;
    height: 180px;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-item-image:hover img {
    transform: scale(1.05);
}

.menu-item-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 40px;
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    color: #666;
}

.loading-spinner i {
    margin-right: 10px;
    font-size: 24px;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .cart-item-details {
        flex-direction: column;
    }
    
    .cart-item-actions {
        margin-top: 15px;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .modal-content, .cart-popup-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .description-popup-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .categories {
        padding-bottom: 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .cart-icon {
        align-self: flex-end;
    }
}
 /* Toggle switch container styling */
    .toggle-switch-container {
        display: flex;
        align-items: center;
        margin-right: 15px;
    }
    
    /* Label text styling */
    .toggle-label {
        margin-right: 8px;
        font-size: 0.85rem;
        color: white;
    }
    
    /* The switch - the box around the slider */
    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 46px;
        height: 24px;
    }

    /* Hide default HTML checkbox */
    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    /* The slider */
    .toggle-slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: .4s;
        border-radius: 24px;
    }

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

    .toggle-switch input:checked + .toggle-slider {
        background-color: var(--secondary-color);
    }

    .toggle-switch input:focus + .toggle-slider {
        box-shadow: 0 0 1px var(--secondary-color);
    }

    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(22px);
    }
    
    /* Style for when images are hidden */
    .hide-images .menu-item-image {
        display: none;
    }
    
    /* Adjust menu item layout when images are hidden */
    .hide-images .menu-item-content {
        grid-template-columns: 1fr;
    }
 /* Theme toggle button styling */
    .theme-toggle-container {
        margin-right: 15px;
    }
    
    .theme-toggle-btn {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: white;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
    }
    
    .theme-toggle-btn:hover {
        transform: rotate(15deg);
    }
    
    /* Dark mode variables and classes */
/* Update these Dark mode variables in your existing CSS */
/* Updated Dark mode variables with #000614 background */
:root {
    --primary-color: <?= $primary_color ?>;
    --secondary-color: <?= $secondary_color ?>;
    --bg-color: #f8f9fa;
    --text-color: #333;
    --card-bg: #fff;
    --border-color: #e1e1e1;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --popup-bg: #fff;
    --popup-text: #333;
    --input-bg: #f5f5f5;
    --input-border: #ddd;
    --category-bg: #f5f5f5;
    --category-active-bg: var(--secondary-color);
    --category-text: #333;
    --category-active-text: #fff;
}

body.dark-mode {
    --bg-color: #000614;          /* Very dark blue-black as requested */
    --text-color: #e6eaf0;        /* Light blue-white for readability */
    --card-bg: #ffffff14;           /* Slightly lighter for cards */
    --border-color: #001c42;      /* Medium blue for borders */
    --shadow-color: rgba(0, 0, 20, 0.7);
    --popup-bg: #00102a;          /* Match card background */
    --popup-text: #e6eaf0;        /* Match text color */
    --input-bg: #001a38;          /* Slightly lighter input fields */
    --input-border: #002452;      /* Blue borders for inputs */
    --category-bg: #001a38;       /* Match inputs */
    --category-active-bg: var(--secondary-color);
    --category-text: #e6eaf0;     /* Match text */
    --category-active-text: #fff;
    --button-hover: #002452;      /* Hover color for buttons */
}

/* Apply these variables to your UI elements */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 8px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.dark-mode .menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.menu-item-name, .menu-item-category, .menu-item-price {
    color: var(--text-color);
}

.cart-popup-content, .description-popup-content, .modal-content {
    background-color: var(--popup-bg);
    color: var(--popup-text);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.cart-item {
    border-bottom: 1px solid var(--border-color);
}

/* Input styles */
body.dark-mode .quantity-input, 
body.dark-mode .cart-item-quantity {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-color);
}

body.dark-mode .quantity-btn {
    background-color: var(--input-border);
    color: var(--text-color);
}
body.dark-mode .option-item:hover{
	    background-color: #c9af96;
    color: #00040c;
}
/* Category buttons */
body.dark-mode .categories {
    background-color: #000920; /* Slightly lighter than main background */
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .category-btn {
    background-color: var(--category-bg);
    color: var(--category-text);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

body.dark-mode .category-btn:hover {
    background-color: var(--button-hover);
}

body.dark-mode .category-btn.active {
    background-color: var(--category-active-bg);
    color: var(--category-active-text);
    border-color: var(--category-active-bg);
}

/* Button styling */
body.dark-mode .btn {
    transition: all 0.2s ease;
}

body.dark-mode .btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
	color: var(--bg-color);
}

body.dark-mode .btn-primary:hover {
    background-color: #d3bd9e; /* Lighter version of secondary color */
    border-color: #d3bd9e;
}

body.dark-mode .btn-secondary {
    background-color: var(--input-bg);
    border-color: var(--input-border);
}

body.dark-mode .btn-secondary:hover {
    background-color: var(--button-hover);
}

/* Header and footer */
body.dark-mode .footer {
    background-color: #000410; /* Slightly darker than main background */
    border-top: 1px solid var(--border-color);
}

body.dark-mode .header {
    background-color: #000410; /* Slightly darker than main background */
    border-bottom: 1px solid var(--border-color);
}

/* Modal close buttons */
body.dark-mode .cart-popup-close,
body.dark-mode .description-popup-close,
body.dark-mode .close-button,
body.dark-mode .image-modal-close {
    color: var(--text-color);
}

/* Alert styling */
body.dark-mode .alert {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

body.dark-mode .alert-info {
    border-left: 4px solid var(--secondary-color);
}

/* Toggle switch */
body.dark-mode .toggle-slider {
    background-color: #001a38;
}

body.dark-mode .toggle-switch input:checked + .toggle-slider {
    background-color: var(--secondary-color);
}

/* No image placeholder */
body.dark-mode .no-image {
    background-color: var(--input-bg);
    color: #4a6284;
    border: 1px dashed var(--border-color);
}

/* Empty cart message */
body.dark-mode .empty-cart i,
body.dark-mode .empty-cart p {
    color: #4a6284;
}

body.dark-mode .empty-cart span {
    color: #718096;
}
    
    /* Specific adjustments for dark mode */
    body.dark-mode .quantity-input, 
    body.dark-mode .cart-item-quantity {
        background-color: #2a2a2a;
        border-color: #444;
        color: #f1f1f1;
    }
    
    body.dark-mode .toggle-slider {
        background-color: #555;
    }
    
    body.dark-mode .categories {
    }
    
    body.dark-mode .category-btn {
            background-color: #141a26;
    color: #c9af96;
    }
    
    body.dark-mode .category-btn.active {
        background-color: var(--secondary-color);
		color: #000410;
    }
  .header-controls {
        display: flex;
        align-items: flex-start;
    }
    
    /* Individual control item */
    .control-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: 15px;
    }
    
    /* Control labels */
    .control-label {
        font-size: 0.75rem;
        color: white;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Keep existing button styles but ensure vertical alignment */
    .toggle-switch-container, .theme-toggle-container, .cart-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Responsive adjustments */
    @media (max-width: 576px) {
        .control-label {
            font-size: 0.7rem;
        }
        
        .control-item {
            margin-left: 10px;
        }
        
        /* Ensure the header isn't too crowded on mobile */
        .header-content {
            padding: 10px 0;
        }
    }
/* Dark mode compatibility for popup */
.dark-mode .popup-container {
    background-color: #333;
    color: #fff;
}
/* (other dark mode styling) */
.search-container {
    margin: 15px 0;
    padding: 0 10px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 50px;
    padding: 8px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.dark-mode .search-bar {
    background-color: #2a2a2a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.search-bar:focus-within {
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.search-icon {
    color: #666;
    margin-right: 10px;
    font-size: 16px;
}

.dark-mode .search-icon {
    color: #bbb;
}

#menuSearch {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #333;
}

.dark-mode #menuSearch {
    color: #eee;
}

#menuSearch::placeholder {
    color: #999;
}

.dark-mode #menuSearch::placeholder {
    color: #777;
}

.clear-search {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search:hover {
    color: #666;
}

.dark-mode .clear-search:hover {
    color: #bbb;
}

.search-results-info {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    border-radius: 5px;
    margin: 10px 0;
    display: none;
}

.dark-mode .search-results-info {
    background: #333;
    color: #bbb;
}

/* For when no results are found */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
}

.no-results i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 20px;
}

.dark-mode .no-results i {
    color: #555;
}

/* Hide categories when searching */
.searching .categories {
    display: none !important;
}
/* Arama ikonu stili */
.search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C9AF96;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Mobil arama container - varsayılan olarak gizli */
.search-container {
    display: none;
    margin: 15px 0;
    padding: 0 10px;
    transition: all 0.3s ease;
}

/* Aktif olduğunda arama container'ı göster */
.search-container.active {
    display: block;
    animation: fadeIn 0.3s;
}

/* Mobil ekranlarda özel stil */
@media (max-width: 768px) {
    .search-bar {
        padding: 12px 15px;
    }
    
    #menuSearch {
        font-size: 16px;
    }
    
    .search-icon {
        font-size: 18px;
    }
}

/* Arama animasyonu */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .categories-wrapper {
        position: relative;
        overflow: hidden;
    }
    
    .categories {
    position: relative;
    overflow-x: auto;
    width: 110%;
    margin-left: -19px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    }
    
    .categories::-webkit-scrollbar {
        display: none;
    }
    
    .categories-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to right, transparent, var(--bg-color));
        pointer-events: none;
        z-index: 2;
    }
    
    .categories-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 30px;
        background: linear-gradient(to left, transparent, var(--bg-color));
        pointer-events: none;
        z-index: 2;
    }
}
.categories-wrapper {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    height: 80px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    margin: 0 -20px;
    padding: 0px 20px;
    transition: box-shadow 0.3s ease;
}

/* Kaydırma sırasında gölge ekle */
.categories-wrapper.scrolled {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Dark mode uyumluluğu */
body.dark-mode .categories-wrapper {
    background-color: var(--bg-color);
    border-bottom-color: var(--border-color);
}