/* ===================================================================
   Product detail page (PDP).
   Mobile: sticky image gallery behind a draggable-looking sheet that
   scrolls up to cover it; fixed add-to-cart bar instead of bottom nav.
   Desktop: gallery column (right) + info/purchase column (left).
=================================================================== */

/* ---- header overrides for this page only (mobile) ---- */
@media (max-width: 991.98px) {
    body.cw-pdp-page .cw-topbar__end { display: flex; }
    body.cw-pdp-page .cw-auth-btn { display: none; }
    body.cw-pdp-page .cw-search { max-width: none; }

    body.cw-pdp-page .cw-bottom-nav { display: none; }
    body.cw-pdp-page { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

    /* the header's own bottom border, stacked right above the breadcrumb's
       own padding, reads as a stray line wasting vertical space between
       them on this page - drop it here only. */
    body.cw-pdp-page .cw-header { border-bottom: 0; }
}

.cw-pdp { padding-bottom: 30px; }

/* only add vertical spacing here - keep the container's own left/right
   padding (don't zero it out with a shorthand `padding`, or the crumbs
   end up flush against the edge of the screen) */
.cw-pdp__crumbs-wrap { display: block; padding-top: 20px; padding-bottom: 20px; }
.cw-pdp__crumbs-wrap .cw-crumbs { margin-bottom: 0; }

/* mobile only: half the vertical breathing room around the breadcrumb;
   desktop keeps its own 20px/20px from the rule above untouched (see the
   min-width:992px override further down, which doesn't touch padding). */
@media (max-width: 991.98px) {
    .cw-pdp__crumbs-wrap { padding-top: 10px; padding-bottom: 10px; }
}

.cw-pdp__layout { display: flex; flex-direction: column; }

/* ===================== gallery ===================== */

.cw-pdp-gallery {
    position: sticky;
    top: 58px;
    z-index: 1;
    background: var(--white);
    min-width: 0;
}

.cw-pdp-gallery__main {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    overscroll-behavior: auto;
    direction: ltr;
    touch-action: pan-y;
    user-select: none;
}
.cw-pdp-gallery__track {
    display: flex;
    flex-direction: row-reverse;
    width: calc(100% * var(--gallery-count, 1));
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.cw-pdp-gallery__main.is-dragging { cursor: grabbing; }
.cw-pdp-gallery__main.is-vertical-dragging { cursor: ns-resize; }

.cw-pdp-gallery__slide {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 calc(100% / var(--gallery-count, 1));
    width: calc(100% / var(--gallery-count, 1));
    height: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    touch-action: pan-y;
}
.cw-pdp-gallery__slide:focus,
.cw-pdp-gallery__slide:focus-visible { outline: none; box-shadow: none; }
.cw-pdp-gallery__slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.cw-pdp-gallery__slide--video {
    background: var(--white);
}
.cw-pdp-gallery__video-frame {
    width: min(100%, 1000px);
    aspect-ratio: 16 / 9;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    overflow: hidden;
}
.cw-pdp-gallery__video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--white);
    pointer-events: none;
}

/* Mobile pagination: fixed over the lower-left corner of the square image
   viewport. RTL keeps image #1 as the right-most (first) item. */
.cw-pdp-gallery__dots {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    max-width: calc(100% - 24px);
    padding: 6px 8px;
    border-radius: 999px;
    background: #eeeeee;
    overflow-x: auto;
    scrollbar-width: none;
    direction: rtl;
    pointer-events: auto;
}
.cw-pdp-gallery__dots::-webkit-scrollbar { display: none; }
.cw-pdp-gallery__dot {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.04);
    cursor: pointer;
    transition: width .18s ease, height .18s ease, background-color .18s ease, opacity .18s ease;
}
.cw-pdp-gallery__dot.is-active {
    width: 22px;
    height: 7px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: none;
}
.cw-pdp-gallery__dot.is-compact:not(.is-active) {
    width: 4px;
    height: 4px;
    opacity: .72;
}

.cw-pdp-gallery__offer {
    display: none;
}

.cw-pdp-gallery__thumbs {
    display: none;
}

/* Image lightbox. The same draggable track is used on touch and mouse so
   the image visibly follows the gesture instead of jumping at release. */
.cw-pdp-lightbox[hidden] { display: none; }
.cw-pdp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility 0s linear .22s;
}
.cw-pdp-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .22s ease;
}
.cw-pdp-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 15, .78);
    backdrop-filter: blur(3px);
}
.cw-pdp-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(96vw, 1200px);
    height: min(94vh, 1000px);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: var(--white);
    box-sizing: border-box;
    transform: translateY(8px) scale(.975);
    opacity: .96;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}
