/**
 * Product detail page — Putul IT.
 *
 * The screenshot sits in a browser frame so it reads as a live site rather than
 * a picture, and scrolls on hover: a theme is a page, and a still of the top
 * third says very little about it.
 *
 * Price and the two actions share one bar under the shot. They used to be three
 * list items in a row with the price between the buttons, which put the thing
 * being decided in the middle of the two ways to act on it.
 */

:root {
    --pit-green: #16a34a;
    --pit-green-dark: #15803d;
    --pit-ink: #0f172a;
    --pit-muted: #64748b;
    --pit-line: #e8edf3;
    --pit-card-shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
}

/* ── Title ───────────────────────────────────────────────────────────────── */
/* Two selectors deep on purpose. The theme aligns headings inside .single_post
   from its own stylesheet, and a single class did not outrank it — the name
   stayed left while everything around it moved. */
.single_post h1.pit-single-title,
.pit-single-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--pit-ink);
    text-align: center;
    /* Room above as well as below: the card's own padding stops short of the
       heading, which left the name sitting on the card's top edge. */
    margin: 0 0 24px;
    padding: 18px 15px 0;
    line-height: 1.3;
    letter-spacing: -.2px;
}

/* No rule under the name — the product's own screenshot starts immediately
   below it, and a line between the two only fenced the title off from what it
   names. */

/* ── Browser frame ───────────────────────────────────────────────────────── */
.pit-browser {
    background: #fff;
    border: 1px solid var(--pit-line);
    border-radius: 14px;
    box-shadow: var(--pit-card-shadow);
    overflow: hidden;
}

.pit-browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--pit-line);
}

.pit-dots { display: flex; gap: 7px; flex: 0 0 auto; }
.pit-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.pit-dots i:nth-child(1) { background: #ff5f57; }
.pit-dots i:nth-child(2) { background: #febc2e; }
.pit-dots i:nth-child(3) { background: #28c840; }

.pit-browser-url {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 14px;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12.5px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pit-browser-url svg { flex: 0 0 auto; opacity: .55; }

/* ── The shot, and its scroll on hover ───────────────────────────────────── */
/* A fixed viewport with the full-length screenshot inside it. On hover the
   image is walked up by its own overflow, so any screenshot height works
   without a number being hard-coded per product. */
.pit-browser-shot {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: #f8fafc;
}

.pit-browser-shot img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 9s ease-in-out;
}

.pit-browser-shot:hover img {
    transform: translateY(calc(460px - 100%));
}

/* A gallery keeps its slider — sliding and scrolling at once would fight. */
.pit-browser-shot.has-gallery { height: auto; }
.pit-browser-shot.has-gallery img { transition: none; }

.pit-scroll-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    pointer-events: none;
    opacity: 1;
    transition: opacity .25s;
}

.pit-browser-shot:hover .pit-scroll-hint { opacity: 0; }

/* ── Price + actions bar ─────────────────────────────────────────────────── */
.pit-buybar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding: 18px 24px;
    background: #fff;
    border: 2px solid var(--pit-green);
    border-radius: 14px;
    box-shadow: var(--pit-card-shadow);
}

.pit-price { display: flex; align-items: baseline; gap: 10px; }
.pit-price span { font-size: 15px; color: var(--pit-muted); }
.pit-price strong { font-size: 30px; font-weight: 800; color: var(--pit-ink); line-height: 1; }

.pit-buybar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.pit-btn-ghost,
.pit-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 50px;
    padding: 0 26px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.pit-btn-ghost {
    background: #fff;
    color: var(--pit-ink) !important;
    border: 1px solid #cbd5e1;
}

.pit-btn-ghost:hover {
    border-color: var(--pit-green);
    color: var(--pit-green) !important;
}

.pit-btn-primary {
    background: var(--pit-green);
    color: #fff !important;
    border: 1px solid var(--pit-green);
}

.pit-btn-primary:hover { background: var(--pit-green-dark); border-color: var(--pit-green-dark); }
.pit-btn-ghost:active, .pit-btn-primary:active { transform: translateY(1px); }

/* ── Sidebar cards ───────────────────────────────────────────────────────── */
.pit-card {
    background: #fff;
    border: 1px solid var(--pit-line);
    border-radius: 14px;
    box-shadow: var(--pit-card-shadow);
    padding: 22px 22px 24px;
    margin-bottom: 22px;
}

.pit-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--pit-ink);
}

