/* Shree Marketplace — listing grid styles */

.shree-mp-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 22px;
    font-family: Arial, Helvetica, sans-serif;
    color: #17212b;
}

.shree-mp-hero {
    padding: 24px 0;
    border-bottom: 1px solid #e6e9ec;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.shree-mp-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
}
.shree-mp-hero p {
    margin: 0;
    color: #66727d;
}
.shree-mp-wrapper .shree-mp-list-btn {
    display: inline-block;
    background: #168b8e;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.shree-mp-wrapper .shree-mp-list-btn:hover {
    background: #087477 !important;
}
@media (max-width: 600px) {
    .shree-mp-hero { flex-direction: column; }
    .shree-mp-list-btn { width: 100%; text-align: center; }
}

.shree-mp-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 30px;
}
@media (max-width: 1200px) {
    .shree-mp-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .shree-mp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .shree-mp-cards { grid-template-columns: 1fr; }
}

.shree-mp-card {
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: .2s;
}
.shree-mp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(20,35,45,.09);
}

.shree-mp-img-link { display: block; }
.shree-mp-img {
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: #eceff1;
}
.shree-mp-img-placeholder {
    background: linear-gradient(135deg,#7e8589,#d7dcdf 48%,#686f73);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .3px;
    text-align: center;
    padding: 10px;
}

.shree-mp-body { padding: 12px; }
.shree-mp-wrapper a.shree-mp-title,
.shree-mp-wrapper a.shree-mp-title:link,
.shree-mp-wrapper a.shree-mp-title:visited {
    display: block;
    font-family: Georgia, serif;
    font-weight: 700;
    color: #143b73 !important;
    font-size: 17px;
    margin-bottom: 8px;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.shree-mp-wrapper a.shree-mp-title:hover {
    color: #087477 !important;
    text-decoration: none !important;
}

.shree-mp-badge {
    display: inline-block;
    font-size: 11px;
    background: #e9f8f7;
    color: #087477;
    border-radius: 10px;
    padding: 4px 9px;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.shree-mp-location {
    font-size: 12px;
    color: #5c6872;
    margin-bottom: 8px;
}

.shree-mp-spec {
    display: flex;
    justify-content: space-between;
    padding: 6px;
    font-size: 12px;
    background: #f3f5f7;
    border-radius: 4px;
    margin-bottom: 8px;
}
.shree-mp-spec span:first-child { color: #65717c; }
.shree-mp-spec span:last-child { font-weight: 700; }
.shree-mp-wrapper .shree-mp-spec a {
    color: #087477 !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.shree-mp-wrapper a.shree-mp-contact,
.shree-mp-wrapper a.shree-mp-contact:link,
.shree-mp-wrapper a.shree-mp-contact:visited {
    display: block;
    text-align: center;
    width: 100%;
    height: 39px;
    line-height: 39px;
    background: #168b8e;
    border: 0;
    border-radius: 7px;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 8px;
    box-shadow: none !important;
}
.shree-mp-wrapper a.shree-mp-contact:hover {
    background: #087477 !important;
    color: #fff !important;
    text-decoration: none !important;
}

.shree-mp-empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #ccd4da;
    padding: 50px;
    border-radius: 10px;
    color: #6b7680;
}

/* Single Listing Detail page */
.shree-mp-detail { padding-top: 20px; padding-bottom: 40px; }
.shree-mp-back {
    display: inline-block;
    background: #f1f3f5;
    border-radius: 20px;
    padding: 9px 16px;
    color: #17212b !important;
    text-decoration: none !important;
    font-size: 13px;
    margin-bottom: 18px;
}
.shree-mp-detail-img {
    width: 100%;
    height: 360px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    background-color: #eceff1;
    margin-bottom: 20px;
}
.shree-mp-detail-title {
    font-size: 30px;
    margin: 0 0 10px;
    color: #17212b;
}
.shree-mp-detail-content {
    margin: 18px 0;
    line-height: 1.7;
    font-size: 15px;
    color: #333;
}

/* Add Listing form */
.shree-mp-form-wrap { padding-top: 20px; padding-bottom: 40px; max-width: 640px; }
.shree-mp-form-hint { color: #66727d; margin-bottom: 20px; }
.shree-mp-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 6px;
    color: #17212b;
}
.shree-mp-form input[type="text"],
.shree-mp-form input[type="email"],
.shree-mp-form input[type="url"],
.shree-mp-form input[type="file"],
.shree-mp-form select,
.shree-mp-form textarea {
    width: 100%;
    border: 1px solid #d6dce1;
    border-radius: 7px;
    padding: 11px;
    font-size: 14px;
    font-family: Arial, Helvetica, sans-serif;
}
.shree-mp-form textarea { resize: vertical; }
.shree-mp-form button[type="submit"] {
    margin-top: 20px;
    font-size: 15px;
}
.shree-mp-form button[type="submit"]:disabled { opacity: .6; cursor: not-allowed !important; }

/* Tabs (Buyer/Seller/Supplier filter) */
.shree-mp-tabs {
    display: flex;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e9ed;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.shree-mp-tabs .shree-mp-tab {
    color: #4f5b65 !important;
    text-decoration: none !important;
    font-size: 14px;
    padding-bottom: 8px;
}
.shree-mp-tabs .shree-mp-tab.active {
    color: #087477 !important;
    font-weight: 700;
    border-bottom: 2px solid #168b8e;
}

/* Search bar */
.shree-mp-search {
    display: flex;
    max-width: 650px;
    border: 1px solid #d8dde2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 18px;
}
.shree-mp-search input[type="text"] {
    border: 0;
    outline: 0;
    flex: 1;
    padding: 0 15px;
    height: 42px;
    font-size: 14px;
}
.shree-mp-search button {
    border: 0;
    background: #168b8e;
    color: #fff;
    width: 52px;
    cursor: pointer;
    font-size: 16px;
}

/* Category pills */
.shree-mp-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 16px;
}
.shree-mp-cat {
    display: inline-block;
    border: 1px solid #e1e5e8;
    border-radius: 20px;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 13px;
    background: #fff;
    color: #39434d;
}

/* Layout: sidebar + main grid */
.shree-mp-wrapper .shree-mp-layout {
    display: grid !important;
    grid-template-columns: 220px 1fr !important;
    gap: 18px !important;
    width: 100% !important;
}
@media (max-width: 900px) {
    .shree-mp-wrapper .shree-mp-layout { grid-template-columns: 1fr !important; }
}
.shree-mp-wrapper .shree-mp-sidebar {
    width: 100% !important;
    max-width: 220px !important;
}
@media (max-width: 900px) {
    .shree-mp-wrapper .shree-mp-sidebar { max-width: 100% !important; }
}
.shree-mp-sidebar {
    background: #fff;
    border: 1px solid #e5e9ed;
    border-radius: 10px;
    padding: 16px;
    height: max-content;
}
.shree-mp-sidebar h3 { margin: 0 0 12px; font-size: 15px; }
.shree-mp-sidebar label {
    display: block;
    font-size: 13px;
    margin: 9px 0;
    color: #4f5b65;
}
.shree-mp-sidebar input { margin-right: 7px; }

.shree-mp-wrapper .shree-mp-main .shree-mp-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
}
@media (max-width: 900px) {
    .shree-mp-wrapper .shree-mp-main .shree-mp-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .shree-mp-wrapper .shree-mp-main .shree-mp-cards { grid-template-columns: 1fr !important; }
}
.shree-mp-wrapper .shree-mp-card {
    width: 100% !important;
    min-width: 0 !important;
}
.shree-mp-wrapper .shree-mp-img,
.shree-mp-wrapper .shree-mp-img-placeholder {
    width: 100% !important;
}
