/* ==========================================================================
   NUVENDALE LABS — PROFESSIONAL UI/UX ENHANCEMENTS & MODALS
   Preserves original graphic templates and color palette (--color-navy, --color-paper, --color-teal)
   ========================================================================== */

:root {
  --nv-navy: #050b16;
  --nv-navy-2: #10243f;
  --nv-paper: #07111f;
  --nv-foam: #0d1a31;
  --nv-mist: #163056;
  --nv-bar: #2b3036;
  --nv-teal: #4aa6ff;
  --nv-teal-ink: #9fd0ff;
  --nv-line: #1c3358;
  --nv-muted: #93a8c4;
  --nv-quiet: #d5e2f2;
  --nv-ink: #f4f8ff;
  --nv-emerald: #10b981;
  --nv-amber: #f59e0b;
}

/* ==========================================================================
   HEADER & EVENLY SPACED SINGLE-LINE NAVIGATION (MOBILE + DESKTOP)
   ========================================================================== */
.nv-header-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--nv-bar);
  color: #ffffff;
  border-bottom: 1px solid var(--nv-line);
}

.nv-header-inner {
  max-width: 72rem;
  margin: 0 auto;
  height: 3.5rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.65rem;
  gap: 0.4rem;
}

.nv-header-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nv-header-mark {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1px rgba(175, 225, 255, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.65));
}

.nv-header-nav {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 0.2rem;
  padding: 0 0.25rem;
}

.nv-header-tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nv-header-inner {
    height: 3.75rem;
    padding: 0 2rem;
    gap: 1.5rem;
  }
  .nv-header-mark {
    width: 44px !important;
    height: 44px !important;
  }
  .nv-header-nav {
    max-width: 38rem;
    margin: 0 auto;
    justify-content: space-evenly;
    gap: 1rem;
  }
  .nv-header-tools {
    gap: 0.5rem;
  }
}

.nv-header-link {
  font-family: var(--font-display, "Montserrat", sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nv-quiet);
  padding: 0.25rem 0.15rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nv-header-link:hover {
  color: #ffffff;
}

.nv-header-link.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

@media (min-width: 768px) {
  .nv-header-link {
    font-size: 13px;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.3rem;
  }
}

/* Crisp Studio Border & Depth Filter for All Nuvendale Logos Sitewide */
.nv-crisp-mark {
  filter: drop-shadow(0 0 1.5px rgba(185, 230, 255, 0.95)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.75));
}

.nv-crisp-wordmark {
  filter: drop-shadow(0 0 1px rgba(185, 230, 255, 0.92)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.8));
}

.nv-tool-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nv-tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nv-cart-badge {
  position: absolute;
  top: 1px;
  right: 0px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: var(--nv-teal);
  color: var(--nv-navy);
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

/* ==========================================================================
   PROPER NUVENDALE LABS LOGO LOCKUP (FOOTER & MODALS)
   Explicit dimensions prevent oversized graphics on any page
   ========================================================================== */
.nv-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.nv-brand-lockup-mark {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 1px rgba(185, 230, 255, 0.9)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7));
}

.nv-brand-lockup-wordmark {
  height: 28px !important;
  width: auto !important;
  max-width: 190px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(185, 230, 255, 0.9)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.7));
}

.nv-gate-logo-mark {
  width: 58px !important;
  height: 58px !important;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 0 1.5px rgba(185, 230, 255, 0.95)) drop-shadow(0 5px 14px rgba(0, 0, 0, 0.75));
}

.nv-gate-logo-wordmark {
  height: 38px !important;
  width: auto !important;
  max-width: 240px;
  object-fit: contain;
  margin: 0.45rem auto 0;
  display: block;
  filter: drop-shadow(0 0 1px rgba(185, 230, 255, 0.92)) drop-shadow(0 5px 14px rgba(0, 0, 0, 0.75));
}

/* Explicit Cart, Checkout & QR Image Sizes */
.nv-cart-thumb {
  width: 44px !important;
  height: 56px !important;
  object-fit: contain;
  background: var(--nv-navy);
  border: 1px solid var(--nv-line);
  border-radius: 6px;
  padding: 3px;
  flex-shrink: 0;
}

