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

/* ============================================================
   NORVAK — "Ink & Paper" design system
   A print-studio identity: cool paper surfaces, navy-ink type,
   an electric-blue accent, and a navy "misprint" ghost used
   as the page's signature motif (registration offset on headlines).
============================================================ */

:root {
  --paper:    #f6f8fb;
  --paper2:   #eef1f6;
  --paper3:   #e2e7ee;
  --ink:      #0f1825;
  --ink2:     #4b5666;
  --ink3:     #8993a3;
  --surface:  #ffffff;
  --surface2: #fafbfd;
  --line:     rgba(15,24,37,0.08);
  --line2:    rgba(15,24,37,0.14);
  --red:      #1a4dff;
  --red-dark: #1339cc;
  --cyan:     #0f1825;
  --gold:     #c9a227;
  --shadow:   0 4px 24px rgba(15,24,37,0.06);
  --shadow-lg:0 24px 56px rgba(15,24,37,0.12);
  --radius:   4px;
  --radius-md:6px;
  --radius-sm:4px;
  --transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="dark"] {
  --paper:    #0b0f17;
  --paper2:   #111723;
  --paper3:   #161e2c;
  --ink:      #eef1f6;
  --ink2:     #aab2c0;
  --ink3:     #6b7585;
  --surface:  #121826;
  --surface2: #161e2c;
  --line:     rgba(255,255,255,0.07);
  --line2:    rgba(255,255,255,0.13);
  --red:      #3d6bff;
  --red-dark: #2c54e0;
  --cyan:     #eef1f6;
  --shadow:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:0 24px 56px rgba(0,0,0,0.55);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

a { color: var(--red); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; outline: none; background: none; }
input, textarea, select { font-family: var(--font-body); outline: none; border: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ===== SIGNATURE: registration-mark headline ===== */
.reg-text {
  position: relative;
  display: inline-block;
}
.reg-text::before,
.reg-text::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; z-index: -1;
  -webkit-background-clip: text; background-clip: text;
}
.reg-text::before { color: var(--red); transform: translate(2px, 2px); opacity: 0.55; }
.reg-text::after { color: var(--cyan); transform: translate(-2px, -2px); opacity: 0.45; }

.crop-mark { position: relative; }
.crop-mark::before, .crop-mark::after,
.crop-mark .cm-tl, .crop-mark .cm-br { content: ''; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.crop-mark::before { top: -1px; left: -1px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); opacity: 0.5; }
.crop-mark::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ink); border-right: 2px solid var(--ink); opacity: 0.5; }

