:root {
    --bg: #F6F5F1;
    --surface: #FFFFFF;
    --ink: #1F2421;
    --ink-soft: #83887F;
    --line: #ECE9E1;
    --moss: #3C6E55;
    --moss-dark: #274A38;
    --clay: #D9534F;
    --sun: #E8AC3E;
    --radius: 10px;
}



a {
    text-decoration: none;
    color: inherit;
}

.info {
    margin: 20px 0;
}



.wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    align-items: start;
}


.left-col {
    width: 24%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.seller-card {
    padding: 16px;
}

.seller-card .row-title {
    font-size: 12.5px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.seller-card b.name {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-soft);
    margin-bottom: 10px;
}

.check-item svg {
    width: 15px;
    height: 15px;
    color: var(--moss);
    flex-shrink: 0;
    margin-top: 1px;
}

.check-item b {
    color: var(--ink);
    font-weight: 600;
}

.buy-card {
    padding: 16px;
}

.best-price-tag {
    font-size: 11.5px;
    color: #FFF;
    background: rgb(236, 5, 5);
    border-radius: 6px;
    padding: 5px 8px;
    display: inline-block;
    margin-bottom: 12px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 10px;
}

.price-num {
    font-size: 20px;
    font-weight: 800;
}

.price-unit {
    font-size: 12px;
    color: var(--ink-soft);
}

.extra-buyers {
    font-size: 11px;
    color: var(--ink-soft);
    text-align: right;
    margin-bottom: 14px;
}

.stock-warning {
    font-size: 12px;
    /* font-weight: 600; */
    color: #FFFFFF;
    background: #ca3737;
    border: 1px solid #e0e0e0;
    border-radius: 7px;
    padding: 7px 10px;
    margin-bottom: 12px;
    text-align: center;
}

.btn-cart {
    width: 100%;
    /* background: var(--clay); */
    background: #3AA6A0;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.btn-cart:hover {
    background: #318d88;
}

.buy-card .note {
    font-size: 11px;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 10px;
}


.main-card {
    width: 80%;
    padding: 20px;
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 10px;
}

.info-side {
    margin-top: 8px;
}

.icon-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--ink-soft);
    position: absolute;
    top: 15px;
    right: 6px;
}

.icon-row svg {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.favorite-btn {
    transition: .2s;
}

.favorite-btn:hover {
    stroke: var(--clay);
}

.favorite-btn.active {
    fill: var(--clay);
    stroke: var(--clay);
}

.brand-line {
    font-size: 12.5px;
    color: var(--moss-dark);
    font-weight: 600;
    margin-bottom: 14px;
}

h1 {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.9;
    margin: 0 0 14px;
}





.feat-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feat-list {
    display: flex;
    gap: 11px;

}

.feat-item {
    width: 128px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    color: var(--ink-soft);
    background-color: #f0f0f1;
    padding: 8px;
    border-radius: 6px;
}

.feat-item svg {
    width: 16px;
    height: 16px;
    color: var(--moss);
    flex-shrink: 0;
}

.feat-item b {
    color: var(--ink);
    font-weight: 600;
}

.more-link {
    background-color: inherit;
    border: 1px solid var(--line);
    border-radius: 6px;
    width: max-content;
    padding: 0 10px;
    height: 30px;
    font-size: 10.5px;
    color: var(--moss-dark);
    font-weight: 600;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.image-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.main-img {
    /* box-shadow: 0 0 4px rgb(199, 198, 198); */
    width: 300px;
    height: 300px;
    background: #F4F2EC;
    border-radius: 10px;
    background-image: url(./img/poshakkodak.png);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.main-img svg {
    width: 62%;
    height: 62%;
}

.products-info {
    margin: 0 0 20px 0;
}

.lower-card {
    grid-column: 1/3;
    padding: 22px;
}

.section-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 14px;
    padding-right: 9px;
    border-right: 3px solid #3AA6A0;
}

.feature-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 24px;
}

.feature-table tr {
    border-bottom: 1px solid var(--line);
}

.feature-table td {
    padding: 10px 4px;
}

.feature-table td:first-child {
    color: var(--ink-soft);
    width: 38%;
}

.feature-table td:last-child {
    font-weight: 600;
}

.desc-text {
    font-size: 13.3px;
    line-height: 2.1;
    color: #3A3E3A;
}

/* ----------------------------------- ریسپانسیو */

@media (max-width:1200px) {
    .best-price-tag {
        position: absolute;
    }

    .seller-card {
        width: 100%;
    }

    .buy-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .main-card {
        width: 75%;
        padding: 18px;
    }

    .left-col {
        width: 25%;
    }

    .main-img {
        width: 260px;
        height: 260px;
    }

    .feat-list {
        flex-wrap: wrap;
    }

    .feat-item {
        width: 120px;
    }

}

@media (max-width:1024px) {
    .buy-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 68px;
    }

    .wrap {
        flex-direction: column;
        gap: 20px;
    }

    .main-card {
        width: 100%;
    }

    .left-col {
        width: 100%;

        gap: 16px;
    }

    .main-img {
        width: 250px;
        height: 250px;
    }

    .info-side {
        flex: 1;
    }

    .feat-list {
        flex-wrap: wrap;
        gap: 10px;
    }

    .feat-item {
        width: calc(33.333% - 7px);
        min-width: 130px;
    }

    .lower-card {
        padding: 20px;
    }

}

