/* Nova Shop Design - layout. Colors, sizes, columns and gaps come from CSS variables printed by the plugin on #novaShop (see Nova Shop > settings). */
#novaShop { font-family: var(--nova-font); color: var(--nova-ink); background: var(--nova-bg); }
#novaShop *, #novaShop *::before, #novaShop *::after { box-sizing: border-box; }
#novaShop button, #novaShop select, #novaShop input { font-family: inherit; }
#novaShop [hidden] { display: none !important; }

.nova-shop-container { width: 100%; max-width: var(--nova-max-width); margin: auto; padding: var(--nova-pad); }
.nova-archive-heading { margin: 0 0 25px; font-size: var(--nova-fs-heading); font-weight: 600; text-transform: uppercase; }

.nova-shop-layout { display: grid; grid-template-columns: var(--nova-sidebar-w) minmax(0, 1fr); gap: var(--nova-layout-gap); align-items: start; }
#novaShop.nova-sidebar-right .nova-shop-layout { grid-template-columns: minmax(0, 1fr) var(--nova-sidebar-w); }
#novaShop.nova-sidebar-right .nova-sidebar { order: 2; }
.nova-sidebar { width: 100%; min-width: 0; }

.nova-clear-all { display: flex; visibility: hidden; pointer-events: none; width: 100%; height: 40px; margin: 0 0 18px; padding: 0 12px; border: 1px solid var(--nova-ink); border-radius: 0; background: var(--nova-ink); color: var(--nova-btn-text); font-size: 12px; font-weight: 600; letter-spacing: 1px; align-items: center; justify-content: center; cursor: pointer; transition: .25s; }
.nova-clear-all.visible { visibility: visible; pointer-events: auto; }
.nova-clear-all:hover { background: var(--nova-bg); color: var(--nova-ink); }

.nova-filter-group { width: 100%; padding: 17px 0; border-bottom: 1px solid var(--nova-border); }
.nova-filter-title { margin: 0 0 15px; font-size: var(--nova-fs-ftitle); font-weight: 600; text-transform: uppercase; }
.nova-filter-options { display: flex; flex-direction: column; gap: 12px; }
.nova-filter-options label { display: flex; align-items: center; gap: 9px; color: var(--nova-muted); font-size: var(--nova-fs-flabel); cursor: pointer; }
.nova-filter-options label.nova-subcat { padding-left: 18px; }
.nova-filter-options input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--nova-ink); cursor: pointer; }

.nova-color-options { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.nova-color-option { position: relative; display: block; width: 23px; height: 23px; cursor: pointer; }
.nova-color-option input { position: absolute; opacity: 0; pointer-events: none; }
.nova-color-option span { display: block; width: 100%; height: 100%; border: 1px solid var(--nova-line); border-radius: 50%; }
.nova-color-option input:checked + span { outline: 2px solid var(--nova-ink); outline-offset: 3px; }

.nova-price-values { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 12px; color: var(--nova-muted); }
.nova-range-wrapper { position: relative; width: 100%; height: 25px; }
.nova-range-track, .nova-range-selected { position: absolute; top: 11px; height: 3px; }
.nova-range-track { width: 100%; background: var(--nova-line); }
.nova-range-selected { background: var(--nova-ink); }
.nova-range-wrapper input[type="range"] { position: absolute; top: 0; left: 0; width: 100%; height: 25px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; }
.nova-range-wrapper input[type="range"]::-webkit-slider-thumb { width: 13px; height: 13px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 50%; background: var(--nova-ink); cursor: pointer; pointer-events: auto; }
.nova-range-wrapper input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--nova-ink); cursor: pointer; pointer-events: auto; }

