/* ==========================================================================
   K-BAZAAR: K-APP UNIVERSE MAT STEEL & SAPPHIRE BLUE DESIGN SYSTEM
   Domain: k-bazaar.shop
   Pure Matte Steel, Logo Sapphire Blue Accent, Zero Box Borders, Light-Only Hover
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,600;0,700;0,900;1,800&family=Orbitron:wght@500;700;800;900&family=Rajdhani:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #05080f;
  --bg-steel: #0b0f17;
  --steel-glass: rgba(11, 15, 23, 0.9);

  /* Logo Sapphire Blue Accent Palette */
  --neon-blue: #3877ff;
  --neon-blue-bright: #4d88ff;
  --neon-blue-glow: rgba(56, 119, 255, 0.5);
  --neon-cyan: #3877ff;
  --neon-cyan-glow: rgba(56, 119, 255, 0.5);

  --neon-pink: #ff0055;
  --neon-pink-glow: rgba(255, 0, 85, 0.4);
  --neon-purple: #aa00ff;
  --neon-amber: #ffe600;
  --neon-emerald: #00ffaa;

  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #475569;
  --text-white: #ffffff;

  --font-hud: 'Orbitron', 'Rajdhani', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

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

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  
  /* K-OS Matte Steel Texture with Logo Blue Radial Lighting */
  background-image: 
    radial-gradient(ellipse at 50% 20%, rgba(56, 119, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 75%, rgba(255, 0, 85, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 85%, rgba(56, 119, 255, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 25%, rgba(0, 0, 0, 0.5) 75%, rgba(0, 0, 0, 0.8) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0px, rgba(255, 255, 255, 0.012) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at 50% 50%, #0d121c 0%, #070a10 60%, #030509 100%);
  background-blend-mode: screen, screen, screen, overlay, overlay, normal;
  background-attachment: fixed;
}

/* Atmospheric Cyber Scanlines Overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.15) 0px, rgba(0, 0, 0, 0.15) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 999;
  opacity: 0.6;
}

/* -------------------------------------------------------------
   HEADER / NAVIGATION
   ------------------------------------------------------------- */
.store-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--steel-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--neon-blue-glow));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-white);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--neon-blue-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.currency-select {
  background: transparent;
  border: none;
  color: var(--neon-blue-bright);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  border-bottom: 1px solid rgba(56, 119, 255, 0.4);
  transition: var(--transition-fast);
}

.currency-select:hover, .currency-select:focus {
  border-color: var(--neon-blue-bright);
  box-shadow: 0 4px 12px var(--neon-blue-glow);
}

.currency-select option {
  background: #090e17;
  color: #ffffff;
}

.icon-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-dim);
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

.cart-count-badge {
  background: transparent;
  color: var(--neon-blue-bright);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0 0 0 2px;
  border: none;
  text-shadow: 0 0 8px var(--neon-blue);
  box-shadow: none;
}

/* -------------------------------------------------------------
   HERO BANNER
   ------------------------------------------------------------- */
.hero-section {
  position: relative;
  max-width: 1360px;
  margin: 40px auto 10px;
  padding: 0 32px;
}

.hero-card {
  position: relative;
  background: transparent;
  display: block;
  padding: 10px 0 20px;
}

.hero-title {
  font-family: var(--font-hud);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-white);
}

.hero-title .highlight {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 25px var(--neon-blue-glow);
}

.hero-description {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 0;
  line-height: 1.7;
}

/* -------------------------------------------------------------
   STORE MAIN CONTENT & CATEGORIES
   ------------------------------------------------------------- */
.store-container {
  max-width: 1360px;
  margin: 40px auto;
  padding: 0 32px;
}

.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 16px;
  position: relative;
}

.store-toolbar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-blue), transparent 60%);
  opacity: 0.35;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tab-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-blue);
  box-shadow: 0 0 8px var(--neon-blue);
}

.store-stats {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* -------------------------------------------------------------
   PRODUCT GRID & SEAMLESS CARDS (NO BORDERS, NO BACKGROUND, NO MOVEMENT)
   ------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 48px 36px;
}

.product-card {
  background: transparent;
  border: none;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--neon-blue-bright);
  text-shadow: 0 0 8px var(--neon-blue-glow);
  z-index: 2;
}

.card-badge.limited {
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink-glow);
}

.card-image-box {
  width: 100%;
  height: 260px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

.card-image-box img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(56, 119, 255, 0.15));
  transition: filter 0.3s ease;
}

.product-card:hover .card-image-box img {
  filter: drop-shadow(0 0 35px var(--neon-blue-glow));
}