/* The green marker that leads each card heading. */
.pit-card-title:before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--pit-green);
    flex: 0 0 auto;
}

/* ── "যা যা পাচ্ছেন" ─────────────────────────────────────────────────────── */
.pit-feature-list { list-style: none; margin: 0; padding: 0; }

.pit-feature-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    font-size: 15px;
    color: #334155;
    line-height: 1.5;
}

.pit-feature-list li:last-child { margin-bottom: 0; }

.pit-feature-list li:before {
    content: "";
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--pit-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

/* ── Specification rows, in the same card as the checkmarks ──────────────── */
/* One hairline instead of a second card heading: the rows are the same answer
   continued, so they need separating from the list above without being
   announced as a new subject. */
.pit-card-divider {
    height: 1px;
    background: #eef2f7;
    margin: 20px 0 6px;
}

.pit-spec { margin: 0; }

.pit-spec-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 13px 2px;
    border-bottom: 1px solid #f1f5f9;
}

.pit-spec-row:last-child { border-bottom: 0; padding-bottom: 0; }

.pit-spec-row dt {
    flex: 0 0 40%;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--pit-muted);
    line-height: 1.6;
}

.pit-spec-row dd {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 14.5px;
    color: var(--pit-ink);
    line-height: 1.6;
    word-break: break-word;
}

.pit-spec-row dd a { color: var(--pit-green); font-weight: 600; }

/* Content typed into the sidebar override boxes lands here. */
.pit-card .custom-widget-content { padding: 0 !important; font-size: 15px; color: #334155; }
.pit-card .custom-widget-content ul { padding-left: 18px; }

/* ── এ জাতীয় আরো ────────────────────────────────────────────────────────── */
/* Its own full-width band under both columns, so eight products get the whole
   page at four to a line instead of three squeezed into the left column. */
.pit-related { margin-top: 56px; }

.pit-related-title {
    position: relative;
    text-align: center;
    font-size: 27px;
    font-weight: 800;
    color: var(--pit-ink);
    margin: 0 0 42px;
    padding-bottom: 16px;
}

.pit-related-title:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--pit-green);
}

/* Cards in a row are as tall as the tallest, so the buttons line up across the
   row instead of stepping down with each title that runs to two lines. */
.pit-related .row { display: flex; flex-wrap: wrap; }
.pit-related .row > [class*="col-"] { display: flex; margin-bottom: 26px; }

.pit-related .product_sec {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.pit-related .product_sec .product_content { flex: 1 1 auto; }

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .pit-browser-shot { height: 340px; }
    .pit-browser-shot:hover img { transform: translateY(calc(340px - 100%)); }
}

@media (max-width: 991px) {
    .pit-related { margin-top: 40px; }
    .pit-related-title { font-size: 23px; margin-bottom: 26px; }
}

@media (max-width: 575px) {
    .single_post h1.pit-single-title,
    .pit-single-title { font-size: 22px; margin-bottom: 18px; padding-top: 14px; }
    .pit-browser-shot { height: 240px; }
    .pit-browser-shot:hover img { transform: translateY(calc(240px - 100%)); }
    .pit-buybar { padding: 16px; gap: 14px; }
    .pit-price strong { font-size: 25px; }

    /* Stacked on a phone, so the price gets a line of its own — left-aligned it
       sat off to one side of two full-width buttons. */
    .pit-buybar { flex-direction: column; align-items: stretch; }
    .pit-price { justify-content: center; }

    .pit-buybar-actions { width: 100%; }
    /* Full width and stacked, so neither button is a thumb-stretch away. */
    .pit-buybar-actions .pit-btn-ghost,
    .pit-buybar-actions .pit-btn-primary { flex: 1 1 100%; }
}
