/* [BLOCK 1/2] Bitte mit "Weiter" fortfahren. */
:root {
    --primary-color: #8b5cf6; /* Schönes Lila */
    --secondary-color: #7c3aed; /* Dunkleres Lila */
    --background-dark: #0f172a;
    --background-medium: #1e293b;
    --background-light: #334155;
    --text-light: #f8fafc;
    --text-dark: #cbd5e1;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --discord-blue: #5865f2;
    --discord-dark-blue: #4338ca;
    --accent-orange: #f59e0b;
    --border-color: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background-dark);
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary-color);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0; /* Prevent auth section from shrinking */
}

.discord-login {
    background: var(--discord-blue);
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.discord-login:hover {
    background: var(--discord-dark-blue);
    transform: translateY(-1px);
}

.cart-icon {
    position: relative;
    background: var(--primary-color);
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-orange);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-info {
    display: none;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.logout-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333; /* Darker red */
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem; /* Make it easier to click */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding: 2rem 0;
}

.section {
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--background-medium);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

h1, h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 600;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 2.2rem;
}

.hero {
    text-align: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--background-medium) 0%, var(--background-light) 100%);
    border-radius: 16px;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--background-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: var(--background-light);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.team-member img {
    width: 100px; /* Oder eine andere feste Breite, z.B. 100px */
    height: auto; /* Höhe automatisch anpassen, um Proportionen zu bewahren */
    max-width: 100%; /* Stellt sicher, dass das Bild nicht überläuft */
    border-radius: 0; /* KEIN Kreis mehr - macht es quadratisch/rechteckig */
    margin-bottom: 1rem;
    border: none; /* KEIN Rahmen mehr */
    object-fit: cover; /* Passt das Bild so an, dass es den Bereich ausfüllt, ohne die Proportionen zu verzerren */
    /* Wenn du möchtest, dass das ganze Bild sichtbar ist, ohne Zuschnitt, nutze object-fit: contain;
       dann kann es aber sein, dass Ränder entstehen, wenn das Bild nicht quadratisch ist. */
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.team-member p:first-of-type {
    color: var(--text-dark);
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Shop Section */
.shop-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--background-light);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.shop-item {
    background: var(--background-light);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.shop-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.item-image {
    width: 80px; /* Breite des Bildcontainers */
    height: 80px; /* Höhe des Bildcontainers */
    margin: 0 auto 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--primary-color), 0.5);
    overflow: hidden; /* Wichtig, damit das Bild nicht über den Container hinausragt */
}

.item-image img {
    max-width: 100%; /* Bild füllt den Container aus */
    max-height: 100%; /* Bild füllt den Container aus */
    object-fit: contain; /* Bild wird skaliert, um in den Container zu passen */
    display: block; /* Entfernt zusätzlichen Platz unter dem Bild */
}


.item-category {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
    color: var(--text-light);
}

.item-description {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px; /* Ensure consistent height */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.quantity-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    line-height: 1; /* Center text vertically */
}

