/* ─── Vntro Stylesheet ─── */ /* ======= Theme Variables =============================================== */ :root { /* Palette: light */ --bg: #f6f7f8; --surface: #ffffff; --surface-2: #e9ecef; --text: #222; --muted: #555; --primary: #115791; --primary-2: #0051cb; --accent: #e28418; --shadow: 0 2px 8px rgb(0 0 0 / 0.08); /* Calc helpers */ --radius: 0.75rem; --space: 1rem; --max: 1280px; /* Shop logic */ --tax: 0.08; /* 8% */ --ship-fee: 5; /* flat USD */ } /* Palette: dark-theme override */ html[data-theme='dark'] { --bg: #0e1521; --surface: #1b2534; --surface-2: #263246; --text: #e4e7ec; --muted: #9babc4; --shadow: 0 2px 8px rgb(0 0 0 / 0.9); } /* ======= Reset / Base ================================================== */ *, *::before, *::after { box-sizing: border-box; } html { font-family: system-ui, sans-serif; background: var(--bg); color: var(--text); scroll-behavior: smooth; line-height: 1.6; transition: background 0.25s, color 0.25s; } body { margin: 0; } img { max-width: 100%; display: block; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .container { max-width: var(--max); margin-inline: auto; padding-inline: var(--space); } a { color: inherit; text-decoration: none; } .section-title { text-align: center; font-size: 1.8rem; margin-block: 1.5rem; } /* = Header = */ .site-header { background: var(--surface); box-shadow: var(--shadow); } .flex-between { display: flex; align-items: center; gap: 2rem; padding: var(--space); } .logo { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.5px; } .logo .accent { color: var(--accent); } .logo .dotnet { color: var(--primary); } .nav-list { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; } .nav-list a { position: relative; font-weight: 500; } .nav-list a::after { content: ''; position: absolute; inset-inline: 0; bottom: -0.2em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.2s; } .nav-list a:hover::after { transform: scaleX(1); } .mode-switch { margin-left: auto; } .mode-switch input { width: 1.2rem; height: 1.2rem; } /* = Hero = */ .hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #fff; padding-block: 4rem; } .hero-grid { text-align: center; max-width: 48rem; } .hero h2 { font-size: clamp(1.8rem, 3vw + 1rem, 3rem); margin: 0 0 0.75rem; } .typewriter { color: var(--accent); border-right: 2px solid currentColor; padding-inline: 2px; animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { border-color: transparent; } } .btn-cta { display: inline-block; margin-top: 1.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius); background: #fff; color: var(--primary); font-weight: 600; } /* = Shop / Products = */ .shop { padding-block: 3rem; } .product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; margin-block: 1.5rem; } .product { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; } .product:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgb(0 0 0 / 0.12); } .product h3 { margin: 0.75rem 0 0.5rem; } .product p { color: var(--muted); flex-grow: 1; } .product button { margin-top: 1rem; padding: 0.5rem; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; } .product button.remove { background: #d92d20; } /* = Cart = */ .cart { margin-top: 3rem; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; } .cart h3 { margin-top: 0; } #cart-items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; font-size: 0.95rem; } #cart-items li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--surface-2); padding-bottom: 0.25rem; } .totals div { display: flex; justify-content: space-between; margin-block: 0.25rem; } .grand dt, .grand dd { font-weight: 700; } #checkout { width: 100%; margin-top: 1rem; padding: 0.75rem; border: none; border-radius: var(--radius); background: var(--accent); color: #222; font-weight: 600; cursor: pointer; } /* = Contact Form = */ .contact { padding-block: 3rem; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; } .field { margin-block: 1rem; } label { font-weight: 500; } input, textarea { width: 100%; padding: 0.6rem; border: 1px solid var(--surface-2); border-radius: var(--radius); background: var(--surface); color: inherit; } textarea { min-height: 7rem; resize: vertical; } .error-msg { color: #e54242; font-size: 0.875rem; margin-top: 0.25rem; display: block; } input.error, textarea.error { border-color: #e54242; } button[type=submit] { padding: 0.75rem 1.5rem; border: none; border-radius: var(--radius); background: var(--primary); color: #fff; font-weight: 600; cursor: pointer; } /* = Footer = */ .site-footer { background: var(--surface); margin-top: 3rem; padding-block: 1rem; text-align: center; font-size: 0.875rem; } /* = Fade-in Util = */ .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; } .fade-in.in-view { opacity: 1; transform: translateY(0); } /* = Media Queries = */ @media (max-width: 48rem) { .flex-between { flex-wrap: wrap; gap: 1rem; } .mode-switch { margin-inline-start: 0; } .hero { padding-block: 5rem 4rem; } }