.nv-qr-img {
  width: 144px !important;
  height: 144px !important;
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  margin: 0 auto;
  display: block;
}

.nv-coa-modal-mark {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
  flex-shrink: 0;
}

/* Smooth card & button interactions */
.nv-card {
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.nv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(74, 166, 255, 0.55);
  box-shadow: 0 12px 28px -8px rgba(5, 11, 22, 0.75), 0 0 0 1px rgba(74, 166, 255, 0.2);
}

.buy, .shop-now {
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.buy:hover, .shop-now:hover {
  filter: brightness(1.08);
}
.buy:active, .shop-now:active {
  transform: scale(0.98);
}

/* Clickable COA Pill on Every Product Card */
.coa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--nv-teal-ink);
  background: rgba(16, 36, 63, 0.85);
  border: 1px solid rgba(74, 166, 255, 0.38);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.coa-pill:hover {
  background: rgba(74, 166, 255, 0.18);
  border-color: var(--nv-teal);
  color: #ffffff;
}

/* Modal Backdrop & Container */
.nv-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 8, 18, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.nv-modal-box {
  width: 100%;
  max-width: 44rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--nv-foam);
  border: 1px solid var(--nv-line);
  border-radius: 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  color: var(--nv-ink);
}

/* Compliance Entry Gate Specifics */
.nv-gate-box {
  max-width: 32rem;
  background: linear-gradient(180deg, #0d1d38 0%, #07111f 100%);
  border: 1px solid rgba(74, 166, 255, 0.35);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 40px rgba(21, 104, 234, 0.18);
}

.nv-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(5, 11, 22, 0.65);
  border: 1px solid var(--nv-line);
  border-radius: 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  user-select: none;
}
.nv-checkbox-label:hover {
  border-color: rgba(74, 166, 255, 0.5);
}
.nv-checkbox-label.checked {
  border-color: var(--nv-teal);
  background: rgba(22, 48, 86, 0.55);
}
.nv-checkbox-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.15rem;
  accent-color: var(--nv-teal);
  cursor: pointer;
  flex-shrink: 0;
}

/* Slide-Out Cart Drawer */
.nv-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 8, 18, 0.68);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
}
.nv-drawer-panel {
  width: 100%;
  max-width: 26rem;
  height: 100%;
  background: var(--nv-paper);
  border-left: 1px solid var(--nv-line);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.6);
}

/* COA Sheet Styling */
.nv-coa-document {
  background: #081528;
  border: 1px solid #23426e;
  border-radius: 0.65rem;
  padding: 1.25rem;
}
.nv-coa-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* Toast Notification */
.nv-toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 22rem;
}
.nv-toast {
  background: #10243f;
  border: 1px solid var(--nv-teal);
  color: var(--nv-ink);
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Form Inputs */
.nv-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.85rem;
  background: var(--nv-paper);
  border: 1px solid var(--nv-line);
  border-radius: 0.5rem;
  color: var(--nv-ink);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.nv-input:focus {
  border-color: var(--nv-teal);
}
.nv-textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--nv-paper);
  border: 1px solid var(--nv-line);
  border-radius: 0.5rem;
  color: var(--nv-ink);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.nv-textarea:focus {
  border-color: var(--nv-teal);
}

/* Payment Method Selection Cards */
.nv-pay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--nv-paper);
  border: 1px solid var(--nv-line);
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.nv-pay-option:hover {
  border-color: rgba(74, 166, 255, 0.5);
}
.nv-pay-option.active {
  border-color: var(--nv-teal);
  background: rgba(22, 48, 86, 0.6);
  box-shadow: 0 0 0 1px var(--nv-teal);
}

/* Free Shipping Progress Bar */
.nv-progress-track {
  width: 100%;
  height: 0.45rem;
  background: rgba(28, 51, 88, 0.8);
  border-radius: 999px;
  overflow: hidden;
}
.nv-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4aa6ff, #10b981);
  transition: width 0.3s ease;
}

/* COA Studio Canvas Wrapper */
.nv-canvas-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--nv-line);
  border-radius: 0.5rem;
  overflow: hidden;
  background: #050b16;
}
.nv-canvas-wrap canvas {
  max-width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}
