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

.psf-wrap {
	--psf-green: #1f4d2c;
	--psf-green-dark: #163a20;
	--psf-green-light: #e5efe3;
	--psf-bg: #faf6ef;
	--psf-card-bg: #ffffff;
	--psf-border: #e6e1d6;
	--psf-text: #2b2b28;
	--psf-muted: #83807a;
	--psf-gold: #e0a800;
	--font-heading: 'Marcellus SC', serif;
	--font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	font-family: var(--font-body);
	color: var(--psf-text);
	background: var(--psf-bg);
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px;
}
.psf-wrap * { box-sizing: border-box; font-family: inherit; }
.psf-wrap a { text-decoration: none; }

/* Header */
.psf-header {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	padding: 0 0 20px;
}
.psf-title { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.psf-leaf { font-size: 22px; }
.psf-title h2 { font-family: var(--font-heading); font-weight: 400; margin: 0; font-size: 26px; color: var(--psf-green); letter-spacing: .02em; }
.psf-title p { margin: 4px 0 0; font-size: 13px; color: var(--psf-muted); }
.psf-search { flex: 1 1 320px; max-width: 460px; }
.psf-search input {
	width: 100%; padding: 11px 16px; border: 1px solid var(--psf-border) !important;
	border-radius: 10px; font-size: 14px; background: var(--psf-card-bg) !important; font-family: var(--font-body);
	box-shadow: none !important; color: var(--psf-text) !important;
}
.psf-search input::placeholder { color: var(--psf-muted); }
.psf-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.psf-sort select {
	padding: 9px 12px; border: 1px solid var(--psf-border) !important; border-radius: 8px; font-size: 13px;
	background: var(--psf-card-bg) !important; font-family: var(--font-body); color: var(--psf-text) !important;
	box-shadow: none !important;
}

/* Applied filters bar */
.psf-applied-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; flex-wrap: wrap; }
.psf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.psf-chip {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--psf-green-light) !important; color: var(--psf-green) !important;
	padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; border: none !important;
}
.psf-chip button { border: none !important; background: none !important; cursor: pointer; color: var(--psf-green) !important; font-size: 14px; line-height: 1; }
.psf-clear-all { margin-left: auto; border: none !important; background: none !important; color: var(--psf-green) !important; font-size: 13px; cursor: pointer; text-decoration: underline; font-family: var(--font-body); }

/* Body layout */
.psf-body { display: flex; gap: 32px; align-items: flex-start; border-top: 1px solid var(--psf-border); padding-top: 20px; }

/* Sidebar */
.psf-sidebar { width: 270px; flex: 0 0 270px; }
.psf-sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.psf-sidebar-head h3 { font-family: var(--font-heading); font-weight: 400; font-size: 17px; margin: 0; color: var(--psf-text); }
.psf-sidebar-head button {
	border: 1px solid var(--psf-border) !important; background: var(--psf-card-bg) !important; border-radius: 6px;
	padding: 5px 10px; font-size: 12px; color: var(--psf-muted) !important; cursor: pointer; font-family: var(--font-body);
	box-shadow: none !important; text-decoration: none !important;
}

