/* Product header and purchase assurances. Scoped to the product template. */
@media (min-width: 768px) {
    .ck-product-page .ck-page-article .ck-book-name h1 { text-align: center; font-size: clamp(18px, calc(2vw - 2px), 25px) !important; }
}
@media (min-width: 768px) {
    .ck-product-page .ck-book-content .ry-addddd { width: auto; max-width: 100%; }
    .ck-product-page .ck-book-content .ry-btn-add-to-cart { width: auto; max-width: 100%; min-height: 44px; height: auto; padding: 10px 16px; margin-bottom: 12px; border-radius: 10px; font-size: 13px; line-height: 1.8; white-space: nowrap; }
    .ck-product-page .ck-book-content .ry-btn-add-to-cart > span { display: inline-flex; align-items: center; gap: 8px; }
    .ck-product-page .ck-book-content .ry-btn-add-to-cart span { font-size: 13px; line-height: 1.8; white-space: nowrap; }
    .ck-product-page .ck-book-content .ry-btn-add-to-cart i { margin: 0; font-size: 16px; }
}
.ck-product-page { background: #f5f7fa; }
.ck-product-page .ck-page-content.ck-page-layout { padding-top: 104px; padding-bottom: 32px; }
.ck-product-page .ck-page-article { min-width: 0; }
.ck-product-page .ck-book-name { height: auto; padding: 20px 24px; border: 1px solid #e4eaf0; border-radius: 18px; box-shadow: none; overflow: visible; }
.ck-product-page .ck-book-name h1 { margin: 0; text-align: right; color: #243247; font-size: clamp(20px, 2vw, 27px); font-weight: 800; line-height: 1.8; overflow-wrap: anywhere; }
.ck-product-page .ck-book-characteristic { display: flow-root; margin-top: 20px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.ck-product-page .ck-book-characteristic > .clear { display: block; clear: both; }
.ck-product-page .ck-book-characteristic > .ck-book-image,
.ck-product-page .ck-book-characteristic > .ck-book-content { display: flow-root; box-sizing: border-box; min-width: 0; padding: 20px !important; height: auto !important; background: #fff; border: 1px solid #e4eaf0; border-radius: 18px; box-shadow: 0 6px 22px #24324705; }
.ck-product-page .ck-book-characteristic > .ck-book-image { float: left !important; width: 34% !important; }
.ck-product-page .ck-book-characteristic > .ck-book-content { float: right !important; width: calc(66% - 20px) !important; }
.ck-product-page .ck-book-characteristic .ry-p-d-l { padding: 0; }
.ck-product-page .ck-book-characteristic .ry-product-detail { padding: 12px; border-radius: 14px; }
.ck-product-page .ck-book-content .ry-p-i:not(:has(*)) { display: none; }
.ck-product-page .ck-book-content .ck-product-specifications { display: flex; flex-direction: column; float: right !important; width: 58%; max-width: 58%; padding: 0; margin: 12px 0; border: 0; border-radius: 0; background: transparent; }
.ck-product-page .ck-product-specifications .author { display: flex; align-items: baseline; gap: 7px; margin: 0; padding: 8px 0; border: 0; color: #35475a; font-size: 13px; line-height: 1.9; text-align: right; }
.ck-product-page .ck-product-specifications .author:last-child { border-bottom: 0; }
.ck-product-page .ck-product-specifications .author:nth-child(even) { background: transparent; }
.ck-product-page .ck-product-specifications .author > .fa { float: none !important; align-self: center; width: 24px; margin: 0 !important; padding: 0 !important; color: #6b9583; font-size: 13px; text-align: center; }
.ck-product-page .ck-product-specifications .author > span:first-of-type { float: none !important; color: #7b8796; font-size: 12px; font-weight: 400; }
.ck-product-page .ck-product-specifications .author > p, .ck-product-page .ck-product-specifications .author > span:last-child { float: none !important; margin: 0; padding: 0; font-size: 13px; line-height: 1.9; font-weight: 600; color: #35475a; overflow-wrap: anywhere; }
.ck-product-page .ck-product-specifications .author > p:only-of-type:first-child { grid-column: 1 / -1; font-weight: 400; }
.ck-product-page .ck-product-specifications .clear { display: none; }
@media (max-width: 767px) { .ck-product-page .ck-book-content .ck-product-specifications { float: none !important; width: 100%; max-width: 100%; } }
.ck-product-page .ck-product-attributes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin: 0 !important; padding: 0 !important; }
.ck-product-page .ck-product-attributes::before, .ck-product-page .ck-product-attributes::after, .ck-product-page .ck-product-attributes > .clear { display: none; content: none; }
.ck-product-page .ck-product-attributes > div:not(.clear) { width: 100%; max-width: none; min-width: 0; padding: 0 !important; }
.ck-product-page .ck-product-attributes .ry-show-content { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; width: 100%; min-height: 44px; height: auto; margin: 0 !important; padding: 10px !important; border: 1px solid #e7ecef; border-radius: 10px; background: #f6f8fa; color: #34465a; font-size: 12px; line-height: 1.8; text-align: right !important; cursor: default; }
.ck-product-page .ck-product-attributes .ry-show-content > span { white-space: nowrap; }
.ck-product-page .ck-book-content .ry-p-d-l > .ry-product-detail { margin: 0; }
.ck-product-page .ck-product-attributes .ry-show-content > span:first-child:not(:last-child) { color: #7a8797; font-size: 11px; font-weight: 400; }
.ck-product-page .ck-product-attributes .ry-show-content > span:last-child { color: #34465a; font-weight: 700; }
.ck-product-page .ck-product-attributes a .ry-show-content { color: #26715b; background: #eef7f2; border-color: #dcebe2; cursor: pointer; }
.ck-product-page .ck-book-content .ry-price:not(.ry-last-price) .ry-p-t { display: none; }
.ck-product-page .ck-price-summary { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 16px 0; direction: rtl; overflow-x: auto; }
.ck-product-page .ck-price-summary > .ry-price { float: none !important; flex: 0 0 auto; width: auto !important; margin: 0 !important; }
.ck-product-page .ck-price-summary > .ry-check { float: none !important; flex: 0 0 auto; }
.ck-product-page .ck-price-summary .ry-check i { margin: 0 !important; font-size: 28px; }
.ck-product-page .ck-price-summary .ry-price p { white-space: nowrap; }
.ck-product-page .ck-price-summary .ry-last-price > p:last-child { display: flex; align-items: center; gap: 4px; }
.ck-product-page .ck-price-summary .ck-toman-mark { width: 1.25em; height: 1.15em; }
@media (max-width: 575px) {
    .ck-product-page .ck-price-summary { gap: 5px; }
    .ck-product-page .ck-price-summary .ry-check i { font-size: 18px; }
    .ck-product-page .ck-price-summary .ry-p-n { font-size: 16px; }
    .ck-product-page .ck-price-summary .ry-t1 { font-size: 11px; }
    .ck-product-page .ck-price-summary .ry-p-t { font-size: 12px; }
}
.ck-product-page .ck-book-image { padding-top: 8px; }
.ck-product-page .ck-book-image .ck-frame { position: relative; width: 220px; height: 282px; max-width: 100%; margin: 0 auto; }
.ck-product-page .ck-book-image .ck-frame div { width: 100%; max-width: 220px; height: 282px; }
.ck-product-page .ck-book-characteristic .ck-book-image .ck-frame { width: min(220px, 100%) !important; height: 282px !important; margin: 0 auto !important; }
.ck-product-page .ck-book-characteristic .ck-book-image .ck-frame > div { width: 100% !important; height: 100% !important; max-width: 100%; }
.ck-product-page .ck-book-characteristic .ck-book-image .ck-frame img { display: block; width: 100% !important; height: 100% !important; max-height: 100%; object-fit: contain; margin: 0; }
.ck-product-page .ck-product-benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; padding: 0; margin: 20px 0 28px !important; direction: rtl; }
.ck-product-page .ck-product-benefits > div:not(.clear) { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; float: none !important; width: 100%; max-width: none; min-width: 0; padding: 20px 10px; background: #fff; border: 1px solid #e3eae8; border-radius: 16px; box-shadow: 0 4px 16px #234c3f04; }
.ck-product-page .ck-product-benefits > .clear { display: none; }
.ck-product-page .ck-benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px; background: #edf6f1; color: #2d8064; font-size: 22px; }
.ck-product-page .ck-product-benefits .ry-c-kh { height: auto; margin: 0; color: #3e4e60; font-size: 12px; font-weight: 700; line-height: 1.9; text-align: center; }
.ck-product-page .ck-tozhihat-ketab { clear: both; margin: 24px 0; background: #fff; border: 1px solid #e4eaf0; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 22px #24324705; }
.ck-product-page .ck-tozhihat-ketab .ck-tozihat-header { width: 100%; height: auto; padding: 16px 20px; background: #fff; border-bottom: 1px solid #edf0f4; border-radius: 0; }
.ck-product-page .ck-tozhihat-ketab .ck-tozihat-header p { margin: 0; color: #243247; text-align: right; font-size: 16px; font-weight: 800; line-height: 1.9; }
.ck-product-page .ck-tozhihat-ketab .ck-tozih { padding: 20px; border: 0; line-height: 2; }
@media (max-width: 1199px) {
    .ck-product-page .ck-book-characteristic > .ck-book-image,
    .ck-product-page .ck-book-characteristic > .ck-book-content { padding: 16px !important; }
}
@media (max-width: 767px) {
    .ry-bargainMob{
        background-color: red;
        width: 47px;
        height: 21px;
        border-radius: 8px;
        color: white;
        margin-left:5px ;
        text-align: center;
    }
    .ck-product-page:has(.ck-product-bottom-bar) .ck-book-content hr { display: none; }
    .ck-product-page:has(.ck-product-bottom-bar) .ck-book-content .ry-m1:has(> .ck-price-summary) { display: none; }
    .ck-product-page .ck-book-content .ry-p-d-l > .ry-product-detail { padding: 0; }
    .ck-product-page .ck-product-bottom-bar { display: flex; flex-direction: row-reverse;align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e5eae8; box-shadow: 0 -3px 16px #2432470b; direction: rtl; }
    .ck-product-page .ck-product-bottom-price { flex: 0 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; flex-wrap: nowrap; gap: 2px; margin-inline-start: auto; text-align: left; }
    .ck-product-page .ck-mobile-regular-price { align-self: stretch; margin-left: 9px; text-align: left; color: #929ba8; font-size: 12px; font-weight: 400; line-height: 1.3; text-decoration: line-through; }
    .ck-product-page:has(.ck-product-bottom-bar) .ck-price-summary { display: none; }
    .ck-product-page .ck-product-bottom-price > div { display: none; }
    .ck-product-page .ck-product-bottom-price strong { display: inline-flex; align-items: center; gap: 5px; padding: 0 !important; font-size: 20px; line-height: 1.4; color: #245840; white-space: nowrap; }
    .ck-product-page .ck-product-bottom-price .ck-toman-mark { width: 25px; height: 24px; margin: 0; font-size: 14px; }
    .ck-product-page .ck-product-bottom-add-to-cart { flex: 0 1 52%; width: auto; min-height: 44px; height: 44px; margin: 0 !important; padding: 8px 12px; border-radius: 11px; font-size: 13px; line-height: 1.6; }
    .ck-product-page .ck-product-bottom-bar .ck-cart-quantity { flex: 0 1 52%; width: 52%; height: 44px; }
    body:has(.ck-product-bottom-bar) #goftino_w { bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important; max-height: calc(100dvh - 100px); }
    body:has(.ck-product-bottom-bar) .ry-headset { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    .ck-product-page { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
    .ck-product-page .ck-page-content.ck-page-layout { padding-top: 82px; }
    .ck-product-page .ck-page-article { padding: 0 12px !important; }
    .ck-product-page .ck-book-name { height: auto !important; min-height: 0; margin: 10px 0 12px !important; padding: 12px 14px !important; border-radius: 12px; }
    .ck-product-page .ck-book-name h1 { font-family: "Peyda", sans-serif; font-size: 18px !important; font-weight: 700; line-height: 1.85; margin: 0 !important; padding: 0 !important; letter-spacing: normal; text-shadow: none; }
    .ck-product-page .ck-book-characteristic { margin-top: 12px; }
    .ck-product-page .ck-book-characteristic { padding: 0; }
    .ck-product-page .ck-book-characteristic .ck-book-image,
    .ck-product-page .ck-book-characteristic .ck-book-content { float: none !important; width: 100% !important; min-width: 0; margin-bottom: 14px; border-radius: 16px; }
    .ck-product-page .ck-book-characteristic .ry-p-d-l { padding: 0; }
    .ck-product-page .ck-product-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 22px !important; }
    .ck-product-page .ck-product-benefits > div:not(.clear) { gap: 10px; padding: 16px 8px; border-radius: 14px; }
    .ck-product-page .ck-benefit-icon { width: 42px; height: 42px; border-radius: 13px; font-size: 20px; }
    .ck-product-page .ck-product-benefits .ry-c-kh { font-size: 11px; }
    .ck-product-page .ck-tozhihat-ketab { margin: 18px 0; border-radius: 16px; }
    .ck-product-page .ck-tozhihat-ketab .ck-tozihat-header,
    .ck-product-page .ck-tozhihat-ketab .ck-tozih { padding: 16px; }
}
