:root {
  --ink: #f5f5f5;
  --muted: #b0b0b0;
  --line: #444444;
  --surface: #ffffff;
  --band: #f6f8fb;
  --accent: #ff6b6b;
  --accent-dark: #ff8888;
  --festival-orange: #f97316;
  --festival-yellow: #facc15;
  --festival-teal: #0f766e;
  --festival-blue: #2563eb;
  --good: #27d46d;
  --warn: #ff9c00;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1425 100%);
  background-attachment: fixed;
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background: radial-gradient(ellipse at 20% 80%, rgba(139, 69, 19, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(75, 0, 130, 0.06) 0%, transparent 50%);
}

body::after {
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 60%);
}

/* Fireworks Canvas Container */
#fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  display: block;
}

/* Splash Screen Styles */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1425 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.6s ease-out;
  visibility: visible;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease-out, visibility 0s 0.6s;
}

.splash-content {
  text-align: center;
  color: #fff;
  animation: splashFadeIn 0.8s ease-out;
}

.splash-logo {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  margin-left: auto;
  margin-right: auto;
  animation: splashBounce 1s ease-in-out infinite, splashGlow 2s ease-in-out infinite;
}


.splash-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}


.splash-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: 3px;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  animation: splashGlow 2s ease-in-out infinite;
}

.splash-tagline {
  font-size: 1.1rem;
  color: #facc15;
  margin: 0 0 30px;
  font-weight: 600;
  letter-spacing: 1px;
}

.splash-loader {
  width: 50px;
  height: 50px;
  margin: 0 auto;
  border: 3px solid rgba(255, 215, 0, 0.3);
  border-top: 3px solid #facc15;
  border-radius: 50%;
  animation: splashSpin 1.5s linear infinite;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes splashGlow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
  }
}

@keyframes splashSpin {
  to {
    transform: rotate(360deg);
  }
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 5vw;
  background: var(--surface);
  border-bottom: 1px solid rgba(180, 35, 24, 0.16);
  box-shadow: 0 8px 22px rgba(29, 36, 51, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 10px;
}



nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stock-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stock-badge.success {
  background: #dcfce7;
  color: #166534;
}

.stock-badge.warning {
  background: #ffedd5;
  color: #9a2c00;
}

.stock-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.nav-link,
.install-app-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #333333;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 900px) {
  .install-app-button {
    display: none !important;
  }
}

.install-app-button {
  border: 1px solid rgba(255, 122, 0, 0.25);
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0.25));
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
}

.nav-link:hover,
.install-app-button:hover {
  background: #fff2ef;
  color: var(--accent);
}

.nav-link svg,
.install-app-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 auto;
}

.nav-link:hover {
  background: #fff2ef;
  color: var(--accent);
}

.page {
  width: min(1180px, 92vw);
  margin: 34px auto 60px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

h1,
h2 {
  margin: 0;
  color: #f5f5f5;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-size: 0.78rem;
}

.table-panel,
.form-card,
.summary-card,
.auth-card,
.bill,
.lookup-form,
.inline-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 32px rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
}

.table-panel {
  overflow-x: auto;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.product-table th {
  background: #fff2ef;
  color: #000000;
  text-align: left;
  font-size: 0.86rem;
}

.product-table th,
.product-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: #1a1a1a;
}

.product-table td {
  color: #1a1a1a;
}

.product-table td span {
  display: block;
  color: #666666;
  margin-top: 4px;
  font-size: 0.9rem;
}

.product-table tfoot td {
  font-size: 1.05rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(200, 200, 200, 0.5);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #1a1a1a;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.quantity-input {
  max-width: 110px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  min-height: 38px;
  min-width: 50px;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px;
  flex-wrap: wrap;
}

.button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  font-weight: 800;
}

.button.secondary {
  background: #eef2f7;
  color: #000000;
}

.button.light {
  background: #fff;
  color: var(--accent-dark);
}