.quantity-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(var(--primary-color), 0.5);
    color: var(--text-light);
    padding: 0.5rem;
    border-radius: 5px;
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield; /* Standard property */
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart {
    background: var(--success-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: 100%;
}

.add-to-cart:hover {
    background: #059669;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
}

.contact-grid div {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-grid div:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Person Styling */
.contact-person {
    text-align: center;
    position: relative;
}

.contact-avatar {
    width: 120px;
    height: auto;
    max-width: 100%;
    border-radius: 16px;
    margin: 0 auto 1rem;
    display: block;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.contact-person h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-role {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem !important;
    font-size: 1rem;
    font-style: italic;
}

.contact-methods {
    margin-top: 1.5rem;
}

.contact-link {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0.25rem;
}

.contact-link:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-grid h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.contact-grid p {
    margin-bottom: 0.5rem;
}

.contact-grid ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    text-align: left;
    padding-left: 20px;
}

.contact-grid ul li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    overflow: auto; /* Enable scrolling for modal content */
}

.modal-content {
    background: var(--background-medium);
    margin: 5vh auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 1px solid var(--background-light);
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: all 0.3s ease;
    line-height: 1;
}

.close:hover {
    color: var(--text-light);
    transform: scale(1.2) rotate(90deg); /* Add a rotate effect */
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 1rem 0;
    background: rgba(var(--primary-color), 0.1);
    border-radius: 10px;
    gap: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item img { /* Angepasst für Bilder im Warenkorb */
    width: 50px;
    height: 50px;
    border-radius: 5px;
    display: block;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: var(--text-light);
}

.cart-item-price {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.cart-total {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: var(--primary-color);
    border-top: 1px solid rgba(var(--primary-color), 0.5);
    padding-top: 1.5rem;
}

.checkout-btn {
    background: linear-gradient(45deg, var(--success-color), #20c997);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(var(--success-color), 0.4);
}

.remove-item {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* --- Responsive Design (Mobile First) --- */

/* Generelle Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .container {
        padding: 0 15px; /* Etwas weniger Padding an den Seiten */
    }

    .logo {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.5rem; /* Kleinere Überschriften für mobile Geräte */
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 8rem 0 3rem; /* Weniger Padding oben */
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.5rem; /* Etwas weniger Margin */
    }

    /* Navigation für Mobile */
    nav {
        flex-wrap: nowrap; /* Verhindere, dass Elemente umbrechen */
        justify-content: space-between;
        padding: 0.8rem 20px;
    }

    .nav-links {
        display: none; /* Menüpunkte standardmäßig ausblenden */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Unterhalb des Headers */
        left: 0;
        background: rgba(0, 0, 0, 0.95); /* Dunkler Hintergrund für Overlay */
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        border-top: 1px solid var(--secondary-color);
        overflow-y: auto; /* Scrollbar, falls zu viele Links */
        max-height: calc(100vh - 60px); /* Nicht den ganzen Bildschirm einnehmen */
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Startposition außerhalb des Bildschirms */
        z-index: 999; /* Unter dem Header, aber über anderem Inhalt */
        padding-bottom: 1rem; /* etwas Padding am Ende */
    }

    .nav-links.active {
        display: flex; /* Menüpunkte anzeigen, wenn aktiv */
        transform: translateY(0); /* Einblenden */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 1rem 0;
        width: 100%;
        display: block; /* Links füllen die gesamte Breite aus */
        border-radius: 0; /* Keine runden Ecken für volle Breite */
    }

    .auth-section {
        margin-left: auto; /* Schiebt die Auth-Section nach rechts */
        gap: 0.5rem; /* Weniger Abstand */
    }
    
    .discord-login {
        padding: 0.5rem 1rem; /* Kleinere Buttons */
        font-size: 0.9rem;
    }

    .cart-icon {
        padding: 0.5rem; /* Kleinere Icon-Area */
        font-size: 1rem;
    }
    
    .user-info {
        gap: 0.5rem;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hamburger-menu {
        display: flex; /* Hamburger-Menü auf Mobilgeräten anzeigen */
    }

    /* Grid-Anpassungen */
    .stats-grid, .team-grid, .shop-grid, .contact-grid {
        grid-template-columns: 1fr; /* Alle Elemente untereinander */
        gap: 1.5rem;
    }

    .stat-item, .team-member, .shop-item, .contact-grid > div {
        padding: 1.5rem; /* Weniger Innenabstand */
    }

    .shop-filters {
        flex-direction: column; /* Filter untereinander */
        align-items: stretch; /* Filter volle Breite */
    }

    .filter-btn {
        width: 100%; /* Filter-Buttons volle Breite */
        padding: 0.8rem;
    }

    /* Modal auf Mobile */
    .modal-content {
        width: 95%; /* Etwas breiter auf kleineren Bildschirmen */
        margin: 2vh auto; /* Weniger vertikaler Abstand */
        padding: 1.5rem;
    }
}

/* Anpassungen für sehr kleine Bildschirme (z.B. iPhone SE) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    .auth-section {
        flex-direction: column; /* Buttons untereinander, falls Platz sehr eng */
        align-items: flex-end;
    }
    .discord-login, .cart-icon, .user-info {
        width: 100%; /* Volle Breite für Buttons/Info */
        justify-content: flex-end;
    }
    .cart-icon {
        border-radius: 10px; /* Quadratische Form, wenn volle Breite */
    }
    .discord-login {
        margin-bottom: 0.5rem;
    }
}

/* Footer */
footer {
    background: var(--background-dark);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

footer p {
    color: var(--text-dark);
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
}

footer p:first-child {
    font-weight: 600;
    color: var(--text-light);
    font-size: 1rem;
}

.clan-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-medium);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.clan-status:hover {
    border-color: var(--success-color);
    transform: translateY(-1px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    position: relative;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

/* Orders Section */
.orders-login-prompt {
    text-align: center;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.login-prompt-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.login-prompt-content p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.orders-header h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

.orders-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.order-search-input {
    padding: 0.8rem 1rem;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.3s ease;
}

.order-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--background-light);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orders-list {
    display: grid;
    gap: 1.5rem;
}

.order-item {
    background: var(--background-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.order-header {
    padding: 1.5rem;
    background: var(--background-medium);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-id {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.order-date {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.order-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid #f59e0b;
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.order-content {
    padding: 1.5rem;
}

.order-items {
    margin-bottom: 1rem;
}

.order-items h4 {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.order-item-list {
    display: grid;
    gap: 0.8rem;
}

.order-item-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--background-medium);
    border-radius: 8px;
}

.order-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--background-dark);
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.order-item-quantity {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.order-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.order-total-label {
    font-weight: 600;
    color: var(--text-light);
}

.order-total-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.no-orders {
    text-align: center;
    padding: 3rem;
    background: var(--background-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.no-orders h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-orders p {
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* Mobile Responsive for Orders */
@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .orders-search {
        flex-direction: column;
    }
    
    .order-search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .order-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .order-item-entry {
        flex-direction: column;
        text-align: center;
    }
    
    .order-total {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}