/* ===== LOADING ===== */
.loading { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: var(--paper); transition: opacity 0.7s, visibility 0.7s; }
.loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-inner { text-align: center; }
.loading-logo { width: 200px; height: auto; display: block; margin: 0 auto; }
.loading-bar { width: 220px; height: 2px; background: var(--line2); margin: 22px auto 0; overflow: hidden; }
.loading-bar-fill { height: 100%; width: 0%; background: var(--red); animation: loadingFill 1.1s ease forwards; }
@keyframes loadingFill { to { width: 100%; } }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000; padding: 22px 0;
  transition: var(--transition);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.navbar.scrolled {
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 14px 0; box-shadow: var(--shadow);
}
[data-theme="dark"] .navbar { background: rgba(11,15,23,0.95); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }
.navbar .logo { cursor: pointer; user-select: none; color: var(--ink); display: flex; align-items: center; }
.navbar .logo a { display: flex; align-items: center; }
.navbar .logo a img { height: 36px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 16px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--ink2); transition: var(--transition); border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.nav-active { color: var(--red); border-bottom-color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.cart-nav-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.5px; transition: var(--transition); }
.cart-nav-btn:hover { background: var(--red); }
.cart-nav-count { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; background: var(--red); color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--paper); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: var(--transition); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; font-size: 13px; font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.6px; transition: var(--transition); border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink2); }
.btn-secondary:hover { border-color: var(--ink); background: var(--surface); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink2); border: none; }
.btn-ghost:hover { color: var(--ink); }
.btn-success { background: #1f8a4c; color: white; }
.btn-success:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-danger { background: var(--red-dark); color: white; }
.btn-warning { background: #b8860b; color: white; }
.btn-sm { padding: 11px 22px; font-size: 12px; }
.btn-xs { padding: 7px 14px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ===== SECTION ===== */
.section { padding: 130px 0; }
.section-alt { background: var(--paper2); }
.section-header { text-align: center; margin-bottom: 68px; }
.section-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 18px; }
.section-tag::before { content: ''; width: 24px; height: 1.5px; background: var(--red); display: inline-block; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 18px; }
.section-header p { font-size: 16px; color: var(--ink2); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; background: var(--ink); }
[data-theme="dark"] .hero { background: #070a10; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; filter: grayscale(0.15) contrast(1.05); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,15,24,0.45) 0%, rgba(10,15,24,0.75) 70%, var(--ink) 100%); }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 920px; margin: 0 auto; padding: 150px 24px 90px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; background: rgba(246,248,251,0.08); border: 1px solid rgba(246,248,251,0.18); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: #c4cbd6; margin-bottom: 36px; text-transform: uppercase; }
.hero-badge span { color: var(--red); }
.hero-content h1 { font-family: var(--font-display); font-size: clamp(38px, 6.6vw, 76px); font-weight: 700; line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 26px; color: #f1f4f9; }
.hero-content h1 .gradient-text { color: var(--red); }
.hero-content p { font-size: clamp(16px, 1.5vw, 19px); color: #b7c0cd; max-width: 600px; margin: 0 auto 42px; line-height: 1.75; }
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .btn-secondary { color: #f1f4f9; border-color: rgba(246,248,251,0.35); }
.hero .btn-secondary:hover { background: rgba(246,248,251,0.08); border-color: #f1f4f9; }

.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: #7a8392; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; animation: scrollBounce 2s ease-in-out infinite; }
.hero-scroll::after { content: '↓'; font-size: 16px; }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ===== GLASS (kept for compat, paper-style) ===== */
.glass { background: var(--surface); border: 1px solid var(--line); }

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.service-card { background: var(--surface); padding: 28px 28px 32px; border: 1px solid var(--line); border-radius: var(--radius-md); transition: var(--transition); cursor: default; position: relative; box-shadow: var(--shadow); }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line2); }
.service-card .icon-img { width: 100%; height: 150px; object-fit: cover; margin-bottom: 22px; border-radius: var(--radius-sm); filter: grayscale(0.2); transition: var(--transition); }
.service-card:hover .icon-img { filter: grayscale(0); }
.service-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--ink2); line-height: 1.7; }

/* ===== PORTFOLIO ===== */
.portfolio-filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.filter-btn { padding: 9px 20px; background: var(--surface); border: 1px solid var(--line2); color: var(--ink2); font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; transition: var(--transition); cursor: pointer; }
.filter-btn:hover { border-color: var(--red); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.portfolio-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--line2); transition: var(--transition); }
.portfolio-item:hover { box-shadow: var(--shadow-lg); }
.portfolio-item .p-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); filter: grayscale(0.15); }
.portfolio-item:hover .p-img { transform: scale(1.07); filter: grayscale(0); }
.portfolio-item .p-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,11,17,0.95) 0%, rgba(8,11,17,0.25) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; opacity: 0; transition: all 0.4s ease; }
.portfolio-item:hover .p-overlay { opacity: 1; }
.portfolio-item .p-overlay h4 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #f1f4f9; margin-bottom: 4px; }
.portfolio-item .p-overlay p { font-size: 13px; color: #b7c0cd; margin-bottom: 12px; }
.portfolio-item .p-overlay .p-link { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; }
.portfolio-item .p-tag { position: absolute; top: 14px; left: 14px; background: rgba(8,11,17,0.7); color: #f1f4f9; font-family: var(--font-mono); font-size: 10px; padding: 4px 10px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== TRUST ===== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.trust-card { text-align: left; padding: 36px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); transition: var(--transition); }
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.trust-card .icon { font-size: 32px; margin-bottom: 18px; display: block; }
.trust-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.trust-card p { color: var(--ink2); font-size: 14px; line-height: 1.7; }

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; counter-reset: step; position: relative; }
.process-step { text-align: left; padding: 0 24px 0 0; position: relative; }
.process-step:not(:last-child)::after { content: ''; position: absolute; top: 26px; right: -10px; width: 20px; height: 1px; background: var(--line2); display: none; }
@media (min-width: 769px) { .process-step:not(:last-child)::after { display: block; } }
.process-step .num { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--red); margin-bottom: 16px; letter-spacing: 0.5px; }
.process-step .num::before { content: '0' counter(step); counter-increment: step; }
.process-step h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.process-step p { color: var(--ink2); font-size: 14px; line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 32px; transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card .stars { color: var(--gold); font-size: 14px; margin-bottom: 16px; letter-spacing: 3px; }
.testimonial-card .text { font-size: 15px; color: var(--ink); line-height: 1.8; margin-bottom: 22px; }
.testimonial-card .author { display: flex; align-items: center; gap: 14px; }
.testimonial-card .author .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--paper); flex-shrink: 0; }
.testimonial-card .author .name { font-size: 14px; font-weight: 700; }
.testimonial-card .author .role { font-size: 12px; color: var(--ink3); font-family: var(--font-mono); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); transition: var(--transition); }
.contact-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-item .icon { font-size: 24px; flex-shrink: 0; }
.contact-item .label { font-family: var(--font-mono); font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.contact-item .value { font-size: 14px; font-weight: 600; }

/* ===== FOOTER ===== */
.footer { padding: 36px 0; border-top: 1px solid var(--line); text-align: center; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer p { font-size: 13px; color: var(--ink3); font-family: var(--font-mono); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--ink2); font-size: 13px; font-family: var(--font-mono); transition: var(--transition); }
.footer-links a:hover { color: var(--red); }

/* ===== SOCIAL FLOATING ===== */
.social-float { position: fixed; bottom: 28px; right: 28px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.social-btn { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.25); transition: all 0.25s cubic-bezier(0.22,1,0.36,1); position: relative; }
.social-btn svg { width: 24px; height: 24px; }
.social-btn:hover { transform: scale(1.12); }
.social-wa { background: #25d366; color: white; }
.social-fb { background: #1877f2; color: white; }
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-tip { position: absolute; right: 62px; top: 50%; transform: translateY(-50%); background: var(--ink); color: var(--paper); padding: 6px 14px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--transition); font-family: var(--font-mono); border-radius: 3px; }
.social-btn:hover .social-tip { opacity: 1; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 5000; background: rgba(8,11,17,0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line2); max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 38px; animation: modalAnim 0.35s ease; }
@keyframes modalAnim { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.modal-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.modal-close { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink2); transition: var(--transition); background: var(--paper2); border: 1px solid var(--line2); }
.modal-close:hover { color: var(--red); border-color: var(--red); }
.modal-body p { color: var(--ink2); font-size: 15px; line-height: 1.8; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--ink2); margin-bottom: 7px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 16px; background: var(--paper2); border: 1px solid var(--line2); color: var(--ink); font-size: 14px; transition: var(--transition); }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 100px; right: 28px; z-index: 6000; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 16px 22px; background: var(--ink); border-left: 3px solid var(--red); color: var(--paper); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: toastIn 0.35s ease; min-width: 280px; }
.toast.success { border-left-color: #1f8a4c; }
.toast.error { border-left-color: var(--red-dark); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast-out { animation: toastOut 0.35s ease forwards; }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ===== STORE ===== */
.store-header { padding: 130px 0 44px; text-align: center; background: var(--paper2); border-bottom: 1px solid var(--line); }
.store-header h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.store-header p { color: var(--ink2); font-size: 16px; }

.store-tabs { display: flex; gap: 8px; justify-content: center; margin: 40px 0; flex-wrap: wrap; }
.store-tab { padding: 10px 24px; background: var(--surface); border: 1px solid var(--line2); color: var(--ink2); font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase; transition: var(--transition); cursor: pointer; }
.store-tab:hover { border-color: var(--red); color: var(--ink); }
.store-tab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-bottom: 60px; }
.product-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line2); transition: var(--transition); }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card .p-img { height: 200px; width: 100%; object-fit: cover; filter: grayscale(0.2); }
.product-card .p-body { padding: 24px; }
.product-card .p-body .p-cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--red); font-weight: 600; margin-bottom: 6px; }
.product-card .p-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-card .p-body .p-desc { font-size: 13px; color: var(--ink2); margin-bottom: 12px; line-height: 1.6; }
.product-card .p-body .p-price { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--red); margin-bottom: 16px; }
.product-card .p-body .p-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.product-card .p-body .p-options select, .product-card .p-body .p-options input { padding: 10px 14px; background: var(--paper2); border: 1px solid var(--line2); color: var(--ink); font-size: 13px; width: 100%; transition: var(--transition); }
.product-card .p-body .p-options select:focus, .product-card .p-body .p-options input:focus { border-color: var(--red); }

