/**
 * Product Shop / Archive Page Styles
 *
 * @package Hello_Elementor_Child
 */

/* ═══════════════════════════════════════════════════════════
   Variables (reuse product palette)
═══════════════════════════════════════════════════════════ */
:root {
	--shop-accent:      #B87456;
	--shop-accent-dark: #9a5e3f;
	--shop-text:        #24272D;
	--shop-muted:       #6b7280;
	--shop-border:      #e5e7eb;
	--shop-bg:          #f8f9fa;
	--shop-white:       #ffffff;
	--shop-radius:      10px;
	--shop-max:         1440px;
	--shop-sidebar:     260px;
}

/* ═══════════════════════════════════════════════════════════
   Container
═══════════════════════════════════════════════════════════ */
.nbp-shop-container {
	max-width: var(--shop-max);
	margin: 0 auto;
	padding: 0 32px;
}
@media (max-width: 600px) {
	.nbp-shop-container { padding: 0 18px; }
	.nbp-shop-page-header { padding: 32px 0 28px; }
	.nbp-shop-wrapper { padding: 32px 0 64px; }
}

/* ═══════════════════════════════════════════════════════════
   Breadcrumb
═══════════════════════════════════════════════════════════ */
.nbp-shop-breadcrumb-bar {
	background: var(--shop-white);
	border-bottom: 1px solid var(--shop-border);
	padding: 16px 0;
}
.nbp-shop-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--shop-muted);
}
.nbp-shop-breadcrumb a {
	color: var(--shop-accent);
	font-weight: 600;
	text-decoration: none;
}
.nbp-shop-breadcrumb a:hover { text-decoration: underline; }
.nbp-shop-breadcrumb span:last-child { color: var(--shop-text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   Page Header
═══════════════════════════════════════════════════════════ */
.nbp-shop-page-header {
	background: var(--shop-white);
	padding: 48px 0 44px;
	border-bottom: 1px solid var(--shop-border);
}
.nbp-shop-page-title {
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 800;
	color: var(--shop-text);
	margin: 0 0 8px;
	line-height: 1.15;
}
.nbp-shop-page-desc {
	font-size: 15px;
	color: var(--shop-muted);
	margin: 0;
	max-width: 600px;
}

/* ═══════════════════════════════════════════════════════════
   Layout wrapper
═══════════════════════════════════════════════════════════ */
.nbp-shop-wrapper {
	background: var(--shop-bg);
	padding: 52px 0 96px;
	min-height: 60vh;
}
.nbp-shop-layout {
	display: grid;
	grid-template-columns: var(--shop-sidebar) 1fr;
	gap: 32px;
	align-items: start;
}
@media (max-width: 960px) {
	.nbp-shop-layout {
		grid-template-columns: 1fr;
	}
}

/* ═══════════════════════════════════════════════════════════
   Sidebar
═══════════════════════════════════════════════════════════ */
.nbp-shop-sidebar {
	position: sticky;
	top: 100px;
}
.nbp-shop-sidebar-inner {
	background: var(--shop-white);
	border: 1px solid var(--shop-border);
	border-radius: var(--shop-radius);
	overflow: hidden;
}
.nbp-shop-sidebar-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--shop-border);
}
.nbp-shop-sidebar-title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--shop-text);
	flex: 1;
}
.nbp-shop-clear-filter {
	font-size: 11px;
	color: var(--shop-accent);
	text-decoration: none;
	font-weight: 600;
}
.nbp-shop-clear-filter:hover { text-decoration: underline; }
.nbp-shop-sidebar-close {
	display: none;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--shop-muted);
	line-height: 1;
}
.nbp-shop-filter-group {
	padding: 16px 18px 18px;
}
/* ── Search form ───────────────────────────────────────── */
.nbp-shop-search-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nbp-shop-search-input-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--shop-border);
	border-radius: 8px;
	padding: 0 12px;
	background: var(--shop-white);
	overflow: hidden;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.nbp-shop-search-input-wrap:focus-within {
	border-color: var(--shop-accent);
	box-shadow: 0 0 0 3px rgba(184,116,86,0.12);
}
.nbp-shop-search-icon {
	flex-shrink: 0;
	color: var(--shop-muted);
	pointer-events: none;
}
.nbp-shop-search-input {
	flex: 1;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 0;
	font-size: 13px;
	color: var(--shop-text);
	background: transparent;
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
}
.nbp-shop-search-input::-webkit-search-cancel-button { display: none; }
.nbp-shop-search-input::placeholder { color: var(--shop-muted); }
.nbp-shop-search-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	background: var(--shop-accent);
	color: var(--shop-white);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.15s;
}
.nbp-shop-search-btn:hover { background: var(--shop-accent-dark); }

