/* Kerf 3D / Global design tokens
   Active runtime: CodeIgniter 4 + OpenLiteSpeed. */

:root {
  /* Surfaces & Canvas: High-Clarity Warm Studio Paper */
  --k3d-canvas: #fbf9f5;
  --k3d-surface: #ffffff;
  --k3d-surface-pure: #ffffff;
  --k3d-surface-muted: #f3efe6;
  
  /* High-Contrast Architectural Typography & Borders */
  --k3d-ink: #121110;
  --k3d-secondary: #3d3731;
  --k3d-meta: #544e45;
  --k3d-border: #dfd9ce;
  --k3d-border-subtle: #eae5db;
  
  /* Accents */
  --k3d-rust: #c25327;
  --k3d-rust-dark: #a13f17;
  --k3d-teal: #1d726b;
  --k3d-teal-glow: rgba(29, 114, 107, 0.14);
  
  /* Official Brand Mark */
  --k3d-logo-brown: #3d2716;
  --k3d-brand: #3d2716;
  
  /* Bespoke Architectural Typography (Nagami Aesthetic) */
  --k3d-display: "Inter", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --k3d-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --k3d-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --k3d-content-width: 1440px;
  --k3d-copy-width: 680px;
  --k3d-sharp: 0px;
  --k3d-radius: 6px;
  --k3d-radius-lg: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background: var(--k3d-rust);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--k3d-canvas);
  border-left: 1px solid var(--k3d-border);
}
::-webkit-scrollbar-thumb {
  background: var(--k3d-ink);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--k3d-rust);
}

:focus-visible {
  outline: 2px solid var(--k3d-rust);
  outline-offset: 2px;
}

.k3d-button:active, button[type="submit"]:active, .k3d-place-order:active, .k3d-track-btn:active {
  transform: translateY(1.5px) !important;
}

html, body {
  background-color: var(--k3d-canvas);
  color: var(--k3d-ink);
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Subtle clean contrast (noise overlay disabled for maximum clarity) */
body::before {
  display: none !important;
}

h1, h2, h3, h4, h5, h6, .entry-title {
  color: var(--k3d-ink);
  font-family: var(--k3d-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  word-break: break-word;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 5rem); line-height: 1.12; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2.8vw, 2.2rem); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
h4, h5, h6 { font-weight: 500; letter-spacing: -0.02em; }

code, pre, .k3d-technical, .k3d-product-meta, .k3d-rate-strip, .k3d-invoice-card {
  font-family: var(--k3d-mono);
}

/* ── Nagami Architectural Price & Numeric System ──────────────────────── */
/* Prices & Currency: Inter with tabular-nums for balanced numeric layout */
.k3d-price,
.k3d-product-price,
.k3d-card-price,
.k3d-price-val,
.k3d-line-price,
.k3d-spec-price strong,
.k3d-bundle-price-box strong,
.k3d-logistics-price,
.k3d-sticky-price,
.k3d-drawer-subtotal,
.k3d-drawer-shipping,
.k3d-drawer-grand-total,
.k3d-totals-row b,
.k3d-totals-row span:last-child,
.k3d-total-grand b,
.k3d-order-price,
.k3d-order-total-price,
.k3d-invoice-items b,
.k3d-invoice-row b,
.k3d-invoice-total b,
.k3d-shipping-option b,
.k3d-cta-price,
#k3d-cta-price,
.k3d-rate-inside,
.k3d-rate-outside,
.k3d-search-item-price,
.k3d-numeric-tabular {
  font-family: var(--k3d-sans) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.01em;
}

/* Technical Specifications: Subtle monospace (JetBrains Mono) strictly for small spec tags */
.k3d-spec-tag,
.k3d-item-spec,
.k3d-sku-tag,
.k3d-telemetry-tag,
.k3d-spec-grid strong,
.k3d-craft-spec-row strong,
.k3d-cart-badge-count,
.k3d-fs-tag,
.k3d-inventory-line b,
.k3d-inventory-line span,
.k3d-receipt-intro,
.k3d-drawer-shipping-meta {
  font-family: var(--k3d-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.k3d-kicker {
  font-family: var(--k3d-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--k3d-meta);
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--k3d-rust);
}

button, input, select, textarea {
  border-radius: var(--k3d-sharp);
  box-sizing: border-box;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--k3d-rust);
  outline-offset: 3px;
}

/* Structural layout */
.k3d-container {
  max-width: var(--k3d-content-width);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  width: 100%;
}

/* Accessibility Skip Link (Focus-Visible) */
.k3d-skip-link {
  position: absolute;
  top: -9999px;
  left: 16px;
  background: var(--k3d-ink);
  color: #ffffff;
  padding: 10px 18px;
  font-family: var(--k3d-mono);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: top 0.15s ease;
}
.k3d-skip-link:focus,
.k3d-skip-link:focus-visible {
  top: 14px;
  outline: 2px solid var(--k3d-rust);
}

/* ── Global Header (Nagami-Inspired 3-Zone Minimal Bar) ─────────── */
.k3d-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body {
  padding-top: 68px !important;
}

.k3d-header.is-scrolled {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.k3d-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  max-width: var(--k3d-content-width);
  margin: 0 auto;
  padding: 0 36px;
  box-sizing: border-box;
  position: relative;
}

/* ── Zone 1: Left (Nagami Navicon Menu Trigger) ── */
.k3d-header-left {
  display: flex;
  align-items: center;
  z-index: 1;
}

.k3d-navicon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  color: var(--k3d-ink);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.k3d-navicon-btn:hover {
  background: rgba(18, 17, 16, 0.06);
  border-color: rgba(18, 17, 16, 0.08);
  color: var(--k3d-rust);
}

.k3d-navicon-btn:active {
  transform: scale(0.92);
}

.k3d-navicon-box {
  width: 18px;
  height: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.k3d-navicon-bar {
  width: 100%;
  height: 1.75px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.k3d-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.k3d-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.k3d-nav-link {
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #2b2723;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 6px;
  position: relative;
  transition: color 0.15s ease;
}

.k3d-nav-link:hover {
  color: var(--k3d-ink);
}

.k3d-nav-link.is-active {
  color: var(--k3d-ink);
  font-weight: 700;
}

.k3d-nav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--k3d-ink);
  border-radius: 1px;
}

.k3d-chevron-icon {
  transition: transform 0.2s ease;
}

.k3d-has-megamenu:hover .k3d-chevron-icon,
.k3d-has-megamenu.is-active .k3d-chevron-icon {
  transform: rotate(180deg);
}

/* ── 3-Column Category Mega-Menu ────────────────────────────────── */
.k3d-megamenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -16px;
  width: 660px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1100;
  padding: 28px 30px 20px;
  box-sizing: border-box;
}

