/* Products Unlimited — mockup-matched design */
:root {
  --navy: #0B1F3A;
  --navy2: #0B2A5B;
  --blue: #1a4a8a;
  --blue-text: #0d3a6e;
  --yellow: #f5ca24;
  --yellow2: #f5a623;
  --orange: #f5a623;
  --white: #ffffff;
  --gray: #6b7c8f;
  --border: #e2e8f0;
  --bg: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy2); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { filter: brightness(1.05); color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy2); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

/* ========== HEADER (mockup style) ========== */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.65rem 0;
  min-height: 72px;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  order: 1;
}
.logo-link img {
  height: 52px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
}
.logo-text strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.logo-text span {
  display: block;
  font-size: 0.68rem;
  color: var(--yellow);
  font-weight: 600;
}

/* Cart LEFT (next to logo) */
.cart-link-left {
  order: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--yellow);
  color: var(--navy) !important;
  font-weight: 800;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  margin-right: auto;
}
.cart-link-left:hover { filter: brightness(1.06); color: var(--navy) !important; }
.cart-count, [data-cart-count] {
  background: var(--navy);
  color: #fff;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  min-width: 1.4rem;
  text-align: center;
}

.mobile-nav-toggle {
  order: 3;
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
.nav-main {
  order: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  align-items: center;
  max-width: 100%;
}
.nav-main a {
  color: rgba(255,255,255,0.92);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.25rem 0;
}
.nav-main a:hover, .nav-main a.active { color: var(--yellow); }
.header-actions {
  order: 5;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.header-actions .cart-link { display: none !important; }
.header-actions .btn-navy {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  min-height: 40px;
}

/* ========== PAGE LAYOUT + ASSEMBLY RAIL ========== */
.page-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: stretch;
  max-width: 100%;
  overflow-x: hidden;
}
.page-main { min-width: 0; }
.assembly-rail {
  background: linear-gradient(180deg, #f5a623 0%, #ef9018 100%);
  color: var(--navy);
  padding: 1.5rem 0.85rem;
  text-align: center;
  position: relative !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-left: 1px solid rgba(0,0,0,0.06);
}
.assembly-rail h3 {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.25;
  font-weight: 900;
}
.assembly-rail p { font-size: 0.78rem; margin: 0; }
.assembly-rail a.btn {
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  width: 100%;
  white-space: nowrap;
  padding: 0.65rem 0.35rem;
}
.assembly-rail .ad-slot { display: none !important; }

/* ========== HERO — full-bleed photos, FADE only (mockup) ========== */
.hero {
  position: relative;
  width: 100%;
  height: 520px;
  min-height: 400px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: none !important;
  animation: none !important;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 31, 58, 0.88) 0%,
    rgba(11, 31, 58, 0.55) 42%,
    rgba(11, 31, 58, 0.15) 70%,
    rgba(11, 31, 58, 0.05) 100%
  );
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(48%, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
.hero-copy .tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 0.75rem;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-copy p {
  color: #dce8f7;
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  max-width: 26rem;
}
.hero-nav { display: none !important; }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 8;
}
.hero-dots button {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active {
  background: var(--yellow);
  border-color: var(--yellow);
}

/* Trust row */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
}
.trust-item {
  text-align: center;
  padding: 1rem 0.5rem;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.trust-item div:first-child { font-size: 1.5rem; margin-bottom: 0.25rem; }
.trust-item strong { display: block; color: var(--navy); font-size: 0.92rem; }

/* Sections */
.section { padding: 1.75rem 0; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--navy);
  font-weight: 900;
}
.section-title a { font-weight: 700; font-size: 0.9rem; }

/* Categories — big mockup-style tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 140px;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: linear-gradient(160deg, #ffd24d 0%, #f5ca24 40%, #f0a818 100%);
  color: var(--navy) !important;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(11,31,58,0.1);
  border: 2px solid rgba(11,31,58,0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11,31,58,0.16);
  color: var(--navy) !important;
}
.cat-tile div {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}
.cat-tile span {
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(11,31,58,0.1); }
.product-card .thumb {
  height: 170px;
  background: linear-gradient(145deg, #e8eef6, #d5e0ee);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c0392b;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  z-index: 1;
}
.product-card .body { padding: 0.85rem; flex: 1; display: flex; flex-direction: column; }
.product-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--navy);
  line-height: 1.3;
}
.product-card .price {
  font-weight: 900;
  color: var(--navy2);
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}
.product-card .price s {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}
.product-card .btn { width: 100%; margin-top: auto; }

/* Promo banner */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 1.25rem 1.5rem;
  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: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
}
.site-footer a {
  display: block;
  color: #c5d0de;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
}
.site-footer a:hover { color: var(--yellow); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  font-size: 0.8rem;
}
.newsletter-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 0.5rem;
}
.newsletter-box h4 { color: #fff; margin-bottom: 0.4rem; }
.newsletter-box p { font-size: 0.8rem; margin-bottom: 0.6rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.newsletter-form input {
  flex: 1 1 140px;
  padding: 0.55rem 0.7rem;
  border: none;
  border-radius: 6px;
  margin: 0;
}

/* Forms / pages */
.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin: 1.5rem 0 1rem;
  font-weight: 900;
}
.form-card, .prose {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
label { display: block; font-weight: 700; font-size: 0.85rem; margin: 0.65rem 0 0.25rem; color: var(--blue-text); }
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  margin-bottom: 0.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.search-bar input { flex: 1; margin: 0; }
.contact-grid, .product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin: 0.75rem 0; }
.alert-success { background: #e8f8ef; color: #1e6b3a; }
.alert-error { background: #fdecea; color: #8b1e1e; }
.alert-info { background: #eef4fb; color: var(--blue-text); }
.hidden { display: none !important; }
.table-admin { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-admin th, .table-admin td {
  border-bottom: 1px solid var(--border);
  padding: 0.55rem;
  text-align: left;
}
.admin-body { background: var(--bg); }
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}
.admin-side {
  background: var(--navy);
  color: #fff;
  padding: 1.25rem;
}
.admin-side a {
  display: block;
  color: #c5d0de;
  padding: 0.5rem 0;
}
.admin-side a.active, .admin-side a:hover { color: var(--yellow); }
.admin-main { padding: 1.5rem; }
.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}
.stat-card strong { display: block; font-size: 1.5rem; color: var(--navy); }
.ad-slot { display: none !important; }
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  z-index: 999;
  transform: translateY(120px);
  transition: transform 0.25s;
}
.toast.show { transform: translateY(0); }

/* ========== MOBILE ========== */
@media (max-width: 1000px) {
  .page-wrap { grid-template-columns: 1fr; }
  .assembly-rail {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    border-left: none;
    border-top: 3px solid rgba(0,0,0,0.08);
    padding: 1.1rem;
  }
  .assembly-rail a.btn { width: auto; min-width: 180px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .product-detail, .form-row { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .mobile-nav-toggle { display: block; }
  .nav-main {
    display: none;
    width: 100%;
    order: 6;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    max-height: 65vh;
    overflow-y: auto;
  }
  .nav-main.open { display: flex; }
  .nav-main a {
    padding: 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
    white-space: normal;
  }
  .hero {
    height: 400px;
    min-height: 360px;
  }
  .hero-copy {
    width: 100%;
    justify-content: flex-end;
    padding: 1.25rem 1.15rem 3rem;
    background: transparent;
  }
  .hero-slide::after {
    background: linear-gradient(
      180deg,
      rgba(11,31,58,0.25) 0%,
      rgba(11,31,58,0.55) 45%,
      rgba(11,31,58,0.92) 100%
    );
  }
  .hero-copy h1 { font-size: 1.55rem; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tile { min-height: 110px; }
  .cat-tile div { font-size: 1.05rem; }
  .logo-text { display: none; }
}
@media (max-width: 480px) {
  .product-grid, .trust-row, .cat-grid, .footer-grid, .stats-row {
    grid-template-columns: 1fr;
  }
  .hero { height: 360px; }
}


/* Promo / about banner alignment */
.page-main > .promo-banner {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}
.page-wrap {
  width: 100%;
  max-width: 100%;
}


/* Staff admin — bottom right, discreet */
.admin-footer-link {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 50;
  opacity: 0.35;
  font-size: 0.7rem;
}
.admin-footer-link:hover { opacity: 0.9; }
.admin-footer-link a {
  color: #6b7c8f !important;
  text-decoration: none !important;
  background: rgba(255,255,255,0.85);
  border: 1px solid #e2e8f0;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.admin-footer-link a:hover { color: #0B1F3A !important; }
.header-actions .btn-navy[href*="admin"],
.header-actions a[href="admin/login.html"] {
  display: none !important;
}


/* FORCE FADE ONLY — kill side-slide */
.hero-slide, .hero-slide.active {
  transform: none !important;
  animation: none !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  translate: none !important;
}
.hero-nav { display: none !important; }
@keyframes heroZoom { from { transform: none; } to { transform: none; } }
.admin-footer-link {
  position: fixed !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 999 !important;
  opacity: 0.55 !important;
}
.admin-footer-link:hover { opacity: 1 !important; }
.admin-footer-link a {
  background: #0B1F3A !important;
  color: #ffc933 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  border: 1px solid #f5ca24 !important;
}
.header-actions a[href*="admin"] { display: none !important; }


/* WHITER BACKGROUNDS */
html, body {
  background: #ffffff !important;
  background-color: #ffffff !important;
}
.page-main,
.page-wrap,
.container,
.prose,
.form-card,
.product-card,
.admin-main,
.admin-card,
.section {
  background-color: transparent;
}
.page-main {
  background: #ffffff !important;
}
.trust-item {
  background: #ffffff !important;
  border: 1px solid #e8eef5;
}
.product-card {
  background: #ffffff !important;
}
.product-card .thumb {
  background: #f4f7fb !important;
}
.cat-tile {
  /* keep yellow tiles for categories */
}
.site-footer {
  /* keep navy footer for contrast */
}
.form-card, .prose, .admin-card {
  background: #ffffff !important;
}
.search-bar input,
input, select, textarea {
  background: #ffffff !important;
}
