/* ── Ladakh Wood Works: Inquiry Cart & E-Receipt Styles ─────────────────────── */

/* ── Luxury Header Cart Trigger & Badge ────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--fg);
  padding: 6px 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
  line-height: 1;
}

.nav-cart-btn:hover {
  color: var(--gold);
}

.nav-cart-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.nav-cart-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s ease;
}

.nav-cart-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--gold);
  color: #0B0C10;
  font-size: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.nav-cart-badge:empty,
.nav-cart-badge[data-count="0"] {
  display: none !important;
}

.nav-cart-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.mobile-only-nav-item {
  display: none;
}

@media (max-width: 900px) {
  .nav-actions {
    gap: 12px;
  }
  .nav-cart-btn {
    padding: 6px;
  }
  .nav-cart-label {
    display: none;
  }
  .mobile-only-nav-item {
    display: block;
    width: 100%;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  #main-nav {
    padding: 14px 16px !important;
  }
  #main-nav.solid {
    padding: 14px 16px !important;
  }
  .nav-logo {
    font-size: 13.5px !important;
    letter-spacing: 0.12em !important;
    gap: 8px !important;
  }
  .nav-logo-icon {
    width: 26px !important;
    height: 26px !important;
  }
}

/* ── Drawer Backdrop ───────────────────────────────────────────────── */
.lww-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lww-cart-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ── Drawer Sidebar ────────────────────────────────────────────────── */
.lww-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #111218;
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
  z-index: 1000001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lww-cart-drawer.active {
  transform: translateX(0);
}

/* ── Drawer Header ─────────────────────────────────────────────────── */
.lww-cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0B0C10;
}

.lww-cart-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lww-cart-title-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
}

.lww-cart-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  transition: all 0.2s ease;
}

.lww-cart-close:hover {
  color: var(--fg);
  border-color: var(--gold);
}

/* ── Drawer Body & Items ───────────────────────────────────────────── */
.lww-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lww-cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.lww-cart-empty p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
}

.lww-cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px;
  background: #171821;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}

.lww-cart-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  background: #0B0C10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  object-fit: cover;
  display: block;
}

.lww-cart-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lww-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin: 0;
}

.lww-cart-item-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
}

.lww-cart-item-price {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
}

.lww-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lww-qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0B0C10;
}

.lww-qty-btn {
  background: transparent;
  border: none;
  color: var(--fg);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s ease;
}

.lww-qty-btn:hover {
  color: var(--gold);
}

.lww-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--fg);
}

.lww-cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.lww-cart-remove-btn:hover {
  color: #ff6b6b;
}

/* ── Drawer Footer ─────────────────────────────────────────────────── */
.lww-cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: #0B0C10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lww-cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.lww-cart-total-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lww-cart-total-val {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
}

.lww-cart-disclaimer {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.lww-cart-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #072511;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  width: 100%;
}

.lww-cart-btn-primary:hover {
  background: #20b858;
  transform: translateY(-1px);
}

.lww-cart-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
}

.lww-cart-btn-secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #fff;
}

.lww-cart-clear-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  padding: 4px;
}

.lww-cart-clear-btn:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

/* ── Toast Notification ────────────────────────────────────────────── */
.lww-cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #171821;
  color: var(--fg);
  border: 1px solid var(--gold);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000002;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.lww-cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ── Storefront Filter Bar & Grid ──────────────────────────────────── */
.store-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--gap-lg);
}

.store-filter-chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.store-filter-chip:hover {
  border-color: var(--gold);
  color: var(--fg);
}

.store-filter-chip.active {
  background: var(--gold);
  color: #0B0C10;
  border-color: var(--gold);
  font-weight: 600;
}

.store-card {
  display: flex;
  flex-direction: column;
  background: #111218;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.store-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.store-card-img-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  background: #0B0C10;
  overflow: hidden;
  position: relative;
}

.store-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.store-card:hover .store-card-img-wrap img {
  transform: scale(1.04);
}

.store-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.store-badge-category {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge-status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.store-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 8px;
}

