/* ============================================================
   MiniSite_v50 — Home Appliances Store
   OVERSIZED POSTER TYPOGRAPHY / BRUTALIST
   Electric red / black / white. Type-as-layout + marquee strips.
   Scope: .pv50-root  (prefix pv50-)
   ============================================================ */

@import url('/templates/_shared/fonts/fonts.css');

.pv50-root {
    --red: #ff2a17;
    --red-deep: #d11400;
    --ink: #0a0a0a;
    --paper: #ffffff;
    --bone: #f3f1ea;
    --muted: #6b6b6b;
    --line: #0a0a0a;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--ink);
    background: var(--paper);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.7;
}

.pv50-root *,
.pv50-root *::before,
.pv50-root *::after { box-sizing: border-box; }

.pv50-root img { max-width: 100%; display: block; }
.pv50-root a { text-decoration: none; color: inherit; }

/* ---- reveal ---- */
.pv50-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.pv50-reveal.pv50-inview { opacity: 1; transform: none; }

/* ============ TOP BAR ============ */
.pv50-bar {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 28px;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    transition: padding .25s ease, box-shadow .25s ease;
}
.pv50-bar.is-scrolled { padding: 9px 28px; box-shadow: 0 8px 0 -4px rgba(0,0,0,.15); }
.pv50-bar-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.35rem; letter-spacing: -.5px; }
.pv50-bar-mark {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--red); color: #fff; border-radius: 0; transform: rotate(-4deg);
}
.pv50-bar-nav { display: flex; gap: 26px; }
.pv50-bar-nav a { font-weight: 700; font-size: .98rem; position: relative; padding: 4px 0; }
.pv50-bar-nav a::after { content: ''; position: absolute; bottom: -2px; right: 0; width: 0; height: 3px; background: var(--red); transition: width .2s ease; }
.pv50-bar-nav a:hover::after { width: 100%; }
.pv50-bar-actions { display: flex; align-items: center; gap: 14px; }
.pv50-bar-cta {
    background: var(--ink); color: #fff; font-weight: 800; padding: 11px 22px;
    border: 3px solid var(--ink); transition: .18s ease;
}
.pv50-bar-cta:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pv50-burger { display: none; background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ---- mobile ---- */
.pv50-mobile-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: .25s; z-index: 998; }
.pv50-mobile-scrim.active { opacity: 1; visibility: visible; }
.pv50-mobile {
    position: fixed; top: 0; right: 0; width: 300px; max-width: 86vw; height: 100%;
    background: var(--ink); color: #fff; z-index: 999; transform: translateX(100%); transition: transform .3s ease;
    padding: 24px; display: flex; flex-direction: column; gap: 8px;
}
.pv50-mobile.active { transform: translateX(0); }
.pv50-mobile-top { display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-size: 1.3rem; margin-bottom: 18px; }
.pv50-mobile-close { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; }
.pv50-mobile a { font-weight: 700; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.pv50-mobile-cta { background: var(--red); text-align: center; margin-top: 16px; border-bottom: 0 !important; padding: 14px !important; font-weight: 800; }

/* ============ HERO — poster type ============ */
.pv50-hero {
    position: relative;
    padding: 64px 28px 40px;
    border-bottom: 3px solid var(--ink);
    overflow: hidden;
}
.pv50-hero-kicker {
    display: inline-block; background: var(--red); color: #fff; font-weight: 800;
    padding: 6px 16px; margin-bottom: 18px; transform: rotate(-1.5deg);
    letter-spacing: 1px; font-size: .95rem;
}
.pv50-hero-type {
    margin: 0; font-weight: 900; line-height: .92; letter-spacing: -2px;
    font-size: clamp(3.2rem, 13vw, 11rem);
    text-transform: none;
}
.pv50-hero-type--outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--ink);
    text-stroke: 2px var(--ink);
}
.pv50-hero-type--accent { color: var(--red); }
.pv50-hero-foot {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: 24px; margin-top: 34px;
}
.pv50-hero-sub { max-width: 460px; font-size: 1.12rem; color: var(--muted); margin: 0; }
.pv50-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.pv50-hero-accent {
    position: absolute; left: 28px; top: 64px; width: clamp(140px, 22vw, 300px);
    border: 3px solid var(--ink); transform: rotate(3deg); background: var(--red);
    z-index: -1; opacity: .9;
}
.pv50-hero-accent img { aspect-ratio: 1/1; object-fit: cover; mix-blend-mode: multiply; }

