:root {
    --black: #0c0c0c;
    --ink: #f4f4f4;
    --muted: #b5b5b5;
    --paper: #0e0e0e;
    --card: #161616;
    --line: #2c2c2c;
    --orange: #ff7a00;
    --orange-deep: #e06500;
    --orange-hot: #ff9324;
    --danger: #ff6a5a;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    --sans: "Barlow", "Segoe UI", sans-serif;
    --display: "Oswald", "Arial Narrow", sans-serif;
    --urdu: "Noto Nastaliq Urdu", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 0, 0.18), transparent 26rem),
        var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.site-header, .hero, .services, .deal-band, .preview, .location, .page-intro, .page-grid, .site-footer, .empty, .center-list {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}
.topbar { background: #070707; border-bottom: 4px solid var(--orange); }
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}
.brand-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.logo { height: 108px; width: auto; }
.brand-tag {
    display: grid;
    gap: 0.08rem;
    line-height: 1.15;
}
.brand-tag strong {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(0.78rem, 1.6vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    text-transform: none;
}
.brand-phone {
    font-family: var(--display);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--orange);
    text-decoration: none;
}
a.brand-phone:hover { color: var(--orange-hot); }
.footer-brand-tag { margin: 0.15rem 0 0.7rem; }
.footer-brand-tag strong { color: #fff; }
.login-brand-tag {
    margin: 0.35rem auto 0.9rem;
    justify-items: center;
    text-align: center;
}
.login-brand-tag strong { color: #111; }
.login-brand-tag .brand-phone { color: var(--orange); }
.side-brand { align-items: stretch; }
.side-brand .brand-tag { padding-inline: 0.15rem; }
.side-brand .brand-tag strong { color: #fff; font-size: 0.78rem; }
.side-brand .brand-phone { font-size: 1rem; }
.header-tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.site-nav, .lang-switch { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.site-nav a, .lang-switch a {
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    border: 2px solid transparent;
    color: #fff;
    font-weight: 700;
}
.site-nav a.active, .site-nav a:hover, .lang-switch a.active {
    background: var(--orange);
    color: #111;
    border-color: var(--orange);
}
.lang-switch a { border-color: #3a3a3a; }
.menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border: 2px solid var(--orange);
    background: #111;
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    height: 3px;
    margin: 4px 0;
    background: var(--orange);
}
.footer-logo { height: 132px; width: auto; margin-bottom: 0.4rem; }
.login-logo { width: min(240px, 100%); margin-inline: auto; }
.side .logo { height: 92px; }

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 1.4rem;
    align-items: stretch;
    padding: 1.4rem 0 2.2rem;
}
.hero h1, .page-intro h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); margin-bottom: 0.7rem; }
.lead { font-size: 1.15rem; max-width: 40rem; color: #d7d7d7; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.hero-points span, .filters a, .badge {
    border: 2px solid var(--orange);
    background: #111;
    color: #fff;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
}
.contact-panel, .deal-band, .service-card, .product-card, .empty, .stats article, .panel, .login-card, .table-wrap {
    background: var(--card);
    border: 2px solid var(--orange);
    box-shadow: var(--shadow);
}
.contact-panel { color: #fff; padding: 1.3rem; }
.contact-panel h2 { font-size: 1.8rem; }
.panel-kicker, .kicker {
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--orange);
    font-family: var(--display);
}
.wa-list { display: grid; gap: 0.7rem; }
.wa-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    background: var(--orange);
    color: #111;
    border: 2px solid #ffb066;
    padding: 0.75rem 0.85rem;
    font-weight: 700;
}
.wa-btn:hover { background: var(--orange-hot); }
.wa-icon { display: grid; place-items: center; }
.wa-copy { display: grid; }
.wa-copy small { font-weight: 600; }
.wa-list.compact .wa-btn { padding: 0.55rem 0.7rem; }