@media (max-width:768px) {
    .buy-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 68px;
    }

    .info {
        margin: 16px 0;
    }

    .main-card {
        flex-direction: column;
        align-items: center;
        padding: 16px;
    }

    .image-side {
        width: 100%;
    }

    .main-img {
        width: 220px;
        height: 220px;
    }

    .info-side {
        width: 100%;
        margin-top: 20px;
    }

    h1 {
        font-size: 15px;
        line-height: 1.8;
    }

    .brand-line {
        font-size: 12px;
    }

    .feat-title {
        font-size: 13px;
    }

    .feat-list {
        gap: 8px;
    }

    .feat-item {
        width: calc(50% - 4px);
        min-width: unset;
        height: 44px;
        font-size: 11px;
    }

    .more-link {
        margin-top: 16px;
    }

    .seller-card {
        padding: 14px;
    }

    .lower-card {
        padding: 18px;
    }

    .feature-table {
        font-size: 12px;
    }

    .desc-text {
        font-size: 12px;
        line-height: 2;
    }

}

@media (max-width:576px) {
    .buy-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 58px;
    }

    .info {
        margin: 12px 0;
    }

    .main-card {
        padding: 12px;
        gap: 14px;
    }

    .main-img {
        width: 180px;
        height: 180px;
    }

    .icon-row {
        top: 8px;
        right: 0;
        gap: 10px;
    }

    .icon-row svg {
        width: 16px;
        height: 16px;
    }

    h1 {
        font-size: 14px;
        line-height: 1.8;
    }

    .brand-line {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .feat-title {
        font-size: 12px;
    }

    .feat-list {
        flex-direction: column;
        gap: 8px;
    }

    .feat-item {
        width: 100%;
        height: 42px;
        font-size: 11px;
    }

    .more-link {
        width: 100%;
        justify-content: center;
        font-size: 11px;
    }

    .seller-card,
    .lower-card {
        padding: 14px;
    }

    .section-title {
        font-size: 13px;
    }

    .feature-table {
        font-size: 11px;
    }

    .feature-table td {
        padding: 8px 4px;
    }

    .desc-text {
        font-size: 11px;
        line-height: 1.9;
    }

    .buy-card {
        padding: 12px 14px;
    }

    .price-num {
        font-size: 18px;
    }

    .stock-warning {
        font-size: 11px;
        padding: 6px 8px;
    }

    .btn-cart {
        height: 42px;
        font-size: 13px;
    }

}

@media (max-width:430px) {
    .buy-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 58px;
    }

    .main-card {
        padding: 10px;
        border-radius: 8px;
    }

    .main-img {
        width: 160px;
        height: 160px;
    }

    h1 {
        font-size: 13px;
        line-height: 1.8;
    }

    .brand-line {
        font-size: 10.5px;
    }

    .feat-title {
        font-size: 11.5px;
        margin-bottom: 8px;
    }

    .feat-list {
        gap: 6px;
    }

    .feat-item {
        height: 40px;
        padding: 6px 8px;
        font-size: 10.5px;
    }

    .feat-item svg {
        width: 14px;
        height: 14px;
    }

    .more-link {
        height: 34px;
        font-size: 10px;
    }

    .seller-card,
    .lower-card {
        padding: 12px;
    }

    .section-title {
        font-size: 12px;
    }

    .feature-table {
        font-size: 10.5px;
    }

    .desc-text {
        font-size: 10.8px;
        line-height: 1.9;
    }

    .price-num {
        font-size: 17px;
    }

    .price-unit {
        font-size: 11px;
    }

    .btn-cart {
        height: 40px;
        font-size: 12px;
        border-radius: 8px;
    }

    .buy-card .note {
        font-size: 10px;
    }

}

