﻿:root{--pink:#d97b7b;--pink-d:#c26666;--pink-l:#fdf0f3;--ink:#222;--muted:#777;--line:#ececec;--green:#16a34a;--bar-h:68px}
body{padding-bottom:calc(var(--bar-h) + env(safe-area-inset-bottom,0px) + 16px)}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;    border: none;}
button{cursor:pointer;border:0;background:none}
.wrap{ max-width: 92%;margin: 0 auto;padding: 0 16px;direction: rtl;}
.crumb{display: flex;gap: 15px;flex-wrap: wrap;padding: 18px 0 12px;font-size: 12px;color: var(--muted);list-style: none;}
.crumb b{color:var(--ink);font-weight:500}

.baner-top{
   position:relative;max-width: 93%;
       margin: 15px auto;
}
.baner-top img{
    aspect-ratio:1580/190;
    width:100%;
    border-radius:11px;
    
    object-fit:cover;
}
.ms_tag a {
    background: #f1f1f4;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 4px;
    display: block;
    float: right;
    font-size: 12px;
    color: #333;
}
/* main layout */
.product{display:grid;gap:22px;grid-template-columns:1fr}
@media(min-width:900px){.product{grid-template-columns:1fr 1fr;gap:48px;align-items:start}.gallery{position:sticky;top:20px}}
.gallery .main{position:relative;aspect-ratio:1/1;background:#eee;border-radius:6px;overflow:hidden}
.gallery .main img{width:100%;height:100%;object-fit:cover;display:block}
.badge{position:absolute;top:12px;right:12px;background:var(--pink);color:#fff;font-weight:700;font-size:12px;padding:2px 12px;border-radius:14px;direction:ltr}
.pdp .thumbs button{width:72px;aspect-ratio:1/1;border-radius:4px;overflow:hidden;border:2px solid transparent;opacity:.65;padding:0}
.pdp .thumbs button.on{border-color:var(--pink);opacity:1}
.pdp .qty button{width:38px;height:44px;font-size:18px;color:#555}
.pdp .qty button:hover,.pdp .qty button:active{background:var(--pink-l)}
.pdp .qty input{width:46px;height:44px;border:0;text-align:center;font-weight:700;background:#fff;padding:0;-moz-appearance:textfield}
.pdp .qty input::-webkit-outer-spin-button,.pdp .qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}

.info h1{font-size:20px;font-weight:700;line-height:1.6}
.sku{color:var(--muted);font-size:12px;margin-top:2px}
.price{display:flex;align-items:baseline;gap:10px;margin:14px 0;flex-wrap:wrap}
.price .old{color:#999;text-decoration:line-through;font-size:13px}
.price .now{color:var(--pink-d);font-weight:700;font-size:22px}
.price .off{background:var(--pink-l);color:var(--pink-d);font-size:12px;font-weight:700;padding:1px 10px;border-radius:12px}
.notice{border:1px solid #bde5c8;background:#f1fbf4;color:#166534;border-radius:6px;padding:10px 14px;font-size:13px}
.opt{margin:18px 0 0}
.opt h5{font-size:13px;font-weight:700;margin-bottom:8px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:6px 16px;border:1px solid var(--line);border-radius:20px;font-size:13px;color:#555;transition:.15s}
.chip.on{border-color:var(--pink-d);background:var(--pink-l);color:var(--ink);font-weight:500}

.buy{display:flex;gap:10px;margin:22px 0 0}
.qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;flex:none;flex-direction: row-reverse;}
.qty p{width: 38px;    height: 44px;    font-size: 18px;    color: #555;    text-align: center;    line-height: 44px;    cursor: pointer;}
.qty p:active,.qty p:hover{background:var(--pink-l)}
.qty output{min-width:34px;text-align:center;font-weight:700;    padding-top: 0px;}
.btn{background:var(--pink);color:#fff;font-weight:700;border-radius:6px;padding:0 22px;height:44px;transition:background .2s;  border: none;}
.btn:hover{background:var(--pink-d)}
.buy .btn{flex:1}
.perks{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}
.perks div{border:1px solid var(--line);border-radius:6px;padding:10px 6px;text-align:center;font-size:12px;color:#555;line-height:1.6}
.perks svg{display:block;margin:0 auto 4px;width:20px;height:20px;stroke:var(--pink-d)}
.desc{margin-top:20px;color:#555;font-size:14px;line-height:32px}
.desc li,.desc p{list-style:none;padding-right:16px;position:relative;margin-top:4px}
.desc li::before,.desc p::before{content:"";position:absolute;right:0;top:11px;width:6px;height:6px;border-radius:50%;background:var(--pink)}

/* addons */
.addons{margin-top:44px;border:1px solid var(--line);border-radius:10px;overflow:hidden}
.addons>header{display:flex;align-items:center;gap:8px;padding:14px 18px;background:#fafafb;border-bottom:1px solid var(--line);font-weight:700}
.addons>header svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6}
.addons .body{padding:6px 18px 20px;display:grid;gap:22px;grid-template-columns:1fr}
@media(min-width:640px){.addons .body{grid-template-columns:repeat(3,1fr)}}
.group h6{font-size:14px;font-weight:700;text-align:center;padding:12px 0 8px;border-bottom:1px dashed var(--line);margin-bottom:14px}
.add-card{position:relative;border:1.5px solid var(--line);border-radius:10px;padding:12px;cursor:pointer;transition:border-color .15s,background .15s;display:block}
.add-card:has(input:checked){border-color:var(--pink-d);background:var(--pink-l)}
.add-card input{position:absolute;opacity:0;pointer-events:none}
.add-card .tick{position:absolute;top:8px;left:8px;width:22px;height:22px;border-radius:50%;background:#fff;border:1.5px solid #ddd;display:grid;place-content:center;z-index:2}
.add-card:has(input:checked) .tick{background:var(--pink-d);border-color:var(--pink-d)}
.add-card:has(input:checked) .tick::after{content:"";width:9px;height:5px;border:2px solid #fff;border-top:0;border-right:0;transform:rotate(-45deg) translate(1px,-1px)}
.add-card:has(input:focus-visible){outline:2px solid var(--pink-d);outline-offset:2px}
.add-card .im{aspect-ratio:4/3;border-radius:6px;overflow:hidden;background:#f3f3f3}
.add-card img{width:100%;height:100%;object-fit:cover;display:block}
.add-card .t{display:flex;align-items:center;gap:6px;margin-top:10px;flex-wrap:wrap;font-weight:700}
.tag{font-size:11px;font-weight:500;color:#fff;padding:0 8px;border-radius:4px;line-height:1.7}
.tag.a{background:#3b82f6}.tag.b{background:#8b5cf6}
.add-card .p{color:var(--green);font-weight:700;font-size:13px;margin-top:2px}
.add-extra{display:none;margin-top:10px;gap:8px;align-items:center}
.add-card:has(input:checked) .add-extra{display:flex}
.add-extra select{flex:1;border:1px solid var(--line);border-radius:6px;padding:4px 8px;background:#fff;min-width:0}
.mini{display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;background:#fff}
.mini button{width:28px;height:30px}
.mini output{min-width:22px;text-align:center;font-size:13px}
.addon-note{padding:0 18px 16px;font-size:12px;color:var(--muted)}

/* related */
h3.sec{font-size:17px;font-weight:700;margin:48px 0 16px;display:flex;align-items:center;gap:10px}
h3.sec::before{content:"";width:4px;height:18px;border-radius:2px;background:var(--pink)}


/* comments */
.review{margin-bottom: 25px;display: flex; flex-direction: row-reverse;    flex-wrap: wrap;    align-items: flex-start;    justify-content: space-between;
    align-content: center;}
.review > div{
    width:49%;
}
.review p.t{font-size:13px;color:#555;margin-bottom:14px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;margin-bottom:4px}
.field input,.field textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px 12px;background:#fff}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field textarea:focus{outline:2px solid var(--pink);outline-offset:-1px}
.two{display:grid;gap:14px;grid-template-columns:1fr}
.empty-order-mg{
        opacity: .3;
    margin: 43px auto;
    display: block;
    max-width: 195px !important;
    width: 100%;
}
@media(min-width:640px){.two{grid-template-columns:1fr 1fr}}
.review .btn{height:42px;    line-height: 41px;}

/* sticky bar */
.bar{position:fixed;inset:auto 0 0 0;z-index:999999;background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(0,0,0,.06);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));direction: rtl;}
.bar .in{max-width:1240px;margin:0 auto;display:flex;align-items:center;gap:12px;height:calc(var(--bar-h) - 20px)}
.bar img{width:46px;height:46px;border-radius:6px;object-fit:cover;flex:none}
.bar .who{min-width:0;flex:1}
.bar .who b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar .who span{font-size:12px;color:var(--pink-d);font-weight:700}
.bar .who small{display:block;color:var(--muted);font-size:11px;line-height:1.3}
.bar .qty{display:none}
.bar .btn{height:44px;white-space:nowrap}
@media(min-width:700px){.bar .qty{display:flex}.bar .btn{padding:0 34px}}

.toast{position:fixed;left:50%;bottom:calc(var(--bar-h) + 24px);transform:translate(-50%,20px);    direction: rtl;color:#fff;padding:10px 20px;border-radius:8px;font-size:13px;opacity:0;pointer-events:none;transition:.3s;z-index:60;white-space:nowrap}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* =========================================
   Product Share & Comments
   Theme: White / Burgundy / Soft Pink
========================================= */

.product-share-box,
.product-comments {
    direction: rtl;
    font-family: inherit;
    color: #4a4141;
    box-sizing: border-box;
}

.product-share-box *,
.product-comments * {
    box-sizing: border-box;
}

/* عنوان‌های بخش */

.product-section-caption {
    display: block;
    color: #b34a55;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-share-header h3,
.comments-title h3 {
    color: #493b3d;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    line-height: 1.9;
}

/* =========================================
   Share Box
========================================= */

.product-share-box {
    background: #fff;
    border: 1px solid #f0e7e7;
    border-radius: 13px;
    padding: 22px;
    margin: 25px 0;
    box-shadow: 0 5px 22px rgba(105, 51, 58, 0.035);
}

.product-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.product-share-header h3 {
    font-size: 15px;
}

.share-header-icon {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fbefef;
    color: #a83f4b;
    font-size: 24px;
}

.product-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #eee6e6;
    border-radius: 10px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    min-width: 0;
}

.product-share-btn .share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    border-radius: 10px;
    font-size: 23px;
    background: #fff;
}

.product-share-btn strong,
.product-share-btn small {
    display: block;
}

.product-share-btn strong {
    color: #443b3c;
    font-size: 13px;
    margin-bottom: 5px;
}

.product-share-btn small {
    color: #8c8283;
    font-size: 10px;
    line-height: 1.8;
}

.whatsapp-btn {
    background: #f4faf5;
    border-color: #e1eee3;
}

.whatsapp-btn .share-icon {
    color: #25a45a;
}

.telegram-btn {
    background: #f1f8fc;
    border-color: #dfedf6;
}

.telegram-btn .share-icon {
    color: #229ed9;
}

.product-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(75, 45, 45, 0.07);
}

.whatsapp-btn:hover {
    border-color: #25a45a;
}

.telegram-btn:hover {
    border-color: #229ed9;
}

/* =========================================
   Comments Section
========================================= */

.product-comments {
    margin: 30px 0;
}

.comments-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.comments-title h3 {
    font-size: 20px;
}

.comments-title p {
    color: #8e8485;
    font-size: 12px;
    line-height: 2;
    margin: 6px 0 0;
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbf1f2;
    color: #9e424d;
    border: 1px solid #f3e1e3;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 11px;
    white-space: nowrap;
}

.comments-count-number {
    font-size: 16px;
    font-weight: 800;
}

/* کارت نظر */

.comments-list {
      display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 640px;
}

.comment-card {
    background: #fff;
    border: 1px solid #eee6e6;
    border-radius: 12px;
    padding: 20px;
    transition: border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.comment-card:hover {
    border-color: #e8c8cc;
    box-shadow: 0 5px 20px rgba(103, 49, 57, 0.04);
}

/* اطلاعات کاربر */

.comment-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f6e7e9;
    color: #a23f4b;
    font-size: 18px;
    font-weight: 800;
}

.comment-avatar-pink {
    background: #fbeef3;
    color: #b44f72;
}

.comment-user-info {
    flex: 1;
    min-width: 0;
}

.comment-user-info strong {
    display: block;
    color: #443a3b;
    font-size: 13px;
    margin-bottom: 6px;
}

.comment-user-info span {
    display: block;
    color: #9a9091;
    font-size: 10px;
}

.comment-rating {
    text-align: left;
    white-space: nowrap;
}

.comment-rating > span {
    display: block;
    color: #d9a441;
    font-size: 15px;
    letter-spacing: 1px;
}

.comment-rating small {
    display: block;
    color: #9c9292;
    font-size: 10px;
    margin-top: 4px;
}

.empty-star {
    color: #e8e1d9;
}

/* متن نظر */

.comment-body {
    margin: 17px 0;
}

.comment-body p {
    margin: 0;
    color: #6e6364;
    font-size: 13px;
    line-height: 2.3;
    overflow-wrap: anywhere;
}

/* پایین کارت */

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 13px;
    border-top: 1px solid #f3eeee;
}

.comment-verified {
    color: #608b6d;
    font-size: 10px;
}

.comment-verified i {
    margin-left: 4px;
}

.comment-date {
    color: #a79d9e;
    font-size: 10px;
}


/* =========================================
   Responsive
========================================= */

@media (max-width: 576px) {

    .product-share-box {
        padding: 16px;
        margin: 20px 0;
    }

    .product-share-header h3 {
        font-size: 13px;
    }

    .product-share-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-share-btn {
        padding: 11px;
    }

    .comments-heading {
        align-items: flex-start;
    }

    .comments-title h3 {
        font-size: 17px;
    }

    .comments-title p {
        font-size: 11px;
    }

    .comments-count {
        padding: 8px;
        font-size: 9px;
        gap: 5px;
    }

    .comment-card {
        padding: 15px;
    }

    .comment-avatar {
        width: 39px;
        height: 39px;
    }

    .comment-user {
        gap: 9px;
    }

    .comment-rating > span {
        font-size: 12px;
    }

    .comment-body p {
        font-size: 12px;
    }

    .comment-form-box {
        padding: 16px;
    }

    .comment-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .comment-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .comment-submit-btn {
        width: 100%;
    }
    .review > div {
    width: 100%;
}.empty-order-mg {
    
    display: none;
}
}