/* =========================================================
   LOGIN PAKISTAN
   HOME ESSENTIALS - COMPLETE CATEGORY PAGE
   Isolated under .lp-home-essentials-page
========================================================= */

/* =========================================================
   BASE / CORE
========================================================= */

.lp-home-essentials-page,
.lp-home-essentials-page * {
    box-sizing: border-box;
}

.lp-home-essentials-page {
    --lp-home-essentials-green: #0b4b31;
    --lp-home-essentials-green-dark: #073a27;
    --lp-home-essentials-gold: #d3a243;
    --lp-home-essentials-text: #252925;
    --lp-home-essentials-muted: #717771;
    --lp-home-essentials-border: #e5ded3;
    --lp-home-essentials-soft: #fdfbf7;
    --lp-home-essentials-cream: #fffaf2;

    width: 100%;
    padding: 0 24px 32px;
    background: #ffffff;
    color: var(--lp-home-essentials-text);
    font-family: "Poppins", sans-serif;
}

.lp-home-essentials-shell {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
}

/* =========================================================
   BREADCRUMB
========================================================= */

.lp-home-essentials-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: #717771;
    font-size: 11px;
}

.lp-home-essentials-breadcrumb a {
    color: #555d56;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-home-essentials-breadcrumb a:hover {
    color: var(--lp-home-essentials-green);
}

.lp-home-essentials-breadcrumb strong {
    color: var(--lp-home-essentials-green);
    font-weight: 500;
}

/* =========================================================
   HERO
========================================================= */

.lp-home-essentials-hero {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 40px;
    border-radius: 13px;
    background: linear-gradient(100deg, #fff7ec 0%, #fffaf5 100%);
}

.lp-home-essentials-hero.has-image {
    background:
        linear-gradient(
            90deg,
            rgba(255, 248, 239, 1) 0%,
            rgba(255, 248, 239, 0.96) 35%,
            rgba(255, 248, 239, 0.56) 57%,
            rgba(255, 248, 239, 0.06) 100%
        ),
        var(--lp-home-essentials-hero-image) center right / cover no-repeat;
}

.lp-home-essentials-hero-content {
    width: 55%;
    max-width: 570px;
    position: relative;
    z-index: 2;
}

.lp-home-essentials-hero h1 {
    margin: 0 0 12px;
    color: var(--lp-home-essentials-green);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 600;
    line-height: 1.1;
}

.lp-home-essentials-hero-description {
    max-width: 500px;
    color: #4e554f;
    font-size: 13px;
    line-height: 1.7;
}

.lp-home-essentials-hero-description p {
    margin: 0;
}

/* =========================================================
   HERO FEATURES
========================================================= */

.lp-home-essentials-hero-features {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 28px;
}

.lp-home-essentials-hero-features div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--lp-home-essentials-green);
}

.lp-home-essentials-hero-features strong {
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
}

.lp-home-essentials-hero-features span {
    color: var(--lp-home-essentials-green);
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
}

/* =========================================================
   MAIN PAGE LAYOUT
========================================================= */

.lp-home-essentials-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.lp-home-essentials-results {
    min-width: 0;
    position: relative;
    transition: opacity 0.2s ease;
}

.lp-home-essentials-results.loading {
    opacity: 0.55;
    pointer-events: none;
}

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

.lp-home-essentials-page .lp-home-essentials-sidebar {
    position: sticky;
    top: 20px;
    overflow: hidden;
    border: 1px solid var(--lp-home-essentials-border);
    border-radius: 13px;
    background: #fffdf9;
    font-family: "Poppins", sans-serif;
}

.lp-home-essentials-sidebar-mobile-head {
    display: none;
}

/* =========================================================
   GENERIC ACCORDION
========================================================= */

.lp-home-essentials-page .lp-home-essentials-accordion {
    border-bottom: 1px solid #eee9e1;
}

.lp-home-essentials-page .lp-home-essentials-accordion-title {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--lp-home-essentials-green) !important;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.7px;
    text-align: left;
    cursor: pointer;
}

.lp-home-essentials-page .lp-home-essentials-accordion-title:hover,
.lp-home-essentials-page .lp-home-essentials-accordion-title:focus,
.lp-home-essentials-page .lp-home-essentials-accordion-title:active {
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--lp-home-essentials-green) !important;
    box-shadow: none !important;
}