.cw-pdp-lightbox.is-open .cw-pdp-lightbox__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.cw-pdp-lightbox__stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    cursor: grab;
    direction: ltr;
}
.cw-pdp-lightbox__stage.is-dragging { cursor: grabbing; }
.cw-pdp-lightbox__track {
    display: flex;
    flex-direction: row-reverse;
    width: calc(100% * var(--lightbox-count, 1));
    height: 100%;
    transform: translate3d(0, 0, 0);
    will-change: transform;
    transition: transform .30s cubic-bezier(.2,.8,.2,1);
}
.cw-pdp-lightbox__slide {
    flex: 0 0 calc(100% / var(--lightbox-count, 1));
    width: calc(100% / var(--lightbox-count, 1));
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cw-pdp-lightbox__slide[hidden],
.cw-pdp-lightbox__thumb[hidden] { display: none !important; }
.cw-pdp-lightbox__slide--video {
    background: var(--white);
}
.cw-pdp-lightbox__video-frame {
    width: min(100%, 1200px);
    aspect-ratio: 16 / 9;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    overflow: hidden;
}
.cw-pdp-lightbox__slide--video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--white);
}
.cw-pdp-lightbox__thumb--video {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 64px;
    padding: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    background: var(--white);
}
.cw-pdp-lightbox__thumb--video svg {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%);
}
.cw-pdp-lightbox__thumb--video span {
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 6px;
    text-align: center;
    white-space: nowrap;
}
.cw-pdp-lightbox__slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}
.cw-pdp-lightbox__close {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: var(--white);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    box-shadow: 0 3px 12px rgba(0,0,0,.10);
}
.cw-pdp-lightbox__close svg { width: 20px; height: 20px; }
.cw-pdp-lightbox__thumbs {
    grid-column: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 0;
    scrollbar-width: none;
}
.cw-pdp-lightbox__thumbs::-webkit-scrollbar { display: none; }
.cw-pdp-lightbox__thumb {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    overflow: hidden;
    cursor: pointer;
}
.cw-pdp-lightbox__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cw-pdp-lightbox__thumb.is-active { border-color: var(--brand); }
.cw-pdp-gallery__thumb--video {
    position: relative;
    color: var(--muted);
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
}
.cw-pdp-gallery__thumb--video svg {
    position: absolute;
    top: 4px;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translateX(-50%);
}
.cw-pdp-gallery__thumb--video span {
    position: absolute;
    left: 3px;
    right: 3px;
    bottom: 5px;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}
.cw-pdp-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0,0,0,.58);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    pointer-events: none;
    z-index: 2;
}