/* ── Category filter ───────────────────────────────────────── */
.nbp-shop-filter-cats {
	border-top: 1px solid var(--shop-border);
	padding-top: 18px;
}
.nbp-shop-filter-group-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--shop-muted);
	margin-bottom: 10px;
}
.nbp-shop-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.nbp-shop-cat-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--shop-text);
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.nbp-shop-cat-link:hover {
	background: var(--shop-bg);
	color: var(--shop-accent);
}
.nbp-shop-cat-link.is-active {
	background: rgba(184, 116, 86, 0.10);
	color: var(--shop-accent);
	font-weight: 700;
}
.nbp-shop-cat-count {
	font-size: 11px;
	font-weight: 500;
	color: var(--shop-muted);
	background: var(--shop-bg);
	border: 1px solid var(--shop-border);
	border-radius: 20px;
	padding: 1px 7px;
	flex-shrink: 0;
}
.nbp-shop-cat-link.is-active .nbp-shop-cat-count {
	background: rgba(184, 116, 86, 0.15);
	border-color: rgba(184, 116, 86, 0.25);
	color: var(--shop-accent);
}

/* ═══════════════════════════════════════════════════════════
   Mobile sidebar overlay
═══════════════════════════════════════════════════════════ */
.nbp-shop-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.25s;
}
.nbp-shop-overlay.active {
	opacity: 1;
}

@media (max-width: 960px) {
	.nbp-shop-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: min(320px, 88vw);
		z-index: 999;
		transform: translateX(-110%);
		transition: transform 0.3s ease;
		overflow-y: auto;
		background: var(--shop-white);
	}
	.nbp-shop-sidebar.open {
		transform: translateX(0);
	}
	.nbp-shop-sidebar-inner {
		border-radius: 0;
		border: none;
		min-height: 100%;
	}
	.nbp-shop-sidebar-close {
		display: flex;
	}
	.nbp-shop-overlay {
		display: block;
	}
}

/* ═══════════════════════════════════════════════════════════
   Toolbar
═══════════════════════════════════════════════════════════ */
.nbp-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--shop-white);
	border: 1px solid var(--shop-border);
	border-radius: var(--shop-radius);
	padding: 12px 18px;
	margin-bottom: 20px;
}
.nbp-shop-toolbar-left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.nbp-shop-toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Filter toggle (mobile only, but visible always below 960px) */
.nbp-shop-filter-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid var(--shop-border);
	border-radius: 6px;
	background: var(--shop-white);
	font-size: 13px;
	font-weight: 600;
	color: var(--shop-text);
	cursor: pointer;
	transition: border-color 0.15s;
	position: relative;
}
.nbp-shop-filter-toggle:hover { border-color: var(--shop-accent); }
.nbp-shop-filter-dot {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 6px;
	height: 6px;
	background: var(--shop-accent);
	border-radius: 50%;
}
@media (max-width: 960px) {
	.nbp-shop-filter-toggle { display: flex; }
}

.nbp-shop-result-count {
	font-size: 13px;
	color: var(--shop-muted);
}
.nbp-shop-result-count strong {
	color: var(--shop-text);
	font-weight: 700;
}

.nbp-shop-sort-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--shop-muted);
	white-space: nowrap;
}
.nbp-shop-sort-select {
	border: 1px solid var(--shop-border);
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 500;
	color: var(--shop-text);
	background: var(--shop-white);
	cursor: pointer;
	outline: none;
	transition: border-color 0.15s;
}
.nbp-shop-sort-select:focus { border-color: var(--shop-accent); }