/* ===== CART ===== */
.cart-section { padding: 130px 0 60px; min-height: 80vh; }
.cart-empty { text-align: center; padding: 80px 20px; }
.cart-empty .icon { font-size: 64px; margin-bottom: 16px; }
.cart-empty h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.cart-empty p { color: var(--ink2); margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 768px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); transition: var(--transition); }
.cart-item:hover { box-shadow: var(--shadow-lg); }
.cart-item .ci-icon { font-size: 30px; flex-shrink: 0; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.cart-item .ci-info .ci-meta { font-size: 12px; color: var(--ink3); font-family: var(--font-mono); }
.cart-item .ci-info .ci-price { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--red); margin-top: 6px; }
.cart-item .ci-remove { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink3); transition: var(--transition); background: var(--paper2); border: 1px solid var(--line2); }
.cart-item .ci-remove:hover { color: var(--red-dark); border-color: var(--red-dark); }

.cart-summary { border: 1px solid var(--line2); background: var(--surface); padding: 28px; position: sticky; top: 100px; }
.cart-summary h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.cart-summary .cs-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: var(--ink2); }
.cart-summary .cs-row.cs-total { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line2); padding-top: 16px; margin-top: 12px; }
.cart-summary .cs-field { margin-bottom: 14px; }
.cart-summary .cs-field label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ink2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-summary .cs-field input, .cart-summary .cs-field textarea { width: 100%; padding: 11px 14px; background: var(--paper2); border: 1px solid var(--line2); color: var(--ink); font-size: 13px; transition: var(--transition); }
.cart-summary .cs-field textarea { min-height: 60px; resize: vertical; }
.cart-summary .cs-field input:focus, .cart-summary .cs-field textarea:focus { border-color: var(--red); }

