
body {
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Vazirmatn', sans-serif;
}

.bg-primary { background-color: #0b1022; }
.text-primary { color: #0b1022; }
.border-primary { border-color: #0b1022; }

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    overflow-y: auto;
}

.admin-content {
    background: white;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow-y: auto;
    display: flex;
}

.admin-sidebar {
    width: 280px;
    background: #1f2937;
    color: white;
    padding: 20px 0;
    overflow-y: auto;
}

.admin-main {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafb;
}

.admin-menu-item {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #374151;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-menu-item:hover {
    background: #374151;
}

.admin-menu-item.active {
    background: #3b82f6;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.cart-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.product-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

@media (max-width: 768px) {
    .admin-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}