.k3d-megamenu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.k3d-megamenu.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.k3d-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.k3d-megamenu-title {
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k3d-meta);
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--k3d-border-subtle);
}

.k3d-megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.k3d-megamenu-list a {
  font-family: var(--k3d-sans);
  font-size: 13.5px;
  color: var(--k3d-secondary);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.k3d-megamenu-list a:hover {
  color: var(--k3d-rust);
  transform: translateX(2px);
}

.k3d-megamenu-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--k3d-border-subtle);
  display: flex;
  justify-content: flex-end;
}

.k3d-megamenu-all-link {
  font-family: var(--k3d-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--k3d-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.k3d-megamenu-all-link:hover {
  color: var(--k3d-rust);
}

.k3d-megamenu-all-link:hover .k3d-arrow {
  transform: translateX(3px);
}

/* ── Zone 2: Center (Mathematically Centered Wordmark) ── */
.k3d-header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: auto;
}

.k3d-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--k3d-ink);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.k3d-brand:hover {
  opacity: 0.8;
  transform: scale(0.98);
}

.k3d-brand-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.k3d-brand-wordmark {
  font-family: var(--k3d-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--k3d-ink);
  line-height: 1;
}

/* ── Zone 3: Right (Search & Cart - Clean Minimal Icons Only) ── */
.k3d-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.k3d-nav-icon-btn,
.k3d-header-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--k3d-ink);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.k3d-nav-icon-btn:hover,
.k3d-header-action-btn:hover {
  background: rgba(18, 17, 16, 0.06);
  border-color: rgba(18, 17, 16, 0.08);
  color: var(--k3d-rust);
}

.k3d-nav-icon-btn:active,
.k3d-header-action-btn:active {
  transform: scale(0.92);
}

.k3d-nav-icon-btn svg,
.k3d-header-action-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

.k3d-nav-icon-btn:hover svg,
.k3d-header-action-btn:hover svg {
  transform: scale(1.08);
}

.k3d-cart-open-trigger {
  background: transparent;
  color: var(--k3d-ink);
  border-color: transparent;
}

