* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --autumn-orange: #F0862E;
    --autumn-copper: #BD734C;
    --autumn-rose: #BD734C;
    --page-bg: #24130F;
    --card-bg: #391A15;
    --surface-raised: #6C2F1A;
    --navbar-bg: #391A15;
    --hero-bg: #391A15;
    --section-bg: #2B1712;
    --footer-bg: #1A100D;
    --autumn-rust: #A74216;
    --accent-blue: #BD734C;
    --discord-blue: #F0862E;
    --text-primary: #ffffff;
    --text-secondary: #C8A99B;
    --success: #F0862E;
    --danger: #A74216;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    color: var(--text-primary);
    min-height: 100vh;
}


.navbar-top {
    background: var(--navbar-bg);
    padding: 0 2.5rem;
    height: 90px;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(240, 134, 46, 0.25);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(240, 134, 46, 0.4);
}

.navbar-brand h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--autumn-orange), var(--autumn-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(240, 134, 46, 0.15);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    border-radius: 6px;
    border: 1px solid rgba(240, 134, 46, 0.3);
    background: rgba(240, 134, 46, 0.07);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-discord-login {
    background: var(--discord-blue);
    color: #24130F;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-discord-login:hover {
    background: #A74216;
}

.btn-discord-login svg {
    flex-shrink: 0;
}

.btn-auth,
.btn-logout {
    background: var(--autumn-orange);
    color: #24130F;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-auth:hover,
.btn-logout:hover {
    background: var(--autumn-rust);
}

.btn-register {
    background: var(--autumn-rust);
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}

.burger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.burger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


.hero-section {
    background: var(--hero-bg);
    padding: 3.5rem 2.5rem;
    border-bottom: 1px solid rgba(240, 134, 46, 0.3);
    text-align: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--autumn-orange), var(--autumn-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.hero-cta {
    display: inline-block;
    background: var(--autumn-orange);
    color: #24130F;
    text-decoration: none;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.hero-cta:hover {
    background: var(--autumn-rust);
}


.search-bar-top {
    background: var(--section-bg);
    padding: 1rem 2.5rem;
    border-bottom: 1px solid rgba(240, 134, 46, 0.15);
    display: flex;
    justify-content: center;
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(240, 134, 46, 0.25);
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    width: 100%;
    max-width: 560px;
    transition: border-color 0.2s;
}

.search-wrap:focus-within {
    border-color: var(--autumn-orange);
}

.search-icon {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    width: 100%;
    font-family: inherit;
}

.search-input::placeholder {
    color: var(--text-secondary);
}


.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.item-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s;
    opacity: 0;
}

.item-card:hover {
    border-color: rgba(240, 134, 46, 0.5);
}

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

.item-card.card-visible {
    animation: cardSlideIn 0.35s ease forwards;
}

.item-image {
    height: 200px;
    background: var(--surface-raised);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.item-info {
    padding: 1.1rem 1.25rem 1.25rem;
}

.item-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.item-description {
    color: var(--text-secondary);
    font-size: 0.83rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.filters-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: rgba(240, 134, 46, 0.4);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--autumn-orange);
    border-color: var(--autumn-orange);
    color: #24130F;
}

.price-container {
    display: flex;
    align-items: center;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.euro-icon {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.buy-btn {
    background: var(--autumn-orange);
    color: #24130F;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    white-space: nowrap;
}

.buy-btn:hover {
    background: var(--autumn-rust);
}

.buy-btn:active {
    opacity: 0.85;
}


.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.no-results span {
    font-size: 2rem;
}


@media (max-width: 1024px) {
    .navbar-top { padding: 0 1.75rem; }
    .container { padding: 1.75rem 1.75rem; }
    .hero-section { padding: 3rem 1.75rem; }
    .search-bar-top { padding: 1rem 1.75rem; }
}

@media (max-width: 768px) {
    .navbar-top {
        padding: 0 1.25rem;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .burger-btn { display: flex; }

    .navbar-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        flex: none;
        background: #391A15;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(240, 134, 46, 0.15);
        gap: 0.1rem;
    }

    .navbar-links.open { display: flex; }

    .navbar-actions {
        width: 100%;
        justify-content: center;
        padding-bottom: 0.25rem;
    }

    .hero-section { padding: 2rem 1.25rem; }
    .hero-stats { gap: 1.5rem; }

    .search-bar-top { padding: 0.75rem 1.25rem; }
    .search-wrap { max-width: 100%; }

    .container { padding: 1.25rem; }
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand h1 { font-size: 1.1rem; }
    .navbar-brand img { width: 30px; height: 30px; }
    .shop-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .hero-section { padding: 1.75rem 1rem; }
    .hero-stats { gap: 1.25rem; }
    .stat-num { font-size: 1.3rem; }
    .container { padding: 1rem; }
    .item-image { height: 160px; }
    .item-info { padding: 0.85rem 1rem 1rem; }
    .item-info h3 { font-size: 0.9rem; }
    .item-description { font-size: 0.78rem; }
}

@media (max-width: 360px) {
    .shop-grid { grid-template-columns: 1fr; }
}

.kwzz-toast {
    position: fixed;
    top: 108px;
    right: 18px;
    background: var(--card-bg);
    border: 1px solid rgba(240, 134, 46, 0.4);
    color: var(--text-primary);
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 290px;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.kwzz-toast.toast-warn {
    border-color: rgba(234, 179, 51, 0.4);
}

.toast-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast-msg {
    color: var(--text-secondary);
    line-height: 1.4;
}

.toast-msg strong {
    color: var(--text-primary);
    font-weight: 600;
}