.products-page-wrapper {
    background-color: var(--bg);
    padding: 0 0 60px 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
}

/* ── Banner ── */
.products-banner {
    width: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #1a3a16 0%, #2d5a27 50%, #4a8c3f 100%);
    display: flex;
    align-items: center;
    padding: 40px 60px;
    box-sizing: border-box;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.products-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.banner-content { position: relative; z-index: 1; }

.banner-tag {
    display: inline-block;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.banner-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.banner-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Main container ── */
.services-main-container {
    background: #ffffff;
    border: 1px solid #e0e6e0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Search & filter bar ── */
.search-filter-bar {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 11px 40px 11px 40px;
    border: 1.5px solid #dde8dd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #222;
    background: var(--bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45,90,39,0.08);
}

.search-input::placeholder { color: #aab8aa; }

.search-clear {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
    transition: color 0.2s;
    line-height: 1;
}

.search-clear:hover { color: #555; }

.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    border: 1.5px solid #dde8dd;
    border-radius: 8px;
    background: var(--bg);
    color: #444;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
}

.filter-toggle-btn:hover,
.filter-toggle-btn.active {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0f7f0;
}

.filter-badge {
    background: var(--gold);
    color: white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 0.63rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Category pills — match landing page pill style ── */
.category-row {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 20px;
    border: 1px solid #ccdacc;
    background: white;
    color: #555;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cat-pill:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0f7f0;
}

.cat-pill.is-selected {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

/* ── Filter panel ── */
.filter-panel {
    display: none;
    background: var(--bg);
    border: 1.5px solid #dde8dd;
    border-radius: 12px;
    padding: 18px;
    animation: slideDown 0.2s ease;
}

.filter-panel.open { display: block; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.filter-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 16px;
}

.filter-panel-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-panel-group--price { min-width: 220px; }

.filter-panel-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-panel-label i {
    color: var(--primary-mid);
    font-size: 0.7rem;
}

.panel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1px solid #ccdacc;
    background: white;
    color: #444;
    font-size: 0.76rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.panel-chip i { font-size: 0.7rem; }

.panel-chip:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.panel-chip.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccdacc;
    font-size: 0.82rem;
    font-family: inherit;
    color: #333;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--primary-green); }

.price-display {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-left: 4px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-number-input {
    width: 72px;
    padding: 6px 8px;
    border: 1px solid #ccdacc;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: inherit;
    color: #333;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.price-number-input:focus { border-color: var(--primary-green); }

.price-sep { color: #aaa; font-size: 0.85rem; }

.range-slider-container {
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
}

.range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #dde8dd;
    border-radius: 4px;
    z-index: 0;
}

.range-fill {
    position: absolute;
    height: 4px;
    background: var(--primary-green);
    border-radius: 4px;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    pointer-events: none;
    z-index: 2;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    pointer-events: all;
    cursor: pointer;
}

.range-input::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--primary-green);
    border: 2px solid white;
    pointer-events: all;
    cursor: pointer;
}

.filter-panel-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e0e8e0;
}

/* Match landing page btn-primary-cta */
.btn-apply {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    background: var(--primary-green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: 0 2px 8px rgba(45,90,39,0.18);
}

.btn-apply:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45,90,39,0.22);
}

/* Match landing page btn-ghost-cta */
.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: white;
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.25s;
}

.btn-reset:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-1px);
}

/* ── Results meta ── */
.results-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Grid ── */
.product-grid,
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

/* ── Card ── */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
    border-color: var(--primary-green);
    transform: translateY(-3px);
}

.product-card--out-of-stock {
    opacity: 0.72;
    border-color: #e0e0e0;
}

.product-card--out-of-stock:hover {
    border-color: #bbb;
    box-shadow: 0 8px 18px rgba(0,0,0,0.07);
}

.product-card--out-of-stock .product-image img {
    filter: grayscale(40%);
}

.product-image { position: relative; }

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.product-card:hover .product-image img { transform: scale(1.04); }

.stock-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.52);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    z-index: 1;
}

.product-info {
    padding: 12px 10px 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    min-height: 22px;
    overflow: hidden;
}

.status-badge {
    background-color: #eaf2e9;
    color: var(--primary-green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.extra-badge {
    background-color: #f0f0f0;
    color: #666;
    cursor: help;
    flex-shrink: 0;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-display {
    font-size: 0.72rem;
    color: #ffa800;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2px;
}

.product-price {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-green);
}

.availability-badge {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.availability-badge--in  { background: #e6f4e5; color: #2a7a22; }
.availability-badge--out { background: #fde8e8; color: #b83232; }

/* ── Skeleton ── */
.skeleton-card {
    height: 280px;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
    border-radius: 12px;
}

@keyframes shine { to { background-position-x: -200%; } }

/* ── No products ── */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-products-icon {
    font-size: 2.5rem;
    color: var(--primary-mid);
    opacity: 0.3;
    margin-bottom: 14px;
    display: block;
}

.no-products p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.no-products a {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

/* ── Pagination (admin-style) ── */
.pagination {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ccdacc;
    background: white;
    color: #444;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: inherit;
}

.page-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    background: #f0f7f0;
}

.page-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #999;
    font-weight: 600;
    font-size: 0.9rem;
    user-select: none;
}

/* Keep view-more for backward compatibility */
.view-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 7px 14px;
    border: 1px solid var(--primary-green);
    background: white;
    color: var(--primary-green);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s;
    text-decoration: none;
    font-size: 0.88rem;
}

.view-more:hover,
.view-more.active {
    background: var(--primary-green);
    color: white;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .product-grid, .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .products-banner { padding: 30px 20px; min-height: 150px; }
    .banner-title { font-size: 1.4rem; }
    .services-main-container { padding: 15px; }
    .filter-panel-grid { grid-template-columns: 1fr; }
    .product-grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-row { gap: 6px; }
    .cat-pill { font-size: 0.75rem; padding: 5px 10px; }
    .page-btn { min-width: 32px; height: 32px; font-size: 0.78rem; }
    .page-ellipsis { min-width: 32px; height: 32px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .search-input { font-size: 0.88rem; }
    .filter-toggle-btn { padding: 10px 14px; font-size: 0.82rem; }
    .banner-title { font-size: 1.2rem; }
    .banner-sub { font-size: 0.85rem; }
    .product-grid, .skeleton-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .page-btn { min-width: 28px; height: 28px; padding: 0 6px; font-size: 0.72rem; }
    .page-ellipsis { min-width: 28px; height: 28px; font-size: 0.75rem; }
    .pagination { gap: 4px; }
}