/* Main App Styles - Bonum Fast Food */
:root {
    --primary-yellow: #e63030;
    --hover-yellow: #c42020;
    --bg-main: #ffffff;
    --bg-secondary: #f7f7f7;
    --bg-card: #ffffff;
    --text-main: #1f2026;
    --text-muted: #8b8e99;
    --text-gray: #4d4f59;
    --border-color: #e2eaf1;
    --accent-color: #e63030;
    color-scheme: light;
    --uzum-purple: #e63030;
    --uzum-yellow: #e63030;
    --uzum-gray: #8b8e99;
    --uzum-border: #e2eaf1;
    --uzum-dark: #1f2026;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary-yellow);
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar form {
    display: flex;
    width: 100%;
}

.search-bar input {
    width: 100%;
    background: #f5f5f5;
    border: 1px solid transparent;
    padding: 12px 20px;
    border-radius: 12px 0 0 12px;
    color: #000;
    outline: none;
    transition: 0.2s;
    font-size: 15px;
}

.search-bar input:focus {
    background: #fff;
    border-color: var(--primary-yellow);
}

.search-btn {
    padding: 0 25px;
    background: var(--primary-yellow);
    color: #fff;
    border: none;
    border-radius: 0 12px 12px 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.search-btn:hover {
    background: var(--hover-yellow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.2s;
    font-size: 12px;
    text-decoration: none;
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover {
    color: #000;
}

.nav-item span {
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-yellow);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

/* Layouts */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Category Slider/Grid */
.top-categories {
    margin-bottom: 30px;
}

.category-list-vertical {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.category-item-v {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
}

.category-item-v:hover {
    border-color: var(--primary-yellow);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.category-item-v.active {
    border-color: var(--primary-yellow);
    background: var(--primary-yellow);
    color: black;
}

.category-item-v.active i {
    color: black !important;
}

.category-item-v img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Banner Slider */
.slider-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.slide {
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    max-width: 500px;
    z-index: 2;
}

.slide-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
}

.slide-text {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary-yellow);
    width: 30px;
    border-radius: 5px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--primary-yellow);
    color: #000;
    border-color: var(--primary-yellow);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Products Grid */
.section-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #1a1a1a;
    border-left: 5px solid var(--primary-yellow);
    padding-left: 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

.product-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary-yellow);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: #fdfdfd;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 2;
}

.badge-new {
    background: var(--primary-yellow);
    color: #fff;
}

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 3;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.wishlist-btn.active {
    color: #ff4757;
    background: white;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a1a;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.product-rating {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.product-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.old-price {
    font-size: 12px;
    color: var(--text-dim);
    text-decoration: line-through;
}

.current-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-yellow);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--primary-yellow);
    color: #fff;
    transform: scale(1.1);
}

/* Sidebars */
.sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--dark-card);
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--dark-border);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--dark-border);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 28px;
    cursor: pointer;
}

.sidebar-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

/* Profile Sidebar Specific Styles */
.info-card {
    background: #fff;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.info-label {
    color: #666;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.info-value {
    color: #000;
    font-size: 14px;
    font-weight: 800;
}

.order-badge {
    background: #ef4444;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
}

.profile-order-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.order-status {
    background: #22c55e;
    color: #fff;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
}

.order-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 800;
    color: #1a1a1a;
    margin-top: 10px;
}

.order-product {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #222;
}

.order-product img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.order-stars {
    color: #FFD700;
    font-size: 9px;
    margin-top: 6px;
}

.sharh-input-group {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.sharh-input {
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 15px;
    color: #000;
    font-size: 12px;
    outline: none;
}

.btn-ok {
    background: var(--primary-yellow);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 16px;
    font-weight: 900;
    cursor: pointer;
}

.edit-input {
    width: 100%;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-top: 5px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 28px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    text-align: center;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: toastSlideIn 0.3s ease-out forwards;
    border-left: 4px solid var(--primary-yellow);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease-in forwards;
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--dark-border);
    display: none;
    justify-content: space-around;
    padding: 12px 0 25px 0;
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.bottom-nav-item.active {
    color: var(--primary-yellow);
}

.bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

/* Detail Page Custom */
.product-detail {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.product-detail-image {
    flex: 1;
    max-width: 500px;
}

.product-detail-info {
    flex: 1;
}

/* Checkout Layout */
.checkout-layout {
    display: flex;
    gap: 40px;
}

.checkout-form-container {
    flex: 1.5;
}

.checkout-summary {
    flex: 1;
    background: var(--dark-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--dark-border);
    height: fit-content;
    position: sticky;
    top: 100px;
}

/* Generic Buttons */
.btn-white {
    background: #fff;
    color: #000;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-yellow-main {
    background: var(--primary-yellow);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Cart Page */
.cart-layout {
    display: flex;
    gap: 30px;
}

.cart-items-container {
    flex: 1.5;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--dark-border);
    transition: background 0.2s;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.cart-summary-container {
    flex: 1;
}

.cart-summary {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 100px;
}

/* Detail Page Images */
.product-detail-image img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
}

/* Admin Empty State */
.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
}

.admin-empty-state i {
    font-size: 48px;
    color: #333;
    margin-bottom: 15px;
    display: block;
}

.admin-empty-state p {
    font-size: 14px;
    color: #666;
}

/* Admin Internal Search */
.tab-internal-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f0f0;
    border: 1px solid #eee;
    padding: 8px 15px;
    border-radius: 8px;
}

.tab-internal-search input {
    background: transparent;
    border: none;
    color: #000;
    outline: none;
    font-size: 13px;
}

.tab-internal-search i {
    color: #555;
    font-size: 13px;
}

/* Forms */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-input,
.form-group input,
.form-group textarea {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #e2eaf1;
    padding: 15px;
    border-radius: 12px;
    color: #1f2026;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-yellow);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .slider-container {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-top {
        flex-wrap: wrap;
    }

    .search-bar {
        width: 100%;
        order: 2;
    }

    .nav-actions {
        display: none !important;
    }

    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-detail {
        flex-direction: column;
    }

    .checkout-layout {
        flex-direction: column;
    }

    .cart-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .slide-content {
        left: 30px;
    }

    .slide-title {
        font-size: 30px;
    }

    .category-list-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Sidebar Styling Fixes */
.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.03);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-item .item-img {
    width: 65px !important;
    height: 80px !important;
    min-width: 65px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-item .item-info {
    flex: 1;
    min-width: 0;
}

.sidebar-item .item-name {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item .item-price {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 800;
}


/* Sidebar Cart Items */
.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-item .item-img {
    width: 60px;
    height: 75px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-item .item-info {
    flex: 1;
    min-width: 0;
}

.sidebar-item .item-name {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item .item-price {
    font-size: 12px;
    color: var(--primary-yellow);
    font-weight: 700;
}