.card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-blue-bright);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: var(--transition-fast);
}

.product-card:hover .card-title {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-white);
}

.btn-add-cart {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--neon-blue-bright);
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--neon-blue) !important;
}

.btn-add-cart:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--neon-blue);
  border-bottom-color: #ffffff !important;
}

/* -------------------------------------------------------------
   SLIDE-OUT CART DRAWER
   ------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.85);
  backdrop-filter: blur(14px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  background: #090d16;
  border-left: 1px solid rgba(56, 119, 255, 0.3);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.9);
}

.cart-drawer-overlay.open .cart-drawer {
  right: 0;
}

.cart-header {
  padding: 28px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-title {
  font-family: var(--font-hud);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-white);
}

.close-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.close-btn:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 10px var(--neon-blue));
}

.close-btn img, .close-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
  display: block;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
  font-family: var(--font-hud);
}

.cart-item {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(56, 119, 255, 0.2));
}

.cart-item-info h4 {
  font-family: var(--font-hud);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-white);
}

.cart-item-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--neon-blue-bright);
  font-size: 1rem;
}

.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-dim);
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 8px var(--neon-blue);
}

.qty-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 20px;
  text-align: center;
}

.cart-footer {
  padding: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.cart-summary-row.total {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
  margin-top: 14px;
}

.btn-checkout {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--neon-blue) !important;
  box-shadow: none !important;
  color: var(--neon-blue-bright);
  padding: 14px;
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 18px;
  transition: var(--transition-fast);
}

.btn-checkout:hover {
  color: #ffffff;
  border-bottom-color: #ffffff !important;
  text-shadow: 0 0 16px var(--neon-blue);
}

/* -------------------------------------------------------------
   MODALS (PRODUCT DETAILS, CHECKOUT, TRACKING)
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.9);
  backdrop-filter: blur(16px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition-fast);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-box {
  background: #090e17;
  border: none;
  border-left: 2px solid var(--neon-blue);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
}

.modal-box.compact {
  max-width: 520px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close img, .modal-close svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
  display: block;
}

.modal-close:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 10px var(--neon-blue));
}

/* -------------------------------------------------------------
   FULL SCREEN PRODUCT CONFIGURE & CUSTOM STUDIO (K-FONT)
   Contained strictly in one screen (No scroll in portrait/desktop)
   ------------------------------------------------------------- */
.fullscreen-studio {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #090e17;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow: hidden;
}

.fullscreen-studio.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.studio-topbar {
  height: 40px;
  min-height: 40px;
  background: rgba(9, 14, 23, 0.98);
  border-bottom: 1px solid rgba(56, 119, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
}

.studio-nav-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-dim);
  font-family: var(--font-hud);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.studio-nav-btn:hover {
  color: var(--neon-blue-bright);
}

.studio-topbar-center {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.studio-title-tag {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-price-tag {
  color: var(--neon-blue-bright);
  font-weight: 800;
  font-family: var(--font-mono);
}

.studio-close-icon-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.studio-close-icon-btn img {
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: block;
}

.studio-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 12px 20px;
  height: calc(100dvh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  align-items: stretch;
}

.studio-stage-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.studio-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.studio-tab-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  padding: 3px 10px;
  border-bottom: 2px solid transparent !important;
  transition: var(--transition-fast);
}

.studio-tab-btn.active {
  color: var(--neon-blue-bright);
  border-bottom-color: var(--neon-blue) !important;
}

.studio-canvas-stage {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  max-height: calc(100% - 35px);
  position: relative;
  background: rgba(12, 18, 30, 0.4);
  border: 1px solid rgba(56, 119, 255, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mockup-display-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#studio-mockup-base-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(56, 119, 255, 0.15));
}

.mockup-kfont-overlay {
  position: absolute;
  top: 24%;
  left: 28%;
  width: 44%;
  height: 44%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  user-select: none;
}

#mockup-overlay-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(56, 119, 255, 0.5));
}

.vector-canvas-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-canvas-frame {
  width: 100%;
  height: 100%;
  position: relative;
  background: rgba(14, 20, 32, 0.5);
  border: 1px dashed rgba(56, 119, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.vector-canvas-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(56, 119, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 119, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

#studio-vector-svg {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.draggable-glyph {
  cursor: grab;
  transition: filter 0.15s ease;
}

.draggable-glyph.active-drag {
  cursor: grabbing;
  filter: drop-shadow(0 0 14px var(--neon-blue-bright));
}

.studio-controls-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  height: 100%;
  overflow: hidden;
  padding: 4px 0;
}

.studio-ctrl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(14, 20, 32, 0.35);
  border: 1px solid rgba(56, 119, 255, 0.12);
  border-left: 2px solid var(--neon-blue);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.ctrl-subgroup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ctrl-subgroup.flex-2 { flex: 2; }
.ctrl-subgroup.flex-1 { flex: 1; }

.studio-label {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.studio-label-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.studio-mini-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-blue-bright);
}

.studio-micro-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--neon-blue);
  color: var(--neon-blue-bright);
  font-family: var(--font-hud);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 2px 0;
  outline: none;
  text-transform: uppercase;
  height: 24px;
}

