﻿/* =========================================================
   PUBLIC SAMSARI - COMPACT VERSION
   ========================================================= */

.samsariPublicPage {
    padding-top:16px;
}


/* HERO */

.samsariPublicPage .samsariHero {
    margin-bottom:16px;
    padding:22px 26px;
    border-radius:18px;
}

.samsariPublicPage .samsariEyebrow {
    font-size:11px;
}

.samsariPublicPage .samsariTitle {
    margin:5px 0;
    font-size:27px;
}

.samsariPublicPage .samsariLead {
    margin:0;
    font-size:12px;
}


/* =========================================================
   MESSAGE
   ========================================================= */

.samsariMessageSuccess {
    display:block;
    margin:0 0 15px;
    padding:12px 15px;
    border:1px solid #cde9d6;
    border-radius:11px;
    background:#edf9f1;
    color:#2d7645;
    font-size:12px;
    text-align:center;
}

.samsariMessageError {
    display:block;
    margin:0 0 15px;
    padding:12px 15px;
    border:1px solid #f0ccd1;
    border-radius:11px;
    background:#fff1f2;
    color:#a43f50;
    font-size:12px;
    text-align:center;
}


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

.samsariPublicToolbar {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:16px;
    padding:10px 12px;
    background:#fff;
    border:1px solid #eadcdf;
    border-radius:13px;
}

.samsariPublicSearch {
    display:flex;
    align-items:center;
    gap:8px;
    flex:1;
}

.samsariPublicSearch .samsariInput {
    height:38px;
    max-width:250px;
    padding:7px 11px;
    border-radius:9px;
    font-size:12px;
}

.samsariPublicCategory {
    max-width:190px !important;
}

.samsariSearchButton {
    min-width:78px !important;
    height:38px;
    padding:7px 13px !important;
    border-radius:9px !important;
    font-size:12px !important;
}

.samsariSecondaryButton {
    height:38px;
    padding:7px 14px;
    border:1px solid #dfc3c9;
    border-radius:9px;
    background:#fff;
    color:#a65465;
    font-family:Tahoma;
    font-size:11px;
    cursor:pointer;
}

.samsariPublicResultCount {
    min-width:80px;
    text-align:center;
    color:#817579;
    font-size:10px;
}

.samsariPublicResultCount strong {
    display:block;
    margin-bottom:1px;
    color:#c96f80;
    font-size:19px;
}


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

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


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

.samsariPublicCard {
    min-width:0;
    overflow:hidden;
    background:#fff;
    border:1px solid #eadcdf;
    border-radius:14px;
    box-shadow:0 4px 15px rgba(80,45,55,.045);
    transition:transform .18s ease,box-shadow .18s ease;
}

.samsariPublicCard:hover {
    transform:translateY(-2px);
    box-shadow:0 8px 22px rgba(80,45,55,.08);
}


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

.samsariPublicPhoto {
    position:relative;
    height:165px;
    overflow:hidden;
    background:#f7f4f5;
}

.samsariMainImageHolder {
    width:100%;
    height:100%;
}

.samsariMainImageHolder img {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    cursor:pointer;
    transition:transform .2s ease;
}

.samsariMainImageHolder img:hover {
    transform:scale(1.025);
}

.samsariPublicNoImage {
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f6f2f3;
    color:#9b8f92;
    font-size:11px;
}


/* عکس دوم */

.samsariSecondImage {
    position:absolute;
    left:8px;
    bottom:8px;
    width:48px;
    height:48px;
    padding:2px;
    overflow:hidden;
    background:#fff;
    border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.17);
    z-index:3;
}

.samsariSecondImage img {
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
}


/* =========================================================
   HEALTH BADGE
   ========================================================= */

.samsariHealthBadge {
    position:absolute;
    top:8px;
    right:8px;
    max-width:80%;
    padding:5px 8px;
    border-radius:999px;
    font-size:8px;
    font-weight:700;
    z-index:4;
}

.healthVerified {
    background:rgba(226,248,233,.96);
    color:#238047;
    border:1px solid #bfe5ca;
}

.healthPending {
    background:rgba(255,247,221,.96);
    color:#98701a;
    border:1px solid #f0dfa8;
}

.healthUnverified {
    background:rgba(255,255,255,.93);
    color:#756a6d;
    border:1px solid #e1d8da;
}


/* =========================================================
   BODY
   ========================================================= */

.samsariPublicBody {
    padding:12px;
}

.samsariPublicCategoryText {
    margin-bottom:3px;
    color:#bf7382;
    font-size:9px;
    font-weight:700;
}

.samsariPublicTitle {
    height:42px;
    overflow:hidden;
    margin:0 0 5px;
    color:#3d3638;
    font-size:13px;
    font-weight:800;
    line-height:1.7;
}

.samsariPublicPrice {
    display:flex;
    align-items:baseline;
    gap:4px;
    margin:6px 0;
    color:#c45f74;
}

.samsariPublicPrice strong {
    font-size:17px;
}

.samsariPublicPrice span {
    font-size:9px;
}

.samsariPublicMeta {
    display:flex;
    justify-content:space-between;
    gap:5px;
    padding:6px 0;
    border-top:1px solid #f2e9eb;
    border-bottom:1px solid #f2e9eb;
    color:#978b8e;
    font-size:8px;
}

.samsariPublicDescription {
    display:-webkit-box;
    height:40px;
    overflow:hidden;
    margin-top:7px;
    color:#6b6164;
    font-size:10px;
    line-height:2;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}