@media (max-width: 480px) {
	.nbp-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	.nbp-shop-toolbar-left,
	.nbp-shop-toolbar-right {
		width: 100%;
		justify-content: space-between;
	}
	.nbp-shop-sort-label { display: none; }
	.nbp-shop-sort-select { flex: 1; }
}

/* ═══════════════════════════════════════════════════════════
   Active filter pills
═══════════════════════════════════════════════════════════ */
.nbp-shop-active-filters {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}
.nbp-shop-active-label {
	font-size: 12px;
	color: var(--shop-muted);
	font-weight: 500;
}
.nbp-shop-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: var(--shop-accent);
	color: var(--shop-white) !important;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s;
}
.nbp-shop-pill:hover { background: var(--shop-accent-dark); }

/* ═══════════════════════════════════════════════════════════
   Product Grid
═══════════════════════════════════════════════════════════ */
.nbp-shop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 1100px) {
	.nbp-shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
	.nbp-shop-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ── Product Card ──────────────────────────────────────── */
.nbp-shop-card {
	display: flex;
	flex-direction: column;
	background: var(--shop-white);
	border: 1px solid var(--shop-border);
	border-radius: var(--shop-radius);
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.22s, transform 0.18s;
}
.nbp-shop-card:hover {
	box-shadow: 0 10px 36px rgba(0,0,0,0.10);
	transform: translateY(-3px);
}

.nbp-shop-card-img {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--shop-bg);
	overflow: hidden;
}
.nbp-shop-card-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 12px;
	box-sizing: border-box;
	transition: transform 0.4s ease;
}
.nbp-shop-card:hover .nbp-shop-card-img img {
	transform: scale(1.04);
}
.nbp-shop-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}
.nbp-shop-card-cat {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(255,255,255,0.92);
	border: 1px solid var(--shop-border);
	color: var(--shop-muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	backdrop-filter: blur(4px);
}

.nbp-shop-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 18px;
	border-top: 1px solid var(--shop-border);
}
.nbp-shop-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--shop-text);
	margin: 0 0 6px;
	line-height: 1.35;
}
.nbp-shop-card-excerpt {
	font-size: 13px;
	color: var(--shop-muted);
	line-height: 1.6;
	margin: 0 0 12px;
	flex: 1;
}
.nbp-shop-card-footer {
	margin-top: auto;
}
.nbp-shop-card-link {
	font-size: 12px;
	font-weight: 700;
	color: var(--shop-accent);
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   Pagination
═══════════════════════════════════════════════════════════ */
.nbp-shop-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 40px;
}
.nbp-shop-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid var(--shop-border);
	border-radius: 6px;
	background: var(--shop-white);
	font-size: 13px;
	font-weight: 600;
	color: var(--shop-text);
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nbp-shop-pagination .page-numbers:hover {
	border-color: var(--shop-accent);
	color: var(--shop-accent);
}
.nbp-shop-pagination .page-numbers.current {
	background: var(--shop-accent);
	border-color: var(--shop-accent);
	color: var(--shop-white);
}
.nbp-shop-pagination .page-numbers.dots {
	border-color: transparent;
	background: transparent;
}

/* ═══════════════════════════════════════════════════════════
   Empty state
═══════════════════════════════════════════════════════════ */
.nbp-shop-empty {
	text-align: center;
	padding: 72px 24px;
	color: var(--shop-muted);
}
.nbp-shop-empty svg {
	margin-bottom: 20px;
	opacity: 0.35;
}
.nbp-shop-empty h2 {
	font-size: 22px;
	font-weight: 700;
	color: var(--shop-text);
	margin: 0 0 10px;
}
.nbp-shop-empty p {
	font-size: 14px;
	margin: 0 0 24px;
}
.nbp-shop-reset-btn {
	display: inline-flex;
	padding: 11px 24px;
	background: var(--shop-accent);
	color: var(--shop-white) !important;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s;
}
.nbp-shop-reset-btn:hover { background: var(--shop-accent-dark); }
