/* Products Unlimited, LLC — Main Styles */
:root {
  --navy: #0B1F3A;
  --navy-mid: #123056;
  --blue: #0B2A5B;
  --blue-text: #0B2A5B;
  --yellow: #F5A623;
  --yellow-dark: #E8940F;
  --orange: #EF9018;
  --white: #ffffff;
  --light: #f7f9fc;
  --gray: #6b7a8d;
  --border: #e2e8f0;
  --success: #0d7a4f;
  --danger: #c0392b;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--blue-text);
  background: var(--white);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--yellow-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1200px, 94%); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--blue);
}
.logo-link img {
  height: 56px;
  width: auto;
}
.logo-text strong { display: block; font-size: 0.95rem; color: var(--navy); }
.logo-text span { font-size: 0.72rem; color: var(--yellow-dark); font-style: italic; }
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}
.nav-main a {
  color: var(--blue-text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.25rem 0;
}
.nav-main a:hover, .nav-main a.active { color: var(--yellow-dark); border-bottom: 2px solid var(--yellow); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); color: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--white); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
}
.cart-link {
  position: relative;
  font-weight: 700;
  color: var(--navy);
  padding: 0.4rem 0.6rem;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layout with sidebar */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
  flex: 1;
  align-items: start;
}
.page-main { min-width: 0; padding: 1.5rem 0 2.5rem; }
@media (max-width: 900px) {
  .page-wrap { grid-template-columns: 1fr; }
  .assembly-rail { position: relative !important; width: 100% !important; writing-mode: horizontal-tb !important; min-height: auto !important; padding: 1rem !important; }
}

/* Yellow Assembly rail */
.assembly-rail {
  background: var(--orange);
  color: var(--navy);
  padding: 1.25rem 0.85rem;
  text-align: center;
  position: sticky;
  top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}
.assembly-rail h3 {
  font-size: 0.95rem;
  line-height: 1.3;
}
.assembly-rail p { font-size: 0.8rem; }
.assembly-rail a.btn {
  background: var(--navy);
  color: white;
  font-size: 0.78rem;
  width: 100%;
  word-break: break-all;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0B1F3A 0%, #1a4a8a 55%, #0B2A5B 100%);
  color: white;
  border-radius: 0;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
}
.hero-copy { padding: 2.5rem 2rem; }
.hero-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
  color: white;
}
.hero-copy p { color: #d6e4f7; margin-bottom: 1.2rem; max-width: 28rem; }
.hero-slides {
  position: relative;
  height: 100%;
  min-height: 340px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.45); cursor: pointer;
}
.hero-dots button.active { background: var(--yellow); }

/* Sections */
.section { padding: 1.75rem 0; }
.section-title {
  font-size: 1.35rem;
  color: var(--blue);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-title a { font-size: 0.85rem; font-weight: 600; }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(11,42,91,0.1); }
.product-card .thumb {
  aspect-ratio: 4/3;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--yellow);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.product-card .body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 0.98rem; color: var(--blue); margin-bottom: 0.25rem; }
.product-card .desc { font-size: 0.8rem; color: var(--gray); flex: 1; margin-bottom: 0.5rem; }
.product-card .price { font-weight: 800; color: var(--navy); margin-bottom: 0.6rem; font-size: 1.05rem; }
.product-card .price s { color: var(--gray); font-weight: 500; font-size: 0.85rem; margin-right: 0.35rem; }

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}
.cat-tile {
  background: linear-gradient(145deg, #f5a623, #ef9018);
  color: var(--navy);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  font-weight: 800;
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}
.cat-tile span { font-weight: 500; font-size: 0.8rem; }
.cat-tile:hover { filter: brightness(1.05); color: var(--navy); }

/* Promo banner */
.promo-banner {
  background: var(--navy);
  color: white;
  padding: 1.1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.promo-banner strong { font-size: 1.15rem; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c5d0de;
  padding: 2rem 0 1rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer h4 { color: white; margin-bottom: 0.6rem; font-size: 0.85rem; letter-spacing: 0.04em; }
.site-footer a { color: #c5d0de; font-size: 0.88rem; display: block; margin-bottom: 0.3rem; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Forms */
.form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--blue); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--blue-text);
  margin-bottom: 0.9rem;
  background: white;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(11,42,91,0.25);
  border-color: var(--blue);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Content pages */
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 0.35rem;
}
.page-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--yellow);
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}
.prose { max-width: 820px; }
.prose p, .prose li { margin-bottom: 0.85rem; color: var(--blue-text); }
.prose h2, .prose h3 { color: var(--blue); margin: 1.25rem 0 0.5rem; }
.prose ul { padding-left: 1.25rem; }