.psf-filter-group { border-bottom: 1px solid var(--psf-border); padding: 14px 0; }
.psf-filter-group-head { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 13px; font-weight: 600; }
.psf-filter-group-body { margin-top: 10px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.psf-filter-group-body::-webkit-scrollbar { width: 5px; }
.psf-filter-group-body::-webkit-scrollbar-thumb { background: var(--psf-border); border-radius: 4px; }
.psf-filter-group.collapsed .psf-filter-group-body { display: none; }
.psf-caret::after { content: "\25B4"; font-size: 11px; color: var(--psf-muted); }
.psf-filter-group.collapsed .psf-caret::after { content: "\25BE"; }

.psf-checkbox-row {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; padding: 6px 0; cursor: pointer;
}
.psf-checkbox-row span { flex: 1; text-transform: capitalize !important; }
.psf-checkbox-row em { font-style: normal; color: var(--psf-muted); font-size: 12px; }
.psf-checkbox-row input[type="checkbox"] { accent-color: var(--psf-green) !important; width: 16px; height: 16px; }

.psf-price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.psf-price-inputs input {
	width: 100%; padding: 7px 9px; border: 1px solid var(--psf-border) !important; border-radius: 6px;
	font-size: 12px; font-family: var(--font-body); background: var(--psf-card-bg) !important; color: var(--psf-text) !important;
	box-shadow: none !important;
}
.psf-price-inputs span { color: var(--psf-muted); }
#psf-price-range { width: 100%; accent-color: var(--psf-green) !important; }

.psf-apply-btn {
	width: 100%; background: var(--psf-green) !important; color: #fff !important; border: none !important;
	padding: 13px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px;
	font-family: var(--font-body); box-shadow: none !important; text-decoration: none !important;
}
.psf-apply-btn:hover { background: var(--psf-green-dark) !important; }

/* Main / results */
.psf-main { flex: 1; min-width: 0; }
.psf-results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 13px; color: var(--psf-muted); }
.psf-view-toggle { display: flex; gap: 6px; }
.psf-view-btn { border: 1px solid var(--psf-border) !important; background: var(--psf-card-bg) !important; border-radius: 6px; padding: 6px 10px; cursor: pointer; font-size: 12px; box-shadow: none !important; }
.psf-view-btn.active { background: var(--psf-green-light) !important; border-color: var(--psf-green) !important; color: var(--psf-green) !important; }

.psf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	align-items: stretch;
	transition: opacity .15s ease;
}
.psf-grid[data-loading="1"] { opacity: .4; pointer-events: none; }
.psf-grid.psf-view-list { grid-template-columns: 1fr; }
.psf-grid.psf-view-list .psf-card { flex-direction: row; }
.psf-grid.psf-view-list .psf-card-media { width: 180px; flex: 0 0 180px; }

