/* ==========================================================================
   WUMII - Refurbished Printers E-Commerce Stylesheet (styles.css)
   Colors:
   - Deep Enterprise Navy: #0F172A
   - Trust Blue: #2563EB
   - Clean Slate Background: #F8FAFC
   - Emerald Green: #10B981
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --color-navy: #0F172A;
  --color-navy-light: #1E293B;
  --color-blue: #2563EB;
  --color-blue-dark: #1D4ED8;
  --color-slate-bg: #F8FAFC;
  --color-emerald: #10B981;
  --color-emerald-dark: #059669;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-border: #E2E8F0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-slate-bg);
  color: var(--color-text);
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   1. Top Microsoft Advertising (Bing Ads) Compliance Bar
   -------------------------------------------------------------------------- */
.compliance-bar {
  background-color: #090E1A;
  color: #F1F5F9;
  border-bottom: 2px solid #F59E0B;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.65rem 1rem;
  position: relative;
  z-index: 60;
}

.compliance-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
}

.compliance-tag {
  background-color: #F59E0B;
  color: #0F172A;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   2. Sticky Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #FFFFFF;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid var(--color-border);
}

.header-utility-bar {
  background-color: var(--color-navy);
  color: #CBD5E1;
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background-color: var(--color-blue);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. Hero Section & Trust Badges
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 60%, #172554 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #334155;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(37, 99, 235, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #F8FAFC;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.trust-badge-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.6);
}

.trust-badge-icon {
  color: var(--color-emerald);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. Product Cards & Image Handling
   -------------------------------------------------------------------------- */
.product-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  border-color: #CBD5E1;
}

.product-image-wrap {
  position: relative;
  height: 230px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid #F1F5F9;
  overflow: hidden;
}

.product-image {
  max-height: 185px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.grade-a-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.grade-a-dot {
  width: 7px;
  height: 7px;
  background-color: var(--color-emerald);
  border-radius: 50%;
}

.product-title-link {
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s ease;
  display: block;
}

.product-title-link:hover {
  color: var(--color-blue);
  text-decoration: underline;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.spec-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-emerald);
  font-weight: 800;
}

.btn-primary {
  background-color: var(--color-blue);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.65rem 1rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background-color: var(--color-blue-dark);
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-secondary {
  background-color: var(--color-navy);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.65rem 1rem;
  transition: background-color 0.15s ease, transform 0.1s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: none;
}

.btn-secondary:hover {
  background-color: #1E293B;
}

/* --------------------------------------------------------------------------
   5. Toast Notification & Floating TFN (Toll-Free Number) Button
   -------------------------------------------------------------------------- */
#wumii-toast-container {
  position: fixed;
  bottom: 5.5rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 400px;
  width: calc(100% - 2rem);
  pointer-events: none;
}

.floating-tfn-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border: 2px solid #10B981;
  border-radius: 9999px;
  padding: 0.6rem 1.15rem 0.6rem 0.75rem;
  box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.45), 0 0 0 4px rgba(16, 185, 129, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.floating-tfn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -6px rgba(15, 23, 42, 0.55), 0 0 0 6px rgba(16, 185, 129, 0.22);
  border-color: #34D399;
}

.floating-tfn-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  background-color: #10B981;
  color: #0F172A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-tfn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.floating-tfn-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6EE7B7;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.floating-tfn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}

.floating-tfn-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .floating-tfn-btn {
    bottom: 0.9rem;
    right: 0.9rem;
    padding: 0.5rem 0.95rem 0.5rem 0.6rem;
    gap: 0.55rem;
  }
  .floating-tfn-icon {
    width: 2rem;
    height: 2rem;
  }
  .floating-tfn-number {
    font-size: 0.85rem;
  }
}

.wumii-toast {
  pointer-events: auto;
  background-color: var(--color-navy);
  color: #FFFFFF;
  border-left: 4px solid var(--color-emerald);
  border-radius: 0.75rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   6. Legal & Policy Content Styling
   -------------------------------------------------------------------------- */
.policy-prose h2 {
  color: var(--color-navy);
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.policy-prose h3 {
  color: #1E293B;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-prose p {
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.policy-prose ul, .policy-prose ol {
  color: #334155;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.policy-prose li {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   7. Footer Legal Disclaimer Box
   -------------------------------------------------------------------------- */
.footer-legal-box {
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid #334155;
  border-left: 4px solid #F59E0B;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
}

/* Print Styles for Order Confirmation Receipt */
@media print {
  .compliance-bar,
  .site-header,
  .page-hero,
  .site-footer,
  .floating-tfn-btn,
  .no-print {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
  }
}