/* Green underline */
.lp-home-essentials-page .lp-home-essentials-accordion-title > span:first-child {
    position: relative;
    padding-bottom: 5px;
}

.lp-home-essentials-page .lp-home-essentials-accordion-title > span:first-child::after {
    content: "";
    width: 46px;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--lp-home-essentials-green);
}

/* Chevron */
.lp-home-essentials-page .lp-home-essentials-chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: transform 0.25s ease;
}

.lp-home-essentials-page .lp-home-essentials-chevron svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-home-essentials-page .lp-home-essentials-accordion.active .lp-home-essentials-chevron {
    transform: rotate(180deg);
}

/* Accordion content */
.lp-home-essentials-page .lp-home-essentials-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 18px;
    visibility: hidden;
    transition:
        max-height 0.34s ease,
        opacity 0.22s ease,
        padding 0.34s ease,
        visibility 0.22s ease;
}

.lp-home-essentials-page .lp-home-essentials-accordion.active .lp-home-essentials-accordion-content {
    max-height: 1200px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    padding: 0 18px 18px;
}

/* =========================================================
   SHOP CATEGORIES
========================================================= */

.lp-home-essentials-page .lp-home-essentials-category-accordion {
    padding: 0;
}

.lp-home-essentials-page .lp-home-essentials-main-category-list {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 0 !important;
}

.lp-home-essentials-page .lp-home-essentials-main-category-list a {
    width: 100%;
    min-height: 37px;
    display: flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 5px;
    background: transparent;
    color: #3d433e;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.lp-home-essentials-page .lp-home-essentials-main-category-list a:hover {
    background: #f2f6f3;
    color: var(--lp-home-essentials-green);
}

.lp-home-essentials-page .lp-home-essentials-main-category-list a.active {
    background: #eaf2ed;
    color: var(--lp-home-essentials-green);
    font-weight: 600;
}

/* View All link */
.lp-home-essentials-page .lp-home-essentials-view-all-link {
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 9px;
    color: var(--lp-home-essentials-green);
    font-family: "Poppins", sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.55px;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lp-home-essentials-page .lp-home-essentials-view-all-link:hover {
    color: var(--lp-home-essentials-green-dark);
}

/* =========================================================
   FILTER BY
========================================================= */

.lp-home-essentials-page .lp-home-essentials-filter-main-heading {
    padding: 17px 18px 5px;
    color: #242a25;
    font-family: "Poppins", sans-serif;
}

.lp-home-essentials-page .lp-home-essentials-filter-main-heading strong {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* =========================================================
   PRICE INPUTS
========================================================= */

.lp-home-essentials-page .lp-home-essentials-price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 6px;
}

.lp-home-essentials-page .lp-home-essentials-price-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
}

.lp-home-essentials-page .lp-home-essentials-price-label {
    color: #687069;
    font-size: 11px;
    font-weight: 500;
}

.lp-home-essentials-page .lp-home-essentials-price-box {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #ddd7cc;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-home-essentials-page .lp-home-essentials-price-box:focus-within {
    border-color: var(--lp-home-essentials-green);
    box-shadow: 0 0 0 2px rgba(11, 75, 49, 0.12);
}

.lp-home-essentials-page .lp-home-essentials-currency {
    color: #8c938d;
    font-size: 13px;
    font-weight: 500;
    margin-right: 5px;
    user-select: none;
}

.lp-home-essentials-page .lp-home-essentials-price-box input {
    width: 100%;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    color: #2b312c !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Remove number spin buttons */
.lp-home-essentials-page .lp-home-essentials-price-box input::-webkit-outer-spin-button,
.lp-home-essentials-page .lp-home-essentials-price-box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lp-home-essentials-page .lp-home-essentials-price-box input[type="number"] {
    -moz-appearance: textfield;
}

/* =========================================================
   FILTER CHECKBOXES
========================================================= */

.lp-home-essentials-page .lp-home-essentials-filter-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 5px 0;
    cursor: pointer;
    user-select: none;
}

.lp-home-essentials-page .lp-home-essentials-filter-check input {
    display: none;
}

.lp-home-essentials-page .lp-home-essentials-checkbox-ui {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    position: relative;
    border: 1.5px solid #c9c3b8;
    border-radius: 4px;
    background: #ffffff;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.lp-home-essentials-page .lp-home-essentials-filter-check input:checked + .lp-home-essentials-checkbox-ui {
    border-color: var(--lp-home-essentials-green);
    background: var(--lp-home-essentials-green);
}