.k3d-cart-open-trigger:hover {
  background: rgba(18, 17, 16, 0.06);
  border-color: rgba(18, 17, 16, 0.08);
  color: var(--k3d-rust);
}

.k3d-nav-account-btn {
  text-decoration: none;
}

.k3d-account-active-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  border: 1.5px solid #ffffff;
  pointer-events: none;
}

.k3d-cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--k3d-rust);
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--k3d-sans);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

/* ── Full-Width Live Search Overlay ────────────────────────────── */
.k3d-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.k3d-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.k3d-search-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 17, 16, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.k3d-search-panel {
  position: relative;
  width: min(92vw, 840px);
  margin: 40px auto 0;
  background: #ffffff;
  border: 1px solid var(--k3d-border);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  z-index: 1;
  overflow: hidden;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

.k3d-search-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--k3d-border-subtle);
  background: #ffffff;
}

.k3d-search-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.k3d-search-icon {
  color: var(--k3d-meta);
  flex-shrink: 0;
}

.k3d-search-input {
  flex: 1;
  border: none !important;
  box-shadow: none !important;
  font-family: var(--k3d-sans);
  font-size: 14px;
  color: var(--k3d-ink);
  background: transparent;
  padding: 6px 0;
  outline: none;
}

.k3d-search-input::placeholder {
  color: #8c857b;
  font-size: 14.5px;
}

.k3d-search-clear-btn {
  background: #f1ede4;
  border: none;
  border-radius: 4px;
  color: var(--k3d-secondary);
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.k3d-search-clear-btn:hover {
  background: var(--k3d-border);
}

.k3d-search-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--k3d-border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--k3d-secondary);
  cursor: pointer;
  font-family: var(--k3d-mono);
  font-size: 11.5px;
  transition: all 0.15s ease;
}

.k3d-search-close-btn:hover {
  border-color: var(--k3d-ink);
  color: var(--k3d-ink);
}

.k3d-esc-pill {
  background: #f1ede4;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.k3d-search-body {
  padding: 24px;
  overflow-y: auto;
  max-height: 520px;
}

.k3d-suggestions-label {
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--k3d-meta);
  display: block;
  margin-bottom: 14px;
}

.k3d-suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.k3d-suggest-tag {
  background: #f8f6f0;
  border: 1px solid var(--k3d-border);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: var(--k3d-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--k3d-secondary);
  text-decoration: none;
  transition: all 0.15s ease;
}

.k3d-suggest-tag:hover {
  background: var(--k3d-ink);
  border-color: var(--k3d-ink);
  color: #ffffff;
}

.k3d-results-count {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--k3d-meta);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--k3d-border-subtle);
}

.k3d-view-all-search {
  color: var(--k3d-rust);
  text-decoration: none;
}

.k3d-view-all-search:hover {
  text-decoration: underline;
}

.k3d-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.k3d-search-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--k3d-border-subtle);
  border-radius: 8px;
  text-decoration: none;
  background: #ffffff;
  transition: all 0.15s ease;
}

.k3d-search-item-card:hover {
  border-color: var(--k3d-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.k3d-search-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background: #f5f2ea;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.k3d-search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k3d-search-item-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.k3d-search-item-cat {
  font-family: var(--k3d-mono);
  font-size: 10px;
  color: var(--k3d-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.k3d-search-item-title {
  font-family: var(--k3d-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--k3d-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 3px;
}

.k3d-search-item-price {
  font-family: var(--k3d-sans);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
  color: var(--k3d-rust);
}

.k3d-search-no-results {
  text-align: center;
  padding: 36px 20px;
  color: var(--k3d-secondary);
}

/* ── Left-Side Slide-Out Navigation Drawer ────────────────────────── */
.k3d-mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 10040;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0.28s ease;
}

.k3d-mobile-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.k3d-mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.k3d-mobile-drawer.is-open .k3d-mobile-drawer-backdrop {
  opacity: 1;
}

.k3d-mobile-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
  box-shadow: 12px 0 36px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  z-index: 1;
}

.k3d-mobile-drawer.is-open .k3d-mobile-drawer-panel {
  transform: translateX(0);
}

/* Header */
.k3d-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px 16px;
  flex-shrink: 0;
}

.k3d-drawer-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.k3d-drawer-brand-logo {
  height: 26px;
  width: auto;
  max-width: 80px;
  display: block;
}

.k3d-mobile-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f2f2f2;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: #555555;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.k3d-mobile-drawer-close:hover {
  background: #e5e5e5;
  color: #111111;
}