/* =========================================================
   REQUEST BUTTON
   ========================================================= */

.samsariBuyRequestButton {
    width:100%;
    height:36px;
    margin-top:9px;
    padding:6px 8px;
    border:0;
    border-radius:9px;
    background:#cf7f8e;
    color:#fff;
    font-family:Tahoma;
    font-size:10px;
    font-weight:700;
    cursor:pointer;
    transition:background .18s ease;
}

.samsariBuyRequestButton:hover {
    background:#bd6979;
}

.samsariRequestSent,
.samsariRequestSent:hover {
    background:#49a96c;
    color:#fff;
    cursor:default;
    opacity:1;
}


/* =========================================================
   PAGER
   ========================================================= */

.samsariPager {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:6px;
    margin:24px 0 15px;
}

.samsariPagerButton {
    min-width:34px;
    height:34px;
    box-sizing:border-box;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 10px;
    border:1px solid #e4cfd4;
    border-radius:9px;
    background:#fff;
    color:#a65e6d;
    font-size:11px;
    font-weight:700;
    text-decoration:none;
}

.samsariPagerButton:hover {
    background:#fff2f5;
}

.samsariPagerCurrent {
    border-color:#cf7f8e;
    background:#cf7f8e;
    color:#fff;
}

.samsariPagerDots {
    padding:0 3px;
    color:#a99ca0;
}


/* =========================================================
   DISCLAIMER
   ========================================================= */

.samsariHealthDisclaimer {
    margin:20px 0;
    padding:10px 14px;
    border:1px solid #eee4e6;
    border-radius:10px;
    background:#faf7f8;
    color:#887c80;
    font-size:9px;
    line-height:1.9;
    text-align:center;
}


/* =========================================================
   MODAL
   ========================================================= */

.samsariModalOverlay {
    position:fixed;
    inset:0;
    z-index:10000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(35,25,28,.58);
}

.samsariPurchaseModal {
    position:relative;
    width:100%;
    max-width:400px;
    box-sizing:border-box;
    padding:25px;
    background:#fff;
    border-radius:18px;
    box-shadow:0 20px 70px rgba(0,0,0,.25);
    text-align:center;
}

.samsariModalClose {
    position:absolute;
    top:8px;
    left:10px;
    width:34px;
    height:34px;
    border:0;
    background:transparent;
    color:#887c80;
    font-size:25px;
    cursor:pointer;
}

.samsariModalIcon {
    width:55px;
    height:55px;
    margin:0 auto 10px;
    border-radius:50%;
    background:#fae8ec;
    color:#bf6476;
    font-size:24px;
    line-height:55px;
}

.samsariPurchaseModal h2 {
    margin:7px 0;
    color:#3d3638;
    font-size:18px;
}

.samsariPurchaseModal p {
    color:#716669;
    font-size:11px;
    line-height:2;
}

.samsariModalListingTitle {
    margin:7px 0 11px;
    color:#bd6878;
    font-size:12px;
    font-weight:700;
}

.samsariMobileInput {
    direction:ltr;
    text-align:center;
    font-size:16px !important;
    letter-spacing:1px;
}

.samsariPurchasePrivacy {
    margin-top:10px;
    color:#96898d;
    font-size:9px;
}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.samsariLightbox {
    position:fixed;
    inset:0;
    z-index:11000;
    display:none;
    align-items:center;
    justify-content:center;
    padding:25px;
    background:rgba(0,0,0,.92);
    cursor:pointer;
}

.samsariLightbox img {
    max-width:96vw;
    max-height:94vh;
    object-fit:contain;
}

.samsariLightboxClose {
    position:absolute;
    top:15px;
    right:20px;
    border:0;
    background:transparent;
    color:#fff;
    font-size:40px;
    cursor:pointer;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:1000px) {

    .samsariPublicGrid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media(max-width:760px) {

    .samsariPublicGrid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .samsariPublicToolbar {
        flex-direction:column;
        align-items:stretch;
    }

    .samsariPublicSearch {
        flex-wrap:wrap;
    }

    .samsariPublicSearch .samsariInput {
        max-width:none;
        flex:1;
    }

    .samsariPublicCategory {
        max-width:none !important;
    }

}


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

@media(max-width:520px) {

    .samsariPublicPage {
        padding-left:10px;
        padding-right:10px;
    }

    .samsariPublicPage .samsariHero {
        padding:18px;
    }

    .samsariPublicPage .samsariTitle {
        font-size:22px;
    }

    .samsariPublicSearch {
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .samsariPublicSearch .samsariInput,
    .samsariPublicCategory {
        width:100%;
        max-width:none !important;
    }

    .samsariPublicGrid {
        grid-template-columns:1fr;
        gap:12px;
    }

    .samsariPublicCard {
        display:grid;
        grid-template-columns:130px 1fr;
    }

    .samsariPublicPhoto {
        height:auto;
        min-height:190px;
    }

    .samsariPublicTitle {
        height:auto;
        min-height:38px;
        font-size:12px;
    }

    .samsariPublicDescription {
        height:36px;
        font-size:9px;
    }

    .samsariPublicPrice strong {
        font-size:15px;
    }

    .samsariHealthBadge {
        max-width:90%;
        font-size:7px;
    }

    .samsariSecondImage {
        width:42px;
        height:42px;
    }

}