/* WebBase – výchozí, záměrně střídmý styl. Konkrétní eshop přepíše přes /css/theme.css. */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1d1d1f;
    background: #fff;
    line-height: 1.5;
}
a { color: var(--primary, #1769ff); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: #6b7280; font-size: .9em; }

/* Header */
.site-header { border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 12px 16px; }
.brand { font-size: 1.4rem; font-weight: 700; color: var(--primary, #1769ff); }
.brand img { height: 36px; }
.main-nav { flex: 1; }
.menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.menu a { color: #1d1d1f; font-weight: 500; }
.cart-link { font-weight: 600; white-space: nowrap; }

.main-content { padding: 24px 16px 48px; min-height: 60vh; }

/* Hero */
.hero { padding: 40px 0; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.hero h1 { margin: 0 0 8px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card { border: 1px solid #eee; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.card-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fafafa; border-radius: 8px; }
.card-title { font-weight: 600; color: #1d1d1f; }
.card-price strong { font-size: 1.15rem; }
.card-price-old { color: #9ca3af; text-decoration: line-through; margin-left: 6px; font-size: .9em; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 9px 16px; font-size: .95rem; cursor: pointer; }
.btn-primary { background: var(--primary, #1769ff); color: #fff; }
.btn-primary:hover { filter: brightness(.94); text-decoration: none; }
.btn[disabled] { background: #d1d5db; cursor: not-allowed; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-gallery img { width: 100%; background: #fafafa; border-radius: 12px; }
.product-price { font-size: 1.6rem; font-weight: 700; margin: 12px 0; }
.product-buy { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.qty { width: 70px; padding: 8px; border: 1px solid #ddd; border-radius: 8px; }

/* Cart + pager */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; }
.pager { display: flex; gap: 6px; margin-top: 24px; }
.pager-link { padding: 6px 12px; border: 1px solid #ddd; border-radius: 6px; }
.pager-link.active { background: var(--primary, #1769ff); color: #fff; border-color: var(--primary, #1769ff); }

.site-footer { border-top: 1px solid #eee; padding: 24px 0; color: #6b7280; }

/* Checkout */
.cart-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.btn-block { display: block; width: 100%; text-align: center; }
.alert-error { background: #fde8e8; color: #9b1c1c; border: 1px solid #f5c2c2; border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; }
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.checkout-form h2 { margin: 24px 0 10px; font-size: 1.15rem; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field label { font-size: .85rem; color: #4b5563; }
.field input, .field textarea { padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 8px; cursor: pointer; }
.option .option-price { margin-left: auto; color: #4b5563; }
.gdpr { display: flex; align-items: center; gap: 8px; margin: 14px 0; }
.checkout-summary { border: 1px solid #eee; border-radius: 10px; padding: 16px; position: sticky; top: 84px; }
.summary-total td { border-top: 2px solid #e5e7eb; }
.confirmation { max-width: 720px; }

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

@media (max-width: 720px) {
    .product-detail { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; gap: 12px; }
}
