/* =============================================
   Product Showcase – Frontend CSS v1.1
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ps-app *,
.ps-app *::before,
.ps-app *::after { box-sizing: border-box; }

.ps-app {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    max-width: 1160px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

/* ─── Sidebar ─── */
.ps-sidebar {
    width: 190px;
    flex-shrink: 0;
}

.ps-filter-group { 
	margin-bottom: 28px; 
}

.ps-filter-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.7px;
    color: #0f172a;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding: 0;
    line-height: 20px;
}

.ps-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Checkbox */
.ps-checkbox-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.ps-checkbox-label input { 
	position: absolute; 
	opacity: 0; 
	pointer-events: none; }
.ps-cb-box {
    width: 16px; height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 3px;
    background: #fff;
    flex-shrink: 0;
    display: flex; 
	align-items: center; 
	justify-content: center;
    transition: all .15s;
}
.ps-checkbox-label input:checked ~ .ps-cb-box {
    background: #3b82f6;
    border-color: #3b82f6;
    position: relative;
}
.ps-checkbox-label input:checked ~ .ps-cb-box::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    position: absolute;
    top: 5px;
    left: 3px;
}

/* Radio */
.ps-radio-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}
.ps-radio-label input { 
	position: absolute; 
	opacity: 0; 
	pointer-events: none; }
.ps-rb-dot {
    width: 16px; 
	height: 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    flex-shrink: 0;
    display: flex; 
	align-items: center; 
	justify-content: center;
    transition: all .15s;
}
.ps-radio-label input:checked ~ .ps-rb-dot { 
	border-color: #3b82f6; 
	position: relative;
}
.ps-radio-label input:checked ~ .ps-rb-dot::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3b82f6;
    top: 4px;
    position: absolute;
    left: 3.5px;
}

/* ─── Main ─── */
.ps-main { 
	flex: 1; 
	min-width: 0; 
}

/* Toolbar */
.ps-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
   /* gap: 16px;*/
    margin-bottom: 18px;
}

.ps-search-wrap {
    position: relative;
    flex: 1;
    max-width: 260px;
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
}
.ps-search-wrap input {
    padding-left: 30px !important;
    border: none !important;
    border-radius: 12px !important;
}
.ps-search-icon {
    position: absolute;
    left: 10px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: #94a3b8;
    pointer-events: none;
}
.ps-search-input {
    width: 100%;
    padding: 9px 12px 9px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px; font-family: inherit;
    color: #374151; background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.ps-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.ps-search-input::placeholder { 
	color: #94a3b8; 
}

.ps-sort-wrap {
    display: flex; 
	align-items: center; 
	gap: 8px;
    font-size: 14px; 
	color: #64748b;
}
span.ps-sort-label {
    width: 100px;
    font-size: 14px;
    line-height: 20px;
}
.ps-sort-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 30px 8px 10px;
    font-size: 14px; font-family: inherit;
    color: #374151; background: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    appearance: none;
    outline: none; cursor: pointer;
    transition: border-color .15s;
}
.ps-sort-select:focus {
    border-color: #e2e8f0;
}

/* Count */
.ps-count-bar {
    font-size: 16px; 
	color: #374151; 
	font-weight: 500;
    margin-bottom: 14px;
}

/* ─── Grid ─── */
.ps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
@media (max-width: 960px)  { 
span.ps-sort-label {
    width: 75px;
}
}

@media (max-width: 1040px)  { 
	.ps-grid { 
		grid-template-columns: repeat(2,1fr); 
	} 
}


@media (max-width: 640px)  {
	.ps-toolbar {
    flex-direction: column;
	gap: 12px;
}
.ps-toolbar div {
    width: 100%;
    max-width: unset;
}
    .ps-app { 
		flex-direction: column; }
    .ps-sidebar { 
		width: 100%; 
		display: flex; 
		flex-wrap: wrap; 
		gap: 0 50px; }
    .ps-grid { 
		grid-template-columns: 1fr; }
}

/* ─── Card ─── */
.ps-card {
    background: #fff;
    border: 1.5px solid #e8edf4;
    border-radius: 16px;
    padding: 24px;
    display: flex; 
	flex-direction: column; 
	gap: 10px;
    transition: box-shadow .2s, border-color .2s, transform .2s;
    position: relative;
}
.ps-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
    border-color: #c5d2e0;
    transform: translateY(-2px);
}

.ps-card-header {
    display: flex; 
	align-items: center; 
	justify-content: space-between;
}

.ps-icon-wrap {
    width: 42px; height: 42px;
    border-radius: 10px;
    display: flex; 
	align-items: center; 
	justify-content: center;
    flex-shrink: 0;
}
.ps-icon-wrap i { font-size: 20px; }

.ps-brand-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 14px;
    letter-spacing: .02em;
    line-height: 16px;
}

.ps-card-body { 
	flex: 1; 
}

.ps-card-title {
    font-size: 20px; 
	font-weight: 700;
    color: #111827;
    margin: 0 0 5px; 
	line-height: 28px;
}
.ps-card:hover h3.ps-card-title {
    color: #2271b1;
}
/* ★ 2-line clamp ★ */
.ps-card-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 20px;
    margin-bottom: 10px;
}

.ps-card-footer {
    display: flex; 
	align-items: center; 
	justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.ps-price-block { 
	display: flex; 
	flex-direction: column; 
	gap: 2px; }

.ps-price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 28px;
}

.ps-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    line-height: 16px;
}
.ps-star { 
	color: #f59e0b; 
	font-size: 18px; 
	line-height: 1; }

/* Arrow button */
.ps-card-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* border: 1.5px solid #e2e8f0; */
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all .18s;
    flex-shrink: 0;
}
.ps-card-btn svg { 
	width: 18px; 
	height: 18px; 
}
.ps-card:hover .ps-card-btn {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* ─── Pagination ─── */
.ps-pagination {
    display: flex; 
	align-items: center; 
	justify-content: center;
    gap: 6px; margin-top: 4px;
}
.ps-page-btn {
    width: 36px; 
	height: 36px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 16px; 
	font-weight: 500; 
	font-family: inherit;
    color: #374151; 
	cursor: pointer;
    display: flex; 
	align-items: center; 
	justify-content: center;
    transition: all .15s; 
	line-height: 1;
}
.ps-page-btn:hover:not(:disabled):not(.active) { 
	border-color: #3b82f6; 
	color: #3b82f6; }
.ps-page-btn.active { 
	background: #2271b1; 
	border-color: #2271b1; 
	color: #fff; 
	font-weight: 600; 
}
.ps-prev:hover, .ps-prev:focus, .ps-next:hover, .ps-next:focus, .ps-page-num:hover, .ps-page-num:focus {
    background: #2271b1 !important;
    border: #2271b1 !important;
    color: #fff !important;
}
.ps-page-btn:disabled { 
	opacity: .38; 
	cursor: not-allowed; }
.ps-prev, .ps-next { 
	font-size: 20px; 
	color: #475569; 
}

/* No results */
.ps-no-results { 
	text-align: center; 
	padding: 60px 20px; 
	color: #64748b; 
	font-size: 15px; }

/* Loading */
#ps-results.ps-loading { 
	opacity: .45; 
	pointer-events: none; 
	transition: opacity .15s; }
