/* Product page on phones (2026-11-26). Loaded after pdp-essence.css. */

/* buy bar (pdp-buybar.js): hidden on wider screens */
.pdp-buybar { display: none; }

@media (max-width: 767px) {
    .pdp-buybar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9980; /* under the support chat (9990) and the cart drawer */
        align-items: center;
        gap: 12px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fffdf9;
        border-top: 1px solid #e4e5df;
        box-shadow: 0 -6px 20px rgba(20, 35, 30, .10);
        direction: rtl;
        font-family: "Vazirmatn", Tahoma, sans-serif;
        transform: translateY(110%);
        transition: transform .22s ease;
    }
    .pdp-buybar.is-visible { transform: translateY(0); }
    .pdp-buybar__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-align: right; }
    .pdp-buybar__title {
        color: #68736e;
        font-size: 12px;
        line-height: 1.5;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pdp-buybar__price { color: #18201d; font-size: 13px; line-height: 1.5; white-space: nowrap; }
    .pdp-buybar__price b { font-size: 17px; font-weight: 800; }
    .pdp-buybar__btn {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 0 18px;
        border: 0;
        border-radius: 12px;
        background: #1f4d3d;
        color: #fff;
        font: 700 14px "Vazirmatn", Tahoma, sans-serif;
        cursor: pointer;
    }
    .pdp-buybar__btn.is-secondary { background: #fff; color: #1f4d3d; border: 1px solid #1f4d3d; }
    /* keep the page end (footer) reachable above the bar */
    body.has-pdp-buybar { padding-bottom: 72px; }

    /* description headings: the editor's h1-h4 were 39 / 28px, bigger than the product title (20px) */
    .pdp-story__content h1 { font-size: 22px !important; line-height: 1.6 !important; }
    .pdp-story__content h2 { font-size: 19px !important; line-height: 1.6 !important; }
    .pdp-story__content h3 { font-size: 17px !important; line-height: 1.6 !important; }
    .pdp-story__content h4 { font-size: 15px !important; line-height: 1.6 !important; }

    /* breadcrumb and section tabs scroll sideways by touch; hide the 12-15px grey scrollbar */
    .pdp-breadcrumb,
    .pdp-anchor-nav__inner {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .pdp-breadcrumb::-webkit-scrollbar,
    .pdp-anchor-nav__inner::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}