/* Horizontal Drill-Down Viewport & Slider */
.k3d-drawer-viewport {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.k3d-drawer-slider {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.k3d-drawer-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

#k3d-drawer-view-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.k3d-drawer-slider.has-subview #k3d-drawer-view-main {
  transform: translateX(-35%);
  opacity: 0;
  pointer-events: none;
}

.k3d-drawer-subview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.k3d-drawer-subview.is-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Primary Level 1 Navigation Items */
.k3d-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 6px 16px;
  gap: 2px;
}

.k3d-drawer-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #111111;
  text-decoration: none;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background 0.12s ease, color 0.12s ease;
}

.k3d-drawer-nav-item:hover,
.k3d-drawer-nav-item.is-active {
  background: #f7f7f7;
  color: #000000;
}

.k3d-chevron-icon {
  stroke: #888888;
  transition: stroke 0.15s ease, transform 0.15s ease;
}

.k3d-drawer-nav-item:hover .k3d-chevron-icon {
  stroke: #111111;
}

/* Level 2 Sub-Panel Header & Contents */
.k3d-subview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.k3d-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  font-family: var(--k3d-sans);
  font-size: 13px;
  font-weight: 500;
  color: #555555;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.k3d-back-btn:hover {
  background: #f4f4f4;
  color: #111111;
}

.k3d-subview-title {
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 500;
  color: #111111;
}