/* ===== ADMIN ===== */
.admin-layout { min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { position: fixed; top: 0; width: 100%; z-index: 100; background: var(--ink); border-bottom: 1px solid var(--line2); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar .logo { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--paper); display: flex; align-items: center; gap: 8px; }
.admin-topbar .logo img { height: 28px; width: auto; }
.admin-topbar .logo span { color: var(--red); }
.admin-topbar-actions { display: flex; gap: 12px; align-items: center; }
.admin-topbar-actions a { color: #b7c0cd; font-family: var(--font-mono); font-size: 13px; transition: var(--transition); padding: 6px 14px; }
.admin-topbar-actions a:hover { color: var(--paper); }

.admin-body { display: flex; margin-top: 58px; min-height: calc(100vh - 58px); }
.admin-sidebar { width: 220px; background: var(--paper2); border-right: 1px solid var(--line); padding: 16px; flex-shrink: 0; }
.admin-sidebar .nav-item { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: var(--ink2); cursor: pointer; transition: var(--transition); margin-bottom: 2px; font-size: 14px; font-weight: 500; }
.admin-sidebar .nav-item:hover { background: var(--surface); color: var(--ink); }
.admin-sidebar .nav-item.active { background: var(--ink); color: var(--paper); }

.admin-content { flex: 1; padding: 28px; overflow-x: hidden; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.admin-header p { color: var(--ink2); font-size: 14px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 24px; transition: var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stat-card .s-icon { font-size: 24px; margin-bottom: 10px; }
.stat-card .s-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.stat-card .s-label { font-size: 12px; color: var(--ink3); margin-top: 4px; font-family: var(--font-mono); text-transform: uppercase; }

.table-card { background: var(--surface); border: 1px solid var(--line2); overflow: hidden; margin-bottom: 24px; }
.table-card .tc-header { padding: 18px 20px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; font-size: 13px; }
th { background: var(--paper2); font-weight: 600; color: var(--ink3); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.8px; font-family: var(--font-mono); white-space: nowrap; }
td { border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--paper2); }

.status { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 600; white-space: nowrap; font-family: var(--font-mono); text-transform: uppercase; }
.status-pendiente, .status-recibido { background: rgba(201,162,39,0.15); color: var(--gold); }
.status-produccion, .status-desarrollo { background: rgba(26,77,255,0.12); color: var(--red); }
.status-listo, .status-revision { background: rgba(150,90,200,0.12); color: #9b59b6; }
.status-entregado, .status-completado { background: rgba(31,138,76,0.12); color: #1f8a4c; }
.status-cotizado { background: rgba(201,162,39,0.15); color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .admin-sidebar { width: 56px; }
  .admin-sidebar .nav-item span:last-child { display: none; }
  .admin-sidebar .nav-item { justify-content: center; padding: 12px; font-size: 20px; }
  .admin-content { padding: 20px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: var(--surface); backdrop-filter: blur(20px); padding: 16px 24px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  [data-theme="dark"] .nav-links.open { background: var(--paper); }
  .hamburger { display: flex; }
  .footer-inner { flex-direction: column; text-align: center; }
  .admin-body { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; flex-direction: row; overflow-x: auto; padding: 8px; border-right: none; border-bottom: 1px solid var(--line); }
  .admin-sidebar .nav-item span:last-child { display: inline; font-size: 12px; }
  .admin-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); }
::-webkit-scrollbar-thumb:hover { background: var(--red); }