/* Khawar Traders Rawalpindi — Royal Dark 3D Luxury.
   Shared by storefront, admin, installer and offline screen. No build step. */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Noto+Nastaliq+Urdu:wght@400;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --obsidian: #070709;
  --gold: #d4af37;
  --gold-light: #fbe083;
  --bronze: #8c6d23;
  --ink: #f5eedc;
  --muted: #a3957f;
  --line: rgba(212, 175, 55, .22);
  --surface: rgba(22, 17, 10, .70);
  --surface-solid: #16130e;
  --emerald: #38d68b;
  --gold-gradient: linear-gradient(135deg, #fff3c4 0%, #d4af37 50%, #8c6d23 100%);
  --button-gradient: linear-gradient(120deg, #fbe083 0%, #d4af37 62%, #b58b29 100%);
  --glass-shadow: 0 20px 65px rgba(0, 0, 0, .38), 0 0 30px rgba(212, 175, 55, .035), inset 0 0 20px rgba(212, 175, 55, .05);
  --radius: 24px;
  --font-display: 'Cinzel', Georgia, serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Urdu Typesetting', serif;
  --font-body: 'Plus Jakarta Sans', Arial, sans-serif;
  /* Compatibility aliases for existing PHP/admin templates. */
  --blue: var(--gold-light);
  --green: var(--emerald);
  --cream: var(--obsidian);
  --white: var(--surface-solid);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--obsidian);
  color: var(--ink);
  font: 400 15px/1.8 var(--font-body);
  overflow-x: clip;
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 82% 12%, rgba(212,175,55,.11), transparent 45%),
              radial-gradient(ellipse at 10% 64%, rgba(140,109,35,.10), transparent 42%);
}
#bg-canvas-3d { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .8; }
body > main, body > footer, .topline, .admin-shell { position: relative; z-index: 1; }
body > .auth { position: relative; z-index: 1; }
::selection { background: var(--gold); color: #120d03; }
h1, h2, h3, p { margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: 1.15rem; }
h1, h2, .brand strong, .metallic-text, .credit-name { color: var(--gold-light); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  h1, h2, .brand strong, .metallic-text, .credit-name {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
html[lang='ur'] body { font-family: var(--font-urdu); font-size: 16px; line-height: 2.2; }
html[lang='ur'] :is(h1, h2, h3, .brand strong, .eyebrow) { font-family: var(--font-urdu); letter-spacing: 0; line-height: 2.2; }
html[lang='ur'] h1 { font-size: clamp(2rem, 4vw, 3.8rem); padding-block: .1em .35em; }
html[lang='ur'] h2 { padding-bottom: .2em; }
[lang='en'], .language, .developer-credit { font-family: var(--font-body); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-light); }
button, input, textarea, select { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 25px; border: 1px solid rgba(251,224,131,.55);
  border-radius: 999px; background: var(--button-gradient); color: #120d03;
  font-weight: 800; font-size: .86rem; line-height: 1.6; text-align: center;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 24px rgba(212,175,55,.12), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
button:hover, .button:hover { color: #120d03; transform: translateY(-3px) scale(1.015); box-shadow: 0 12px 36px rgba(212,175,55,.25); }
button:active, .button:active { transform: translateY(0) scale(.99); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.small { font-size: .74rem; padding: 11px 18px; min-height: 44px; }
.text-link { color: var(--gold-light); font-weight: 700; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }
:is(button, a, summary, input, textarea, select):focus-visible { outline: 2px solid var(--gold-light); outline-offset: 5px; }
input, select, textarea {
  display: block; width: 100%; min-height: 48px; padding: 13px 16px;
  color: var(--ink); background: rgba(7,7,9,.72); border: 1px solid var(--line);
  border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.1); }
input::placeholder, textarea::placeholder { color: #b5a582; opacity: 1; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); -webkit-box-shadow: 0 0 0 1000px #16130e inset; }
select {
  appearance: none; padding-inline-end: 45px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23d4af37' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
[dir='rtl'] select { background-position: left 16px center; }
option { background: #16130e; color: var(--ink); }
textarea { resize: vertical; }
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 20px; }
label :is(input, select, textarea) { margin-top: 8px; font-weight: 400; }
input[type='checkbox'] { display: inline-block; width: 22px; min-height: 22px; accent-color: var(--gold); vertical-align: middle; }
input[type='color'] { padding: 4px; }
input[type='file']::file-selector-button { background: #302714; color: var(--gold-light); border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-inline-end: 12px; }
fieldset { display: flex; flex-wrap: wrap; gap: 22px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 22px; padding: 22px; }
fieldset label { flex: 1; min-width: 140px; }
legend { padding-inline: 10px; color: var(--gold-light); }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.container { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }

/* Header and navigation */
.topline { display: flex; justify-content: space-between; gap: 24px; padding: 9px 40px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .66rem; letter-spacing: .04em; background: rgba(7,7,9,.8); }
.topline [data-status] { color: var(--gold-light); }
.site-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  gap: 25px; min-height: 100px; padding: 18px 40px;
  background: rgba(7,7,9,.78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line); transition: padding .25s, background .25s;
}
.site-header.scrolled { padding-block: 10px; min-height: 80px; background: rgba(7,7,9,.94); box-shadow: 0 12px 40px #0005; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand img { flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 28px #d4af3712; }
.brand strong { display: block; font-family: var(--font-display); font-size: clamp(.8rem, 1.05vw, 1.1rem); line-height: 1.6; max-width: 245px; }
.brand small { display: block; font-size: .58rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted); line-height: 1.8; }
.desktop-nav { display: flex; align-items: center; gap: 19px; font-size: .72rem; font-weight: 600; }
.desktop-nav a { padding-block: 12px; white-space: nowrap; position: relative; }
.desktop-nav a::after { content: ''; position: absolute; bottom: 4px; inset-inline: 0; height: 1px; background: var(--gold-gradient); transform: scaleX(0); transition: transform .25s; }
.desktop-nav a:hover::after, .desktop-nav [aria-current]::after { transform: scaleX(1); }
.desktop-nav [aria-current], .bottom-nav [aria-current] { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.language { font-size: .75rem; min-height: 44px; display: inline-flex; align-items: center; }
.menu-toggle { display: none; padding: 9px 14px; }
.demo { padding: 8px 20px; text-align: center; background: rgba(212,175,55,.05); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .69rem; }

/* Hero: restrained depth, metallic type, orbital framing. */
.hero { position: relative; padding-block: 78px 35px; }
.hero-slide { display: grid; grid-template-columns: 1.12fr 1fr; gap: 65px; align-items: center; }
.hero-slide > div { min-width: 0; }
.hero h1 { font-weight: 700; }
.eyebrow { color: var(--gold); font: 700 .65rem/1.9 var(--font-body); text-transform: uppercase; letter-spacing: .22em; margin-bottom: 22px; }
.eyebrow::before { content: ''; display: inline-block; width: 25px; height: 1px; background: var(--gold); margin-inline-end: 10px; vertical-align: middle; }
.lead { font-size: 1.03rem; line-height: 1.9; color: var(--muted); max-width: 480px; margin-block: 25px 32px; }
.hero-note { display: inline-block; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }
.hero-art {
  position: relative; min-height: 390px; padding: 22px;
  border: 1px solid var(--line); border-radius: 48% 48% 24px 24px;
  background: radial-gradient(ellipse at 50% 45%, rgba(212,175,55,.13), rgba(22,17,10,.5) 70%);
  box-shadow: var(--glass-shadow); overflow: hidden;
}
.hero-art::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(212,175,55,.13); border-radius: inherit; pointer-events: none; }
.hero-art img { width: 100%; object-fit: contain; border-radius: 40% 40% 16px 16px; }
.stamp { position: absolute; inset-inline-end: 20px; top: 25px; z-index: 2; width: 96px; height: 96px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: 50%; padding: 13px; text-align: center; background: #100e0bed; color: var(--gold-light); font-size: .75rem; box-shadow: 0 0 0 6px #d4af3708, 0 0 40px #0008; transform: rotate(10deg); }
.slider-controls { display: flex; align-items: center; gap: 16px; margin-top: 35px; color: var(--muted); font: .75rem var(--font-body); }
.slider-controls button { width: 44px; min-height: 44px; padding: 8px; background: #16110ab3; color: var(--gold-light); border: 1px solid var(--line); box-shadow: none; }

/* Content surfaces */
.home-section { padding-block: 65px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 35px; }
.section-head p:not(.eyebrow) { color: var(--muted); max-width: 680px; }
.card, .product-card, .category, .map-card, .variant, .promotion, .table-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--glass-shadow);
}
.card { padding: 30px; }
.categories { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.category { position: relative; padding: 18px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.category img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 12px; border-radius: 14px; }
.category h3 { color: var(--gold-light); margin-bottom: 5px; }
.category > span { position: absolute; inset-inline-end: 18px; bottom: 20px; color: var(--gold); }
.category:hover, .product-card:hover { transform: translateY(-7px); border-color: rgba(212,175,55,.6); box-shadow: 0 22px 60px #0007, 0 0 28px #d4af3712; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.product-image { display: block; padding: 16px; background: radial-gradient(ellipse at 50% 60%, #d4af3712, transparent 75%); border-bottom: 1px solid var(--line); }
.product-image img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 14px; transition: transform .4s; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-copy { padding: 24px; }
.product-copy .eyebrow { font-size: .53rem; letter-spacing: .12em; margin-bottom: 12px; }
.product-copy .eyebrow::before { display: none; }
.product-copy h3 { color: var(--ink); }
.price { color: var(--gold-light); font-family: var(--font-body); font-size: 1.12rem; font-weight: 700; }
.price small { font-size: .74rem; color: var(--muted); font-weight: 400; }
.product-copy .text-link { font-size: .76rem; }
.offer-section { position: relative; margin-block: 25px; border-block: 1px solid var(--line); background: linear-gradient(110deg, #211a0dc9, #070709a6 60%, #2d210e70); overflow: hidden; }
.offer-section::after { content: '✦'; position: absolute; inset-inline-end: 6%; top: 5%; font-size: 260px; line-height: 1; color: #d4af370b; pointer-events: none; }
.offer-section .container { position: relative; z-index: 1; }
.quotes { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block: 4px 20px; scrollbar-color: var(--bronze) transparent; }
.quotes blockquote { min-width: 300px; max-width: 380px; flex: 1; scroll-snap-align: start; margin: 0; }
.quotes p { color: var(--muted); }
.quotes cite { color: var(--gold-light); font-size: .8rem; font-style: normal; }
.stars { color: var(--gold); display: block; letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .87rem; }
.hours-row strong { color: var(--gold-light); font-family: var(--font-body); font-size: .8rem; }
.hours > p:not(.status) { margin-top: 22px; color: var(--muted); }
.status { color: var(--emerald); font-weight: 600; font-size: .86rem; }
.map-card { position: relative; min-height: 440px; overflow: hidden; }
.map-card iframe { width: 100%; height: 440px; border: 0; display: block; filter: grayscale(.8) invert(.9) hue-rotate(165deg) contrast(.85); }
.map-card .button { position: absolute; bottom: 22px; inset-inline-start: 22px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: #17130d; }
.gallery-grid span { display: block; padding: 12px 5px; color: var(--muted); font-size: .8rem; }
.page { padding-block: 65px; }
.page-title { padding-block: 60px 30px; }
.prose { max-width: 820px; min-height: 50vh; }
.copy { font-size: 1.05rem; line-height: 2; color: #c3b89e; }
.filters { display: flex; gap: 13px; flex-wrap: wrap; margin-block: 10px 32px; }
.filters input { flex: 2; min-width: 200px; }
.filters select { flex: 1; min-width: 160px; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-block: 40px; }
.pagination a { min-height: 44px; min-width: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 50%; text-align: center; }
.pagination [aria-current] { background: var(--button-gradient); color: #120d03; }
.detail-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }
.variant { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 17px; margin-bottom: 14px; border-radius: 16px; }
.variant > span { color: var(--gold-light); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { color: var(--gold-light); font-weight: 600; cursor: pointer; min-height: 44px; }
details p { padding-top: 16px; color: var(--muted); }
.product-grid.list-view { grid-template-columns: 1fr; }
.list-view .product-card { display: flex; }
.list-view .product-image { width: 200px; flex-shrink: 0; border-bottom: 0; border-inline-end: 1px solid var(--line); }

/* Footer, direct contact, developer credit */
footer { margin-top: 75px; padding: 65px 0 28px; background: rgba(7,7,9,.9); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr; gap: 55px; }
.footer-grid h2 { font-size: 1.8rem; }
.footer-grid p { color: var(--muted); font-size: .84rem; }
.footer-grid nav a { display: block; padding: 9px 0; font-size: .82rem; min-height: 44px; }
.footer-grid > div:last-child > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; flex-wrap: wrap; margin-top: 38px; padding-top: 25px; border-top: 1px solid var(--line); }
.copyright { color: var(--muted); font-size: .67rem; margin: 0; }
.developer-credit { display: inline-flex; align-items: center; gap: 12px; direction: ltr; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: linear-gradient(110deg, #1e180e, #0d0c0a); box-shadow: inset 0 1px 0 #fbe0830a, 0 0 28px #d4af3707; font-size: .64rem; line-height: 1.7; color: var(--muted); }
.developer-credit svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }
.credit-name { display: block; font-weight: 800; font-size: .8rem; letter-spacing: .02em; }
.wa-icon { width: 23px; height: 23px; color: var(--emerald); flex-shrink: 0; filter: drop-shadow(0 0 5px #38d68b33); }
.button .wa-icon { color: #075e3d; filter: none; }
.floating-whatsapp {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 35;
  display: inline-flex; align-items: center; gap: 12px; padding: 13px 21px; min-height: 52px;
  border: 1px solid #d4af3766; border-radius: 999px; color: var(--gold-light); background: #12100eea;
  backdrop-filter: blur(20px); font: 700 .8rem/1.5 var(--font-body); box-shadow: 0 10px 35px #0008;
}
.floating-whatsapp::before { content: ''; position: absolute; inset: -4px; border: 1px solid #d4af3766; border-radius: inherit; animation: gold-halo 3s ease-out infinite; pointer-events: none; }
.back-top { position: fixed; bottom: 26px; inset-inline-start: 26px; z-index: 25; padding: 9px 17px; }
.bottom-nav, .mobile-call { display: none; }
.motion-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; min-height: 44px; background: transparent; color: var(--gold-light); border: 1px solid var(--line); box-shadow: none; font: 600 .65rem var(--font-body); }
.motion-toggle:hover { color: var(--gold-light); }

/* Off-canvas, dialogs and status UI */
.mobile-menu { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 370px); background: #100e0afa; backdrop-filter: blur(24px); z-index: 60; padding: 25px; transform: translateX(-110%); transition: transform .3s; overflow-y: auto; border-inline-end: 1px solid var(--line); }
[dir='rtl'] .mobile-menu { transform: translateX(110%); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 15px 0; min-height: 48px; border-bottom: 1px solid var(--line); }
.mobile-menu h2 { margin-top: 30px; font-size: 1.8rem; }
.menu-overlay { position: fixed; inset: 0; background: #000b; z-index: 55; backdrop-filter: blur(5px); }
.skip { position: fixed; top: -100px; z-index: 100; padding: 15px; background: var(--gold); color: #120d03; }
.skip:focus { top: 0; }
.notice { padding: 18px; background: #29200e; border: 1px solid #8c6d23; border-radius: 12px; color: var(--gold-light); }
.honeypot { position: absolute; left: -10000px; }
.auth { max-width: 560px; margin: 8vh auto; padding: 45px; }
.auth h1 { font-size: 2.5rem; }
.lightbox { max-width: 92vw; max-height: 92vh; padding: 16px; background: #100e0afa; color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 0 80px #d4af3712; }
.lightbox::backdrop { background: #000d; backdrop-filter: blur(8px); }
.lightbox img { max-height: 75vh; object-fit: contain; border-radius: 12px; }
.lightbox button { margin-bottom: 12px; }
.install-button, .update-toast { position: fixed; bottom: 100px; inset-inline-start: 20px; z-index: 70; max-width: calc(100vw - 40px); }
.promotion { margin-block: 30px; }
.promotion[data-popup] { position: fixed; top: 15vh; left: 50%; transform: translateX(-50%); width: min(90vw, 600px); z-index: 65; max-height: 75vh; overflow: auto; background: #16130efa; box-shadow: 0 0 0 100vmax #000b; }

/* Shared admin components retain all existing functionality. */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 25px 18px; background: #0d0c0a; border-inline-end: 1px solid var(--line); }
.admin-sidebar .brand { color: var(--gold-light); font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 32px; }
.admin-sidebar .brand span { font-size: .9rem; }
.admin-sidebar nav a { display: block; padding: 10px 14px; margin-bottom: 4px; border-radius: 10px; font-size: .8rem; }
.admin-sidebar nav [aria-current] { background: #d4af3712; color: var(--gold-light); border: 1px solid var(--line); }
.admin-main { min-width: 0; padding: 20px 40px 60px; }
.admin-main h1 { font-size: 2.5rem; margin-block: 30px; }
.admin-top { display: flex; align-items: center; justify-content: flex-end; gap: 15px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; font-size: .75rem; }
.admin-top > span { margin-inline-end: auto; color: var(--muted); }
.admin-top button { padding: 9px 13px; font-size: .69rem; }
.admin-top form { margin: 0; }
.admin-main .card { margin-block: 20px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metrics strong { font: 600 2.5rem var(--font-display); color: var(--gold-light); }
.metrics p { color: var(--muted); font-size: .75rem; }
.table-wrap { overflow: auto; margin-block: 20px; border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
td, th { text-align: start; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold-light); background: #d4af3708; }
td form { display: inline; margin-inline-start: 10px; }
td button { font-size: .69rem; padding: 8px 12px; }
.danger { background: #632e2e; color: #ffe3de; border-color: #a15959; }
.danger:hover { color: #fff; }
.inquiry form { display: inline-flex; gap: 10px; margin-inline-end: 10px; margin-bottom: 12px; }
.bar-chart { display: flex; align-items: end; gap: 14px; height: 145px; overflow: auto; }
.bar-chart > div { min-width: 36px; text-align: center; }
.bar-chart span { display: block; background: var(--button-gradient); border-radius: 5px 5px 0 0; }
.bar-chart small { font-size: .65rem; color: var(--muted); }
/* Existing admin.js toggles .dark. Both choices remain in the requested dark palette. */
.admin-body.dark { --surface: rgba(14,12,9,.94); --surface-solid: #0e0c09; }

@keyframes gold-halo { 0% { transform: scale(1); opacity: .65; } 85%,100% { transform: scale(1.16); opacity: 0; } }
@media (hover: none) { button:hover, .button:hover, .category:hover, .product-card:hover { transform: none; } }
@media (min-width: 1550px) { .site-header, .topline { padding-inline: max(40px, calc((100vw - 1380px)/2)); } }
@media (max-width: 1250px) {
  .desktop-order { display: none; }
  .desktop-nav { gap: 16px; }
  .hero-slide { gap: 40px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-shell { grid-template-columns: 210px 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 950px) {
  .container { width: calc(100% - 40px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header { padding: 15px 20px; min-height: 85px; }
  .brand strong { font-size: 1rem; max-width: 330px; }
  .topline { padding: 8px 20px; }
  .topline > span { display: none; }
  .hero { padding-top: 50px; }
  .hero-slide { gap: 25px; }
  .hero-art { min-height: 260px; padding: 14px; }
  .stamp { width: 75px; height: 75px; font-size: .6rem; top: 18px; inset-inline-end: 16px; }
  .categories { gap: 12px; }
  .category { padding: 12px; }
  .category img { height: 85px; }
  .category h3 { font-size: 1rem; }
  .category > span { display: none; }
  .product-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 30px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: relative; height: auto; padding: 15px; }
  .admin-sidebar .brand { margin-bottom: 15px; }
  .admin-sidebar nav { display: flex; overflow-x: auto; gap: 5px; }
  .admin-sidebar nav a { white-space: nowrap; }
  .admin-main { padding: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 32px); }
  .site-header { padding: 12px 16px; gap: 10px; min-height: 80px; }
  .site-header.scrolled { min-height: 72px; }
  .brand { gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: .75rem; max-width: 180px; line-height: 1.5; }
  html[lang='ur'] .brand strong { font-size: .75rem; line-height: 2.2; }
  .brand small { font-size: .48rem; letter-spacing: .1em; }
  .header-actions { gap: 9px; }
  .language { font-size: .65rem; }
  .menu-toggle { width: 44px; padding: 8px; }
  .demo { font-size: .62rem; padding: 8px 16px; }
  .hero { padding-top: 38px; }
  .hero-slide { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  html[lang='ur'] .hero h1 { font-size: clamp(1.9rem, 7vw, 2.7rem); }
  .hero .eyebrow { font-size: .57rem; letter-spacing: .12em; }
  .hero-art { min-height: 0; max-height: 360px; border-radius: 36px; }
  .hero-art img { height: 320px; object-fit: contain; border-radius: 25px; }
  .hero-note { margin-top: 22px; }
  .hero .lead { margin-block: 16px 25px; }
  .categories { grid-template-columns: repeat(3, 1fr); }
  .category h3 { font-size: .9rem; }
  .home-section { padding-block: 40px; }
  .section-head { margin-bottom: 25px; }
  .product-grid { gap: 12px; }
  .product-image { padding: 9px; }
  .product-copy { padding: 16px 13px; }
  .product-copy h3 { font-size: .97rem; }
  .product-copy .eyebrow { font-size: .48rem; letter-spacing: .03em; }
  .product-copy .price { font-size: .95rem; }
  .product-copy .text-link { font-size: .68rem; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .card { padding: 23px; }
  .quotes blockquote { min-width: 85%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { justify-content: center; text-align: center; }
  footer { padding-bottom: 160px; }
  .developer-credit { padding: 11px 15px; }
  .bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 45; display: flex; justify-content: space-around; align-items: center; gap: 3px; min-height: 68px; padding: 9px 5px max(9px, env(safe-area-inset-bottom)); background: #0d0b09ed; backdrop-filter: blur(24px); border-top: 1px solid var(--line); box-shadow: 0 -10px 40px #0006; }
  .bottom-nav a { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px; min-height: 44px; font-size: .6rem; font-weight: 600; }
  .bottom-nav .wa-icon { width: 17px; height: 17px; }
  .floating-whatsapp { bottom: calc(85px + env(safe-area-inset-bottom)); inset-inline-end: 16px; padding: 13px; width: 52px; height: 52px; justify-content: center; }
  .floating-whatsapp .wa-label { display: none; }
  .back-top { bottom: calc(85px + env(safe-area-inset-bottom)); inset-inline-start: 16px; }
  .mobile-call { position: fixed; bottom: calc(85px + env(safe-area-inset-bottom)); inset-inline-end: 80px; z-index: 35; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #14100ded; color: var(--gold-light); font-size: .72rem; }
  .page { padding-block: 38px; }
  .page-title { padding-block: 38px 22px; }
  .auth { margin: 25px 16px; padding: 26px; }
  .auth h1 { font-size: 2rem; }
  .metrics { gap: 10px; }
  .metrics .card { padding: 16px; }
  .admin-top { justify-content: start; }
  .admin-top > span { width: 100%; }
  .install-button, .update-toast { bottom: calc(155px + env(safe-area-inset-bottom)); }
  .gallery-grid { gap: 12px; }
  .filters > * { width: 100%; }
  .filters button { width: auto; }
  .list-view .product-image { width: 130px; }
  .variant .button { width: 100%; }
}
@media (max-width: 370px) {
  .brand img { display: none; }
  .brand strong { max-width: 165px; }
  .categories { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .bottom-nav a { font-size: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #bg-canvas-3d { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .product-card, .category, .site-header, .bottom-nav { background: #16130e; backdrop-filter: none; }
}
@media (forced-colors: active) {
  h1, h2, .brand strong, .metallic-text, .credit-name { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  #bg-canvas-3d, body::before { display: none; }
  button, .button { border: 1px solid ButtonText; }
}
