:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --secondary: #451a03;
    --bg: #fffcf2;
    --white: #ffffff;
    --text: #1f2937;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
}

/* НАВИГАЦИЯ */
.nav-bar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand { text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand-text { font-size: 1.5rem; font-weight: 800; color: var(--secondary); }
.brand-text .highlight { color: var(--primary); }

.nav-menu { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.nav-link { text-decoration: none; color: #4b5563; font-weight: 600; }
.nav-link.active { color: var(--primary); }

/* ЕДИННИ БУТОНИ */
.btn-universal {
    background-color: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-universal:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* СПЕЦИФИЧЕН БУТОН КОЛИЧКА (за да се отличава) */
.action-btn-cart {
    text-decoration: none;
    background: #fef3c7;
    color: #92400e;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-badge {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* ДИЗАЙН КАРТИ */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.container { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.product-card img { width: 100%; height: 230px; object-fit: cover; }
.product-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.product-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-size: 1.4rem; font-weight: 800; color: var(--primary-dark); }

.user-profile { display: flex; gap: 10px; align-items: center; background: #f3f4f6; padding: 5px 15px; border-radius: 10px; }
.logout-link { color: #ef4444; text-decoration: none; font-weight: bold; font-size: 0.8rem; }