.k3d-subview-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.k3d-subview-highlight {
  display: inline-block;
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #111111;
  text-decoration: none;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.k3d-subview-highlight:hover {
  opacity: 0.7;
}

.k3d-subview-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.k3d-subgroup-title {
  font-family: var(--k3d-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888888;
  margin-bottom: 2px;
}

.k3d-subview-group a {
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #444444;
  text-decoration: none;
  padding: 3px 0;
  transition: color 0.12s ease;
}

.k3d-subview-group a:hover {
  color: #000000;
}

/* Empty Whitespace Middle Spacer */
.k3d-drawer-spacer {
  flex: 1;
  min-height: 24px;
}

/* Pinned Bottom Utility Footer */
.k3d-drawer-footer {
  margin-top: auto;
  border-top: 1px solid #F0F0F0;
  padding: 18px 24px 22px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.k3d-drawer-footer-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.k3d-drawer-track-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--k3d-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #111111;
  transition: opacity 0.15s ease;
}

.k3d-drawer-track-link:hover {
  opacity: 0.7;
}

.k3d-drawer-shipping-meta {
  font-family: var(--k3d-mono);
  font-size: 10.5px;
  color: #777777;
}

.k3d-drawer-footer-row2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.k3d-drawer-footer-action {
  display: flex;
  align-items: center;
}

.k3d-drawer-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #111111;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--k3d-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.k3d-drawer-pill-btn:hover {
  background: #333333;
  color: #ffffff;
  transform: translateY(-1px);
}

.k3d-drawer-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.k3d-drawer-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  color: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.k3d-drawer-social-btn:hover {
  border-color: #111111;
  background: #f9f9f9;
  transform: translateY(-1px);
}

/* Shared buttons (Readable, human-crafted typography) */
.button, .k3d-button, button[type="submit"], input[type="submit"] {
  background: var(--k3d-ink);
  border: 1px solid var(--k3d-ink);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 13.5px/1.2 var(--k3d-sans);
  letter-spacing: 0.02em;
  padding: 14px 24px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.button:hover, .k3d-button:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background: var(--k3d-rust);
  border-color: var(--k3d-rust);
  color: #ffffff;
  transform: translateY(-1px);
}

.is-style-outline, .k3d-button.is-style-outline {
  background: transparent;
  border: 1.5px solid var(--k3d-ink);
  color: var(--k3d-ink);
}

.is-style-outline:hover, .k3d-button.is-style-outline:hover {
  background: var(--k3d-ink);
  color: #ffffff;
}

/* Selection and utility treatments */
::selection {
  background: var(--k3d-rust);
  color: #fff;
}

.k3d-kicker {
  color: var(--k3d-meta);
  font: 700 10px/1.3 var(--k3d-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.k3d-technical {
  text-transform: uppercase;
}

.k3d-rule {
  border: 0;
  border-top: 1px solid var(--k3d-border);
  margin: 30px 0;
}

/* ── Global Footer (Nagami Aesthetic) ─────────────────────────── */
.k3d-footer {
  background: #fafafa;
  border-top: 1px solid #eaeaea;
  padding: 72px 32px 36px;
  margin-top: 60px;
}

.k3d-footer-inner {
  max-width: var(--k3d-content-width, 1440px);
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.k3d-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.3fr;
  gap: 36px;
}

@media (min-width: 1200px) {
  .k3d-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 48px;
  }
}

.k3d-footer-col {
  display: flex;
  flex-direction: column;
}

.k3d-footer-brand-wrap {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 1;
}

.k3d-footer-brand-logo {
  height: 38px;
  width: auto;
  max-width: 95px;
  display: block;
  transition: opacity 0.15s ease;
}

.k3d-footer-brand-logo:hover {
  opacity: 0.8;
}

.k3d-footer-tagline {
  font-family: var(--k3d-sans);
  font-size: 13.5px;
  color: var(--k3d-secondary);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: 320px;
}

.k3d-footer-socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.k3d-footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--k3d-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--k3d-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.k3d-footer-social-btn:hover {
  color: var(--k3d-rust);
}

.k3d-footer-title {
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--k3d-meta);
  margin: 0 0 16px;
}

.k3d-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.k3d-footer-nav-list li a {
  font-family: var(--k3d-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: #2b2723;
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s ease, transform 0.15s ease;
}

.k3d-footer-nav-list li a:hover {
  color: var(--k3d-rust);
  transform: translateX(2px);
}

.k3d-footer-shipping-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.k3d-footer-rate {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k3d-footer-rate-name {
  font-family: var(--k3d-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--k3d-ink);
}

.k3d-footer-rate-sub {
  font-family: var(--k3d-mono);
  font-size: 11.5px;
  color: var(--k3d-meta);
  letter-spacing: 0.02em;
}

.k3d-footer-direct-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px dashed var(--k3d-border);
  padding-top: 14px;
}

.k3d-footer-direct-contact p {
  margin: 0;
  font-family: var(--k3d-sans);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.k3d-contact-lbl {
  font-family: var(--k3d-mono);
  font-size: 11px;
  color: var(--k3d-meta);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 65px;
}

.k3d-contact-val {
  color: var(--k3d-ink);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.k3d-contact-val:hover {
  color: var(--k3d-rust);
  text-decoration: underline;
}

.k3d-footer-utility {
  border-top: 1px solid #eaeaea;
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.k3d-footer-copyright {
  font-family: var(--k3d-sans);
  font-size: 13px;
  color: var(--k3d-meta);
  letter-spacing: 0.01em;
}

.k3d-footer-mfs-list {
  font-family: var(--k3d-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--k3d-meta);
  letter-spacing: 0.04em;
}

/* Tablet (600px – 859px): Balanced 2x2 Grid */
@media (max-width: 859px) and (min-width: 600px) {
  .k3d-footer {
    padding: 56px 24px 32px;
  }
  .k3d-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .k3d-footer-utility {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Mobile Phones (< 600px): Clean 1-Column Stack */
@media (max-width: 599px) {
  .k3d-footer {
    padding: 48px 20px 28px;
  }
  .k3d-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .k3d-footer-utility {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1023px) {
  body {
    font-size: 15px;
    padding-top: 64px !important;
  }
  .k3d-header {
    height: 64px;
  }
  .k3d-header-inner {
    padding: 0 16px;
  }
  .k3d-nav {
    display: none !important;
  }
  .k3d-mobile-menu-trigger {
    display: inline-flex !important;
  }
  .k3d-nav-icon-btn,
  .k3d-header-action-btn {
    width: 38px;
    height: 38px;
  }
  .k3d-brand-logo {
    height: 30px;
  }
  .k3d-brand-wordmark {
    font-size: 17px;
    letter-spacing: 0.1em;
  }
  .k3d-search-panel {
    margin: 20px 14px;
    max-height: calc(100vh - 40px);
  }
  .k3d-search-top {
    padding: 14px 16px;
  }
  .k3d-search-body {
    padding: 16px;
  }
  .k3d-hide-mobile {
    display: none;
  }
  .k3d-whatsapp-fab {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .k3d-header-right {
    gap: 2px;
  }
  .k3d-nav-icon-btn,
  .k3d-header-action-btn {
    width: 36px;
    height: 36px;
  }
}

/* ==============================================================================
   Floating Workshop WhatsApp Concierge Pill
   ============================================================================== */
.k3d-whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  pointer-events: auto;
}

.k3d-whatsapp-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: var(--k3d-ink);
  border: 1px solid var(--k3d-border);
  padding: 8px 18px 8px 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(18, 17, 16, 0.12), 0 1px 3px rgba(0,0,0,0.06);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 999px;
}

.k3d-whatsapp-pill:hover {
  background: #ffffff;
  border-color: var(--k3d-ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(18, 17, 16, 0.18), 0 2px 6px rgba(0,0,0,0.08);
  color: var(--k3d-ink);
}

.k3d-wa-icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.k3d-wa-radar-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #25D366;
  border: 1.5px solid var(--k3d-surface);
  border-radius: 50%;
  animation: k3d-radar-pulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@media (max-width: 768px) {
  .k3d-whatsapp-fab {
    bottom: 16px;
    right: 16px;
  }
  .k3d-whatsapp-pill {
    padding: 6px 12px 6px 8px;
    gap: 8px;
    box-shadow: 2px 2px 0 var(--k3d-ink);
  }
  .k3d-wa-icon-wrap {
    width: 24px;
    height: 24px;
  }
  .k3d-wa-icon-wrap svg {
    width: 14px;
    height: 14px;
  }
  .k3d-wa-status {
    font-size: 11px;
  }
  .k3d-wa-label {
    display: none;
  }
}

/* ==============================================================================
   Architectural Atelier Global Form Inputs & Controls
   ============================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
select,
textarea {
  background-color: var(--k3d-surface) !important;
  color: var(--k3d-ink) !important;
  border: 1px solid var(--k3d-border) !important;
  border-radius: 0 !important;
  font-family: var(--k3d-font-mono) !important;
  font-size: 13px !important;
  padding: 12px 14px !important;
  transition: border-color var(--k3d-timing-fast), box-shadow var(--k3d-timing-fast) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
select:focus,
textarea:focus {
  border-color: var(--k3d-ink) !important;
  box-shadow: 2px 2px 0 var(--k3d-ink) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--k3d-meta) !important;
  opacity: 0.75 !important;
}

@keyframes k3d-radar-pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.8); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.k3d-wa-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.k3d-wa-status {
  font-family: var(--k3d-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #25D366;
}

.k3d-wa-label {
  font-family: var(--k3d-display);
  font-size: 12px;
  font-weight: 600;
  color: #f6f3eb;
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .k3d-whatsapp-fab {
    bottom: 20px;
    right: 20px;
  }
  .k3d-wa-meta {
    display: none;
  }
  .k3d-whatsapp-pill {
    padding: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    justify-content: center;
    border: 1px solid var(--k3d-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: #25D366;
  }
  .k3d-wa-icon-wrap {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
  }
}

/* ==============================================================================
   Brutalist Studio Toast Feedback Engine
   ============================================================================== */
.k3d-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.k3d-toast {
  background: #14161c;
  color: #f6f3eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--k3d-rust);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  font-family: var(--k3d-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.k3d-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.k3d-toast-icon {
  color: #22c55e;
  font-weight: 700;
  font-size: 13px;
}

@media (max-width: 650px) {
  .k3d-toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
  }
  .k3d-toast {
    font-size: 12.5px;
    padding: 10px 14px;
  }
}

/* ==============================================================================
   Vintage Architectural Atelier Styling & Material Atmosphere (Pillars 1 & 4)
   ============================================================================== */

/* Vintage Rubber-Stamp & Archival Ink Seals */
.k3d-rubber-stamp {
  display: inline-block;
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1.5px solid var(--k3d-rust);
  color: var(--k3d-rust);
  background: rgba(184, 93, 56, 0.04);
  transform: rotate(-1.5deg);
  box-shadow: inset 0 0 3px rgba(184, 93, 56, 0.15);
}

.k3d-wax-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--k3d-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--k3d-ink);
  border: 1px dashed var(--k3d-border);
  padding: 3px 8px;
  background: #fbf9f4;
}

/* Precision Drafting Crosshair Cursor on Technical Viewports */
.k3d-drafting-cursor, 
.k3d-product-gallery, 
.k3d-gallery-main, 
.k3d-viewer-card, 
.k3d-spotlight-frame, 
.k3d-preview-canvas {
  cursor: crosshair;
}
