/* CSS Stylesheet for Capitalist E-shop */
:root {
    --bg-dark: #0a0a0c;
    --bg-card: #131318;
    --bg-card-hover: #1a1a22;
    --gold: #d4af37;
    --gold-hover: #f3e5ab;
    --gold-dark: #997a15;
    --text-bright: #ffffff;
    --text-muted: #a0a0aa;
    --border-color: rgba(212, 175, 55, 0.2);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-dark); color: var(--text-bright); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .logo { font-family: var(--font-heading); letter-spacing: 1px; }
.gold-text { color: var(--gold); background: linear-gradient(135deg, #fcf6ba 0%, #bf953f 50%, #aa771c 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gold-divider { width: 60px; height: 2px; background: var(--gold); margin: 15px auto 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-subtitle { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 3px; color: var(--gold); display: block; margin-bottom: 8px; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; border: none; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-primary { background: linear-gradient(135deg, #d4af37, #aa771c); color: #000; }
.btn-primary:hover { background: linear-gradient(135deg, #f3e5ab, #d4af37); box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text-bright); border: 1px solid var(--gold); }
.btn-outline:hover { background: rgba(212, 175, 55, 0.1); color: var(--gold); transform: translateY(-2px); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(10, 10, 12, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 20px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 900; color: var(--text-bright); text-decoration: none; letter-spacing: 3px; }
.logo-mark { color: var(--gold); border: 1px solid var(--gold); padding: 2px 8px; margin-right: 4px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-bright); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); }
.nav-links a:hover { color: var(--gold); }
.cart-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-bright); padding: 8px 16px; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: var(--transition); text-decoration: none; }
.cart-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-count { background: var(--gold); color: #000; font-size: 0.75rem; font-weight: 700; padding: 2px 7px; border-radius: 50%; }

/* Hero Section */
.hero { position: relative; height: 100vh; min-height: 600px; background: url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle, rgba(10,10,12,0.6) 0%, rgba(10,10,12,0.95) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero .sub-tag { font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 15px; }
.hero h1 { font-size: 3.2rem; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 35px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 20px; justify-content: center; }

/* Benefits Banner */
.benefits { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); padding: 40px 0; background: rgba(19, 19, 24, 0.5); }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: center; }
.benefit-card i { font-size: 2rem; color: var(--gold); margin-bottom: 12px; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 6px; }
.benefit-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Product Section */
.products-section { padding: 100px 0; }
.filter-bar { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-bright); padding: 8px 20px; font-size: 0.85rem; cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border-color); transition: var(--transition); display: flex; flex-direction: column; overflow: hidden; position: relative; text-decoration: none; color: inherit; }
.product-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.product-img-wrap { height: 300px; overflow: hidden; position: relative; background: #000; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-tag { position: absolute; top: 15px; right: 15px; background: var(--gold); color: #000; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; letter-spacing: 1px; }
.product-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1.2rem; margin-bottom: 8px; }
.product-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; flex-grow: 1; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--gold); }
.add-cart-btn { background: transparent; border: 1px solid var(--gold); color: var(--gold); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.add-cart-btn:hover { background: var(--gold); color: #000; }

/* Product Detail Page */
.product-detail-section { padding: 120px 0 60px; min-height: 80vh; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.product-detail-img img { width: 100%; border-radius: 8px; border: 1px solid var(--border-color); }
.product-detail-info h1 { font-size: 2.5rem; margin-bottom: 10px; }
.product-detail-price { font-size: 2rem; color: var(--gold); font-weight: 700; margin-bottom: 20px; display: block; }
.product-detail-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 30px; }
.product-features { list-style: none; margin-bottom: 30px; }
.product-features li { margin-bottom: 10px; color: var(--text-bright); display: flex; align-items: center; gap: 10px; }
.product-features li i { color: var(--gold); }

/* Cart Page */
.cart-page-section { padding: 120px 0 60px; min-height: 80vh; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.checkout-panel { background: var(--bg-card); padding: 30px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 30px;}
.checkout-panel h3 { border-bottom: 1px solid var(--border-color); padding-bottom: 15px; margin-bottom: 20px; color: var(--gold); }
.checkout-items-list { margin-bottom: 20px; }
.checkout-item { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 0; }
.checkout-item-info { display: flex; align-items: center; gap: 15px; }
.checkout-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.checkout-options { display: flex; flex-direction: column; gap: 15px; }
.radio-option { display: flex; align-items: center; gap: 10px; background: #1a1a22; padding: 15px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; cursor: pointer; transition: var(--transition); }
.radio-option:hover { border-color: var(--gold); }
.radio-option input { accent-color: var(--gold); width: 18px; height: 18px; }
.cart-summary-total { display: flex; justify-content: space-between; font-size: 1.5rem; font-weight: bold; margin-top: 20px; border-top: 1px solid var(--border-color); padding-top: 20px; }

/* Brand Story */
.story-section { padding: 100px 0; background: var(--bg-card); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.story-container { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.story-img-wrap img { width: 100%; border-radius: 4px; border: 1px solid var(--border-color); }
.story-content h2 { font-size: 2.2rem; margin-bottom: 20px; }
.story-content p { color: var(--text-muted); margin-bottom: 20px; }
.story-stats { display: flex; gap: 30px; margin-top: 30px; border-top: 1px solid var(--border-color); padding-top: 20px; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 700; color: var(--gold); font-family: var(--font-heading); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; }

/* Footer */
footer { background: #050507; padding: 80px 0 20px; border-top: 1px solid var(--border-color); }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-logo { display: block; margin-bottom: 15px; }
.footer-col h4 { color: var(--gold); margin-bottom: 20px; font-size: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.newsletter-form { display: flex; margin-top: 15px; }
.newsletter-form input { background: #121216; border: 1px solid var(--border-color); padding: 10px; color: #fff; flex-grow: 1; outline: none; }
.newsletter-form button { background: var(--gold); border: none; padding: 0 15px; color: #000; cursor: pointer; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; color: var(--text-muted); font-size: 0.8rem; }

/* Cart Drawer */
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1001; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-drawer-overlay.active { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -420px; width: 100%; max-width: 420px; height: 100%; background: #0f0f13; z-index: 1002; box-shadow: -5px 0 25px rgba(0,0,0,0.8); display: flex; flex-direction: column; transition: var(--transition); }
.cart-drawer.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.close-cart-btn { background: transparent; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.cart-body { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border: 1px solid var(--border-color); }
.cart-item-details { flex-grow: 1; }
.cart-item-title { font-size: 0.95rem; margin-bottom: 5px; }
.cart-item-price { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { background: #1a1a22; border: 1px solid var(--border-color); color: #fff; width: 24px; height: 24px; cursor: pointer; }
.remove-item-btn { background: transparent; border: none; color: #e74c3c; cursor: pointer; font-size: 0.9rem; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border-color); }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-bottom: 20px; }
.total-price { color: var(--gold); font-weight: 700; }
.checkout-btn { width: 100%; }
.empty-cart-msg { text-align: center; color: var(--text-muted); margin-top: 40px; }

/* Toast */
.toast { position: fixed; bottom: 30px; right: 30px; background: var(--gold); color: #000; padding: 15px 25px; font-weight: 600; display: flex; align-items: center; gap: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); transform: translateY(100px); opacity: 0; transition: var(--transition); z-index: 2000; }
.toast.show { transform: translateY(0); opacity: 1; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .story-container, .product-detail-grid, .checkout-grid { grid-template-columns: 1fr; }
}

/* ===== PW: doplňky pro skutečný e-shop (programátorský styl výše je beze změny) ===== */
.checkout-panel .pw-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.checkout-panel .pw-field label { font-size: 0.85rem; color: var(--text-muted); }
.checkout-panel .pw-field input,
.checkout-panel .pw-field textarea { background: #1a1a22; color: var(--text-bright); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; padding: 12px 15px; font: inherit; }
.checkout-panel .pw-field input:focus,
.checkout-panel .pw-field textarea:focus { outline: none; border-color: var(--gold); }
.pw-error { color: #f87171; margin-top: 15px; display: none; }
.pw-error.show { display: block; }
.pw-order-done { text-align: center; padding: 60px 20px; }
.pw-order-done h2 { color: var(--gold); margin-bottom: 15px; }
.pw-soldout { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