.cw-pdp-title-wrap {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.cw-pdp-title { font-size: 15.5px; font-weight: 700; line-height: 1.8; margin: 0 0 10px; color: var(--ink); }
.cw-pdp-title-toggle {
    display: none;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cw-pdp-title-toggle svg { width: 17px; height: 17px; }
.cw-pdp-title-wrap.is-expanded .cw-pdp-title-toggle svg { transform: rotate(180deg); }

@media (max-width: 991.98px) {
    .cw-pdp-gallery {
        position: relative;
        top: auto;
        width: 100%;
    }
    .cw-pdp-gallery__main {
        aspect-ratio: 1 / 1;
        height: auto;
        touch-action: pan-y;
    }
    .cw-pdp-gallery__dots { display: flex; }
    .cw-pdp-gallery__offer {
        display: flex;
        align-items: center;
        min-height: 42px;
        margin: 0;
        padding: 0 14px;
        background: var(--brand-soft);
        color: var(--brand-dark);
        font-size: 13px;
        font-weight: 800;
        box-sizing: border-box;
    }
    .cw-pdp-gallery__thumbs { display: none; }

    .cw-pdp-title-wrap { align-items: flex-start; }
    .cw-pdp-title {
        flex: 1 1 auto;
        min-width: 0;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }
    .cw-pdp-title-wrap.is-expanded .cw-pdp-title {
        display: block;
        overflow: visible;
    }
    .cw-pdp-title-toggle { display: inline-flex; }
}

/* ===================== sheet ===================== */

.cw-pdp-sheet {
    position: relative;
    z-index: 2;
    margin-top: -6px;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    min-height: 60vh;
    padding-bottom: 96px;
}

.cw-pdp-sheet__handle {
    display: block;
    width: 44px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--border);
    margin: 8px auto 0;
}

.cw-pdp-sheet__body { padding: 14px 16px 0; }

.cw-pdp-title { font-size: 15.5px; font-weight: 700; line-height: 1.8; margin: 0 0 10px; color: var(--ink); }

.cw-pdp-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--muted);
    padding-top: 14px;
    margin-top: 14px;
    margin-bottom: 18px;
    border-top: 1px dashed var(--border);
}
.cw-pdp-rating__score { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.cw-pdp-rating__score svg { width: 15px; height: 15px; color: #D9A441; }
.cw-pdp-rating__link { color: var(--muted); font-weight: 600; }
.cw-pdp-rating__link:hover { color: var(--brand); }

.cw-pdp-top { display: block; }
.cw-pdp-main { min-width: 0; }

/* purchase box: hidden on mobile (the fixed cartbar handles it) */
.cw-pdp-buybox { display: none; }

.cw-pdp-hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

.cw-pdp-section { margin-bottom: 20px; }
.cw-pdp-section[data-pdp-variant-option] {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}
.cw-pdp-section[data-pdp-variant-option] button {
    pointer-events: auto;
}
.cw-pdp-section__title { font-size: 13.5px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.cw-pdp-section__title span { font-weight: 600; color: var(--muted); }

.cw-pdp-colors { display: flex; gap: 10px; }
.cw-pdp-color {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1.5px var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.cw-pdp-color svg { width: 15px; height: 15px; }
.cw-pdp-color.is-selected { box-shadow: 0 0 0 1.5px var(--brand); }

.cw-pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-pdp-size {
    min-width: 52px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.cw-pdp-size.is-selected { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.cw-pdp-features { display: flex; flex-wrap: wrap; gap: 10px; }
.cw-pdp-feature {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 0 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
}
.cw-pdp-feature__label { font-size: 11px; color: var(--muted); }
.cw-pdp-feature__value { font-size: 12px; font-weight: 700; color: var(--ink); }

.cw-pdp-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--brand-soft);
    color: var(--brand-dark);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 20px;
}
.cw-pdp-banner svg { width: 19px; height: 19px; flex: 0 0 auto; }

.cw-pdp-desc { font-size: 13px; line-height: 2.1; color: #4A423F; margin: 0 0 12px; }

/* ===================== comments ===================== */

.cw-pdp-comments { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
/* Only the first 5 comments show by default (no-JS fallback); product.js
   reveals 5 more per click when "ادامه نظرات" is clicked. */
.cw-pdp-comments .cw-pdp-comment:nth-child(n+6) { display: none; }

.cw-pdp-comments-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.cw-pdp-comments-more:hover { border-color: var(--brand); color: var(--brand); }
.cw-pdp-comments-more svg { width: 15px; height: 15px; }
.cw-pdp-comments-more[hidden] { display: none; }

.cw-pdp-comment {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border);
}
.cw-pdp-comment:last-child { border-bottom: 0; padding-bottom: 0; }

.cw-pdp-comment__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.cw-pdp-comment__icon svg { width: 18px; height: 18px; }

.cw-pdp-comment__body { flex: 1 1 auto; min-width: 0; }

.cw-pdp-comment__head {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    min-height: 18px;
    padding-left: 82px;
}
.cw-pdp-comment__date {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 11px;
    color: var(--muted);
}
.cw-pdp-comment__name { font-size: 13px; font-weight: 700; color: var(--ink); }

.cw-pdp-comment__stars { display: inline-flex; align-items: center; gap: 2px; }
.cw-pdp-comment__stars svg { width: 12px; height: 12px; color: var(--border); }
.cw-pdp-comment__stars svg.is-filled { color: #D9A441; }

.cw-pdp-comment__text { font-size: 12.5px; line-height: 1.9; color: #4A423F; margin: 0 0 8px; white-space: pre-line; overflow-wrap: anywhere; }

/* ---- comment form (display only, doesn't submit anywhere) ---- */

/* mobile/default: everything just stacks in one column, as before */
.cw-pdp-reviews-body { display: block; }
.cw-pdp-comments-col { display: block; }

.cw-pdp-comment-form {
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cw-pdp-comment-form__title { font-size: 13.5px; font-weight: 700; margin: 0; color: var(--ink); }

.cw-pdp-comment-form__row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cw-pdp-comment-form input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 12.5px;
    color: var(--ink);
}
.cw-pdp-comment-form input[type="text"]:focus { outline: none; border-color: var(--brand); background: var(--white); }

.cw-pdp-comment-form__rating { display: inline-flex; align-items: center; gap: 4px; }
.cw-pdp-comment-form__rating button {
    border: 0;
    background: none;
    padding: 2px;
    cursor: pointer;
    color: var(--border);
}
.cw-pdp-comment-form__rating button:hover,
.cw-pdp-comment-form__rating button:focus-visible { color: #D9A441; }
.cw-pdp-comment-form__rating svg { width: 18px; height: 18px; }

.cw-pdp-comment-form textarea {
    resize: vertical;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--ink);
    font-family: inherit;
}
.cw-pdp-comment-form textarea:focus { outline: none; border-color: var(--brand); background: var(--white); }

/* Exact-variant quantity control: replaces add-to-cart while this variant is already in the cart. */
.cw-pdp-qtybox{display:flex;align-items:center;justify-content:space-between;width:100%;height:46px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden;background:#fff}
.cw-pdp-qtybox[hidden]{display:none !important}
.cw-pdp-qtybox button{width:46px;height:100%;border:0;background:#fff;color:var(--brand-dark);font-size:24px;line-height:1;cursor:pointer;font-weight:800}
.cw-pdp-qtybox button.is-disabled,.cw-pdp-qtybox button:disabled{opacity:.35;cursor:not-allowed}
.cw-pdp-qtybox button.is-delete{font-size:18px}
.cw-pdp-qtybox button.is-delete img{width:20px;height:20px;display:block;margin:auto;object-fit:contain}
.cw-pdp-qtybox__value{min-width:70px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.cw-pdp-qtybox output{font-size:18px;font-weight:900;color:var(--brand-dark);line-height:1.1}
.cw-cart-dots{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:1.15em;min-width:34px;line-height:1}
.cw-cart-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:cwCartDot 1s infinite ease-in-out;opacity:.35}
.cw-cart-dots[hidden]{display:none !important}
.cw-cart-dots i:nth-child(2){animation-delay:.14s}.cw-cart-dots i:nth-child(3){animation-delay:.28s}
.cw-cart-dots--button{min-width:28px;color:currentColor}
.cw-cart-dots--button i{width:5px;height:5px}
@keyframes cwCartDot{0%,70%,100%{transform:translateY(0);opacity:.3}35%{transform:translateY(-3px);opacity:1}}
.cw-pdp-qtybox small{font-size:10px;color:var(--muted);font-weight:600;margin-top:4px;line-height:1;min-height:11px}
.cw-pdp-qtybox small[hidden]{display:none !important}
.cw-pdp-buybox .cw-pdp-in-cart{display:flex;align-items:center;gap:18px;width:100%}
.cw-pdp-buybox .cw-pdp-in-cart[hidden],.cw-pdp-cartbar .cw-pdp-in-cart[hidden]{display:none !important}
.cw-pdp-buybox .cw-pdp-in-cart .cw-pdp-qtybox{width:50%;flex:0 0 50%}
.cw-pdp-in-cart__info{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;text-decoration:none;color:var(--ink);line-height:1.45}
.cw-pdp-in-cart__info strong{font-size:12px;font-weight:900}
.cw-pdp-in-cart__info span{font-size:10.5px;font-weight:700;color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.cw-pdp-cartbar .cw-pdp-in-cart{display:contents}
.cw-pdp-cartbar .cw-pdp-in-cart__info{display:none}
.cw-pdp-cartbar .cw-pdp-qtybox{flex:0 0 55%}

.cw-pdp-add-btn { width: 100%; max-width: 200px; }

/* ===================== mobile fixed add-to-cart bar ===================== */

.cw-pdp-cartbar {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 18px rgba(33, 28, 27, .08);
}

/* price sits on the physical left, taking whatever the button (fixed at
   55%) leaves behind; the old-price/discount row + current price are
   stacked and centered as one block, vertically, in the middle of the bar -
   with or without a discount, it's still just one centered block. */
.cw-pdp-cartbar__price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}
.cw-pdp-cartbar__old-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.cw-pdp-cartbar__discount {
    flex: 0 0 auto;
    background: var(--brand);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    white-space: nowrap;
}
.cw-pdp-cartbar__old {
    font-size: 11.5px;
    color: var(--muted);
    text-decoration: line-through;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cw-pdp-cartbar__price-current {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 18px;
    font-weight: 900;
    color: var(--ink);
    white-space: nowrap;
}
.cw-pdp-cartbar__price-current .cw-toman { margin-top: 0; }

.cw-pdp-add-btn {
    flex: 0 0 55%;
    height: 46px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.cw-pdp-add-btn:hover { background: var(--brand-dark); }
.cw-pdp-add-btn .cw-cart-dots{color:currentColor}
.cw-pdp-add-btn.is-unavailable,
.cw-pdp-add-btn.is-unavailable:disabled {
    background: #f6f6f6;
    color: #96918d;
    border: 1.5px solid #cfc9c5;
    cursor: default;
    opacity: 1;
    box-shadow: none;
}
.cw-pdp-add-btn.is-unavailable:hover,
.cw-pdp-add-btn.is-unavailable:disabled:hover { background: #f6f6f6; }

/* the desktop purchase box's own add-to-cart button isn't part of the fixed
   bar and must stay full width there, not inherit the 55% cartbar sizing */
.cw-pdp-buybox .cw-pdp-add-btn,
.cw-pdp-comment-form .cw-pdp-add-btn { flex: initial; }

.cw-pdp-comment-form > .cw-pdp-add-btn { flex: initial; }

@media (min-width: 992px) { .cw-pdp-cartbar { display: none; } }

/* ===================================================================
   Desktop / tablet: gallery (right column) + info (left column)
=================================================================== */

@media (min-width: 992px) {
    .cw-pdp__crumbs-wrap {
        display: block;
        /* a bit of breathing room before the gallery/title row - both the
           gallery and the title start at the top of this same row, so
           this single gap pushes them down together and keeps them
           aligned with each other. */
        padding-bottom: 20px;
    }

    /* Desktop: gallery, product information, and purchase card share the
       first row. The gallery no longer spans the lower rows, preventing its
       image/thumbnail height from creating artificial gaps in short-info
       products. */
    .cw-pdp__layout {
        display: grid;
        grid-template-columns: 35fr 42.5fr 22.5fr;
        grid-template-areas:
            "gallery main buybox"
            "hr      hr   buybox"
            "desc    desc buybox";
        column-gap: 28px;
        row-gap: 0;
        align-items: start;
        max-width: 1680px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .cw-pdp > .cw-container { max-width: 1680px; }

    /* gallery: right column. Unlike the price box, this one is NOT sticky -
       it just sits in its normal place in the page and scrolls away with the
       rest of the content. Images never get a border. */
    .cw-pdp-gallery {
        grid-area: gallery;
        position: static;
        min-width: 0;
    }
    .cw-pdp-gallery__main {
        aspect-ratio: 1 / 1;
        height: auto;
        overflow: hidden;
        cursor: default;
        border: 0 !important;
        box-shadow: none !important;
        outline: 0;
        touch-action: auto;
    }
    .cw-pdp-gallery__main.is-dragging { cursor: default; }
    .cw-pdp-gallery__slide { border: 0 !important; box-shadow: none !important; }
    /* the vertical progress bar is a mobile-only affordance; desktop has the
       thumbnail strip instead */
    .cw-pdp-gallery__progress { display: none; }

    .cw-pdp-gallery__thumbs {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        min-width: 0;
        padding: 10px 0 0;
        border-top: 1px solid var(--border);
        overflow: hidden;
        box-sizing: border-box;
    }
    .cw-pdp-gallery__thumb {
        position: relative;
        width: 56px;
        height: 56px;
        border-radius: var(--radius-sm);
        overflow: hidden;
        border: 1.5px solid var(--border);
        padding: 0;
        cursor: pointer;
        flex: 0 0 56px;
        background: var(--white);
    }
    .cw-pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
    .cw-pdp-gallery__thumb.is-active { border-color: var(--brand); }
    .cw-pdp-gallery__thumb.is-overflow::after {
        content: '...';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(20,18,17,.54);
        color: #fff;
        font-size: 20px;
        font-weight: 900;
        letter-spacing: 2px;
        padding-bottom: 5px;
    }
    .cw-pdp-gallery__offer { display: none; }
    .cw-pdp-gallery__dots { display: none; }
    .cw-pdp-title-toggle { display: none; }

    /* sheet -> sheet__body -> info -> top -> content all stop rendering their
       own boxes on desktop, so their children (title, gallery-adjacent info,
       divider, description) become direct items of the .cw-pdp__layout grid
       above instead of being nested inside a narrow column. */
    .cw-pdp-sheet,
    .cw-pdp-sheet__body,
    .cw-pdp-info,
    .cw-pdp-top,
    .cw-pdp-content {
        display: contents;
    }
    .cw-pdp-sheet__handle { display: none; }

    .cw-pdp-title {
        font-size: 19px;
        margin: 0 0 6px;
    }

    /* Title, rating, variants, specs, and the banner stay together in the
       same desktop column, so short variant lists cannot create empty space
       between the title and its following sections. */
    .cw-pdp-main {
        grid-area: main;
        min-width: 0;
        border-top: 0;
        padding-top: 0;
    }
    .cw-pdp-rating {
        border-top: 0;
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 14px;
    }
    .cw-pdp-rating--mobile { display: none; }
    .cw-pdp-rating--desktop { display: flex; }

    .cw-pdp-buybox {
        grid-area: buybox;
        display: block;
        min-width: 0;
        width: auto;
        position: sticky;
        /* sits a bit above the vertical middle of the viewport rather than
           pinned to the top, and stays visible through the divider and the
           description/reviews below thanks to spanning every row of the grid */
        top: 35vh;
        margin-top: 0;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 18px;
    }
    /* perks (guarantee / shipping) now come first, price + button last */
    .cw-pdp-buybox__perks { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-top: 0; border-bottom: 1px dashed var(--border); display: flex; flex-direction: column; gap: 10px; }
    .cw-pdp-buybox__perks li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
    .cw-pdp-buybox__perks svg { width: 17px; height: 17px; color: var(--brand); flex: 0 0 auto; }

    .cw-pdp-buybox__price-wrap { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .cw-pdp-buybox__old-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
    .cw-pdp-buybox__discount {
        background: var(--brand);
        color: #fff;
        font-size: 11.5px;
        font-weight: 800;
        line-height: 1;
        padding: 3px 7px;
        border-radius: 7px;
        flex: 0 0 auto;
    }
    .cw-pdp-buybox__old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
    .cw-pdp-buybox__price {
        display: flex;
        align-items: baseline;
        justify-content: flex-end;
        gap: 6px;
        font-size: 21px;
        font-weight: 800;
        color: var(--ink);
    }
    .cw-pdp-buybox .cw-pdp-add-btn { width: 100%; margin-bottom: 0; }

    /* ===== comments section: comments flex to fill the middle, the
       comment-submission form becomes a sticky sidebar - physically on the
       RIGHT (row-reverse: last DOM child, the form, lands at the RTL start
       side) - present from the top of this section down to its end, exactly
       like the purchase box stays put next to the page content below it. ===== */
    .cw-pdp-reviews-body {
        display: flex;
        flex-direction: row;
        direction: ltr;
        align-items: flex-start;
        gap: 28px;
    }
    .cw-pdp-comments-col { flex: 1 1 auto; min-width: 0; direction: rtl; }

    .cw-pdp-comment-form {
        flex: 0 0 264px;
        width: 264px;
        margin-left: auto;
        margin-right: 0;
        direction: rtl;
        position: sticky;
        /* same fixed vertical anchor as the purchase box, so both sticky
           side cards settle at the same height instead of the form
           hugging the top of the viewport */
        top: 35vh;
        margin-top: 0;
        padding: 0;
    }

    /* Shared divider under the complete gallery/info row. It spans only the
       gallery + info columns and stops immediately before the purchase card. */
    .cw-pdp-hr--reviews {
        margin: 20px 0;
    }

    .cw-pdp-hr--top {
        grid-area: hr;
        width: 100%;
        border: 0;
        border-top: 1px solid var(--border);
        margin: 14px 0 0;
    }

    /* Description + reviews begin below the shared divider and stop before
       the purchase card, with their right edge aligned to the page content. */
    .cw-pdp-bottom {
        grid-area: desc;
        width: 100%;
        min-width: 0;
        margin-top: 18px;
    }

}

/* ===================================================================
   "محصولات مشابه" now reuses the exact same product card partial and
   track markup as the home page's "جدیدترین محصولات" section (.cw-card,
   styled in product-card.css) - no page-specific overrides needed here
   anymore, so it renders identically to the home page section.
=================================================================== */

/* ===================== lightbox interaction ===================== */
@media (max-width: 991.98px) {
    .cw-pdp-lightbox__dialog {
        width: min(96vw, 720px);
        height: min(92vh, 860px);
        padding: 12px;
        border-radius: 16px;
    }
    .cw-pdp-lightbox__stage { min-height: 0; }
    .cw-pdp-lightbox__thumbs { justify-content: flex-start; }
}


/* ===================== PDP current interaction refinements ===================== */
[hidden] { display: none !important; }

.cw-pdp-actions { z-index: 6; }
.cw-pdp-action {
    appearance: none;
    -webkit-appearance: none;
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
}
.cw-pdp-action svg { width: 21px; height: 21px; }
.cw-pdp-action__heart { fill: none; }
.cw-pdp-action.is-active { color: var(--brand); }
.cw-pdp-action.is-active .cw-pdp-action__heart { fill: currentColor; }
.cw-pdp-action.is-loading { opacity: .5; cursor: wait; }
.cw-pdp-actions--mobile { display: none; }
.cw-pdp-share-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    z-index: 1200;
    transform: translate(-50%, 8px);
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(28,24,22,.92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.cw-pdp-share-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.cw-pdp-feature {
    background: #f5f5f5;
    border: 0;
}
.cw-pdp-rating__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f5f5f5;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.cw-pdp-rating__link svg { width: 13px; height: 13px; flex: 0 0 auto; }
.cw-pdp-comments { scroll-margin-top: 18px; }
.cw-pdp-mobile-title-divider { display: none; }

@media (min-width: 992px) {
    /* reset the leftover mobile sticky offset (top: 58px) - otherwise
       this position:relative (needed so the desktop favorite/share
       icons can anchor to the gallery) drags the whole gallery box
       58px down out of its grid cell and it overlaps the description
       section below it */
    .cw-pdp-gallery { position: relative; top: 0; }
    .cw-pdp-actions--desktop {
        position: absolute;
        top: 12px;
        right: 12px;
        display: flex;
        flex-direction: column;
        gap: 3px;
    }
    .cw-pdp-rating--mobile { display: none; }
    .cw-pdp-rating--desktop { display: flex; }

    /* the same <hr> used as a (normally invisible) mobile spacer becomes
       the real divider here: title -> line -> rating/comments row */
    .cw-pdp-mobile-title-divider {
        display: block;
        width: 100%;
        border: 0;
        border-top: 1px solid var(--border);
        margin: 0 0 14px;
    }
}

@media (max-width: 991.98px) {
    .cw-pdp-gallery {
        position: relative;
        top: auto;
        width: 100%;
        height: 50vh !important;
        min-height: 50vh !important;
        max-height: 50vh !important;
        flex: 0 0 50vh !important;
        overflow: hidden;
    }
    .cw-pdp-gallery__main {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        min-height: 0;
    }
    .cw-pdp-actions--desktop { display: none; }
    .cw-pdp-actions--mobile {
        display: flex;
        direction: ltr;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 2px;
        margin: -2px auto 4px 0;
        width: max-content;
    }
    .cw-pdp-action { width: 34px; height: 34px; border: 0 !important; border-radius: 0; background: transparent !important; box-shadow: none !important; }
    .cw-pdp-action:hover,
    .cw-pdp-action:focus-visible { background: transparent !important; }
    .cw-pdp-action svg { width: 20px; height: 20px; }

    .cw-pdp-rating--mobile {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0 0 10px;
        padding: 0;
        border-top: 0;
        font-size: 11px;
    }
    .cw-pdp-rating--desktop { display: none; }
    .cw-pdp-mobile-title-divider {
        display: block;
        width: 100%;
        margin: 0 0 16px;
        border: 0;
    }
    /* only draw this line when a variant section actually follows it -
       #cwPdpSpecs already has its own top border, so when there's no
       variant section this stays invisible instead of stacking a second
       line right above the specs box's own border. */
    .cw-pdp-main:has([data-pdp-variant-option]) .cw-pdp-mobile-title-divider {
        border-top: 1px solid var(--border);
    }

    .cw-pdp-sheet {
        flex: 0 0 auto;
        min-height: 60vh;
        margin-top: 0;
    }

    .cw-pdp-section#cwPdpSpecs {
        margin-right: -16px;
        margin-left: -16px;
        margin-bottom: 20px;
        padding: 14px 16px 16px;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }
    .cw-pdp-section#cwPdpSpecs .cw-pdp-section__title { margin-bottom: 10px; }
    .cw-pdp-features {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .cw-pdp-features::-webkit-scrollbar { display: none; }
    .cw-pdp-feature {
        flex: 0 0 auto;
        width: fit-content;
        max-width: 80vw;
    }

    .cw-pdp-reviews-body--form-only { display: block; }
    .cw-pdp-comment-form { margin-top: 24px; width: 100%; max-width: 100%; }
    .cw-pdp-share-toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}


/* Discount/old-price nodes are individually hidden when a variant has no discount. */
.cw-pdp-buybox__discount[hidden],
.cw-pdp-buybox__old[hidden],
.cw-pdp-cartbar__discount[hidden],
.cw-pdp-cartbar__old[hidden] { display: none !important; }


/* ---- comment button + modal ---- */
a.cw-pdp-add-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cw-pdp-cmodal[hidden] { display: none; }
.cw-pdp-cmodal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.cw-pdp-cmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.cw-pdp-cmodal__box {
    position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow: auto;
    background: var(--white); border-radius: 14px; padding: 18px;
    display: flex; flex-direction: column; gap: 12px; direction: rtl;
}
.cw-pdp-cmodal__head { display: flex; align-items: center; justify-content: space-between; }
.cw-pdp-cmodal__head h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.cw-pdp-cmodal__x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.cw-pdp-cmodal__rate { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink); }
.cw-pdp-cmodal__rate[hidden], .cw-pdp-cmodal__note[hidden], .cw-pdp-cmodal__msg[hidden] { display: none; }
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button.is-active { color: #D9A441; }
.cw-pdp-cmodal__note { margin: 0; font-size: 12px; line-height: 1.8; color: #6b625e; }
.cw-pdp-cmodal__msg { margin: 0; font-size: 12.5px; line-height: 1.8; }
.cw-pdp-cmodal__msg.is-error { color: #c0392b; }
.cw-pdp-cmodal__msg.is-ok { color: #1e8449; }
.cw-pdp-cmodal textarea {
    resize: vertical; min-height: 110px; padding: 12px 14px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface); font-size: 12.5px; line-height: 1.8;
    color: var(--ink); font-family: inherit;
}
.cw-pdp-cmodal textarea:focus { outline: none; border-color: var(--brand); background: var(--white); }

.cw-pdp-cmodal__names { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cw-pdp-cmodal__names legend { font-size: 12px; padding: 0 6px; color: #6b625e; }
.cw-pdp-cmodal__opt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.cw-pdp-cmodal__names input[type="text"] {
    height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); font-size: 12.5px; color: var(--ink); font-family: inherit;
}
.cw-pdp-cmodal__names input[type="text"]:focus { outline: none; border-color: var(--brand); background: var(--white); }
.cw-pdp-cmodal__names input[type="text"][hidden] { display: none; }

.cw-pdp-comment__icon.has-avatar { padding: 0; overflow: hidden; background: none; }
.cw-pdp-comment__icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.cw-pdp-cmodal__avatars { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cw-pdp-cmodal__avatars legend { font-size: 12px; padding: 0 6px; color: #6b625e; }
.cw-pdp-cmodal__gtabs { display: flex; gap: 6px; }
.cw-pdp-cmodal__gtabs button { flex: 1; height: 34px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-family: inherit; font-size: 12.5px; cursor: pointer; color: var(--ink); }
.cw-pdp-cmodal__gtabs button.is-active { border-color: var(--brand); background: var(--white); color: var(--brand); font-weight: 700; }
.cw-pdp-cmodal__agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; max-height: 176px; overflow-y: auto; padding: 2px; }
.cw-pdp-cmodal__agrid[hidden] { display: none; }
.cw-pdp-cmodal__agrid button { border: 2px solid transparent; border-radius: 50%; padding: 0; background: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.cw-pdp-cmodal__agrid button.is-selected { border-color: var(--brand); }
.cw-pdp-cmodal__agrid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cw-profile__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* comment button (page + modal): outlined in the brand colour, full width */
.cw-pdp-comment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    height: 46px;
    padding: 0 16px;
    border: 1.5px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--brand);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}
.cw-pdp-comment-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.cw-pdp-comment-btn:hover,
.cw-pdp-comment-btn:focus-visible { background: var(--brand-soft); color: var(--brand); }
.cw-pdp-comment-btn:disabled { opacity: .6; cursor: default; }
.cw-pdp-comment-form > .cw-pdp-comment-btn { flex: initial; align-self: stretch; }

/* modal send button: solid brand red, never shrinks inside the scrolling dialog */
.cw-pdp-cmodal__box > * { flex-shrink: 0; }
.cw-pdp-comment-send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--brand);
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
}
.cw-pdp-comment-send:hover,
.cw-pdp-comment-send:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); }
.cw-pdp-comment-send:disabled { opacity: .6; cursor: default; }

.cw-pdp-share-toast--wide { width: max-content; max-width: 90vw; border-radius: 14px; text-align: center; padding: 11px 16px; line-height: 1.8; }
.cw-pdp-share-toast[hidden] { display: none; }

/* rating stars with numbers underneath + "N از ۵" label */
.cw-pdp-cmodal__rate { flex-wrap: wrap; }
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating { gap: 6px; }
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 3px; }
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button svg { width: 26px; height: 26px; }
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button:hover,
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button:focus-visible { color: var(--border); }
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button.is-active,
.cw-pdp-cmodal__rate .cw-pdp-comment-form__rating button.is-active:hover { color: #D9A441; }
.cw-pdp-rate-num { font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--ink); }
.cw-pdp-cmodal__rate-label { font-size: 13px; color: var(--brand); white-space: nowrap; }
.cw-pdp-cmodal__rate-label[hidden] { display: none; }
