- Split single-page into 3 pages: - index.php: product catalog with VM size cards - create.php: order form (name, domain, description) - requests.php: request history with pagination - Rewrite NetBox integration to create Virtual Machines (/virtualization/virtual-machines/) instead of DCIM devices - Add netbox_integration/netbox_api.php: NetBoxClient with createVirtualMachine(), findCluster(), findTag(), getList() - Generate new sleek product-card images (420x280) with aligned spec boxes (vcpus/ram/disk) - Add webshop CSS: product cards, nav links, hero section, order layout, responsive grid - Update redirects: send.php -> requests.php, cancel.php -> requests.php - Update E2E test for new page structure - Add .gitignore, deploy-local.sh, setup_database.sql to repo
1070 lines
20 KiB
CSS
Executable File
1070 lines
20 KiB
CSS
Executable File
:root {
|
|
--bg: #f8f9fc;
|
|
--panel: #ffffff;
|
|
--panel-hover: #fafbfd;
|
|
--text: #0f1320;
|
|
--text-secondary: #6b7280;
|
|
--text-tertiary: #9ca3af;
|
|
--border: #e5e7eb;
|
|
--border-strong: #d1d5db;
|
|
--accent: #3b82f6;
|
|
--accent-hover: #2563eb;
|
|
--accent-light: rgba(59, 130, 246, 0.08);
|
|
--accent-glow: rgba(59, 130, 246, 0.25);
|
|
--success-bg: #ecfdf5;
|
|
--success-border: #a7f3d0;
|
|
--success-text: #059669;
|
|
--warning-bg: #fffbeb;
|
|
--warning-border: #fde68a;
|
|
--warning-text: #d97706;
|
|
--error-bg: #fef2f2;
|
|
--error-border: #fecaca;
|
|
--error-text: #dc2626;
|
|
--info-bg: #eff6ff;
|
|
--info-border: #bfdbfe;
|
|
--info-text: #2563eb;
|
|
--radius: 12px;
|
|
--radius-sm: 8px;
|
|
--radius-xs: 6px;
|
|
--shadow-sm: 0 1px 3px rgba(15, 19, 32, 0.06), 0 1px 2px rgba(15, 19, 32, 0.04);
|
|
--shadow: 0 4px 12px rgba(15, 19, 32, 0.08), 0 2px 4px rgba(15, 19, 32, 0.04);
|
|
--shadow-lg: 0 12px 28px rgba(15, 19, 32, 0.12), 0 4px 8px rgba(15, 19, 32, 0.06);
|
|
--transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
/* Dark mode support */
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #0f1117;
|
|
--panel: #1a1d28;
|
|
--panel-hover: #1e2130;
|
|
--text: #f3f4f6;
|
|
--text-secondary: #9ca3af;
|
|
--text-tertiary: #6b7280;
|
|
--border: #2d3140;
|
|
--border-strong: #3d4255;
|
|
--accent: #60a5fa;
|
|
--accent-hover: #93bbfd;
|
|
--accent-light: rgba(96, 165, 250, 0.1);
|
|
--accent-glow: rgba(96, 165, 250, 0.2);
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
--shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
|
font-size: 15px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
transition: background var(--transition), color var(--transition);
|
|
}
|
|
|
|
/* --- Shell --- */
|
|
.shell {
|
|
width: min(1200px, calc(100% - 40px));
|
|
margin: 0 auto;
|
|
padding: 40px 0 60px;
|
|
}
|
|
|
|
.auth-shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
place-items: center;
|
|
padding: 24px;
|
|
background: var(--bg);
|
|
}
|
|
|
|
/* --- Topbar --- */
|
|
.topbar {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 4px;
|
|
color: var(--accent);
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.2;
|
|
color: var(--text);
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.1rem;
|
|
font-weight: 600;
|
|
letter-spacing: -0.01em;
|
|
margin-bottom: 16px;
|
|
color: var(--text);
|
|
}
|
|
|
|
/* --- Panels --- */
|
|
.layout {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
|
|
.panel {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 28px;
|
|
box-shadow: var(--shadow);
|
|
transition: box-shadow var(--transition), border-color var(--transition);
|
|
}
|
|
|
|
.panel:hover {
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.auth-panel {
|
|
width: min(440px, 100%);
|
|
text-align: center;
|
|
}
|
|
|
|
.auth-panel .eyebrow {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.auth-panel h1 {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.auth-panel .auth-subtitle {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
/* --- Form Groups --- */
|
|
.form-group {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.form-group > label,
|
|
.form-group > .field-label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: var(--text);
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.field-label-sub {
|
|
display: block;
|
|
margin-top: 2px;
|
|
margin-bottom: 10px;
|
|
color: var(--text-secondary);
|
|
font-weight: 400;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* --- Inputs --- */
|
|
input[type="text"],
|
|
input[type="password"],
|
|
textarea {
|
|
width: 100%;
|
|
min-height: 44px;
|
|
padding: 10px 14px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-xs);
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
color: var(--text);
|
|
background: var(--panel);
|
|
transition: border-color var(--transition), box-shadow var(--transition);
|
|
}
|
|
|
|
input[type="text"]::placeholder,
|
|
input[type="password"]::placeholder,
|
|
textarea::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
input[type="text"]:focus,
|
|
input[type="password"]:focus,
|
|
textarea:focus {
|
|
border-color: var(--accent);
|
|
outline: none;
|
|
box-shadow: 0 0 0 3px var(--accent-light);
|
|
}
|
|
|
|
textarea {
|
|
min-height: 80px;
|
|
resize: vertical;
|
|
}
|
|
|
|
/* Input validation states */
|
|
input.invalid,
|
|
textarea.invalid {
|
|
border-color: var(--error-text);
|
|
box-shadow: 0 0 0 3px var(--error-bg);
|
|
}
|
|
|
|
input.invalid:focus,
|
|
textarea.invalid:focus {
|
|
box-shadow: 0 0 0 3px var(--error-border);
|
|
}
|
|
|
|
/* Inline error hint */
|
|
.field-error {
|
|
margin-top: 6px;
|
|
color: var(--error-text);
|
|
font-size: 0.8rem;
|
|
font-weight: 500;
|
|
display: none;
|
|
}
|
|
|
|
.field-error.visible {
|
|
display: block;
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
/* Password toggle */
|
|
.password-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.password-wrapper input[type="password"],
|
|
.password-wrapper input[type="text"] {
|
|
padding-right: 44px;
|
|
}
|
|
|
|
.password-toggle {
|
|
position: absolute;
|
|
right: 10px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
width: auto;
|
|
min-height: auto;
|
|
font-size: 1rem;
|
|
line-height: 1;
|
|
border-radius: 4px;
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.password-toggle:hover {
|
|
color: var(--text);
|
|
}
|
|
|
|
/* --- Choice Grids --- */
|
|
.choice-grid,
|
|
.size-grid {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.choice-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.size-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
/* Choice cards */
|
|
.choice,
|
|
.size-option {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-height: 56px;
|
|
margin: 0;
|
|
padding: 14px;
|
|
border: 1.5px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
cursor: pointer;
|
|
background: var(--panel);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.choice:hover,
|
|
.size-option:hover {
|
|
border-color: var(--accent);
|
|
background: var(--accent-light);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.choice input,
|
|
.size-option input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Checked state */
|
|
.choice input:checked + .choice-check,
|
|
.size-option input:checked {
|
|
/* handled below */
|
|
}
|
|
|
|
.choice:has(input:checked),
|
|
.size-option:has(input:checked) {
|
|
border-color: var(--accent);
|
|
background: var(--accent-light);
|
|
box-shadow: 0 0 0 2px var(--accent-glow);
|
|
}
|
|
|
|
/* Check mark indicator */
|
|
.choice::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 10px;
|
|
right: 10px;
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid var(--border-strong);
|
|
border-radius: 50%;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.choice:has(input:checked)::before {
|
|
border-color: var(--accent);
|
|
background: var(--accent);
|
|
box-shadow: inset 0 0 0 3px var(--panel);
|
|
}
|
|
|
|
.choice span {
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* --- Size Options --- */
|
|
.size-option {
|
|
text-align: center;
|
|
padding: 16px 12px;
|
|
min-height: auto;
|
|
}
|
|
|
|
.size-option .size-title {
|
|
font-weight: 700;
|
|
font-size: 0.95rem;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.size-option span:not(.size-title) {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Size images */
|
|
.size-img {
|
|
display: block;
|
|
width: 100%;
|
|
max-width: 130px;
|
|
height: auto;
|
|
margin: 0 auto 8px;
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--shadow-sm);
|
|
border: 2px solid transparent;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.size-option:hover .size-img {
|
|
transform: scale(1.04);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.size-option:has(input:checked) .size-img {
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 2px var(--accent-glow);
|
|
}
|
|
|
|
/* --- Summary Bar --- */
|
|
.summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
margin: 24px 0;
|
|
padding: 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.summary.active {
|
|
border-color: var(--accent);
|
|
background: var(--accent-light);
|
|
}
|
|
|
|
.summary div {
|
|
text-align: center;
|
|
padding: 8px 4px;
|
|
}
|
|
|
|
.summary span {
|
|
display: block;
|
|
color: var(--text-secondary);
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.summary strong {
|
|
display: block;
|
|
margin-top: 4px;
|
|
font-size: 1.1rem;
|
|
color: var(--text);
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.summary.active strong {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* --- Buttons --- */
|
|
button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-height: 46px;
|
|
width: 100%;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
background: var(--accent);
|
|
color: #ffffff;
|
|
font: inherit;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px var(--accent-glow);
|
|
}
|
|
|
|
button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.link-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 38px;
|
|
padding: 8px 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-xs);
|
|
background: var(--panel);
|
|
color: var(--text);
|
|
font: inherit;
|
|
font-size: 0.85rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.link-button:hover {
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
background: var(--accent-light);
|
|
}
|
|
|
|
/* --- Messages --- */
|
|
.success-message,
|
|
.error-message {
|
|
padding: 14px 16px;
|
|
border-radius: var(--radius-sm);
|
|
margin-bottom: 20px;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
animation: slideDown 0.3s ease;
|
|
}
|
|
|
|
.success-message {
|
|
background: var(--success-bg);
|
|
border: 1px solid var(--success-border);
|
|
color: var(--success-text);
|
|
}
|
|
|
|
.error-message {
|
|
background: var(--error-bg);
|
|
border: 1px solid var(--error-border);
|
|
color: var(--error-text);
|
|
}
|
|
|
|
.info-message {
|
|
background: var(--info-bg);
|
|
border: 1px solid var(--info-border);
|
|
color: var(--info-text);
|
|
}
|
|
|
|
.warning-message {
|
|
background: var(--warning-bg);
|
|
border: 1px solid var(--warning-border);
|
|
color: var(--warning-text);
|
|
}
|
|
|
|
/* --- Status Badges --- */
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 3px 10px;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.badge-queued {
|
|
background: var(--warning-bg);
|
|
color: var(--warning-text);
|
|
border: 1px solid var(--warning-border);
|
|
}
|
|
|
|
.badge-deployed_to_netbox,
|
|
.badge-deployed {
|
|
background: var(--success-bg);
|
|
color: var(--success-text);
|
|
border: 1px solid var(--success-border);
|
|
}
|
|
|
|
.badge-pending {
|
|
background: var(--info-bg);
|
|
color: var(--info-text);
|
|
border: 1px solid var(--info-border);
|
|
}
|
|
|
|
.badge-error,
|
|
.badge-failed {
|
|
background: var(--error-bg);
|
|
color: var(--error-text);
|
|
border: 1px solid var(--error-border);
|
|
}
|
|
|
|
.badge-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
.badge-deployed_to_netbox .badge-dot,
|
|
.badge-deployed .badge-dot {
|
|
animation: none;
|
|
}
|
|
|
|
/* --- Table --- */
|
|
.muted {
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.table-wrap {
|
|
overflow-x: auto;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
th {
|
|
padding: 10px 12px;
|
|
border-bottom: 2px solid var(--border);
|
|
text-align: left;
|
|
color: var(--text-secondary);
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.06em;
|
|
text-transform: uppercase;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
vertical-align: middle;
|
|
color: var(--text);
|
|
}
|
|
|
|
tbody tr {
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: var(--accent-light);
|
|
}
|
|
|
|
tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.td-timestamp {
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.empty-state {
|
|
padding: 32px 0;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.empty-state-icon {
|
|
font-size: 2.5rem;
|
|
margin-bottom: 8px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
/* --- Confirm Dialog --- */
|
|
.confirm-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 1000;
|
|
place-items: center;
|
|
animation: fadeIn 0.15s ease;
|
|
}
|
|
|
|
.confirm-overlay.visible {
|
|
display: grid;
|
|
}
|
|
|
|
.confirm-box {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 28px;
|
|
max-width: 420px;
|
|
width: calc(100% - 32px);
|
|
box-shadow: var(--shadow-lg);
|
|
animation: scaleIn 0.2s ease;
|
|
}
|
|
|
|
.confirm-box h2 {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.confirm-box p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.confirm-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.confirm-actions .link-button {
|
|
width: auto;
|
|
}
|
|
|
|
.confirm-actions button {
|
|
width: auto;
|
|
min-width: 100px;
|
|
}
|
|
|
|
/* --- Animations --- */
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from { opacity: 0; transform: translateY(-8px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
@keyframes scaleIn {
|
|
from { opacity: 0; transform: scale(0.95); }
|
|
to { opacity: 1; transform: scale(1); }
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.4; }
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Spinner for button loading */
|
|
.spinner {
|
|
width: 16px;
|
|
height: 16px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-top-color: #fff;
|
|
border-radius: 50%;
|
|
animation: spin 0.6s linear infinite;
|
|
}
|
|
|
|
/* --- Responsive --- */
|
|
@media (max-width: 900px) {
|
|
.layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.shell {
|
|
padding: 20px 0 40px;
|
|
}
|
|
|
|
.panel {
|
|
padding: 20px;
|
|
}
|
|
|
|
.choice-grid,
|
|
.size-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.summary {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.topbar {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.confirm-actions {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.confirm-actions .link-button,
|
|
.confirm-actions button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* --- Shop Page --- */
|
|
.shop-page {
|
|
width: min(1200px, calc(100% - 40px));
|
|
margin: 0 auto;
|
|
padding: 40px 0 60px;
|
|
}
|
|
|
|
/* --- Nav Links --- */
|
|
.nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.nav-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 8px 16px;
|
|
border: 1px solid transparent;
|
|
border-radius: var(--radius-xs);
|
|
color: var(--text-secondary);
|
|
font: inherit;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.nav-link:hover {
|
|
color: var(--text);
|
|
background: var(--accent-light);
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: var(--accent);
|
|
border-color: var(--border);
|
|
background: var(--accent-light);
|
|
}
|
|
|
|
/* --- Hero Section --- */
|
|
.hero {
|
|
text-align: center;
|
|
padding: 32px 0 24px;
|
|
}
|
|
|
|
.hero h2 {
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.02em;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.hero-sub {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* --- Product Grid --- */
|
|
.product-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 24px;
|
|
}
|
|
|
|
/* --- Product Card --- */
|
|
.product-card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow);
|
|
transition: all var(--transition-slow);
|
|
}
|
|
|
|
.product-card:hover {
|
|
box-shadow: var(--shadow-lg);
|
|
transform: translateY(-2px);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.product-media {
|
|
padding: 24px 24px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.product-media img {
|
|
max-width: 100%;
|
|
width: 320px;
|
|
height: auto;
|
|
border-radius: var(--radius-sm);
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.product-card:hover .product-media img {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
.product-body {
|
|
padding: 20px 24px 24px;
|
|
text-align: center;
|
|
}
|
|
|
|
.product-body h3 {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.product-specs {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 20px;
|
|
text-align: left;
|
|
display: inline-block;
|
|
}
|
|
|
|
.product-specs li {
|
|
padding: 6px 0;
|
|
font-size: 0.875rem;
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.product-specs li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.product-specs strong {
|
|
color: var(--text);
|
|
}
|
|
|
|
/* --- Buttons --- */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 12px 24px;
|
|
border-radius: var(--radius-sm);
|
|
font: inherit;
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
color: #ffffff;
|
|
width: 100%;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px var(--accent-glow);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 8px 16px;
|
|
font-size: 0.8rem;
|
|
width: auto;
|
|
}
|
|
|
|
/* --- Breadcrumb --- */
|
|
.breadcrumb {
|
|
display: inline-block;
|
|
margin: 0 0 20px;
|
|
color: var(--text-secondary);
|
|
font-size: 0.85rem;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.breadcrumb:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* --- Order Layout --- */
|
|
.order-layout {
|
|
display: grid;
|
|
grid-template-columns: 340px 1fr;
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
|
|
.order-preview {
|
|
text-align: center;
|
|
}
|
|
|
|
.order-preview-img {
|
|
width: 100%;
|
|
max-width: 380px;
|
|
height: auto;
|
|
margin: 0 auto 16px;
|
|
display: block;
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.order-preview h2 {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.order-specs {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.order-specs li {
|
|
padding: 10px 14px;
|
|
margin-bottom: 6px;
|
|
font-size: 0.875rem;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
border-radius: var(--radius-xs);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.order-specs li:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* --- Order Form --- */
|
|
.order-form h2 {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* --- Requests --- */
|
|
.requests-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.requests-panel .success-message {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
/* --- Cancel Button --- */
|
|
.cancel-btn {
|
|
padding: 6px 12px;
|
|
min-height: 32px;
|
|
width: auto;
|
|
font-size: 0.78rem;
|
|
font-weight: 500;
|
|
border: 1px solid var(--error-border);
|
|
background: var(--error-bg);
|
|
color: var(--error-text);
|
|
border-radius: var(--radius-xs);
|
|
}
|
|
|
|
.cancel-btn:hover {
|
|
background: var(--error-border);
|
|
box-shadow: none;
|
|
transform: none;
|
|
}
|
|
|
|
/* --- Print --- */
|
|
@media print {
|
|
body { background: #fff; }
|
|
.panel { box-shadow: none; border: 1px solid #ccc; }
|
|
button, .link-button { display: none; }
|
|
}
|