.nova-content { min-width: 0; }
.nova-toolbar { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 5px 8px; margin-bottom: 22px; background: var(--nova-toolbar-bg); border: 1px solid var(--nova-toolbar-border); border-radius: 2px; gap: 10px; }
.nova-select { height: 36px; min-width: 145px; padding: 0 12px; background: var(--nova-bg); color: var(--nova-ink); border: 1px solid var(--nova-control-border); border-radius: 2px; outline: none; font-size: var(--nova-fs-toolbar); cursor: pointer; }
.nova-select:focus { border-color: var(--nova-ink); }
.nova-per-page { margin-right: auto; min-width: 155px; }
.nova-sorting { margin-left: auto; }
.nova-mobile-filter-btn { display: none; height: 36px; padding: 0 12px; border: 1px solid var(--nova-ink); background: var(--nova-ink); color: var(--nova-btn-text); font-size: 11px; cursor: pointer; }

.nova-product-grid { display: grid; grid-template-columns: repeat(var(--nova-cols), minmax(0, 1fr)); column-gap: var(--nova-gap-col); row-gap: var(--nova-gap-row); transition: opacity .2s; }
.nova-product-item { min-width: 0; }
.nova-product-item.nova-wc-card ul.products { display: block; margin: 0; padding: 0; list-style: none; }
.nova-product-item.nova-wc-card ul.products li.product { float: none !important; width: 100% !important; margin: 0 !important; }
.nova-no-products { grid-column: 1 / -1; text-align: center; color: var(--nova-muted); padding: 60px 0; }

.nova-pagination-wrapper { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; margin-top: 45px; }
.nova-pagination-info { font-size: 12px; color: var(--nova-muted); letter-spacing: .5px; }
.nova-pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nova-page-btn { min-width: 38px; height: 38px; padding: 0 6px; border: 1px solid var(--nova-line); background: var(--nova-bg); color: var(--nova-ink); font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.nova-page-btn:hover:not([disabled]) { border-color: var(--nova-ink); }
.nova-page-btn.is-active { background: var(--nova-ink); border-color: var(--nova-ink); color: var(--nova-btn-text); cursor: default; }
.nova-page-btn[disabled] { opacity: .35; cursor: not-allowed; }
.nova-page-dots { padding: 0 4px; color: var(--nova-muted); font-size: 13px; }

.nova-drawer-overlay { display: none; }
.nova-drawer-header { display: none; }

/* v1.0.1: keyboard focus, error message, reduced motion */
.nova-color-option input:focus-visible + span { outline: 2px solid var(--nova-ink); outline-offset: 3px; }
.nova-filter-options input[type="checkbox"]:focus-visible,
.nova-page-btn:focus-visible,
.nova-clear-all:focus-visible,
.nova-mobile-filter-btn:focus-visible,
.nova-drawer-close:focus-visible { outline: 2px solid var(--nova-ink); outline-offset: 2px; }
.nova-range-wrapper input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--nova-ink); outline-offset: 3px; }
.nova-range-wrapper input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--nova-ink); outline-offset: 3px; }
.nova-no-products.nova-error { color: #b32d2e; }
@media (prefers-reduced-motion: reduce) {
  .nova-product-grid, .nova-clear-all, .nova-page-btn { transition: none; }
}

/* v1.0.2: theme / Elementor kit rules style EVERY input (white background, border, padding) and add a heavy focus ring to dropdowns.
   These rules keep the price slider and the dropdowns looking and working the same on every theme. */
#novaShop .nova-range-wrapper input[type="range"] { box-sizing: border-box; height: 25px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; }
#novaShop .nova-range-wrapper input[type="range"]:focus-visible { box-shadow: none; outline: none; }
#novaShop select.nova-select:focus,
#novaShop select.nova-select:focus-visible { outline: none; box-shadow: none; border-color: var(--nova-ink); }
/* WordPress admin bar (shown to logged-in users) must not cover the top of the filter drawer */
@media (max-width: 782px) { body.admin-bar #novaShop .nova-sidebar { top: 46px; height: calc(100dvh - 46px); } }
@media (min-width: 783px) and (max-width: 1024px) { body.admin-bar #novaShop .nova-sidebar { top: 32px; height: calc(100dvh - 32px); } }