.store-card-specs {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.store-card-pricing {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.store-price-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.store-price-value {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}

.store-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--gold);
  color: #0B0C10;
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card-details:hover {
  color: var(--fg);
  border-color: var(--fg);
}

/* ── Printable Official E-Receipt Modal ────────────────────────────── */
.lww-receipt-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lww-receipt-modal.active {
  opacity: 1;
  visibility: visible;
}

.lww-receipt-box {
  background: #ffffff;
  color: #1a1a1a;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  overflow-y: auto;
  padding: 36px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.lww-receipt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 12px;
}

.lww-receipt-print-btn {
  background: #0B0C10;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.lww-receipt-close-btn {
  background: #f0f0f0;
  color: #333333;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

.receipt-header {
  border-bottom: 2px solid #0B0C10;
  padding-bottom: 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.receipt-brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #0B0C10;
  margin: 0;
}

.receipt-brand-sub {
  font-size: 12px;
  color: #555555;
  margin-top: 4px;
}

.receipt-badge-gi {
  display: inline-block;
  background: #f4ede0;
  border: 1px solid #d4af37;
  color: #7a5d10;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  margin-top: 6px;
}

.receipt-meta-box {
  text-align: right;
  font-size: 12px;
  color: #444444;
  line-height: 1.5;
}

.receipt-meta-id {
  font-family: monospace;
  font-weight: 700;
  color: #0B0C10;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.receipt-table th {
  background: #f7f7f7;
  color: #0B0C10;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ddd;
  font-weight: 700;
}

.receipt-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  color: #222;
  vertical-align: top;
}

.receipt-table-num {
  text-align: right;
  font-family: monospace;
  font-weight: 600;
}

.receipt-total-bar {
  border-top: 2px solid #0B0C10;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
}

.receipt-total-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.receipt-total-amount {
  font-size: 22px;
  font-weight: 800;
  color: #0B0C10;
}

.receipt-notes {
  margin-top: 24px;
  background: #fcfcfc;
  border: 1px solid #eee;
  padding: 14px;
  border-radius: 4px;
  font-size: 11px;
  color: #666;
  line-height: 1.6;
}

.receipt-notes strong {
  color: #222;
}

.receipt-sign-off {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

/* ── Product Quick View Modal ──────────────────────────────────────── */
.lww-product-modal {
  position: fixed;
  inset: 0;
  z-index: 1000002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lww-product-modal.active {
  opacity: 1;
  visibility: visible;
}

.lww-product-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.lww-product-dialog {
  position: relative;
  z-index: 2;
  background: #14161D;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  color: var(--fg);
  padding: 24px;
}

.lww-product-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.lww-product-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: var(--gold);
}

.lww-product-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 680px) {
  .lww-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lww-product-dialog {
    padding: 20px 16px;
  }
}

.lww-product-media {
  background: #0B0C10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lww-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lww-product-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.lww-product-spec-row {
  display: flex;
  gap: 8px;
}

.lww-product-spec-label {
  color: var(--muted);
  min-width: 65px;
  font-weight: 500;
}

.lww-product-spec-val {
  color: var(--fg);
  font-weight: 400;
}

.lww-product-narrative {
  margin-top: 14px;
}

.lww-product-pricing {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lww-product-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

@page {
  size: A4 portrait;
  margin: 12mm 15mm;
}

@media print {
  html, body {
    background: #ffffff !important;
    color: #1a1a1a !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Completely collapse everything in the document tree */
  #main-nav,
  #main-content,
  footer,
  .floating-wa,
  #lww-chat-container,
  #cb-bubble,
  #cb-window,
  #cb-cookie,
  #cart-backdrop,
  #cart-drawer,
  #cart-toast,
  #lww-product-modal,
  .skip-link {
    display: none !important;
  }

  /* Reset modal to a standard static document block */
  .lww-receipt-modal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    z-index: auto !important;
  }

  .lww-receipt-box {
    position: static !important;
    display: block !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: none !important;
    height: auto !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .lww-receipt-toolbar {
    display: none !important;
  }

  .receipt-header,
  .receipt-table,
  .receipt-total-bar,
  .receipt-notes,
  .receipt-sign-off {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .receipt-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