/* Cart table */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left;
  font-size: 0.8rem;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
  padding: 0.6rem;
}
.cart-table td {
  padding: 0.85rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.qty-ctrl {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem;
}
.qty-ctrl button {
  width: 28px; height: 28px;
  border: none; background: var(--light);
  border-radius: 4px; cursor: pointer; font-weight: 700;
}
.order-summary {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  background: var(--light);
  position: sticky;
  top: 90px;
}
.order-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.order-summary .total {
  font-size: 1.2rem;
  font-weight: 800;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* Admin */
.admin-body { background: #eef2f7; }
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy);
  color: white;
  padding: 1.5rem 1rem;
}
.admin-side a {
  color: #c5d0de;
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,0.1); color: white; }
.admin-main { padding: 1.5rem; }
.admin-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 1rem;
}
.login-box {
  max-width: 400px;
  margin: 10vh auto;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(11,31,58,0.12);
}
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-success { background: #e6f7ef; color: var(--success); }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-info { background: #e8f0fe; color: var(--blue); }
.table-admin { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-admin th, .table-admin td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.hidden { display: none !important; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } .admin-shell { grid-template-columns: 1fr; } }
.info-list { list-style: none; }
.info-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.info-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* === Overnight polish additions === */
.mobile-nav-toggle {
  display: none;
  background: var(--navy);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
@media (max-width: 800px) {
  .mobile-nav-toggle { display: block; }
  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
  }
  .nav-main.open { display: flex; }
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--blue); }
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 800px) {
  .product-detail { grid-template-columns: 1fr; }
}
.product-detail .gallery {
  background: var(--light);
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.product-detail .gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail h1 { color: var(--blue); font-size: 1.75rem; margin-bottom: 0.5rem; }
.product-detail .price-lg {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.75rem 0;
}
.product-detail .price-lg s {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 500;
  margin-right: 0.5rem;
}
.steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--gray);
  font-size: 0.9rem;
}
.step.done { color: var(--success); }
.step.current { color: var(--blue); }
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
}
.step.current .step-num { background: var(--blue); color: white; }
.step.done .step-num { background: var(--success); color: white; }
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: white;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(120px);
  transition: transform 0.25s ease;
}
.toast.show { transform: translateY(0); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  border: 1px solid var(--border);
}
.stat-card strong { display: block; font-size: 1.5rem; color: var(--navy); }
.stat-card span { font-size: 0.8rem; color: var(--gray); }
.product-card a.name-link { color: inherit; }
.product-card a.name-link:hover h3 { color: var(--yellow-dark); }
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.search-bar input { margin-bottom: 0; flex: 1; }
.hero-copy .tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
}
.trust-item {
  text-align: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.trust-item strong { display: block; color: var(--blue); margin: 0.35rem 0; }
.qty-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

/* === Third-party ad slots === */
.ad-slot {
  width: 100%;
  margin: 1rem 0;
  text-align: center;
  clear: both;
}
.ad-slot.ad-top { margin: 0 0 0.75rem; }
.ad-slot.ad-bottom { margin: 1.25rem 0 0; }
.ad-slot.ad-side {
  margin: 0.75rem 0;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}
.ad-placeholder {
  border: 1px dashed #9aa8bc;
  background: #f0f4f9;
  border-radius: 8px;
  padding: 0.75rem 1rem 1rem;
  color: var(--blue-text);
}
.ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8a9e;
  margin-bottom: 0.35rem;
}
.ad-placeholder-body {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  background: #e4ebf5;
  border-radius: 6px;
  padding: 1rem;
}
.ad-slot.ad-side .ad-placeholder-body { min-height: 200px; }
.ad-slot.ad-top .ad-placeholder-body { min-height: 60px; }
.ad-hint {
  display: block;
  font-size: 0.7rem;
  color: #8a9aab;
  margin-top: 0.4rem;
}
.ad-live { overflow: hidden; }
.ad-live ins,
.ad-live .adsbygoogle {
  display: block !important;
  max-width: 100%;
}
@media (max-width: 600px) {
  .ad-placeholder-body { font-size: 0.8rem; min-height: 50px; }
}
