/* Modal "Pridané do košíka" (partials/cart/cart-modal-pd.php) – detail produktu + výpis kategórií. Redesign 2026-11. */
.pdm { --pdm-ink: #0f172a; --pdm-muted: #64748b; --pdm-border: #e2e8f0; --pdm-bg: #f6f8fb; --pdm-navy: #1e2348; --pdm-ok: #166534; }
.pdm .modal-dialog { max-width: 820px; }
.pdm .modal-content { text-align: left; position: relative; border: 0; border-radius: 24px; padding: 28px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); color: var(--pdm-ink); }
.pdm-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f5f9; color: var(--pdm-ink); font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pdm-close:hover { background: var(--pdm-border); }
.pdm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-right: 48px; }
.pdm-check { width: 36px; height: 36px; border-radius: 50%; background: #dcfce7; color: #15803d; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.pdm-title { margin: 0; font-size: 22px; font-weight: 700; color: var(--pdm-ink); }

.pdm-product { display: flex; align-items: center; gap: 16px; background: var(--pdm-bg); border-radius: 18px; padding: 14px 18px; }
.pdm-product-img { width: 72px; height: 72px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdm-product-img img { max-width: 86%; max-height: 86%; object-fit: contain; }
.pdm-product-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pdm-product-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pdm-product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--pdm-muted); }
.pdm-qty-pill { background: var(--pdm-navy); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.pdm-product-total { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; }
.pdm-product-total small { font-size: 12px; color: var(--pdm-muted); }
.pdm-product-total strong { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }

.pdm-actions { display: flex; gap: 12px; margin-top: 16px; }
.pdm-btn { flex: 1 1 0; height: 52px; border-radius: 14px; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none; border: 0; }
.pdm-btn--ghost { background: #fff; border: 1px solid var(--pdm-border); color: var(--pdm-ink); }
.pdm-btn--ghost:hover { background: #f1f5f9; color: var(--pdm-ink); }
.pdm-btn--primary { background: var(--pdm-navy); color: #fff; box-shadow: 0 10px 24px rgba(30, 35, 72, .25); }
.pdm-btn--primary:hover { background: #2c3366; color: #fff; }

.pdm-suggest { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8ecf2; }
.pdm-suggest-title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--pdm-ink); }
.pdm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pdm-card { display: flex; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--pdm-border); background: #fff; min-width: 0; }
.pdm-card-img { width: 76px; height: 76px; border-radius: 12px; background: var(--pdm-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pdm-card-img img { max-width: 86%; max-height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.pdm-card-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pdm-card-name { font-size: 13px; line-height: 1.3; color: var(--pdm-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdm-card-name:hover { color: var(--pdm-ink); text-decoration: underline; }
.pdm-card-price { display: flex; align-items: baseline; gap: 4px; }
.pdm-card-price strong { font-size: 16px; font-weight: 800; }
.pdm-card-price span { font-size: 11px; color: var(--pdm-muted); }
.pdm-card-stock { font-size: 11px; color: var(--pdm-muted); }
.pdm-card-stock.is-ok { color: var(--pdm-ok); }
.pdm-card-controls { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; }
.pdm-qty { display: flex; align-items: center; border: 1px solid var(--pdm-border); border-radius: 10px; height: 38px; }
.pdm-qty button { width: 32px; height: 36px; border: 0; background: transparent; color: var(--pdm-ink); font-size: 12px; cursor: pointer; border-radius: 10px; }
.pdm-qty button:hover { background: #f1f5f9; }
.pdm-qty input { width: 40px; border: 0; text-align: center; font-weight: 600; font-size: 14px; color: var(--pdm-ink); outline: none; -moz-appearance: textfield; background: transparent; }
.pdm-qty input::-webkit-outer-spin-button, .pdm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdm-add { width: 38px; height: 38px; border-radius: 10px; border: 0; background: var(--pdm-navy); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.pdm-add:hover { background: #2c3366; }

.pdm-optout { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--pdm-muted); cursor: pointer; }
.pdm-optout input { width: 16px; height: 16px; }

@media (max-width: 767.98px) {
    .pdm .modal-content { padding: 20px; border-radius: 20px; }
    .pdm-grid { grid-template-columns: minmax(0, 1fr); }
    .pdm-actions { flex-direction: column-reverse; }
    .pdm-btn { flex: 0 0 auto; }
    .pdm-product { flex-wrap: wrap; }
    .pdm-product-total { width: 100%; flex-direction: row; justify-content: space-between; align-items: baseline; }
}
#cartModal.pdm .modal-content, #cartModal.pdm .modal-content * { text-align: left !important; }
#cartModal.pdm .pdm-product-total, #cartModal.pdm .pdm-product-total * { text-align: right !important; }
#cartModal.pdm .pdm-btn, #cartModal.pdm .pdm-qty input { text-align: center !important; }
/* theme.css má #cartModal .modal-dialog / .modal-content (ID špecificita) → prebiť */
#cartModal.pdm .modal-dialog { max-width: 820px; width: auto; }
#cartModal.pdm .modal-content { border-radius: 24px; box-shadow: 0 24px 60px rgba(15, 23, 42, .22); background: #fff; }
@media (max-width: 767.98px) { #cartModal.pdm .modal-content { border-radius: 20px; } }