.button.danger {
  background: var(--accent-dark);
}

.button.small {
  min-height: 34px;
  padding: 7px 10px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.form-card,
.summary-card,
.auth-card,
.bill {
  padding: 24px;
}

.form-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #1a1a1a;
  font-weight: 700;
}

.payment-box {
  border: 1px dashed rgba(200, 200, 200, 0.5);
  border-radius: 8px;
  padding: 14px;
  background: rgba(251, 252, 254, 0.8);
  backdrop-filter: blur(8px);
  color: #1a1a1a;
}

.payment-box strong {
  color: #000000;
  display: block;
  margin-bottom: 8px;
}

.payment-box p {
  color: #333333;
  margin: 0;
}

.hidden {
  display: none;
}

/* Store cart floating panel (bottom center) */
.store-cart-panel {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1500;
  width: min(820px, 92vw);
  pointer-events: none; /* allow only inner controls */
}

.store-cart-inner {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 18px 55px rgba(0,0,0,0.28), inset 0 0 32px rgba(255,255,255,0.35);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #1a1a1a;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.store-cart-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-cart-items {
  font-weight: 900;
  color: #1a1a1a;
}

.store-cart-total {
  font-weight: 900;
  color: #1a1a1a;
}

.store-cart-right {
  display: flex;
  align-items: center;
}


.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  color: #1a1a1a;
}

.summary-row span,
.summary-row strong,
.summary-total span,
.summary-total strong {
  color: #1a1a1a;
}

.messages {
  margin-bottom: 18px;
}

.message {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef4ff;
  color: #1a1a1a;
}

.message.success {
  color: #ffffff;
  background: #27d46d;
}

.message.error {
  color: #1a1a1a;
  background: #ffb84d;
}

.lookup-form,
.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 22px;
}

.inline-form {
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1.4fr auto;
}

.admin-table input[type="checkbox"] {
  width: auto;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.stats-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stats-grid > *,
.contact-grid > * {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 32px rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
}

.stats-grid span,
.contact-grid span {
  color: #666666;
  display: block;
  margin-bottom: 10px;
}

.stats-grid strong,
.contact-grid strong {
  display: block;
  font-size: 1.5rem;
  color: #1a1a1a;
}

.contact-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Prevent long email/phone values from overflowing the contact card */
.contact-card strong {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.2;
}


.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), inset 0 0 32px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.8);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.2) rotate(5deg);
}

.auth-card {
  width: min(420px, 100%);
  margin: 60px auto;
}

.auth-card form {
  display: grid;
  gap: 16px;
}

.bill-header,
.bill-customer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.bill-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--good);
  background: #ecfdf3;
  font-weight: 800;
}

.reference-hero {
  min-height: 540px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  padding: 54px 24px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.34) 0 9%, transparent 10%),
    radial-gradient(circle at 82% 28%, rgba(15, 118, 110, 0.3) 0 12%, transparent 13%),
    linear-gradient(135deg, rgba(122, 39, 26, 0.72), rgba(180, 35, 24, 0.76), rgba(249, 115, 22, 0.68)),
    url("https://images.unsplash.com/photo-1533236897111-3e94666b2edf?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
}

.reference-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -20% -12%;
  height: 170px;
  background: rgba(248, 250, 252, 0.97);
  transform: rotate(-2deg);
}

/* Image zoom modal */
.image-zoom-modal.hidden { display: none; }
.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}
.image-zoom-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}
.image-zoom-dialog {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.image-zoom-img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.image-zoom-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 26px;
  line-height: 40px;
}
.image-zoom-close:hover {
  background: rgba(0,0,0,0.65);
}


.hero-mark {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-mark span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--festival-yellow);
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.8);
}

.hero-mark span:nth-child(2) {
  background: var(--festival-teal);
}

.hero-mark span:nth-child(3) {
  background: var(--festival-orange);
}