.lp-home-essentials-page .lp-home-essentials-filter-check input:checked + .lp-home-essentials-checkbox-ui::after {
    content: "";
    width: 4px;
    height: 8px;
    position: absolute;
    left: 5px;
    top: 1px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lp-home-essentials-page .lp-home-essentials-check-label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #434944;
    font-size: 12px;
    font-weight: 400;
}

.lp-home-essentials-page .lp-home-essentials-check-label small {
    color: #929993;
    font-size: 11px;
}

.lp-home-essentials-page .lp-home-essentials-filter-check input:checked ~ .lp-home-essentials-check-label {
    color: var(--lp-home-essentials-green);
    font-weight: 500;
}

/* =========================================================
   CLEAR ALL BUTTON
========================================================= */

.lp-home-essentials-clear-wrap {
    padding: 16px 18px 20px;
}

.lp-home-essentials-clear-filters {
    width: 100%;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--lp-home-essentials-green) !important;
    border-radius: 7px !important;
    background: transparent !important;
    color: var(--lp-home-essentials-green) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.6px !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lp-home-essentials-clear-filters:hover {
    background: var(--lp-home-essentials-green) !important;
    color: #ffffff !important;
}

/* =========================================================
   TOOLBAR
========================================================= */

.lp-home-essentials-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ece6dc;
}

.lp-home-essentials-result-count {
    color: #636b64;
    font-size: 13px;
    font-weight: 400;
}

.lp-home-essentials-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-home-essentials-sort {
    height: 42px;
    padding: 0 34px 0 14px;
    border: 1px solid #dcdedb;
    border-radius: 7px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M6 8 0 0h12z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 10px 6px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    color: #3b423c;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.lp-home-essentials-sort:focus {
    border-color: var(--lp-home-essentials-green);
}

/* =========================================================
   GRID / LIST TOGGLE
========================================================= */

.lp-home-essentials-view-toggle {
    height: 42px;
    display: flex;
    overflow: hidden;
    border: 1px solid #dcdedb;
    border-radius: 7px;
}

.lp-home-essentials-view-toggle button {
    width: 48px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #6b716b;
    font-size: 19px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lp-home-essentials-view-toggle button + button {
    border-left: 1px solid #e1e2e0 !important;
}

.lp-home-essentials-view-toggle button.active {
    background: #f1f5f1 !important;
    color: var(--lp-home-essentials-green);
}

/* =========================================================
   PRODUCT GRID
========================================================= */

.lp-home-essentials-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

/* =========================================================
   PRODUCT CARD
========================================================= */

.lp-home-essentials-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5ded3;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.035);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.lp-home-essentials-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(211, 162, 67, 0.6);
    box-shadow: 0 8px 20px rgba(11, 75, 49, 0.07);
}

/* =========================================================
   PRODUCT IMAGE
========================================================= */

.lp-home-essentials-product-image {
    width: 100%;
    height: 165px;
    position: relative;
    overflow: hidden;
    display: block;
    background: #f7f0e5;
}

.lp-home-essentials-product-image-link {
    width: 100%;
    height: 100%;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.lp-home-essentials-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.lp-home-essentials-product-card:hover .lp-home-essentials-product-image img {
    transform: scale(1.035);
}

/* Badge */
.lp-home-essentials-product-badge {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 4;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--lp-home-essentials-green);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.35px;
}

/* Favorite heart */
.lp-home-essentials-favorite {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(11, 75, 49, 0.15) !important;
    border-radius: 50% !important;
    outline: 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07) !important;
    color: var(--lp-home-essentials-green) !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lp-home-essentials-favorite:hover {
    transform: scale(1.07);
    background: #ffffff !important;
}

