/* Pardeep Jewellers v24 — static CSS replacing Tailwind CDN
 * Hand-written replacement for all Tailwind utility classes used in app.js.
 * This file is ~5 KB instead of Tailwind CDN's ~300 KB compile-in-browser.
 *
 * Naming convention matches Tailwind exactly so app.js className strings
 * keep working unchanged. If you add a NEW Tailwind class to app.js you
 * must also add a matching rule here.
 */

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; }

/* Tailwind preflight equivalents — needed so app.js anchors/buttons render
   the same way they did with the Tailwind CDN. */
a { color: inherit; text-decoration: inherit; }
button { background-color: transparent; background-image: none; padding: 0;
         font-family: inherit; font-size: 100%; line-height: inherit;
         color: inherit; margin: 0; cursor: pointer; border: 0; }
input { font-family: inherit; font-size: 100%; line-height: inherit;
        color: inherit; margin: 0; padding: 0; border: 0;
        background-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
h2 { font-size: inherit; font-weight: inherit; margin: 0; }

/* ====== LAYOUT ====== */
.flex { display: flex; }
.grid { display: grid; }
.block { display: block; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.min-h-screen { min-height: 100vh; }

/* ====== POSITION ====== */
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

/* ====== SIZE ====== */
.w-full { width: 100%; }
.w-9 { width: 2.25rem; }
.w-1\.5 { width: 0.375rem; }
.h-9 { height: 2.25rem; }
.h-1\.5 { height: 0.375rem; }
.max-w-sm { max-width: 24rem; }
.max-w-7xl { max-width: 80rem; }

/* ====== SPACING - margin ====== */
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* ====== SPACING - padding ====== */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-8 { padding-bottom: 2rem; }

/* ====== GAP ====== */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* ====== TYPOGRAPHY ====== */
.text-center { text-align: center; }
.text-\[9px\] { font-size: 9px; line-height: 12px; }
.text-\[10px\] { font-size: 10px; line-height: 14px; }
.text-\[11px\] { font-size: 11px; line-height: 15px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.underline { text-decoration: underline; }
.leading-relaxed { line-height: 1.625; }
.text-white { color: #ffffff; }

/* ====== BACKGROUND COLORS (used in fixed buttons - no theme variation needed) ====== */
.bg-green-600 { background-color: #16a34a; }
.bg-green-700 { background-color: #15803d; }
.bg-blue-600 { background-color: #2563eb; }
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }
.bg-yellow-600 { background-color: #ca8a04; }
.bg-yellow-700 { background-color: #a16207; }
.hover\:bg-green-600:hover { background-color: #16a34a; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.hover\:bg-yellow-600:hover { background-color: #ca8a04; }
.disabled\:bg-neutral-700:disabled { background-color: #404040; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

/* ====== BORDERS / RADIUS ====== */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }

/* ====== SHADOWS ====== */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); }

/* ====== TRANSITIONS / TRANSFORMS ====== */
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.active\:scale-90:active { transform: scale(0.9); }
.active\:scale-95:active { transform: scale(0.95); }

/* ====== RESPONSIVE: sm = >=640px ====== */
@media (min-width: 640px) {
  .sm\:max-w-2xl { max-width: 42rem; }
  .sm\:mx-auto { margin-left: auto; margin-right: auto; }
  .sm\:p-4 { padding: 1rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:gap-3 { gap: 0.75rem; }
  .sm\:text-\[10px\] { font-size: 10px; line-height: 14px; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:text-sm { font-size: 0.875rem; line-height: 1.25rem; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

/* ====== v29 BOTTOM NAVIGATION BAR ====== */
/* Fixed two-tab nav at bottom of screen. Visible on mobile and TV.
   Active tab uses gold colour. Inactive uses muted. */
.pj-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  background: var(--card-bg-1);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.10);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.pj-bottom-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--muted-strong);
  text-decoration: none;
  text-align: center;
  border-top: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.pj-bottom-nav a.pj-active {
  color: var(--gold);
  border-top-color: var(--gold);
}
.pj-bottom-nav a:active {
  opacity: 0.7;
}
/* TV mode — bigger so it's readable from 10 ft */
html.pj-tv-mode .pj-bottom-nav a {
  font-size: 20px;
  padding: 16px 8px;
}
/* Bottom padding on the page so content isn't hidden behind the nav */
.pj-bottom-nav-spacer { height: 60px; }
html.pj-tv-mode .pj-bottom-nav-spacer { height: 80px; }
