:root {
    --bg: #1a1a1a;
    --bg-elevated: #2a2a2a;
    --bg-soft: #3a3a3a;
    --accent: #b8a600;
    --accent-soft: rgba(184,166,0,0.15);
    --accent-strong: #cc9828;
    --text: #f5f5f5;
    --text-soft: #a8a8a8;
    --danger: #dc3545;
    --success: #28a745;
    --border-subtle: rgba(255,255,255,0.12);
    --radius: 10px;
    --shadow-soft: 0 8px 25px rgba(0,0,0,0.4);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.3);
    --transition: all 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--text);
    min-height: 100vh;
}

/* Layout */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(184,166,0,0.3);
}

.logo-text {
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-size: 1.15rem;
}

.logo-text span {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(42,42,42,0.8);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    position: relative;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-strong);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 14px;
    border-radius: 25px;
    background: rgba(42,42,42,0.9);
    border: 1px solid var(--border-subtle);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(184,166,0,0.4);
}

.nav-ghost {
    opacity: 0.85;
}

/* Main */

.main {
    min-height: calc(100vh - 116px);
    padding: 2rem 0 3rem;
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, rgba(184,166,0,0.08) 0%, transparent 60%),
                linear-gradient(135deg, var(--bg-elevated) 0%, #2a2a2a 100%);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-strong);
    margin-bottom: 0.8rem;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-text {
    color: var(--text-soft);
    max-width: 38rem;
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 6px 12px;
    border-radius: 25px;
    background: rgba(42,42,42,0.8);
    border: 1px solid var(--border-subtle);
}

.hero-tag {
    align-self: center;
    justify-self: flex-end;
    padding: 1.2rem 1.4rem;
    border-radius: 16px;
    background: rgba(42,42,42,0.95);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    max-width: 240px;
}

.tag-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.hero-tag p {
    font-size: 0.92rem;
}

/* Section headers */

.section-header {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

.section-header p {
    color: var(--text-soft);
    font-size: 0.98rem;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.6rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.02rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    color: #111;
    box-shadow: 0 4px 16px rgba(184,166,0,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,166,0,0.4);
}

.btn-ghost {
    background: rgba(42,42,42,0.9);
    color: var(--text);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    background: rgba(42,42,42,1);
    border-color: var(--accent);
}

.btn-disabled {
    background: rgba(58,58,58,0.8);
    color: var(--text-soft);
    cursor: not-allowed;
}

/* Alerts */

.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    margin-bottom: 1.6rem;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(40,167,69,0.15);
    color: var(--success);
    border: 1px solid rgba(40,167,69,0.3);
}

/* Products */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: rgba(42,42,42,0.95);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

.product-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #404040, #303030);
    color: var(--text-soft);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    border: 1px solid rgba(42,42,42,0.9);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.badge-out {
    background: rgba(220,53,69,0.95);
    color: #fff;
}

.badge-low {
    background: var(--accent-strong);
    color: #111;
}

.product-body {
    padding: 1.2rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.product-name a {
    color: var(--text);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--accent-strong);
}

.product-description {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.product-highlight {
    font-size: 0.9rem;
    color: var(--accent-strong);
    font-style: italic;
}

.product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.product-price-wrap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-strong);
}

.product-stock {
    font-size: 0.88rem;
}

.product-stock.in-stock {
    color: var(--success);
}

.product-stock.out-of-stock {
    color: var(--danger);
}

.add-to-cart-form {
    margin-top: 0.2rem;
}

/* Empty state */

.empty-state {
    padding: 3.2rem 2rem;
    text-align: center;
    color: var(--text-soft);
    background: rgba(42,42,42,0.9);
    border-radius: 14px;
    border: 1px dashed var(--border-subtle);
}

/* Orders (user) */

.my-orders {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}

.user-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 0.8rem;
}

.user-order-card {
    background: rgba(42,42,42,0.95);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.5rem 1.3rem;
    box-shadow: var(--shadow-card);
}

.user-order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.user-order-card h5 {
    margin: 0;
    font-size: 1.05rem;
}

.order-date {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.order-status-badge {
    padding: 6px 14px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-nová {
    background: rgba(0,123,255,0.15);
    color: #4dabf7;
}
.status-zpracováváno {
    background: rgba(255,193,7,0.15);
    color: #f39c12;
}
.status-připraveno {
    background: rgba(40,167,69,0.15);
    color: var(--success);
}
.status-expedováno {
    background: rgba(108,117,125,0.15);
    color: #adb5bd;
}
.status-dokončeno {
    background: rgba(40,167,69,0.2);
    color: #28a745;
}
.status-zrušeno {
    background: rgba(220,53,69,0.15);
    color: var(--danger);
}

.order-payment-info,
.order-items-summary {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 0.6rem;
}

.order-items-summary ul {
    margin-top: 0.4rem;
    padding-left: 1.3rem;
}

.order-items-summary li {
    margin-bottom: 0.2rem;
}

.order-total-price {
    text-align: right;
    margin-top: 0.8rem;
    font-weight: 600;
    color: var(--accent-strong);
    font-size: 1rem;
}

.no-orders {
    text-align: center;
    padding: 2rem 1.6rem;
    border-radius: 12px;
    background: rgba(42,42,42,0.9);
    border: 1px dashed var(--border-subtle);
    color: var(--text-soft);
}

/* Footer */

.footer {
    border-top: 1px solid var(--border-subtle);
    background: rgba(26,26,26,0.8);
    padding: 1.8rem 0 2rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.footer-note {
    opacity: 0.9;
}

/* Responsive */

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 1.8rem 1.6rem;
    }
    .hero-tag {
        justify-self: flex-start;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 0.8rem 0 1rem;
        gap: 0.8rem;
    }
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .main {
        padding-top: 1.6rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }
    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    .hero {
        padding: 1.6rem 1.4rem;
    }
    .product-body {
        padding: 1rem;
    }
}