.lp-home-essentials-favorite svg {
    width: 18px;
    height: 18px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.lp-home-essentials-favorite.active {
    background: rgba(255, 255, 255, 1) !important;
    color: #e53935 !important;
}

.lp-home-essentials-favorite.active svg {
    fill: #e53935;
    stroke: #e53935;
}

/* Quick view eye icon in image center */
.lp-home-essentials-product-eye {
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--lp-home-essentials-green);
    text-decoration: none;
    z-index: 5;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.lp-home-essentials-product-eye svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-home-essentials-product-card:hover .lp-home-essentials-product-eye {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================================
   PRODUCT CONTENT
========================================================= */

.lp-home-essentials-product-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 14px 16px;
}

.lp-home-essentials-product-content h2,
.lp-home-essentials-product-title {
    margin: 0 0 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.lp-home-essentials-product-content h2 a,
.lp-home-essentials-product-title a {
    color: #2b312c;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.lp-home-essentials-product-content h2 a:hover,
.lp-home-essentials-product-title a:hover {
    color: var(--lp-home-essentials-green);
}

/* Rating */
.lp-home-essentials-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
}

.lp-home-essentials-stars {
    color: var(--lp-home-essentials-gold);
    letter-spacing: 1px;
}

.lp-home-essentials-rating-count {
    color: #929993;
    font-size: 11px;
}

/* Price */
.lp-home-essentials-price {
    margin-top: auto;
    margin-bottom: 12px;
    color: var(--lp-home-essentials-green);
    font-size: 15px;
    font-weight: 600;
}

.lp-home-essentials-price del {
    color: #9da39e;
    font-size: 12px;
    font-weight: 400;
    margin-right: 6px;
}

.lp-home-essentials-price ins {
    text-decoration: none;
    color: var(--lp-home-essentials-green);
}

/* Product Action / Add to Cart */
.lp-home-essentials-product-actions {
    margin-top: 0;
}

.lp-home-essentials-add-cart {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--lp-home-essentials-green) !important;
    border-radius: 6px !important;
    background: transparent !important;
    color: var(--lp-home-essentials-green) !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lp-home-essentials-add-cart:hover {
    background: var(--lp-home-essentials-green) !important;
    color: #ffffff !important;
}

.lp-home-essentials-add-cart.lp-home-essentials-view-cart {
    background: var(--lp-home-essentials-green) !important;
    color: #ffffff !important;
}

.lp-home-essentials-add-cart.lp-home-essentials-view-cart:hover {
    background: var(--lp-home-essentials-green-dark) !important;
    border-color: var(--lp-home-essentials-green-dark) !important;
}

.lp-home-essentials-add-cart.lp-home-essentials-view-cart svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* =========================================================
   LIST VIEW (.is-list)
========================================================= */

.lp-home-essentials-products-grid.is-list {
    grid-template-columns: 1fr;
    gap: 16px;
}

.lp-home-essentials-products-grid.is-list .lp-home-essentials-product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: stretch;
}

.lp-home-essentials-products-grid.is-list .lp-home-essentials-product-image {
    height: 100%;
    min-height: 160px;
}

.lp-home-essentials-products-grid.is-list .lp-home-essentials-product-content {
    padding: 20px;
}

.lp-home-essentials-products-grid.is-list .lp-home-essentials-product-content h2,
.lp-home-essentials-products-grid.is-list .lp-home-essentials-product-title {
    font-size: 15px !important;
}

.lp-home-essentials-products-grid.is-list .lp-home-essentials-add-cart {
    max-width: 200px;
}

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

.lp-home-essentials-pagination-wrap {
    margin-top: 32px;
}

.lp-home-essentials-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lp-home-essentials-pagination button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid #dcdedb !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    color: #4b524c !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lp-home-essentials-pagination button:hover {
    border-color: var(--lp-home-essentials-green) !important;
    color: var(--lp-home-essentials-green) !important;
}

.lp-home-essentials-pagination button.active {
    border-color: var(--lp-home-essentials-green) !important;
    background: var(--lp-home-essentials-green) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* =========================================================
   EMPTY / NO PRODUCTS
========================================================= */

.lp-home-essentials-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    border: 1px dashed var(--lp-home-essentials-border);
    border-radius: 10px;
    background: #fffdf9;
    color: var(--lp-home-essentials-muted);
}

.lp-home-essentials-empty p {
    margin: 0 0 16px;
    font-size: 14px;
}

.lp-home-essentials-empty-clear {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--lp-home-essentials-green);
    border-radius: 6px;
    background: transparent;
    color: var(--lp-home-essentials-green);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lp-home-essentials-empty-clear:hover {
    background: var(--lp-home-essentials-green);
    color: #ffffff;
}

/* =========================================================
   SETUP ERROR
========================================================= */

.lp-home-essentials-setup-error {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 24px;
    border: 1px solid #e0c8b0;
    border-radius: 8px;
    background: #fff9f3;
    color: #7a4820;
    font-size: 14px;
    text-align: center;
}

/* =========================================================
   RESPONSIVE — TABLET / MEDIUM SCREENS
========================================================= */