/* ---- buttons ---- */
.pv50-btn {
    display: inline-flex; align-items: center; gap: 9px; font-weight: 800;
    padding: 14px 26px; border: 3px solid var(--ink); transition: .18s ease; cursor: pointer;
}
.pv50-btn--sm { padding: 10px 18px; font-size: .92rem; }
.pv50-btn--fill { background: var(--red); color: #fff; border-color: var(--red); }
.pv50-btn--fill:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translate(-3px,-3px); box-shadow: 5px 5px 0 var(--red); }
.pv50-btn--line { background: transparent; color: var(--ink); }
.pv50-btn--line:hover { background: var(--ink); color: #fff; }
.pv50-btn--invert { background: #fff; color: var(--ink); border-color: #fff; }
.pv50-btn--invert:hover { transform: translate(-3px,-3px); box-shadow: 5px 5px 0 rgba(0,0,0,.4); }

/* ============ MARQUEE ============ */
.pv50-marquee {
    background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap;
    padding: 16px 0; border-bottom: 3px solid var(--ink);
}
.pv50-marquee--alt { background: var(--red); }
.pv50-marquee-track {
    display: inline-flex; align-items: center; gap: 26px;
    animation: pv50-scroll 26s linear infinite;
}
.pv50-marquee-track--rev { animation-direction: reverse; }
.pv50-marquee-item { font-weight: 900; font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: -1px; text-transform: uppercase; }
.pv50-marquee-dot { color: var(--red); font-size: 1.1rem; }
.pv50-marquee--alt .pv50-marquee-dot { color: var(--ink); }
@keyframes pv50-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pv50-marquee-track { animation: none; } }

/* ============ BLOCK HEAD (shared) ============ */
.pv50-block-head { display: flex; align-items: baseline; gap: 18px; padding: 0 0 24px; }
.pv50-block-num { font-weight: 900; font-size: 1.4rem; color: var(--red); }
.pv50-block-type {
    margin: 0; font-weight: 900; letter-spacing: -1.5px; line-height: .95;
    font-size: clamp(2.2rem, 6.5vw, 5rem);
}
.pv50-block-head--light .pv50-block-num { color: #fff; }
.pv50-block-head--light .pv50-block-type { color: #fff; }

/* ============ STATS ============ */
.pv50-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid var(--ink); }
.pv50-stat { padding: 36px 20px; text-align: center; border-left: 3px solid var(--ink); }
.pv50-stat:last-child { border-left: 0; }
.pv50-stat:nth-child(even) { background: var(--bone); }
.pv50-stat-num { font-weight: 900; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; letter-spacing: -2px; color: var(--red); }
.pv50-stat-lbl { font-weight: 700; margin-top: 8px; color: var(--ink); }

/* ============ CATEGORIES — index list ============ */
.pv50-cats { padding: 70px 28px; }
.pv50-cat-index { border-top: 3px solid var(--ink); }
.pv50-cat-row {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 22px;
    padding: 22px 6px; border-bottom: 3px solid var(--ink); transition: .2s ease; position: relative;
}
.pv50-cat-row:hover { background: var(--ink); color: #fff; padding-right: 22px; }
.pv50-cat-no { font-weight: 900; font-size: 1.2rem; color: var(--muted); }
.pv50-cat-row:hover .pv50-cat-no { color: var(--red); }
.pv50-cat-name { font-weight: 900; font-size: clamp(1.5rem, 4.5vw, 3rem); letter-spacing: -1px; line-height: 1; }
.pv50-cat-tag { color: var(--muted); font-weight: 600; }
.pv50-cat-row:hover .pv50-cat-tag { color: rgba(255,255,255,.7); }
.pv50-cat-ic { font-size: 1.6rem; color: var(--red); }

/* ============ DEALS ============ */
.pv50-deals { padding: 70px 28px; background: var(--ink); }
.pv50-deal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pv50-deal { background: var(--paper); border: 3px solid var(--paper); display: flex; flex-direction: column; }
.pv50-deal-media { position: relative; aspect-ratio: 4/3; overflow: hidden; border-bottom: 3px solid var(--ink); }
.pv50-deal-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pv50-deal:hover .pv50-deal-media img { transform: scale(1.06); }
.pv50-deal-kicker {
    position: absolute; top: 12px; right: 12px; background: var(--red); color: #fff;
    font-weight: 800; padding: 5px 12px; transform: rotate(-2deg); font-size: .85rem;
}
.pv50-deal-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pv50-deal-name { margin: 0; font-weight: 900; font-size: 1.35rem; letter-spacing: -.5px; }
.pv50-deal-prices { display: flex; align-items: baseline; gap: 12px; }
.pv50-deal-price { font-weight: 900; font-size: 1.9rem; color: var(--red); letter-spacing: -1px; }
.pv50-deal-old { text-decoration: line-through; color: var(--muted); font-weight: 600; }
.pv50-deal-note { margin: 0; color: var(--muted); font-size: .92rem; }
.pv50-deal .pv50-btn { margin-top: auto; justify-content: center; }

/* ============ POSTS (Services + Blog) ============ */
.pv50-posts { padding: 70px 28px; }
.pv50-posts--blog { background: var(--bone); }
.pv50-posts .page-services-widget__grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px;
}
.pv50-posts .page-services-tile {
    background: #fff; border: 3px solid var(--ink); display: flex; flex-direction: column;
    overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.pv50-posts .page-services-tile:hover { transform: translate(-4px,-4px); box-shadow: 6px 6px 0 var(--red); }
.pv50-posts .page-services-tile__media { aspect-ratio: 16/10; overflow: hidden; border-bottom: 3px solid var(--ink); }
.pv50-posts .page-services-tile__img { width: 100%; height: 100%; object-fit: cover; }
.pv50-posts .page-services-tile__img-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    background: var(--bone); color: var(--red); font-size: 2.4rem;
}
.pv50-posts .page-services-tile__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pv50-posts .page-services-tile__title { margin: 0; font-weight: 900; font-size: 1.15rem; letter-spacing: -.5px; }
.pv50-posts .page-services-tile__desc { margin: 0; color: var(--muted); font-size: .92rem; }
.pv50-posts .page-services-tile__action { margin-top: auto; font-weight: 800; color: var(--red); }

/* ============ ABOUT ============ */
.pv50-about { padding: 70px 28px; }
.pv50-about-type { display: flex; align-items: baseline; gap: 18px; margin-bottom: 30px; }
.pv50-about-title { margin: 0; font-weight: 900; letter-spacing: -1.5px; line-height: .95; font-size: clamp(2rem, 6vw, 4.6rem); max-width: 14ch; }
.pv50-about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.pv50-about-text p { font-size: 1.12rem; color: #2a2a2a; }
.pv50-about-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.pv50-about-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.pv50-about-list i { color: var(--red); }
.pv50-about-photo { border: 3px solid var(--ink); }
.pv50-about-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ============ FEATURES ============ */
.pv50-feats { padding: 70px 28px; background: var(--red); }
.pv50-feat-stack { display: grid; gap: 0; border-top: 3px solid #fff; }
.pv50-feat { display: flex; align-items: center; gap: 24px; padding: 26px 6px; border-bottom: 3px solid #fff; color: #fff; }
.pv50-feat-ic {
    flex: none; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-size: 1.7rem;
}
.pv50-feat-body h3 { margin: 0 0 4px; font-weight: 900; font-size: 1.5rem; letter-spacing: -.5px; }
.pv50-feat-body p { margin: 0; color: rgba(255,255,255,.85); }

/* ============ BOOKING ============ */
.pv50-booking { padding: 70px 28px; }
.pv50-booking-type { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.pv50-booking-type { align-items: flex-start; }
.pv50-booking-type .pv50-block-num { color: var(--red); }
.pv50-booking-sub { margin: 0; color: var(--muted); font-size: 1.05rem; }
.pv50-widget-shell {
    background: #fff; border: 3px solid var(--ink); padding: 24px;
    box-shadow: 8px 8px 0 var(--red);
}

/* ============ GALLERY ============ */
.pv50-gallery { padding: 70px 28px; }
.pv50-gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pv50-gal-item { margin: 0; position: relative; border: 3px solid var(--ink); overflow: hidden; aspect-ratio: 1/1; }
.pv50-gal-item:nth-child(4n+1) { grid-row: span 2; aspect-ratio: 1/2; }
.pv50-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pv50-gal-item:hover img { transform: scale(1.07); }
.pv50-gal-item figcaption {
    position: absolute; right: 0; bottom: 0; background: var(--ink); color: #fff;
    font-weight: 800; padding: 8px 14px; font-size: .9rem;
}

/* ============ QUOTES ============ */
.pv50-quotes { padding: 70px 28px; background: var(--ink); }
.pv50-quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.pv50-quote {
    margin: 0; background: var(--paper); border: 3px solid var(--paper); padding: 28px; position: relative;
}
.pv50-quote-mark { position: absolute; top: 6px; left: 18px; font-size: 4rem; font-weight: 900; color: var(--red); line-height: 1; }
.pv50-quote-text { font-size: 1.2rem; font-weight: 700; line-height: 1.55; margin: 18px 0 16px; }
.pv50-quote footer { display: flex; flex-direction: column; }
.pv50-quote footer strong { font-weight: 900; }
.pv50-quote footer span { color: var(--muted); font-size: .9rem; }

/* ============ FAQ ============ */
.pv50-faq { padding: 70px 28px; background: var(--red); }
.pv50-faq-list { border-top: 3px solid #fff; }
.pv50-faq-item { border-bottom: 3px solid #fff; }
.pv50-faq-q {
    width: 100%; background: none; border: 0; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 22px 4px; font-weight: 900; font-size: clamp(1.1rem, 3vw, 1.6rem); text-align: right; letter-spacing: -.5px;
}
.pv50-faq-q i { flex: none; transition: transform .25s ease; }
.pv50-faq-item.is-open .pv50-faq-q i { transform: rotate(45deg); }
.pv50-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: rgba(255,255,255,.92); padding: 0 4px; }
.pv50-faq-item.is-open .pv50-faq-a { max-height: 400px; padding: 0 4px 22px; }

/* ============ CTA ============ */
.pv50-cta { padding: 90px 28px; background: var(--ink); color: #fff; text-align: center; }
.pv50-cta-type { margin: 0 auto; font-weight: 900; letter-spacing: -2px; line-height: .95; font-size: clamp(2.6rem, 9vw, 7rem); max-width: 16ch; }
.pv50-cta-text { max-width: 600px; margin: 22px auto 30px; color: rgba(255,255,255,.8); font-size: 1.15rem; }

/* ============ HOURS ============ */
.pv50-hours { padding: 70px 28px; }
.pv50-hours-list { max-width: 720px; }
.pv50-hours-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 3px solid var(--ink); font-weight: 800; font-size: 1.15rem; }
.pv50-hours-dots { flex: 1; border-bottom: 3px dotted var(--ink); align-self: flex-end; height: 0; margin-bottom: 6px; }

/* ============ CONTACT ============ */
.pv50-contact { padding: 70px 28px; background: var(--ink); color: #fff; }
.pv50-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.pv50-ct-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.pv50-ct-row i { color: var(--red); font-size: 1.2rem; margin-top: 4px; }
.pv50-ct-lbl { display: block; font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.pv50-ct-val { display: block; font-weight: 700; }
.pv50-ct-val a { color: #fff; }
.pv50-ct-socials { display: flex; gap: 12px; margin-top: 18px; }
.pv50-soc {
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff; color: #fff; font-size: 1.1rem; transition: .18s ease;
}
.pv50-soc:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }
.pv50-map { border: 3px solid #fff; min-height: 280px; }
.pv50-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; filter: grayscale(1) contrast(1.1); }

/* ============ FOOTER ============ */
.pv50-footer { background: var(--paper); padding: 50px 28px 28px; }
.pv50-footer-mega {
    font-weight: 900; letter-spacing: -3px; line-height: .9; color: var(--ink);
    font-size: clamp(3rem, 16vw, 13rem); border-bottom: 3px solid var(--ink); padding-bottom: 14px; word-break: break-word;
}
.pv50-footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; padding: 28px 0; }
.pv50-footer-desc { max-width: 380px; color: var(--muted); margin: 0; }
.pv50-footer-links { display: flex; flex-direction: column; gap: 8px; }
.pv50-footer-links a { font-weight: 700; }
.pv50-footer-links a:hover { color: var(--red); }
.pv50-footer-social { display: flex; gap: 12px; }
.pv50-footer-social .pv50-soc { border-color: var(--ink); color: var(--ink); }
.pv50-footer-social .pv50-soc:hover { background: var(--ink); color: #fff; }
.pv50-footer-bottom { border-top: 3px solid var(--ink); padding-top: 18px; color: var(--muted); font-size: .9rem; }

/* ============ FAB ============ */
.pv50-fab-stack { position: fixed; bottom: 22px; left: 22px; z-index: 800; display: flex; flex-direction: column; gap: 12px; }
.pv50-fab {
    width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
    border: 3px solid var(--ink); font-size: 1.3rem; transition: .18s ease;
}
.pv50-fab-wa { background: #25d366; color: #fff; }
.pv50-fab-call { background: var(--ink); color: #fff; }
.pv50-fab-book { background: var(--red); color: #fff; }
.pv50-fab:hover { transform: translateY(-4px) scale(1.05); }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .pv50-deal-grid { grid-template-columns: repeat(2, 1fr); }
    .pv50-gal-grid { grid-template-columns: repeat(2, 1fr); }
    .pv50-about-grid { grid-template-columns: 1fr; }
    .pv50-contact-grid { grid-template-columns: 1fr; }
    .pv50-stats { grid-template-columns: repeat(2, 1fr); }
    .pv50-stat:nth-child(2) { border-left: 0; }
}
@media (max-width: 760px) {
    .pv50-bar-nav { display: none; }
    .pv50-burger { display: inline-flex; }
    .pv50-hero-accent { display: none; }
    .pv50-deal-grid { grid-template-columns: 1fr; }
    .pv50-cat-row { grid-template-columns: auto 1fr; }
    .pv50-cat-tag, .pv50-cat-ic { display: none; }
    .pv50-hero-foot { flex-direction: column; align-items: stretch; }
}


/* ===== Appointment widget — modal/calendar z-index over template layers ===== */
#bookingModal { z-index: 10050 !important; }
.modal-backdrop { z-index: 10040 !important; }
body .popover { z-index: 10060 !important; }