.hero-kicker,
.hero-tagline,
.reference-hero h1,
.hero-button {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  margin: 0;
  color: #fff2b8;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-hero h1 {
  margin: 8px 0;
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: clamp(1.1rem, 3vw, 2rem);
  font-weight: 800;
}

.hero-button {
  background: var(--festival-yellow);
  color: var(--accent-dark);
}

.welcome-section,
.story-section,
.solutions-section,
.collection-section,
.site-footer,
.page-hero,
.gift-note {
  margin-top: 36px;
}

.welcome-section,
.story-section,
.gift-note {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 32px rgba(255, 255, 255, 0.3);
  color: #1a1a1a;
}

.gift-note {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.gift-note h2 {
  margin-bottom: 10px;
}

.welcome-section p,
.story-section p,
.gift-note p,
.collection-grid article p,
.solution-grid > div p {
  color: #333333;
}

.page-hero {
  border-radius: 8px;
  padding: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(250, 204, 21, 0.28) 0 11%, transparent 12%),
    rgba(255, 69, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(255, 69, 0, 0.3), inset 0 0 32px rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  margin: 0 0 12px;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  line-height: 1.65;
  font-size: 1.1rem;
}

.page-hero .eyebrow {
  color: #fff2b8;
}

.gift-hero {
  background:
    radial-gradient(circle at 82% 26%, rgba(15, 118, 110, 0.38) 0 14%, transparent 15%),
    linear-gradient(135deg, var(--festival-teal), var(--festival-blue), var(--accent));
}

.section-title h2,
.welcome-section h2,
.story-section h2,
.solutions-section h2,
.collection-section h2 {
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: #1a1a1a;
}

.collection-section h2 {
  color: #f5f5f5;
}

.collection-section .eyebrow {
  color: #facc15;
}

.section-title.centered {
  text-align: center;
  margin-bottom: 24px;
}

.welcome-copy p,
.story-section p {
  color: #333333;
  line-height: 1.75;
  margin-top: 0;
}

.collection-grid,
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.collection-grid article,
.solution-grid > div {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 32px rgba(255, 255, 255, 0.3);
}

.product-art {
  height: 170px;
  border-radius: 8px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
}

.art-spinner {
  background:
    radial-gradient(circle, var(--festival-yellow) 0 8%, transparent 9%),
    conic-gradient(from 20deg, var(--accent), var(--festival-orange), var(--festival-teal), var(--festival-blue), var(--accent));
}

.art-strings {
  background:
    repeating-linear-gradient(90deg, var(--accent) 0 16px, var(--festival-orange) 16px 32px, var(--festival-teal) 32px 48px, var(--festival-blue) 48px 64px);
}

.art-tin {
  background:
    radial-gradient(circle at 35% 24%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, var(--festival-yellow), var(--accent) 58%, #333333);
}

.art-helicopter {
  background:
    radial-gradient(circle at 50% 42%, var(--festival-yellow) 0 9%, transparent 10%),
    linear-gradient(45deg, transparent 45%, var(--festival-blue) 46% 54%, transparent 55%),
    linear-gradient(135deg, var(--festival-teal), var(--ink));
}

.collection-grid h3 {
  margin: 0 0 8px;
  color: #1a1a1a;
}

.collection-grid p {
  margin: 0;
  color: var(--accent);
  font-weight: 800;
}

.collection-grid p span {
  color: #666666;
  display: block;
  text-decoration: line-through;
  font-weight: 700;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.solutions-section {
  background: rgba(255, 250, 245, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 34px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 32px rgba(255, 255, 255, 0.3);
}

.solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.solution-grid strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #1a1a1a;
}

.solution-grid p {
  color: #333333;
  line-height: 1.6;
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  background: linear-gradient(135deg, #8b5e35, #333333);
  color: #fff;
  padding: 38px 5vw;
  margin-top: 56px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--festival-yellow);
  margin: 0 0 12px;
}

.site-footer p {
  color: #fed7aa;
  font-weight: 800;
  margin: 14px 0 6px;
  line-height: 1.5;
}

.site-footer strong {
  display: block;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .site-header {
    padding: 12px 4vw;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    font-size: 1.1rem;
  }

  nav {
    gap: 5px;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .section-heading .button {
    width: 100%;
  }

  .page {
    width: 95vw;
    margin: 20px auto 40px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .split-layout,
  .stats-grid,
  .contact-grid,
  .welcome-section,
  .story-section,
  .collection-grid,
  .solution-grid,
  .site-footer,
  .gift-note,
  .inline-form,
  .lookup-form {
    grid-template-columns: 1fr;
  }

  .reference-hero {
    min-height: 430px;
  }

  .welcome-section,
  .story-section,
  .solutions-section,
  .site-footer,
  .page-hero,
  .gift-note {
    padding: 20px;
  }

  .table-panel {
    border-radius: 6px;
  }

  /* Table responsiveness */
  .product-table,
  .admin-table {
    font-size: 0.85rem;
  }

  .product-table th,
  .product-table td,
  .admin-table th,
  .admin-table td {
    padding: 8px 6px;
  }

  .product-table input,
  .admin-table input {
    font-size: 0.9rem;
    padding: 6px 4px;
    min-height: 36px;
    min-width: 50px;
  }

  .product-table input[type="number"],
  .admin-table input[type="number"] {
    font-size: 1rem;
    padding: 8px 6px;
  }

  .product-table img,
  .admin-table img {
    width: 40px !important;
    height: 40px !important;
  }

  .row-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .row-actions .button {
    font-size: 0.75rem;
    padding: 4px 6px;
  }

  /* Forms */
  .inline-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .inline-form input,
  .inline-form button {
    width: 100%;
  }

  .form-card input,
  .form-card select,
  .form-card textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Buttons */
  .button {
    min-height: 40px;
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .button.small {
    min-height: 32px;
    font-size: 0.8rem;
    padding: 4px 8px;
  }

  /* Contact cards */
  .contact-card {
    padding: 16px;
  }

  .contact-icon {
    font-size: 2.5rem;
  }

  /* Messages */
  .messages {
    margin: 15px auto;
    width: 95vw;
  }

  .message {
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  /* Footer */
  .site-footer {
    text-align: center;
  }

  .site-footer p {
    margin: 8px 0;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
    padding-bottom: 72px;
  }

  .site-header {
    padding: 10px 3vw;
    gap: 8px;
    align-items: flex-start;
  }

  .brand {
    font-size: 1rem;
  }

  nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  .nav-link,
  .install-app-button {
    justify-content: center;
    width: 100%;
    font-size: 0.74rem;
    padding: 7px 8px;
    border-radius: 10px;
  }

  .page {
    width: 96vw;
    margin: 15px auto 30px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  .section-heading {
    gap: 8px;
  }

  .eyebrow {
    font-size: 0.7rem;
  }

  /* Reduce padding on sections */
  .welcome-section,
  .story-section,
  .solutions-section,
  .site-footer,
  .page-hero,
  .gift-note {
    padding: 16px !important;
  }

  /* Bill optimization for 600px */
  .bill {
    padding: 12px;
    overflow-x: auto;
  }

  .bill-header {
    gap: 8px;
  }

  .bill-customer {
    font-size: 0.85rem;
  }

  .bill table {
    font-size: 0.78rem;
  }

  .bill th,
  .bill td {
    padding: 5px 3px;
  }

  .table-panel,
  .form-card,
  .summary-card,
  .auth-card,
  .bill,
  .lookup-form,
  .inline-form {
    border-radius: 6px;
    padding: 12px;
  }

  /* Table optimizations for small screens */
  .product-table,
  .admin-table {
    font-size: 0.75rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
  }

  .product-table thead,
  .admin-table thead {
    display: none;
  }

  .product-table tr,
  .admin-table tr {
    display: block;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .product-table td,
  .admin-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
    word-break: break-word;
  }

  .product-table td::before,
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #6b7280;
    flex: 0 0 38%;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .shop-products-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .shop-products-table .product-table {
    display: table;
    min-width: 620px;
    border-collapse: collapse;
    border-spacing: 0;
  }

  .shop-products-table .product-table thead {
    display: table-header-group;
  }

  .shop-products-table .product-table tr {
    display: table-row;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .shop-products-table .product-table td {
    display: table-cell;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 6px;
  }

  .shop-products-table .product-table td::before {
    content: none;
  }

  /* Make Quantity column wider on mobile */
  .product-table th:nth-child(6),
  .product-table td:nth-child(6) {
    min-width: 80px;
  }

  .product-table input,
  .admin-table input {
    font-size: 0.85rem;
    padding: 6px 4px;
    min-height: 36px;
  }

  .product-table input[type="number"],
  .admin-table input[type="number"] {
    font-size: 1rem;
    padding: 8px 6px;
    min-height: 40px;
    min-width: 60px;
  }

  .product-table img,
  .admin-table img {
    width: 30px !important;
    height: 30px !important;
  }

  .row-actions {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
  }

  .row-actions > * {
    width: 100%;
  }

  .row-actions input {
    display: none;
  }

  .row-actions .button {
    font-size: 0.65rem;
    padding: 3px 4px;
    min-height: 28px;
  }

  /* Forms */
  .inline-form {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .inline-form input,
  .inline-form button,
  .form-card input,
  .form-card select,
  .form-card textarea {
    width: 100%;
    font-size: 16px;
    padding: 8px;
  }

  .form-card label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
  }

  /* Buttons */
  .button {
    min-height: 38px;
    font-size: 0.9rem;
    padding: 8px 10px;
    width: 100%;
  }

  .button.small {
    min-height: 30px;
    font-size: 0.7rem;
    padding: 4px 6px;
    width: auto;
  }

  .button.secondary {
    width: 100%;
  }

  /* Contact */
  .contact-card {
    padding: 12px;
  }

  .contact-icon {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .contact-card h3 {
    font-size: 0.95rem;
    margin: 8px 0;
  }

  .contact-card p {
    font-size: 0.85rem;
    margin: 4px 0;
  }

  /* Actions */
  .actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
  }

  .actions .button {
    width: 100%;
  }

  /* Bill */
  .bill {
    padding: 12px;
    overflow-x: auto;
  }

  .bill-header {
    flex-direction: column;
    gap: 8px;
  }

  .bill-header h1 {
    font-size: 1.3rem;
  }

  .bill-header h2 {
    font-size: 1.2rem;
  }

  .bill-customer {
    font-size: 0.85rem;
  }

  .bill-customer p {
    margin: 4px 0;
  }

  .bill table {
    font-size: 0.75rem;
    width: 100%;
    table-layout: auto;
  }

  .bill th,
  .bill td {
    padding: 4px 3px;
    word-break: break-word;
  }

  .bill th {
    font-weight: 700;
    font-size: 0.7rem;
  }

  .bill tbody td {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .bill tfoot td {
    font-weight: 700;
    padding: 6px 3px;
  }

  /* Messages */
  .messages {
    width: 96vw;
    margin: 10px auto;
  }

  .message {
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 4px;
  }

  /* Footer */
  .site-footer p {
    font-size: 0.85rem;
    margin: 6px 0;
  }

  /* Collection section */
  .collection-section h2 {
    font-size: 1.2rem;
  }

  .collection-grid {
    gap: 12px;
  }

  .box-item {
    padding: 12px;
  }

  .box-item h3 {
    font-size: 0.95rem;
  }

  /* Checkbox and inputs */
  input[type="checkbox"],
  input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  /* Splash screen mobile */
  .splash-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .splash-logo {
    font-size: 60px;
  }
}

@media (max-width: 400px) {
  .site-header {
    padding: 8px 2vw;
  }

  .brand {
    font-size: 0.9rem;
  }

  .nav-link {
    font-size: 0.65rem;
    padding: 3px 5px;
  }

  h1 {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 1rem;
  }

  .section-heading {
    gap: 6px;
  }

  .page {
    width: 97vw;
    margin: 12px auto 20px;
  }

  .table-panel {
    overflow-x: auto;
  }

  /* Very small tables */
  .product-table,
  .admin-table {
    font-size: 0.65rem;
  }

  .product-table th,
  .product-table td,
  .admin-table th,
  .admin-table td {
    padding: 4px 2px;
  }

  .button {
    min-height: 36px;
    font-size: 0.85rem;
  }

  .inline-form {
    padding: 8px;
    gap: 6px;
  }

  .contact-icon {
    font-size: 1.8rem;
  }

  /* Extra small screens: Bill optimization */
  .bill {
    padding: 8px;
  }

  .bill-header {
    gap: 6px;
  }

  .bill-header h1 {
    font-size: 1.1rem;
  }

  .bill-header button {
    min-height: 32px;
    font-size: 0.8rem;
  }

  .bill-customer {
    font-size: 0.75rem;
  }

  .bill table {
    font-size: 0.65rem;
  }

  .bill th {
    font-size: 0.6rem;
    padding: 3px 2px;
  }

  .bill td {
    padding: 3px 2px;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .product-details {
    padding: 16px;
  }

  .product-image {
    height: 150px;
  }

  .product-details h3 {
    font-size: 1rem;
  }

  .product-pricing .price {
    font-size: 1.1rem;
  }

  /* Tablet: Improve quantity input */
  .product-table input[type="number"] {
    font-size: 0.95rem;
    padding: 6px 6px;
    min-height: 38px;
  }
}

/* Floating WhatsApp/Phone - scroll with page */
.floating-contact {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 1200;


  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.floating-icon svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  stroke: #ffffff;
  stroke-width: 1.2px;
}


.floating-icon.whatsapp {
  background: #25D366;
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.35);
}

.floating-icon.phone {
  background: #111827;
  box-shadow: 0 12px 35px rgba(17, 24, 39, 0.35);
}

.floating-icon:hover { transform: translateY(-2px); }


@media print {
  .bill {
    position: relative;
  }

  /* Align bill header text to left on print */
  .bill-header-left {
    justify-content: flex-start !important;
    text-align: left !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .bill-header-text {
    text-align: left !important;
  }



  /* Ensure any existing header flex styling doesn't affect print alignment */
  .bill-header {
    justify-content: flex-start !important;
    text-align: left !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }




  /* Business-related PDF background (watermark) */
  .bill-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
    background:
      radial-gradient(circle at 15% 25%, rgba(250, 204, 21, 1) 0 12%, transparent 13%),
      radial-gradient(circle at 85% 35%, rgba(15, 118, 110, 1) 0 10%, transparent 11%),
      radial-gradient(circle at 55% 80%, rgba(249, 115, 22, 1) 0 14%, transparent 15%),
      /* subtle cracker/packet stripes */
      repeating-linear-gradient(45deg, rgba(255,107,107,1) 0 6px, transparent 6px 14px),
      /* faint border */
      linear-gradient(#f59e0b, #f59e0b) left/3px 100% no-repeat,
      linear-gradient(#f59e0b, #f59e0b) right/3px 100% no-repeat;
    filter: grayscale(100%);
  }

  .bill-header {
    align-items: center;
  }


  .bill-logo {
    position: absolute;
    left: 22px;
    top: 20px;
    width: 110px;
    height: 110px;
    opacity: 0.08;
    z-index: 0;
  }

  .bill-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .bill-header > div:last-child,
  .bill-customer,
  .product-table {
    position: relative;
    z-index: 1;
  }

  .site-header,
  .no-print,
  .messages {
    display: none;
  }

  body,
  .page,
  .bill {
    background: #fff;
    margin: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
}