@media (max-width: 1100px) {
    .lp-home-essentials-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* =========================================================
   RESPONSIVE — MOBILE DRAWER
========================================================= */

.lp-home-essentials-mobile-filter-button {
    display: none;
}

.lp-home-essentials-filter-overlay {
    display: none;
}

@media (max-width: 800px) {
    .lp-home-essentials-layout {
        grid-template-columns: 1fr;
    }

    .lp-home-essentials-mobile-filter-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        height: 44px;
        margin-bottom: 18px;
        border: 1px solid var(--lp-home-essentials-green) !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        color: var(--lp-home-essentials-green) !important;
        font-family: "Poppins", sans-serif !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        letter-spacing: 0.5px !important;
        cursor: pointer;
    }

    .lp-home-essentials-mobile-filter-button span {
        font-size: 16px;
    }

    .lp-home-essentials-page .lp-home-essentials-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        max-width: 86vw;
        height: 100vh;
        z-index: 100002;
        overflow-y: auto;
        border-radius: 0;
        border: 0;
        border-right: 1px solid var(--lp-home-essentials-border);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .lp-home-essentials-page .lp-home-essentials-sidebar.open {
        transform: translateX(0);
    }

    .lp-home-essentials-sidebar-mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 18px;
        height: 52px;
        border-bottom: 1px solid var(--lp-home-essentials-border);
        background: #fffdf9;
        color: var(--lp-home-essentials-green);
    }

    .lp-home-essentials-sidebar-mobile-head strong {
        font-size: 17px;
    }

    .lp-home-essentials-sidebar-mobile-head button {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0;
        border: 1px solid var(--lp-home-essentials-border) !important;
        border-radius: 5px;
        background: #ffffff !important;
        color: var(--lp-home-essentials-green) !important;
        font-size: 25px;
        line-height: 1;
        cursor: pointer;
    }

    .lp-home-essentials-filter-overlay {
        position: fixed;
        inset: 0;
        z-index: 100001 !important;
        display: block !important;
        background: rgba(6, 60, 40, 0.38);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .lp-home-essentials-filter-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .lp-home-essentials-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .lp-home-essentials-toolbar-actions {
        width: 100%;
    }

    .lp-home-essentials-sort {
        flex: 1;
        min-width: 0;
    }
}

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

@media (max-width: 600px) {
    .lp-home-essentials-hero {
        min-height: 370px;
        align-items: flex-end;
        padding: 25px 20px;
        background-position: center !important;
    }

    .lp-home-essentials-hero.has-image {
        background:
            linear-gradient(
                0deg,
                rgba(255, 248, 239, 1) 0%,
                rgba(255, 248, 239, 0.91) 46%,
                rgba(255, 248, 239, 0.15) 100%
            ),
            var(--lp-home-essentials-hero-image) center / cover no-repeat;
    }

    .lp-home-essentials-hero-content {
        width: 100%;
    }

    .lp-home-essentials-hero h1 {
        font-size: 34px;
    }

    .lp-home-essentials-hero-features {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

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

@media (max-width: 550px) {
    .lp-home-essentials-page {
        padding: 0 12px 22px;
    }

    .lp-home-essentials-result-count {
        font-size: 12px;
    }

    .lp-home-essentials-breadcrumb {
        font-size: 9px;
    }

    .lp-home-essentials-toolbar {
        gap: 12px;
    }

    .lp-home-essentials-toolbar-actions {
        width: 100%;
    }

    .lp-home-essentials-sort {
        width: 100%;
    }

    .lp-home-essentials-view-toggle {
        display: none;
    }

    .lp-home-essentials-products-grid:not(.is-list) {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .lp-home-essentials-product-image {
        height: 245px;
    }

    .lp-home-essentials-products-grid.is-list {
        grid-template-columns: 1fr;
    }

    .lp-home-essentials-products-grid.is-list .lp-home-essentials-product-card {
        display: block;
    }

    .lp-home-essentials-products-grid.is-list .lp-home-essentials-product-image {
        height: 245px;
    }
}

/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {
    .lp-home-essentials-product-eye {
        width: 38px;
        height: 38px;
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* =========================================================
   SMALL MOBILE PRICE
========================================================= */

@media (max-width: 390px) {
    .lp-home-essentials-page .lp-home-essentials-price-inputs {
        grid-template-columns: 1fr;
    }
}