@media (max-width:360px) {
    .buy-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 58px;
    }

    .info {
        margin: 10px 0;
    }

    .main-card {
        padding: 8px;
        border-radius: 8px;
        gap: 12px;
    }

    .main-img {
        width: 140px;
        height: 140px;
    }

    .icon-row {
        top: 6px;
        right: -2px;
        gap: 8px;
    }

    .icon-row svg {
        width: 15px;
        height: 15px;
    }

    h1 {
        font-size: 12px;
        line-height: 1.7;
    }

    .brand-line {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .feat-title {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .feat-item {
        height: 36px;
        padding: 6px;
        font-size: 10px;
        border-radius: 6px;
    }

    .feat-item svg {
        width: 13px;
        height: 13px;
    }

    .more-link {
        height: 32px;
        font-size: 9.5px;
    }

    .seller-card,
    .lower-card {
        padding: 10px;
    }

    .row-title,
    .check-item,
    .buy-card .note {
        font-size: 10px;
    }

    .price-num {
        font-size: 16px;
    }

    .price-unit {
        font-size: 10px;
    }

    .btn-cart {
        height: 38px;
        font-size: 11px;
        border-radius: 7px;
    }

    .section-title {
        font-size: 11.5px;
    }

    .feature-table {
        font-size: 10px;
    }

    .feature-table td {
        padding: 7px 2px;
    }

    .desc-text {
        font-size: 10px;
        line-height: 1.8;
    }

}

.share-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1f2937;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 9999;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===========================
    Pill Toast (unified design for cart / like / unlike)
=========================== */

.pill-toast {
    position: fixed;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(31, 36, 33, 0.14);
    padding: 13px 15px;
    min-width: 290px;
    max-width: 350px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s cubic-bezier(.22, 1, .36, 1);
    z-index: 9999;
}

.pill-toast.show {
    opacity: 1;
    pointer-events: auto;
}

/* موقعیت‌ها */
.pill-toast.pos-bottom-left {
    bottom: 24px;
    left: 24px;
    transform: translateY(16px);
}

.pill-toast.pos-bottom-left.show {
    transform: translateY(0);
}

.pill-toast.pos-top-center {
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
}

.pill-toast.pos-top-center.show {
    transform: translateX(-50%) translateY(0);
}

/* آیکون دایره‌ای */
.pill-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pill-toast.type-success .pill-toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.pill-toast.type-like .pill-toast-icon {
    background: #fde0e0;
    color: var(--clay);
}

.pill-toast.type-neutral .pill-toast-icon {
    background: #eceae4;
    color: var(--ink-soft);
}

/* متن */
.pill-toast-body {
    flex: 1;
    min-width: 0;
}

.pill-toast-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.6;
}

.pill-toast-sub {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pill-toast-action {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

.pill-toast-action:hover {
    text-decoration: underline;
}

.pill-toast.type-success .pill-toast-action {
    color: var(--moss-dark);
}

/* دکمه بستن */
.pill-toast-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    background: none;
    color: var(--ink-soft);
    font-size: 12px;
    cursor: pointer;
    border-radius: 50%;
    transition: .2s;
    margin-top: 2px;
}

.pill-toast-close:hover {
    background: var(--bg);
    color: var(--ink);
}

@media (max-width: 480px) {

    .pill-toast.pos-bottom-left,
    .pill-toast.pos-top-center {
        left: 12px;
        right: 12px;
        max-width: none;
        transform: translateY(-16px);
    }

    .pill-toast.pos-bottom-left.show,
    .pill-toast.pos-top-center.show {
        transform: translateY(0);
    }

}

/* ===========================
    Stock limit states
=========================== */

.btn-cart:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
}

.btn-cart:disabled:hover {
    background: #d1d5db;
}

.qty-ctrl-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.qty-max-warning {
    font-size: 11px;
    color: #FFFFFF;
    text-align: center;
    margin-top: 6px;
    background-color: #3AA6A0;
    padding: 6px 0;
    border-radius: 4px;
}