.studio-micro-input:focus {
  border-bottom-color: #ffffff;
}

.studio-mini-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--neon-blue) !important;
  box-shadow: none !important;
  color: var(--neon-blue-bright);
  font-family: var(--font-hud);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 6px;
  cursor: pointer;
  height: 24px;
  white-space: nowrap;
}

.studio-mini-slider {
  width: 100%;
  height: 4px;
  accent-color: var(--neon-blue);
  cursor: pointer;
}

.color-palette-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
}

.color-chip.active {
  border-color: #ffffff;
  transform: scale(1.2);
  box-shadow: 0 0 8px var(--c);
}

.studio-variants-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.studio-variant-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-opt-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-dim);
  padding: 2px 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.variant-opt-btn.selected {
  color: var(--neon-blue-bright);
  border-bottom-color: var(--neon-blue-bright) !important;
}

.color-dot-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.color-dot-btn.selected {
  border-color: var(--neon-blue-bright);
  box-shadow: 0 0 8px var(--neon-blue);
  transform: scale(1.15);
}

.studio-checkout-bar {
  margin-top: 4px;
}

.btn-studio-checkout {
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid var(--neon-blue) !important;
  box-shadow: none !important;
  color: var(--neon-blue-bright);
  padding: 10px;
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.btn-studio-checkout:hover {
  color: #ffffff;
  border-bottom-color: #ffffff !important;
  text-shadow: 0 0 12px var(--neon-blue);
}

/* Portrait / Mobile Single-Screen Constraints */
@media (max-width: 768px) {
  .studio-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 8px;
    padding: 8px 12px;
  }
  .studio-stage-panel {
    max-height: 38vh;
  }
  .studio-canvas-stage {
    max-width: 260px;
    max-height: 32vh;
  }
  .studio-controls-panel {
    gap: 6px;
  }
  .studio-ctrl-row {
    padding: 6px 10px;
  }
}

.modal-product-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
}

.modal-preview-box {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-preview-box img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px var(--neon-blue-glow));
}

.variant-picker-section {
  margin: 20px 0;
}

.variant-picker-title {
  font-family: var(--font-hud);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.variant-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-opt-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-dim);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: var(--transition-fast);
}

.variant-opt-btn:hover {
  color: var(--neon-blue-bright);
  border-bottom-color: var(--neon-blue-bright) !important;
}

.variant-opt-btn.selected {
  color: var(--neon-blue-bright);
  border-bottom-color: var(--neon-blue-bright) !important;
  text-shadow: 0 0 10px var(--neon-blue);
}

.color-dot-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.color-dot-btn.selected {
  border-color: var(--neon-blue-bright);
  box-shadow: 0 0 12px var(--neon-blue);
}

/* -------------------------------------------------------------
   CHECKOUT FORM & SHIPPING METHODS
   ------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.form-grid.full {
  grid-template-columns: 1fr;
}

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

.form-label {
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 12px 4px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-bottom-color: var(--neon-blue-bright);
  box-shadow: 0 4px 12px var(--neon-blue-glow);
}

.form-input option {
  background: #090e17;
  color: #ffffff;
}

.shipping-method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.shipping-method-option:hover {
  background: rgba(56, 119, 255, 0.03);
}

.shipping-method-option.selected {
  border-bottom-color: var(--neon-blue-bright);
  color: var(--neon-blue-bright);
}

/* -------------------------------------------------------------
   FOOTER (MINIMALIST USUAL K COPYRIGHT)
   ------------------------------------------------------------- */
.store-footer {
  background: transparent;
  padding: 40px 32px 32px;
  margin-top: 60px;
  position: relative;
  text-align: center;
}

.store-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 119, 255, 0.35), transparent);
}

.footer-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links-row a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-hud);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.footer-links-row a:hover {
  color: var(--neon-blue-bright);
  text-shadow: 0 0 8px var(--neon-blue-glow);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }
  .modal-product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header-container {
    padding: 12px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .header-nav {
    display: flex;
    gap: 14px;
    order: 3;
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 4px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
