#page-content.product-page,
body:has(#page-content.product-page) {
    background: #f4f6f1;
}

.product-page {
    color: #151b2d;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

.product-page * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.product-shell {
    margin: 0 auto;
    max-width: 1230px;
    padding: 0 22px;
    width: 100%;
}

.product-hero {
    background:
        radial-gradient(circle at 78% 22%, rgba(239, 162, 28, 0.52), transparent 31%),
        linear-gradient(135deg, #123222 0%, #1f5b3b 52%, #59b980 100%);
    color: #fff;
    padding: 52px 0 78px;
}

.product-back {
    align-items: center;
    color: rgba(255, 255, 255, 0.86);
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 10px;
    margin-bottom: 18px;
    text-decoration: none;
}

.product-back:hover {
    color: #fff;
}

.product-hero h1 {
    color: #fff;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.08;
    margin: 0 0 12px;
}

.product-hero h1 span {
    color: #f2a51d;
}

.product-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 680px;
}

.product-content {
    padding: 34px 0 56px;
}

.product-layout {
    align-items: flex-start;
    display: grid;
    gap: 28px;
    grid-template-columns: 260px minmax(0, 1fr);
}

.product-layout.no-filter {
    grid-template-columns: minmax(0, 1fr);
}

.product-filter-panel,
.product-toolbar,
.product-grid-panel,
.product-empty,
.product-subcategory-wrap {
    background: #fff;
    border: 1px solid #e4e8e2;
    border-radius: 14px;
    box-shadow: 0 2px 7px rgba(20, 28, 42, 0.08);
}

.product-filter-panel {
    padding: 20px 18px 22px;
    position: sticky;
    top: 98px;
}

.product-filter-panel .sidebar-sticky {
    position: static;
}

.product-filter-panel .closeFilter {
    align-items: center;
    background: #f5f7f4;
    border: 0;
    border-radius: 10px;
    color: #1d633a;
    height: 38px;
    justify-content: center;
    margin: 0 0 14px auto;
    width: 38px;
}

.product-filter-head {
    margin-bottom: 18px;
}

.product-filter-title {
    align-items: center;
    color: #151b2d;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    gap: 10px;
    margin-bottom: 10px;
}

.product-filter-title ion-icon,
.product-products-count ion-icon {
    color: #1e6742;
    font-size: 18px;
}

.product-filter-toggle {
    display: flex;
    gap: 8px;
}

.product-filter-toggle button {
    background: transparent;
    border: 0;
    color: #758093;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    padding: 0;
    text-align: left;
}

.product-filter-card {
    border-top: 1px solid #edf0ec;
    margin: 0;
    padding: 16px 0;
}

.product-filter-card .widget-title h2 {
    color: #151b2d;
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 12px;
}

.product-filter-card .widget-content,
.product-filter-card ul {
    margin: 0;
    padding: 0;
}

.product-filter-card ul {
    list-style: none;
}

.product-filter-card li {
    margin: 0 0 9px;
}

.product-filter-card li:last-child {
    margin-bottom: 0;
}

.product-filter-card label {
    align-items: center;
    color: #687385;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 9px;
    line-height: 1.4;
    margin: 0;
}

.product-filter-card input[type='checkbox'] {
    accent-color: #1d633a;
}

.product-price-filter-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 14px;
}

.product-price-filter-row input {
    background: #f5f7f4;
    border: 1px solid #e4e8e2;
    border-radius: 10px;
    color: #151b2d;
    font-size: 12px;
    font-weight: 800;
    min-height: 38px;
    padding: 0 10px;
    width: 100%;
}

.product-filter-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
}

.product-filter-button,
.product-clear-button {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    text-decoration: none;
}

.product-filter-button {
    background: #1d633a;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.product-clear-button {
    background: #f5f7f4;
    color: #536072;
}

.product-results {
    min-width: 0;
}

.product-subcategory-wrap {
    margin-bottom: 22px;
    padding: 18px;
}

.product-toolbar {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    margin-bottom: 22px;
    padding: 14px 16px;
}

.product-toolbar-left,
.product-sort-row,
.product-view-switch,
.product-count {
    align-items: center;
    display: flex;
    gap: 10px;
}

.product-sort-row {
    justify-content: flex-end;
}

.product-view-switch span,
.product-count {
    color: #687385;
    font-size: 13px;
    font-weight: 800;
}

.product-mobile-filter {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    color: #39455a;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
}

.product-sort {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    color: #39455a;
    display: inline-flex;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
}

.product-sort ion-icon {
    color: #1d633a;
    font-size: 17px;
}

.product-sort select {
    appearance: none;
    background: transparent;
    border: 0;
    color: #39455a;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    min-width: 54px;
    outline: 0;
    padding: 0;
}

.product-grid-panel {
    animation: productCardIn 0.52s ease both;
    padding: 18px;
}

.product-grid-panel .row {
    row-gap: 22px;
}

.product-grid-panel .grid-view-item,
.product-grid-panel .item,
.product-grid-panel .product-box,
.product-grid-panel .product-card,
.product-grid-panel .product-item {
    border-radius: 12px;
}

.product-empty {
    align-items: center;
    color: #687385;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    min-height: 280px;
    padding: 34px;
    text-align: center;
}

.product-empty h3 {
    color: #151b2d;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
}

.product-empty p {
    margin: 0;
}

.product-empty a {
    align-items: center;
    background: #1d633a;
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    min-height: 40px;
    padding: 0 16px;
    text-decoration: none;
}

.product-pagination {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.product-page .pagination {
    margin: 0;
}

@keyframes productCardIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .product-layout {
        grid-template-columns: 230px minmax(0, 1fr);
    }

    .product-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-count,
    .product-sort-row {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-filter-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .product-hero {
        padding: 34px 0 54px;
    }

    .product-toolbar,
    .product-sort-row,
    .product-toolbar-left,
    .product-view-switch {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-sort-row,
    .product-sort,
    .product-mobile-filter {
        width: 100%;
    }

    .product-sort {
        justify-content: space-between;
    }

    .product-sort select {
        flex: 1;
        min-width: 0;
    }

    .product-grid-panel {
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-grid-panel {
        animation: none !important;
    }
}