.section-head { margin: 0.6rem 0 1rem; }
.section-head h2, .deal-band h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: start;
}
.service-card { padding: 1.1rem 1.15rem 0.3rem; }
.service-card header { display: flex; gap: 0.8rem; align-items: flex-start; }
.service-card header span {
    display: grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    background: var(--orange);
    color: #111;
    font-family: var(--display);
    font-size: 1.05rem;
}
.service-card h3 { margin-bottom: 0.15rem; font-size: 1.35rem; }
.service-card header p { color: var(--muted); margin-bottom: 0; }
.service-card ol { margin: 0.8rem 0 1rem; padding-inline-start: 1.2rem; }
.service-card li { padding: 0.28rem 0; border-bottom: 1px solid #2a2a2a; }
.deal-band {
    margin-top: 2rem;
    background: var(--orange);
    color: #111;
    padding: 1.3rem 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}
.deal-band .kicker, .deal-band h2, .deal-band .text-link { color: #111; }
.text-link {
    display: inline-flex;
    color: var(--orange);
    font-weight: 800;
    text-decoration: none;
    margin: 1rem 0 2rem;
    border-bottom: 2px solid currentColor;
}
.deal-band .text-link { margin: 0; }
.preview { padding-bottom: 2rem; }
.location { padding: 0.4rem 0 2.6rem; }
.location-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.85fr);
    gap: 0;
    border: 2px solid var(--orange);
    background:
        linear-gradient(135deg, rgba(255, 122, 0, 0.12), transparent 42%),
        #101010;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.map-frame {
    position: relative;
    min-height: 320px;
    background: #070707;
    border-inline-end: 2px solid var(--orange);
}
.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.18) contrast(1.05);
}
.location-info {
    display: grid;
    align-content: center;
    gap: 0.7rem;
    padding: 1.4rem 1.35rem;
}
.location-info h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.location-info p { margin: 0; color: #d4d4d4; }
.map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.45rem;
    width: fit-content;
    padding: 0.85rem 1.15rem;
    background: var(--orange);
    color: #111;
    border: 2px solid #ffb066;
    text-decoration: none;
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.map-btn:hover { background: var(--orange-hot); }
.page-intro { padding: 1.3rem 0 0.2rem; }
.filters { display: flex; gap: 0.45rem; margin: 1rem 0 1.3rem; }
.filters a { text-decoration: none; }
.filters a.active { background: var(--orange); color: #111; }
.page-grid { margin-bottom: 3rem; }
.product-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.product-photo {
    position: relative;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
}
.photo-trigger {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0.45rem;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.product-photo img.photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}
.product-photo img.mark {
    width: 42%;
    height: auto;
    object-fit: contain;
    object-position: center center;
}
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.88);
}
.lightbox[hidden] { display: none; }
.lightbox-image {
    width: min(960px, 100%);
    max-height: min(88vh, 900px);
    object-fit: contain;
    background: #111;
    border: 2px solid var(--orange);
    box-shadow: var(--shadow);
}
.lightbox-close {
    position: absolute;
    top: 0.8rem;
    inset-inline-end: 0.8rem;
    width: 2.6rem;
    height: 2.6rem;
    border: 2px solid var(--orange);
    background: #111;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox-close:hover { background: var(--orange); color: #111; }
body.lightbox-open { overflow: hidden; }
.badge {
    position: absolute;
    top: 0.3rem;
    inset-inline-start: 0.3rem;
    font-style: normal;
    font-size: 0.62rem;
    padding: 0.1rem 0.28rem;
}
.badge.used { background: #111; }
.product-body {
    padding: 0.4rem 0.45rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    flex: 1 1 auto;
}
.product-card h3 {
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-cat {
    color: var(--orange);
    font-size: 0.62rem;
    margin: 0;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.product-card .price {
    font-family: var(--display);
    font-size: 0.88rem;
    color: var(--orange);
    margin: 0;
}
.price { font-family: var(--display); font-size: 1.2rem; color: var(--orange); margin-bottom: 0.25rem; }
.desc { color: #d0d0d0; }
.product-wa {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin-top: 0.25rem;
}
.product-wa .wa-btn {
    padding: 0.28rem 0.3rem;
    gap: 0.25rem;
    min-width: 0;
}
.product-wa .wa-icon svg { width: 14px; height: 14px; }
.product-wa .wa-copy {
    min-width: 0;
}
.product-wa .wa-copy strong {
    display: none;
}
.product-wa .wa-copy small {
    font-size: 0.62rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.empty { color: var(--muted); border-style: dashed; padding: 1rem; }
.center-list { margin-bottom: 3rem; }
.site-footer { padding: 0.4rem 0 2.4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-top: 1.3rem; border-top: 4px solid var(--orange); }
.brand-line { font-family: var(--display); font-weight: 700; text-transform: uppercase; }
.fine { color: #cfcfcf; }
.ceo-line {
    margin: 1.6rem 0 0;
    text-align: center;
    font-family: var(--display);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    text-transform: none;
    color: #fff;
}

.admin-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; background: #101010; }
.admin-body h1, .admin-body h2, .admin-body h3 { text-transform: none; letter-spacing: 0; }
.side {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    background: #070707;
    color: #fff;
    padding: 0.8rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.8rem;
    border-inline-end: 4px solid var(--orange);
}
.side nav { display: grid; align-content: start; gap: 0.35rem; }
.side a { text-decoration: none; padding: 0.65rem 0.75rem; font-weight: 700; border: 2px solid transparent; }
.side a.active, .side a:hover { background: var(--orange); color: #111; border-color: var(--orange); }
.logout { align-self: end; }
.side button, .button, .panel button, .login-card button {
    border: 2px solid var(--orange);
    background: var(--orange);
    color: #111;
    padding: 0.65rem 0.95rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
}
.logout button { width: 100%; background: transparent; color: var(--orange); }
.side button:hover { background: var(--orange); color: #111; }
.admin-main { min-width: 0; padding: 1.5rem 1.4rem 2.5rem; }
.admin-head h1 { font-size: 2.2rem; margin-bottom: 0.25rem; }
.admin-head.row, .form-actions, .actions { display: flex; justify-content: space-between; gap: 0.8rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.stats article, .panel, .login-card, .table-wrap { padding: 1rem; }
.stats strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--orange); }
.stats span, .admin-head p, label span, .form-actions a, td small, .fine { color: var(--muted); }
.panel, .login-card { margin: 0.8rem 0; }
.stack { display: grid; gap: 0.75rem; }
label { display: grid; gap: 0.3rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    border: 2px solid #3a3a3a;
    background: #0d0d0d;
    color: #fff;
    padding: 0.65rem 0.75rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); outline: none; }
.check { display: flex; align-items: center; gap: 0.5rem; }
.check input { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: 0.8rem; border-bottom: 1px solid #2e2e2e; vertical-align: middle; }
th { color: var(--orange); font-family: var(--display); letter-spacing: 0.06em; }
.actions form { display: inline; }
.actions button, .danger { background: transparent; color: var(--danger); border-color: transparent; }
.thumb { width: 140px; }
.flash { background: #14301f; color: #d8ffe8; padding: 0.7rem 0.9rem; border: 2px solid #2f8a52; }
.flash.error, .field-error { background: #3a1614; color: #ffd0ca; border: 2px solid var(--danger); }
.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top, rgba(255, 122, 0, 0.2), transparent 24rem),
        #0c0c0c;
}
.login-card { width: min(440px, calc(100% - 2rem)); display: grid; gap: 0.75rem; }
.inline-form { display: flex; gap: 0.5rem; margin: 0.45rem 0; min-width: 0; }
.inline-form input { flex: 1; min-width: 0; }
.item-list { margin-top: 0.8rem; display: grid; gap: 0.55rem; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.45rem; align-items: center; }
.item-row .inline-form { margin: 0; }
.stack { max-width: 720px; }

html[dir="ltr"] .kicker,
html[dir="ltr"] .panel-kicker,
html[dir="ltr"] .site-nav a,
html[dir="ltr"] .lang-switch a,
html[dir="ltr"] .hero-points span,
html[dir="ltr"] .filters a,
html[dir="ltr"] .button,
html[dir="ltr"] .panel button,
html[dir="ltr"] .login-card button,
html[dir="ltr"] .side a,
html[dir="ltr"] .side button {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    font-family: var(--urdu);
    letter-spacing: 0;
    text-transform: none;
}
html[dir="rtl"] body { font-size: 1.12rem; line-height: 2.15; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { line-height: 1.9; }
html[dir="rtl"] .hero h1, html[dir="rtl"] .page-intro h1 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
html[dir="rtl"] .price,
html[dir="rtl"] .wa-copy small,
html[dir="rtl"] .service-card header span,
html[dir="rtl"] .lang-switch a[href*="/en"] { font-family: var(--sans); line-height: 1.3; }
html[dir="rtl"] .ceo-line { font-family: var(--display); font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.2; }
html[dir="rtl"] .map-btn { font-family: var(--urdu); text-transform: none; letter-spacing: 0; }
html[dir="rtl"] .brand-tag strong,
html[dir="rtl"] .brand-phone { font-family: var(--display); }

@media (max-width: 860px) {
    .hero, .service-grid, .location-card, .footer-grid, .admin-body { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-photo { height: 160px; min-height: 160px; max-height: 160px; }
    .map-frame {
        min-height: 280px;
        border-inline-end: 0;
        border-bottom: 2px solid var(--orange);
    }
    .map-btn { width: 100%; }
    .site-header { align-items: center; }
    .logo { height: 84px; }
    .menu-toggle { display: block; margin-inline-start: auto; }
    .header-tools {
        display: none;
        width: 100%;
        padding-bottom: 0.8rem;
    }
    .header-tools.is-open { display: flex; flex-direction: column; align-items: stretch; }
    .site-nav, .lang-switch { flex-direction: column; }
    .deal-band, .admin-head.row, .inline-form, .item-row { flex-direction: column; align-items: stretch; }
    .item-row { grid-template-columns: 1fr; }
    .side {
        position: static;
        height: auto;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        border-inline-end: 0;
        border-bottom: 4px solid var(--orange);
    }
    .side-brand { grid-column: 1; grid-row: 1; }
    .logout { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; }
    .logout button { width: auto; }
    .side nav { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .side a { border-color: #333; text-align: center; }
    .side .logo { height: 72px; }
}

@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
    .product-photo { height: 140px; min-height: 140px; max-height: 140px; }
    .product-card h3 { font-size: 0.78rem; }
    .product-card .price { font-size: 0.82rem; }
    .product-wa .wa-btn { padding: 0.25rem 0.25rem; }
    .product-wa .wa-copy small { font-size: 0.6rem; }
}