.psf-card {
	border: 1px solid var(--psf-border) !important; border-radius: 14px; overflow: hidden;
	background: var(--psf-card-bg) !important; display: flex; flex-direction: column; box-shadow: none !important;
	height: 100%;
}
.psf-card-media { position: relative; aspect-ratio: 4/3; background: #f1efe8; overflow: hidden; }
.psf-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.psf-badge {
	position: absolute; top: 10px; left: 10px; background: var(--psf-green) !important; color: #fff !important;
	font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 5px;
}
.psf-wishlist {
	position: absolute !important; top: 8px !important; right: 8px !important; width: 30px !important; height: 30px !important; border-radius: 50% !important;
	border: none !important; background: #fff !important; cursor: pointer; font-size: 15px; line-height: 1; color: var(--psf-text) !important;
	box-shadow: 0 1px 3px rgba(0,0,0,.12) !important; outline: none !important;
	display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; margin: 0 !important;
}
.psf-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.psf-card-title {
	font-family: var(--font-heading); font-weight: 400; font-size: 15px; color: var(--psf-text); text-decoration: none; letter-spacing: .01em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; min-height: 2.6em;
}
.psf-card-cat { font-size: 12px; color: var(--psf-muted); }
.psf-card-rating { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--psf-muted); margin-top: 2px; min-height: 18px; }
.psf-card-rating .star-rating { font-size: 12px; color: var(--psf-gold); }
.psf-card-price { font-size: 16px; font-weight: 700; color: var(--psf-text); margin-top: 3px; }
.psf-card-price del { color: var(--psf-muted); font-weight: 400; margin-right: 4px; }
.psf-card-price ins { text-decoration: none; color: #c0392b; }
.psf-card-actions { margin-top: auto !important; padding-top: 10px !important; display: flex !important; flex-wrap: wrap !important; align-items: stretch !important; gap: 8px !important; }

/* Single "Add to Cart" button — icon + label side by side inside the button */
.psf-add-btn,
a.psf-add-btn,
a.psf-add-btn.button,
.psf-card a.add_to_cart_button {
	flex: 1 1 auto !important;
	width: 100% !important;
	display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; text-align: center !important; background: var(--psf-green) !important; color: #fff !important;
	padding: 10px !important; border-radius: 7px !important; font-size: 13px; font-weight: 600; text-decoration: none !important;
	font-family: var(--font-body); border: none !important; box-shadow: none !important; line-height: normal; margin: 0 !important;
}
.psf-add-btn svg { flex: 0 0 auto !important; width: 16px !important; height: 16px !important; display: block !important; }
.psf-add-btn.loading { opacity: .6 !important; }
.psf-add-btn:hover,
a.psf-add-btn:hover { background: var(--psf-green-dark) !important; color: #fff !important; }
.psf-add-btn.added { gap: 6px; }
.psf-add-btn.added::after { content: "\2713"; }

/* WooCommerce injects a "View Cart" link right after the Add to Cart button
   once the AJAX add succeeds — style it as a secondary button so it stacks
   neatly instead of breaking the card layout. */
.psf-card-actions a.added_to_cart.wc-forward {
	flex: 1 1 100%;
	display: flex !important;
	align-items: center; justify-content: center;
	text-align: center !important;
	background: var(--psf-green-dark) !important;
	color: #fff !important;
	padding: 10px !important;
	border-radius: 7px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	font-family: var(--font-body) !important;
	border: none !important;
	box-shadow: none !important;
}
.psf-card-actions a.added_to_cart.wc-forward:hover { background: var(--psf-green) !important; }

.psf-no-results { padding: 60px 0; text-align: center; color: var(--psf-muted); grid-column: 1 / -1; }

/* Pagination */
.psf-pagination { display: flex; justify-content: center; margin-top: 30px; }
.psf-page-nav { display: flex; gap: 6px; align-items: center; }
.psf-page-btn {
	min-width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--psf-border) !important;
	background: var(--psf-card-bg) !important; color: var(--psf-text) !important; cursor: pointer; font-size: 13px; font-family: var(--font-body);
	box-shadow: none !important; text-decoration: none !important;
}
.psf-page-btn.active { background: var(--psf-green) !important; color: #fff !important; border-color: var(--psf-green) !important; }
.psf-page-btn:disabled { opacity: .4; cursor: not-allowed; }
.psf-page-dots { padding: 0 4px; color: var(--psf-muted); }

/* Responsive */
@media (max-width: 992px) {
	.psf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.psf-body { flex-direction: column; }
	.psf-sidebar { width: 100%; flex: 1 1 auto; }
}
@media (max-width: 480px) {
	.psf-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 992px) {
	.psf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.psf-body { flex-direction: column; }
	.psf-sidebar { width: 100%; flex: 1 1 auto; }
}
@media (max-width: 480px) {
	.psf-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   HARD OVERRIDES
   High-specificity rules (html body .psf-wrap ...) to beat
   the active theme's own pink/rose button + link styling.
   ========================================================= */
html body .psf-wrap .psf-apply-btn,
html body .psf-wrap #psf-apply-btn {
	background-color: var(--psf-green) !important;
	color: #ffffff !important;
	border: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
}
html body .psf-wrap .psf-apply-btn:hover { background-color: var(--psf-green-dark) !important; }

html body .psf-wrap .psf-sidebar-head button,
html body .psf-wrap #psf-hide-filters {
	background-color: var(--psf-card-bg) !important;
	color: var(--psf-muted) !important;
	border: 1px solid var(--psf-border) !important;
	box-shadow: none !important;
}

html body .psf-wrap .psf-card .psf-card-actions,
html body .psf-wrap .psf-card .psf-card-add {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: stretch !important;
	gap: 8px !important;
}

html body .psf-wrap .psf-card .psf-card-actions a.psf-add-btn,
html body .psf-wrap .psf-card .psf-card-actions a.button,
html body .psf-wrap .psf-card .psf-card-actions a.add_to_cart_button,
html body .psf-wrap .psf-card .psf-card-actions a.ajax_add_to_cart,
html body .psf-wrap a.psf-add-btn {
	background-color: var(--psf-green) !important;
	color: #ffffff !important;
	border: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
	border-radius: 7px !important;
	padding: 10px !important;
	display: flex !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	text-align: center !important;
	font-weight: 600 !important;
	margin: 0 !important;
}
html body .psf-wrap .psf-card .psf-card-actions a.psf-add-btn:hover { background-color: var(--psf-green-dark) !important; color: #ffffff !important; }
html body .psf-wrap .psf-card .psf-card-actions a.psf-add-btn svg {
	flex: 0 0 auto !important;
	width: 16px !important;
	height: 16px !important;
}

html body .psf-wrap .psf-card .psf-card-actions a.added_to_cart.wc-forward {
	background-color: var(--psf-green-dark) !important;
}
html body .psf-wrap .psf-card .psf-card-actions a.added_to_cart.wc-forward:hover {
	background-color: var(--psf-green) !important;
}

html body .psf-wrap .psf-wishlist {
	background-color: #ffffff !important;
	border: none !important;
	border-radius: 50% !important;
	width: 30px !important;
	height: 30px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 0 !important;
	box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
	color: var(--psf-text) !important;
}
html body .psf-wrap .psf-wishlist.active { color: #c0392b !important; }

html body .psf-wrap .psf-view-btn {
	background-color: var(--psf-card-bg) !important;
	border: 1px solid var(--psf-border) !important;
	color: var(--psf-text) !important;
	box-shadow: none !important;
}
html body .psf-wrap .psf-view-btn.active {
	background-color: var(--psf-green-light) !important;
	border-color: var(--psf-green) !important;
	color: var(--psf-green) !important;
}

html body .psf-wrap .psf-page-btn,
html body .psf-wrap .psf-page-nav button {
	background-color: var(--psf-card-bg) !important;
	border: 1px solid var(--psf-border) !important;
	color: var(--psf-text) !important;
	box-shadow: none !important;
	text-decoration: none !important;
}
html body .psf-wrap .psf-page-btn.active,
html body .psf-wrap .psf-page-nav button.active {
	background-color: var(--psf-green) !important;
	border-color: var(--psf-green) !important;
	color: #ffffff !important;
}

html body .psf-wrap .psf-chip {
	background-color: var(--psf-green-light) !important;
	color: var(--psf-green) !important;
	border: none !important;
}
html body .psf-wrap .psf-chip button { color: var(--psf-green) !important; }
html body .psf-wrap .psf-clear-all { color: var(--psf-green) !important; }

html body .psf-wrap .psf-search input,
html body .psf-wrap .psf-sort select,
html body .psf-wrap .psf-price-inputs input {
	background-color: var(--psf-card-bg) !important;
	border: 1px solid var(--psf-border) !important;
	color: var(--psf-text) !important;
	box-shadow: none !important;
}

html body .psf-wrap input[type="checkbox"] { accent-color: var(--psf-green) !important; }
html body .psf-wrap input[type="range"] { accent-color: var(--psf-green) !important; }

html body .psf-wrap h2,
html body .psf-wrap h3,
html body .psf-wrap .psf-card-title {
	font-family: var(--font-heading) !important;
}
html body .psf-wrap,
html body .psf-wrap p,
html body .psf-wrap span,
html body .psf-wrap label,
html body .psf-wrap input,
html body .psf-wrap select,
html body .psf-wrap button,
html body .psf-wrap a {
	font-family: var(--font-body) !important;
}


/* FINAL FILTER LAYOUT FIX */
html body .psf-wrap .psf-body {
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start;
    gap:32px;
}

html body .psf-wrap .psf-sidebar {
    width:270px !important;
    flex:0 0 270px !important;
}

html body .psf-wrap .psf-main {
    flex:1 !important;
    min-width:0;
}

html body .psf-wrap .psf-grid {
    width:100%;
    grid-template-columns:repeat(4, minmax(0,1fr)) !important;
}

html body .psf-wrap.filters-hidden .psf-main {
    width:100% !important;
}

@media(max-width:768px){
    html body .psf-wrap .psf-body {
        flex-direction:column !important;
    }
    html body .psf-wrap .psf-sidebar {
        width:100% !important;
    }
}
/* Main layout */
.psf-body {
    display:flex !important;
    flex-direction:row !important;
    gap:30px;
    align-items:flex-start;
}


/* Hide button area should not take grid space */
.psf-sidebar-bar {
    position:absolute;
    left:0;
    top:0;
}


/* Sidebar */
.psf-sidebar {
    width:260px;
    flex:0 0 260px;
}


/* Products */
.psf-main {
    flex:1 !important;
    min-width:0;
}

/* FILTER SHOW/HIDE FIX */

.psf-body{
    display:flex !important;
    width:100%;
}


.psf-sidebar{
    flex:0 0 270px;
    width:270px;
    transition:.3s ease;
}


.psf-main{
    flex:1;
    width:auto;
    min-width:0;
}


.psf-main.full-width{
    width:100% !important;
}


.psf-main.full-width .psf-grid{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}


@media(max-width:1200px){

.psf-main.full-width .psf-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

}


@media(max-width:768px){

.psf-body{
    flex-direction:column !important;
}

.psf-sidebar{
    width:100%;
}

}

/* FINAL FILTER TOGGLE LAYOUT */

.psf-body {
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:32px !important;
}


.psf-sidebar {
    width:270px !important;
    flex:0 0 270px !important;
    transition:all .3s ease;
}


.psf-main {
    flex:1 !important;
    width:auto !important;
    min-width:0 !important;
}


/* when filters hidden */
.psf-sidebar.is-hidden {
    display:none !important;
}


.psf-main.full-width {
    width:100% !important;
}


.psf-main.full-width .psf-grid {
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}


@media(max-width:1200px){

.psf-main.full-width .psf-grid {
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}

}


@media(max-width:768px){

.psf-body {
    flex-direction:column !important;
}

.psf-sidebar {
    width:100% !important;
}

}
/* =====================================================
   PLANTS TO GO - SHOP MOBILE RESPONSIVE FIX
   Add this at the VERY END of existing CSS
===================================================== */

@media (max-width: 767px) {

    /* Main wrapper */
    .psf-wrap {
        width: 100% !important;
        max-width: 100% !important;
        padding: 35px 18px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }


    /* =========================
       HEADER
    ========================== */

    .psf-header {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    .psf-title {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: left !important;
        gap: 10px !important;
    }

    .psf-title h2 {
        font-size: 28px !important;
        line-height: 1.15 !important;
        margin: 0 0 5px !important;
    }

    .psf-title p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }

    .psf-leaf {
        flex: 0 0 auto !important;
    }


    /* Search */
    .psf-search {
        width: 100% !important;
	  flex: 1 1 45px !important;
    }

    .psf-search input,
    #psf-search-input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 48px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
        font-size: 14px !important;
    }


    /* Sort */
    .psf-sort {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 55px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .psf-sort label {
        margin: 0 !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .psf-sort select,
    #psf-sort-select {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 44px !important;
        box-sizing: border-box !important;
    }


    /* =========================
       BODY / SIDEBAR
    ========================== */

    .psf-body {
        display: block !important;
        width: 100% !important;
    }

    .psf-sidebar {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 35px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .psf-sidebar-head {
        width: 100% !important;
    }

    .psf-sidebar-head h3 {
        font-size: 18px !important;
    }

    .psf-filter-group {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .psf-filter-group-body {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .psf-checkbox-row {
        width: 100% !important;
        box-sizing: border-box !important;
    }


    /* Price fields */
    .psf-price-inputs {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .psf-price-inputs input {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #psf-price-range {
        width: 100% !important;
        max-width: 100% !important;
    }

    .psf-apply-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
    }


    /* =========================
       PRODUCTS AREA
    ========================== */

    .psf-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .psf-results-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 15px !important;
        width: 100% !important;
        margin-bottom: 18px !important;
    }

    #psf-results-count {
        font-size: 13px !important;
    }

    .psf-view-toggle {
        flex-shrink: 0 !important;
    }


    /* IMPORTANT: 2 products per row */
    .psf-grid,
    #psf-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }


    /* Product Card */
    .psf-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
    }


    /* Product Image */
    .psf-card-media {
        width: 100% !important;
        height: 170px !important;
        min-height: 170px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .psf-card-media > a {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    .psf-card-media img {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        display: block !important;
    }


    /* Product content */
    .psf-card-body {
        width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
    }

    .psf-card-title {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;

        font-size: 15px !important;
        line-height: 1.35 !important;
        min-height: 40px !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .psf-card-cat {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-top: 5px !important;
    }

    .psf-card-rating {
        font-size: 12px !important;
        margin-top: 5px !important;
    }

    .psf-card-price {
        font-size: 15px !important;
        line-height: 1.4 !important;
        margin-top: 8px !important;
        word-break: normal !important;
    }


    /* Add to cart button */
    .psf-card-actions {
        width: 100% !important;
        margin-top: auto !important;
        padding-top: 12px !important;
    }

    .psf-add-btn,
    .psf-card-actions .button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 42px !important;

        padding: 9px 7px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;

        font-size: 11px !important;
        line-height: 1.2 !important;
        text-align: center !important;

        white-space: normal !important;
        overflow-wrap: anywhere !important;

        box-sizing: border-box !important;
    }

    .psf-add-btn svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
    }


    /* Badge */
    .psf-badge {
        max-width: calc(100% - 40px) !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        padding: 5px 7px !important;

        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }


    /* Wishlist */
    .psf-wishlist {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }


    /* =========================
       PAGINATION
    ========================== */

    .psf-pagination {
        width: 100% !important;
        margin-top: 30px !important;
        overflow: visible !important;
    }

    .psf-page-nav {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 7px !important;
    }

    .psf-page-btn {
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
    }
}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 390px) {

    .psf-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .psf-grid,
    #psf-product-grid {
        gap: 10px !important;
    }

    .psf-card-media {
        height: 145px !important;
        min-height: 145px !important;
    }

    .psf-card-body {
        padding: 10px !important;
    }

    .psf-card-title {
        font-size: 14px !important;
    }

    .psf-card-price {
        font-size: 14px !important;
    }

}
/* =========================================
   MOBILE FILTERS FIX
========================================= */

@media (max-width: 767px) {

    /* Remove extra empty spacing under search/header */
    .psf-header {
        margin-bottom: 20px !important;
        padding-bottom: 0 !important;
    }

    .psf-applied-bar {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .psf-applied-bar:empty {
        display: none !important;
    }

    .psf-body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Sidebar/filter area */
    .psf-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 32px !important;
        padding: 0 !important;
    }

    .psf-sidebar-head {
        padding: 16px 0 !important;
        margin: 0 !important;
        border-top: 1px solid rgba(0,0,0,.08);
    }

    .psf-sidebar-head h3 {
        margin: 0 !important;
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    /* Filter group */
    .psf-filter-group {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-top: 1px solid rgba(0,0,0,.08);
    }

    .psf-filter-group-head {
        min-height: 48px !important;
        padding: 14px 0 !important;
        margin: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        cursor: pointer !important;
    }

    .psf-filter-group-head span {
        font-size: 14px !important;
        font-weight: 700 !important;
    }


    /* Category + Tags scroll area */
    .psf-filter-group[data-group="categories"] .psf-filter-group-body,
    .psf-filter-group[data-group="tags"] .psf-filter-group-body {
        max-height: 230px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;

        padding: 4px 6px 10px 0 !important;
        margin: 0 !important;

        scrollbar-width: thin;
    }

    /* Better scrollbar */
    .psf-filter-group-body::-webkit-scrollbar {
        width: 5px !important;
    }

    .psf-filter-group-body::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .psf-filter-group-body::-webkit-scrollbar-thumb {
        background: rgba(46, 125, 50, .35) !important;
        border-radius: 10px !important;
    }


    /* Checkbox rows */
    .psf-checkbox-row {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px !important;

        min-height: 32px !important;
        padding: 4px 0 !important;
        margin: 0 !important;

        width: 100% !important;
        box-sizing: border-box !important;
    }

    .psf-checkbox-row input[type="checkbox"] {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .psf-checkbox-row span {
        min-width: 0 !important;

        font-size: 12px !important;
        line-height: 1.3 !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    .psf-checkbox-row em {
        font-size: 11px !important;
        line-height: 1 !important;

        margin-left: auto !important;

        color: #777 !important;
        font-style: normal !important;
    }


    /* Price filter */
    .psf-filter-group[data-group="price"] .psf-filter-group-body {
        max-height: none !important;
        overflow: visible !important;

        padding: 0 0 16px !important;
    }

    .psf-price-inputs {
        width: 100% !important;

        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .psf-price-inputs input {
        width: 100% !important;
        min-width: 0 !important;
        height: 42px !important;

        padding: 8px 10px !important;
        box-sizing: border-box !important;
    }

    .psf-price-inputs span {
        text-align: center !important;
    }

    #psf-price-range {
        width: 100% !important;
        margin-top: 12px !important;
    }

    /* View results button */
    .psf-apply-btn {
        width: 100% !important;
        min-height: 48px !important;

        margin-top: 12px !important;
        margin-bottom: 0 !important;

        font-size: 14px !important;

        box-sizing: border-box !important;
    }

}