/* ---------- Products Archive Wrapper ---------- */
.mj-products-archive-wrap {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: nowrap; /* keep sidebar and main on one row */
}

/* ---------------- Sidebar ---------------- */
.mj-archive-sidebar {
    width: 320px;
    padding: 10px;
        padding-top: 60px;
  
    flex-shrink: 0;
}

/* ---------------- Main ---------------- */
.mj-archive-main {
    flex: 1;
}

/* ---------- Archive Controls ---------- */
.mj-archive-controls {
        display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.mj-right-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}
.mj-sort-text p {
    margin: 0;
    padding: 0;
}
/* ---------- Products Grid ---------- */
.mj-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* ---------- Grid View ---------- */
.mj-products-grid.grid-view .mj-product-card {
    width: calc(33.333% - 34.33px); /* 3 columns */
    /* border: 1px solid #ddd; */
    box-sizing: border-box;
    background: #fff;
    position: relative;
}

/* ---------- List View ---------- */
.mj-products-grid.list-view {
    flex-direction: column;
}
.mj-products-grid.list-view .mj-product-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
}
.mj-products-grid.list-view .mj-product-img {
    /* width: 35%; */
    margin-right: 20px;
}
.mj-products-grid.list-view .mj-product-meta,
.mj-products-grid.list-view .mj-product-actions {
    width: 65%;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .mj-products-archive-wrap {
        flex-wrap: wrap;
    }
    .mj-archive-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .mj-products-grid.grid-view .mj-product-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .mj-products-grid.grid-view .mj-product-card {
        width: 100%;
    }
    .mj-products-grid.list-view .mj-product-card {
        flex-direction: column;
    }
    .mj-products-grid.list-view .mj-product-img,
    .mj-products-grid.list-view .mj-product-meta {
        width: 100%;
        margin: 0;
    }
}
/* Hide description in grid view */
.mj-products-grid.grid-view .mj-product-short-desc {
    display: none;
}

/* Show description in list view */
.mj-products-grid.list-view .mj-product-short-desc {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.mj-price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}
.mj-filter-actions {
    display: none;
}

.mj-pagination li a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.mj-pagination li.active a {
    background: #333;
    color: #fff;
}
.mj-pagination li:first-child a,
.mj-pagination li:last-child a {
    font-weight: 600;
}
.mj-pagination {
    display: flex;
    list-style: none;
    gap: 10px;
    margin-top: 20px;
}
.mj-pagination li a {
    padding: 5px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
}
.mj-pagination li.active a {
    background: #333;
    color: #fff;
}

.mj-archive-title-wrap {
       text-align: center;
    background: #DCDAD5;
    padding: 50px 0 50px 0;
}
h1.mj-archive-title {
    padding: 0px;
    margin: 0;
    font-size: 28px;
}
select.mj-orderby-select {
    border: none;
}

button.mj-list-view-btn ,button.mj-grid-view-btn {
    border: none;
    color: #000;
    background: none;
    font-size: 21px;
}
button.mj-list-view-btn ,button.mj-grid-view-btn:hover {
    background: none;
}
button.mj-grid-view-btn.active ,button.mj-list-view-btn.active {
    color: #c19417;
}
h3.mj-product-title {
    font-size: 18px;
    font-family: Lora, serif;
    color: #000;
    font-weight: normal;
}


.grid-view .mj-product-actions {
    position: absolute;
    visibility: hidden;
    bottom: 244px;
    z-index: 99;
    left: 16px;
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: calc(1 + 0.2 / var(--font-body-scale));
    width: 90%;
    text-align: center;
}
.grid-view .mj-product-actions {
    background: #c19417 !important;
    color: #fff !important;
    /* width: 100% !important; */
    padding: 15px 0 15px 0 !important;
}

.grid-view .mj-product-actions a {
    color: #fff;
}

.grid-view .mj-product-card:hover .mj-product-actions {
    visibility: visible;
}
.grid-view .mj-product-price {
    font-size: 18px;
    color: #000;
    font-weight: 600;
}

.grid-view .add_to_cart_button {
    background: transparent !important;
    color: #fff !important;
    width: 100%;
}

.mj-filter-box {
    margin-top: 50px;
}

.list-view .mj-product-actions a {
    background: #c19417 !important;
    color: #fff !important;
}