/* ============================================================================
   nexus-light — KOMPONENTY: tlačidlá, badge, formuláre, produktová karta, mriežka,
   dropdown výsledkov hľadania, toasty, cookie lišta, drobčeky, stránkovanie
   ============================================================================ */
/* tlačidlá */
.nl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--nl-r-pill); font-weight: 600; font-size: var(--nl-fs); line-height: 1; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background var(--nl-t), color var(--nl-t), border-color var(--nl-t), transform var(--nl-t), box-shadow var(--nl-t); text-decoration: none; }
.nl-btn:active { transform: translateY(1px); }
.nl-btn--primary { background: var(--nl-accent); color: #fff; box-shadow: 0 8px 20px -10px var(--nl-accent); }
.nl-btn--primary:hover { background: var(--nl-accent-strong); color: #fff; }
.nl-btn--dark { background: var(--nl-text); color: #fff; } .nl-btn--dark:hover { background: #1e293b; color: #fff; }
.nl-btn--ghost { background: transparent; color: var(--nl-text); border-color: var(--nl-border-strong); } .nl-btn--ghost:hover { background: var(--nl-surface-2); color: var(--nl-text); }
.nl-btn--soft { background: var(--nl-accent-soft); color: var(--nl-accent-text); } .nl-btn--soft:hover { background: var(--nl-accent-soft-2); color: var(--nl-accent-text); }
.nl-btn--white { background: #fff; color: var(--nl-text); box-shadow: var(--nl-sh-sm); } .nl-btn--white:hover { color: var(--nl-text); box-shadow: var(--nl-sh); }
.nl-btn--sm { height: 36px; padding: 0 14px; font-size: var(--nl-fs-sm); } .nl-btn--lg { height: 52px; padding: 0 28px; font-size: var(--nl-fs-md); }
.nl-btn--block { width: 100%; } .nl-btn[disabled], .nl-btn.is-disabled { opacity: .55; pointer-events: none; }
.nl-btn--icon { width: 44px; padding: 0; }
/* badge / chip */
.nl-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: var(--nl-r-pill); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--nl-surface-2); color: var(--nl-text-2); }
.nl-badge--accent { background: var(--nl-accent); color: #fff; } .nl-badge--sale { background: var(--nl-sale); color: #fff; } .nl-badge--new { background: var(--nl-text); color: #fff; }
.nl-badge--warn { background: #fff7ed; color: #c2410c; } .nl-badge--ok { background: #ecfdf5; color: #047857; }
.nl-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--nl-r-pill); border: 1px solid var(--nl-border); background: var(--nl-surface); font-size: var(--nl-fs-sm); font-weight: 600; color: var(--nl-text); transition: border-color var(--nl-t), background var(--nl-t); }
.nl-chip:hover, .nl-chip.is-active { border-color: var(--nl-accent); background: var(--nl-accent-soft); color: var(--nl-accent-text); }
/* formuláre */
.nl-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.nl-label, .nl-field label { font-size: var(--nl-fs-sm); font-weight: 600; color: var(--nl-text); }
.nl-input, .nl-field input:not([type=checkbox]):not([type=radio]), .nl-field select, .nl-field textarea, .form-control { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--nl-border); border-radius: var(--nl-r-sm); background: var(--nl-surface); font-size: var(--nl-fs); color: var(--nl-text); outline: 0; transition: border-color var(--nl-t), box-shadow var(--nl-t); }
.nl-input:focus, .nl-field input:focus, .nl-field select:focus, .nl-field textarea:focus, .form-control:focus { border-color: var(--nl-accent); box-shadow: var(--nl-ring); }
.nl-input::placeholder { color: var(--nl-muted); }
.nl-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.nl-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--nl-fs-sm); color: var(--nl-text-2); cursor: pointer; }
.nl-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--nl-accent); flex: 0 0 auto; }
.nl-help { font-size: var(--nl-fs-xs); color: var(--nl-muted); }
.nl-error, .nx-field-error { font-size: var(--nl-fs-xs); color: var(--nl-danger); }
/* karty */
.nl-card { background: var(--nl-surface); border: 1px solid var(--nl-border); border-radius: var(--nl-r); box-shadow: var(--nl-sh-xs); }
.nl-card--pad { padding: 22px; }
/* drobčeky */
.nl-crumbs, .breadcrumbs, .pd-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--nl-fs-sm); color: var(--nl-muted); padding: 14px 0; }
.nl-crumbs a, .breadcrumbs a, .pd-breadcrumbs a { color: var(--nl-text-2); } .nl-crumbs a:hover, .breadcrumbs a:hover, .pd-breadcrumbs a:hover { color: var(--nl-accent-text); }
.nl-crumbs__sep, .bc-sep { color: var(--nl-border-strong); } .bc-current { color: var(--nl-text); font-weight: 600; }
/* produktová mriežka + karta (markup z product_card.php; AJAX karty musia sedieť) */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.product-grid.list-view { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; } }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--nl-surface); border: 1px solid var(--nl-border); border-radius: var(--nl-r); overflow: hidden; transition: transform var(--nl-t), box-shadow var(--nl-t), border-color var(--nl-t); min-width: 0; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--nl-sh); border-color: transparent; }
.product-card-link { display: flex; flex-direction: column; flex: 1 1 auto; color: inherit; } .product-card-link:hover { color: inherit; }
.product-card-img { position: relative; aspect-ratio: 4 / 5; background: var(--nl-surface-2); overflow: hidden; }
.product-card-img picture, .product-card-img img.product-img-main, .product-card-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--nl-ease), opacity .3s; }
.product-card-img picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .product-img-main, .product-card:hover picture img { transform: scale(1.04); }
.product-img-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.product-card:hover .product-img-hover { opacity: 1; }
.product-card-img.sk-loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--nl-surface-2) 25%, var(--nl-surface-3) 50%, var(--nl-surface-2) 75%); background-size: 200% 100%; animation: nlShimmer 1.4s infinite; }
@keyframes nlShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.product-video-container { position: absolute; inset: 0; } .product-card-video { width: 100%; height: 100%; object-fit: cover; }
.product-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--nl-border-strong); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.product-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--nl-r-pill); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #fff; background: var(--nl-text); box-shadow: var(--nl-sh-xs); }
.badge-sale { background: var(--nl-sale); } .badge-new { background: var(--nl-text); } .badge-low-stock { background: #fff; color: #b45309; } .badge-top { background: var(--nl-accent); }
.product-card-wishlist { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .92); color: var(--nl-text-2); box-shadow: var(--nl-sh-xs); transition: transform var(--nl-t), color var(--nl-t), background var(--nl-t); }
.product-card-wishlist:hover { transform: scale(1.08); color: var(--nl-sale); }
.product-card-wishlist.in-wishlist { color: var(--nl-sale); } .product-card-wishlist.in-wishlist svg { fill: currentColor; }
.product-card-actions { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; gap: 8px; z-index: 3; opacity: 0; transform: translateY(8px); transition: opacity var(--nl-t), transform var(--nl-t); }
.product-card:hover .product-card-actions, .product-card:focus-within .product-card-actions { opacity: 1; transform: none; }
.product-quick-view, .product-quick-add { flex: 1 1 0; height: 40px; border-radius: var(--nl-r-pill); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; box-shadow: var(--nl-sh-sm); transition: background var(--nl-t), color var(--nl-t); }
.product-quick-view { background: rgba(255, 255, 255, .95); color: var(--nl-text); flex: 0 0 40px; } .product-quick-view:hover { background: #fff; }
.product-quick-add { background: var(--nl-text); color: #fff; } .product-quick-add:hover { background: var(--nl-accent); color: #fff; }
.product-card-sizes { position: absolute; left: 10px; right: 10px; bottom: 58px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 3; opacity: 0; transition: opacity var(--nl-t); }
.product-card:hover .product-card-sizes { opacity: 1; }
.product-size-chip { height: 26px; padding: 0 9px; border-radius: var(--nl-r-xs); background: rgba(255, 255, 255, .95); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; cursor: pointer; }
.product-size-chip:hover { background: var(--nl-accent); color: #fff; }
.product-card-swatches, .product-swatches { display: flex; gap: 5px; padding: 10px 14px 0; }
.product-card-swatches .swatch, .product-swatches span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--nl-surface); box-shadow: 0 0 0 1px var(--nl-border-strong); }
.product-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.product-card-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nl-muted); }
.product-card-name { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--nl-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.product-card-sku { font-size: 12px; color: var(--nl-muted); }
.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; font-variant-numeric: tabular-nums; }
.price-current { font-size: 16px; font-weight: 800; color: var(--nl-text); } .price-current.price--sale { color: var(--nl-sale); }
.price-original { font-size: 13px; color: var(--nl-muted); text-decoration: line-through; }
.product-card-rating { display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--nl-muted); }
.star-filled { color: #f59e0b; } .star-empty { color: var(--nl-border-strong); }
.product-card.skeleton .skeleton { background: var(--nl-surface-2); border-radius: 6px; }
/* list-view karta */
.product-grid.list-view .product-card-link { flex-direction: row; } .product-grid.list-view .product-card-img { width: 200px; flex: 0 0 200px; aspect-ratio: 4 / 5; }
/* live search dropdown (search-autocomplete.js + frontend.js) */
.search-results-dropdown .search-result-item, .nl-search__results a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--nl-border); color: var(--nl-text); }
.search-results-dropdown .search-result-item:hover, .nl-search__results a:hover { background: var(--nl-surface-2); }
.search-results-dropdown img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--nl-surface-2); }
/* toasty */
.toastify, .mux-toast { border-radius: var(--nl-r-sm) !important; box-shadow: var(--nl-sh-lg) !important; font-family: var(--nl-font) !important; font-weight: 600; }
#toastContainer { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; }
#toastContainer .toast { background: var(--nl-text); color: #fff; padding: 12px 16px; border-radius: var(--nl-r-sm); box-shadow: var(--nl-sh-lg); font-size: 14px; font-weight: 600; }
/* cookie lišta (platformový markup s inline štýlmi → prebitie) */
#cookieConsent { background: rgba(255, 255, 255, .96) !important; border-top: 1px solid var(--nl-border) !important; box-shadow: var(--nl-sh-lg) !important; backdrop-filter: blur(12px) !important; }
#cookieConsent p { color: var(--nl-text-2) !important; } #cookieConsent p a { color: var(--nl-accent-text) !important; }
#cookieConsent button:first-child { background: var(--nl-accent) !important; border-radius: var(--nl-r-pill) !important; }
#cookieConsent button:last-child { color: var(--nl-text-2) !important; border: 1px solid var(--nl-border-strong) !important; border-radius: var(--nl-r-pill) !important; }
@media (max-width: 768px) { #cookieConsent { bottom: calc(var(--nl-bottomnav-h) + env(safe-area-inset-bottom, 0px)) !important; } }
/* quick-view modál (platformový markup product_modal.php; .active na overlay aj modáli) */
.product-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); z-index: var(--z-modal-bg); opacity: 0; visibility: hidden; transition: opacity var(--nl-t), visibility var(--nl-t); }
.product-modal-overlay.active { opacity: 1; visibility: visible; }
.product-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); width: min(960px, calc(100vw - 32px)); max-height: 88vh; overflow: auto; background: var(--nl-surface); border-radius: var(--nl-r-lg); box-shadow: var(--nl-sh-lg); z-index: var(--z-modal); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--nl-t), transform var(--nl-t), visibility var(--nl-t); }
.product-modal.active { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%); }
.product-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--nl-surface-2); color: var(--nl-text); font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.product-modal-close:hover { background: var(--nl-border); }
.modal-loading { display: flex; align-items: center; justify-content: center; min-height: 240px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--nl-border); border-top-color: var(--nl-accent); border-radius: 50%; animation: nlSpin .8s linear infinite; }
@keyframes nlSpin { to { transform: rotate(360deg); } }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; }
/* stránkovanie */
.pagination, .nl-pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0; }
.pagination a, .pagination span, .nl-pagination a, .nl-pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--nl-r-sm); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--nl-border); background: var(--nl-surface); font-weight: 600; font-size: 14px; }
.pagination .active, .pagination a:hover, .nl-pagination .is-active, .nl-pagination a:hover { background: var(--nl-text); color: #fff; border-color: var(--nl-text); }
.pagination-seo-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* load more */
.load-more-container { text-align: center; margin: 24px 0 8px; } .load-more-btn { min-width: 220px; }
.load-more-progress { font-size: var(--nl-fs-sm); color: var(--nl-muted); margin-top: 8px; }
/* výsledky mobilného hľadania (mobile-ux.js) + dropdown live search (frontend.js) */
.search-result-item-enhanced, .search-result-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--nl-border); color: var(--nl-text); }
.search-dropdown-img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; overflow: hidden; background: var(--nl-surface-2); }
.search-dropdown-img img, .search-result-item img { width: 100%; height: 100%; object-fit: cover; }
.search-dropdown-info { min-width: 0; } .search-dropdown-name { font-weight: 600; font-size: 14px; line-height: 1.35; } .search-dropdown-price { font-weight: 800; font-size: 14px; color: var(--nl-text); margin-top: 2px; }
.search-dropdown-view-all { display: flex; justify-content: center; padding: 14px; font-weight: 700; color: var(--nl-accent-text); }
.search-result-item .search-result-info, .search-result-name { font-weight: 600; font-size: 14px; } .search-result-price { font-weight: 800; }
