Add cart exports and sample request workflow
This commit is contained in:
137
app/globals.css
137
app/globals.css
@@ -49,6 +49,10 @@ a { color: inherit; text-decoration: none; }
|
||||
.site-header nav { display: flex; gap: 34px; font-size: 14px; color: #536078; }
|
||||
.site-header nav a:hover { color: var(--blue); }
|
||||
.header-actions { display: flex; align-items: center; gap: 8px; }
|
||||
.cart-header-button { position: relative; min-height: 38px; padding: 7px 12px 7px 9px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid #dbe4f1; border-radius: 10px; color: #536078; background: white; cursor: pointer; font-size: 10px; font-weight: 750; }
|
||||
.cart-header-button:hover { border-color: #a9c4f2; color: var(--blue); background: #f7faff; }
|
||||
.cart-header-button > span { font-size: 15px; line-height: 1; }
|
||||
.cart-header-button b { min-width: 17px; height: 17px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 999px; color: white; background: var(--blue); font-size: 9px; }
|
||||
.header-cta {
|
||||
border: 0; border-radius: 10px; padding: 11px 17px;
|
||||
background: var(--ink); color: white; cursor: pointer; font-weight: 650;
|
||||
@@ -124,8 +128,8 @@ a { color: inherit; text-decoration: none; }
|
||||
.step-kicker { margin: 0 0 7px; color: var(--blue); font-size: 11px; letter-spacing: .08em; font-weight: 800; text-transform: uppercase; }
|
||||
.question-step h2, .result-heading h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
|
||||
.step-help { margin: 7px 0 19px; color: #7c8799; font-size: 12px; }
|
||||
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
|
||||
.choice-card { position: relative; min-height: 76px; padding: 14px 35px 14px 15px; display: grid; gap: 5px; text-align: left; border: 1px solid #dfe5ee; border-radius: 11px; background: white; cursor: pointer; }
|
||||
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
|
||||
.choice-card { position: relative; min-height: 68px; padding: 11px 30px 11px 13px; display: grid; align-content: center; gap: 3px; text-align: left; border: 1px solid #dfe5ee; border-radius: 11px; background: white; cursor: pointer; }
|
||||
.choice-card:hover { border-color: #a8c3f4; background: #fbfdff; }
|
||||
.choice-card.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
|
||||
.choice-card b { font-size: 13px; }
|
||||
@@ -375,12 +379,102 @@ select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shado
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.catalog-card-body > .product-save-button { margin-top: 5px; padding: 8px 10px; border: 1px solid #d8e3f3; border-radius: 8px; color: #185ee8; background: #f7faff; }
|
||||
.product-save-button { width: 100%; min-height: 33px; margin-top: 10px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid #d8e3f3; border-radius: 8px; color: #185ee8; background: #f7faff; cursor: pointer; font-size: 10px; font-weight: 750; }
|
||||
.product-save-button:hover { border-color: #a9c4f2; color: #104ec6; background: #eef5ff; }
|
||||
.product-save-button span { font-size: 13px; line-height: 1; }
|
||||
.product-save-button.is-saving { visibility: hidden; }
|
||||
.product-save-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); max-width: min(90vw, 360px); padding: 10px 15px; border: 1px solid #cbdaf2; border-radius: 999px; color: #174baf; background: rgba(248,251,255,.96); box-shadow: 0 12px 32px rgba(24,64,126,.18); font-size: 11px; font-weight: 750; text-align: center; backdrop-filter: blur(10px); }
|
||||
.add-cart-button { width: 100%; min-height: 33px; margin-top: 10px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: space-between; border: 1px solid #c9dafa; border-radius: 8px; color: #185ee8; background: #f4f8ff; cursor: pointer; font-size: 10px; font-weight: 750; }
|
||||
.add-cart-button:hover { border-color: #8eb2f2; color: #104ec6; background: #eaf2ff; }
|
||||
.add-cart-button span { font-size: 14px; line-height: 1; }
|
||||
.catalog-card-body > .add-cart-button { margin-top: 5px; }
|
||||
.precision-gear-card-body .add-cart-button { margin-top: 10px; }
|
||||
.recommendation-content .add-cart-button { margin-top: 10px; }
|
||||
.cart-toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translateX(-50%); max-width: min(90vw, 380px); padding: 10px 15px; border: 1px solid #cbdaf2; border-radius: 999px; color: #174baf; background: rgba(248,251,255,.96); box-shadow: 0 12px 32px rgba(24,64,126,.18); font-size: 11px; font-weight: 750; text-align: center; backdrop-filter: blur(10px); }
|
||||
.cart-drawer-backdrop { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: flex-end; background: rgba(7,14,29,.45); backdrop-filter: blur(4px); }
|
||||
.cart-drawer { width: min(430px, 100%); height: 100%; padding: 28px 24px 22px; display: flex; flex-direction: column; overflow: hidden; background: white; box-shadow: -18px 0 50px rgba(20,43,82,.2); }
|
||||
.cart-drawer-header { display: flex; align-items: flex-start; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #e5eaf1; }
|
||||
.cart-drawer-header .step-kicker { margin-bottom: 4px; }
|
||||
.cart-drawer-header h2 { margin: 0; color: var(--ink); font-size: 24px; letter-spacing: -.03em; }
|
||||
.cart-drawer-header h2 span { color: var(--blue); font-size: 16px; }
|
||||
.cart-close-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #627086; background: #eef2f7; cursor: pointer; font-size: 20px; }
|
||||
.cart-list { flex: 1; display: grid; align-content: start; gap: 10px; padding: 16px 2px; overflow-y: auto; }
|
||||
.cart-item { min-width: 0; padding: 10px; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 11px; border: 1px solid #dce5f2; border-radius: 11px; background: #f9fbfe; }
|
||||
.cart-item-image { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: #eef3fa; }
|
||||
.cart-item-image img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
|
||||
.cart-item-image span { color: #7ea1dd; font-weight: 800; }
|
||||
.cart-item-copy { min-width: 0; display: grid; align-content: start; gap: 3px; }
|
||||
.cart-item-copy small { color: var(--blue); font-size: 8px; font-weight: 750; }
|
||||
.cart-item-copy strong { overflow: hidden; color: var(--ink); font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.cart-item-copy code { overflow: hidden; color: #8995a6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.cart-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
|
||||
.quantity-control { display: inline-flex; align-items: center; border: 1px solid #d7e1ee; border-radius: 7px; overflow: hidden; background: white; }
|
||||
.quantity-control button { width: 25px; height: 24px; padding: 0; border: 0; color: var(--blue); background: white; cursor: pointer; font-size: 15px; }
|
||||
.quantity-control span { min-width: 24px; color: #52617a; font-size: 10px; text-align: center; }
|
||||
.cart-remove-button { padding: 3px 0; border: 0; color: #a27b7b; background: transparent; cursor: pointer; font-size: 9px; }
|
||||
.cart-remove-button:hover { color: #d34f4f; }
|
||||
.cart-drawer-footer { padding-top: 14px; border-top: 1px solid #e5eaf1; }
|
||||
.cart-drawer-footer p { margin: 0 0 12px; color: #7f8b9e; font-size: 9px; line-height: 1.45; }
|
||||
.cart-drawer-footer > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
|
||||
.cart-drawer-footer .outline-button, .cart-drawer-footer .panel-primary { width: 100%; min-width: 0; min-height: 39px; padding: 0 6px; flex: none; font-size: 10px; line-height: 1; white-space: nowrap; }
|
||||
.cart-drawer-footer .panel-primary span { margin-left: 5px; font-size: 9px; }
|
||||
.cart-drawer-footer .cart-sample-button { grid-column: 1 / -1; color: white; background: #185ee8; }
|
||||
.cart-drawer-footer .cart-sample-button:hover { color: white; background: #124fc9; }
|
||||
.cart-drawer-footer .cart-sample-button:disabled, .cart-empty-actions .cart-sample-button:disabled { color: #aeb9c9; border-color: #dfe5ee; background: #f6f8fb; box-shadow: none; cursor: not-allowed; }
|
||||
.cart-export-button { color: var(--blue); border-color: #b9cdf1; }
|
||||
.cart-export-button:hover { color: #124ac0; border-color: var(--blue); background: #f4f8ff; }
|
||||
.cart-export-button:disabled { color: #aeb9c9; border-color: #dfe5ee; background: #f6f8fb; cursor: not-allowed; }
|
||||
.cart-pdf-button { color: #a85d2a; border-color: #edc9ac; }
|
||||
.cart-pdf-button:hover { color: #874317; border-color: #d99565; background: #fff8f2; }
|
||||
.cart-pdf-button:disabled { color: #bdb4ad; border-color: #e9e2dc; background: #faf8f6; cursor: not-allowed; }
|
||||
.cart-empty { margin: auto 0; padding: 30px 12px; display: grid; justify-items: center; gap: 9px; text-align: center; }
|
||||
.cart-empty > span { font-size: 36px; }
|
||||
.cart-empty strong { color: var(--ink); font-size: 16px; }
|
||||
.cart-empty p { max-width: 270px; margin: 0 0 8px; color: #7f8b9e; font-size: 10px; line-height: 1.6; }
|
||||
.cart-empty-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 7px; }
|
||||
.cart-empty-actions .panel-primary, .cart-empty-actions .cart-export-button { min-height: 42px; }
|
||||
.cart-empty-actions .cart-pdf-button { min-height: 42px; }
|
||||
.cart-empty-actions .outline-button, .cart-empty-actions .panel-primary { min-width: 0; padding: 0 6px; font-size: 10px; line-height: 1; white-space: nowrap; }
|
||||
.cart-empty-actions .cart-sample-button { grid-column: 1 / -1; }
|
||||
.cart-sample-scroll { flex: 1; overflow-y: auto; padding: 16px 2px; }
|
||||
.cart-sample-form { margin-top: 0; }
|
||||
.cart-sample-products { display: grid; gap: 6px; margin: 10px 0 14px; padding: 9px; border: 1px solid #dbe5f2; border-radius: 9px; background: #f8faff; }
|
||||
.cart-sample-products > div { min-width: 0; display: grid; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid #e8eef6; }
|
||||
.cart-sample-products > div:last-child { padding-bottom: 0; border-bottom: 0; }
|
||||
.cart-sample-products span { overflow: hidden; color: var(--ink); font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.cart-sample-products code { overflow: hidden; color: #8995a6; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.cart-sample-form-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 10px; }
|
||||
.cart-sample-form-actions .outline-button, .cart-sample-form-actions .panel-primary { width: 100%; min-width: 0; min-height: 39px; padding: 0 8px; font-size: 10px; white-space: nowrap; }
|
||||
.cart-sample-success { margin-top: 18px; }
|
||||
.cart-print-sheet { display: none; }
|
||||
|
||||
.cart-print-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 2px solid #185ee8; }
|
||||
.cart-print-header p { margin: 0 0 7px; color: #185ee8; font-size: 10pt; font-weight: 800; letter-spacing: .08em; }
|
||||
.cart-print-header h1 { margin: 0 0 6px; color: #17233a; font-size: 24pt; line-height: 1.1; }
|
||||
.cart-print-header span, .cart-print-header strong { color: #71809a; font-size: 9pt; }
|
||||
.cart-print-header strong { padding-top: 25px; font-weight: 600; }
|
||||
.cart-print-summary { width: 100%; margin-top: 18px; border-collapse: collapse; table-layout: fixed; color: #17233a; font-size: 8.5pt; }
|
||||
.cart-print-summary th, .cart-print-summary td { padding: 6px; border: 1px solid #dbe4ef; vertical-align: middle; overflow-wrap: anywhere; }
|
||||
.cart-print-summary th { color: white; background: #185ee8; font-weight: 800; text-align: center; }
|
||||
.cart-print-summary th:nth-child(1) { width: 12%; }
|
||||
.cart-print-summary th:nth-child(2) { width: 19%; }
|
||||
.cart-print-summary th:nth-child(3) { width: 14%; }
|
||||
.cart-print-summary th:nth-child(4) { width: 12%; }
|
||||
.cart-print-summary th:nth-child(5) { width: 7%; }
|
||||
.cart-print-summary th:nth-child(6) { width: 24%; }
|
||||
.cart-print-summary th:nth-child(7) { width: 12%; }
|
||||
.cart-print-summary td:nth-child(5) { text-align: center; font-weight: 800; }
|
||||
.cart-print-image-cell { height: 66px; text-align: center; }
|
||||
.cart-print-image-cell img { width: 78px; height: 54px; object-fit: contain; }
|
||||
.cart-print-preline { white-space: pre-line; }
|
||||
.cart-print-sheet > h2 { margin: 25px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #cbd8ea; color: #185ee8; font-size: 15pt; }
|
||||
.cart-print-details { display: grid; gap: 12px; }
|
||||
.cart-print-product { break-inside: avoid; page-break-inside: avoid; border: 1px solid #dbe4ef; }
|
||||
.cart-print-product-heading { padding: 9px 11px; background: #f3f7fd; }
|
||||
.cart-print-product-heading h3 { margin: 0 0 4px; color: #17233a; font-size: 11pt; }
|
||||
.cart-print-product-heading span { color: #71809a; font-size: 8pt; }
|
||||
.cart-print-spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.cart-print-spec-grid div { min-height: 32px; padding: 6px 10px; border-top: 1px solid #e3eaf3; }
|
||||
.cart-print-spec-grid div:nth-child(4n + 1), .cart-print-spec-grid div:nth-child(4n + 2), .cart-print-spec-grid div:nth-child(4n + 3) { border-right: 1px solid #e3eaf3; }
|
||||
.cart-print-spec-grid span, .cart-print-spec-grid strong { display: block; overflow-wrap: anywhere; }
|
||||
.cart-print-spec-grid span { margin-bottom: 3px; color: #8492a7; font-size: 7.5pt; }
|
||||
.cart-print-spec-grid strong { color: #17233a; font-size: 8.5pt; line-height: 1.35; }
|
||||
.cart-print-footer { margin: 20px 0 0; padding-top: 10px; border-top: 1px solid #dbe4ef; color: #8492a7; font-size: 7.5pt; }
|
||||
.precision-gear-panel {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(260px, .8fr) 1.2fr;
|
||||
@@ -431,7 +525,6 @@ select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shado
|
||||
.precision-gear-card-body dl div { display: flex; justify-content: space-between; gap: 5px; padding: 2px 0; font-size: 8px; }
|
||||
.precision-gear-card-body dt { color: #8a95a7; }
|
||||
.precision-gear-card-body dd { max-width: 62%; margin: 0; overflow: hidden; color: #52617a; text-overflow: ellipsis; white-space: nowrap; text-align: right; font-weight: 700; }
|
||||
.precision-gear-card-body .product-save-button { margin-top: 10px; }
|
||||
.precision-gear-empty { margin-top: 15px; }
|
||||
.precision-gear-load-more { margin-top: 22px; }
|
||||
.catalog-empty { padding: 60px 20px; text-align: center; border: 1px dashed #cbd5e3; border-radius: 15px; background: white; }
|
||||
@@ -507,7 +600,7 @@ select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shado
|
||||
.catalog-spec-table strong { font-size: 10.5px; line-height: 1.2; }
|
||||
.catalog-modal-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
|
||||
.catalog-modal-actions .panel-primary { flex: 0 0 auto; }
|
||||
.catalog-modal-actions .modal-save-button { width: auto; min-width: 124px; margin-top: 0; flex: 0 0 auto; }
|
||||
.catalog-modal-actions .modal-cart-button { width: auto; min-width: 124px; margin-top: 0; flex: 0 0 auto; }
|
||||
.catalog-modal-actions p { margin: 0; color: #8b95a5; font-size: 9px; line-height: 1.6; }
|
||||
.how-section { padding: 100px max(32px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; color: white; background: linear-gradient(135deg, #0c1528, #14284e); }
|
||||
.eyebrow.light { color: #77a5ff; }
|
||||
@@ -535,6 +628,7 @@ footer > span { color: #9aa4b2; font-size: 10px; }
|
||||
.precision-gear-panel { grid-template-columns: 1fr; }
|
||||
.precision-gear-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
||||
.catalog-spec-table { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
||||
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
@@ -548,6 +642,9 @@ footer > span { color: #9aa4b2; font-size: 10px; }
|
||||
.site-header nav a:hover { background: var(--blue-soft); }
|
||||
.header-cta { padding: 9px 11px; font-size: 11px; }
|
||||
.header-cta span { margin-left: 4px; }
|
||||
.cart-header-button { min-height: 36px; padding: 7px 7px; }
|
||||
.cart-header-button small { display: none; }
|
||||
.cart-header-button > span { font-size: 16px; }
|
||||
.mobile-menu-toggle { min-width: 52px; padding: 7px 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #dce5f2; border-radius: 10px; color: var(--blue); background: white; cursor: pointer; }
|
||||
.mobile-menu-toggle span { font-size: 18px; line-height: 1; }
|
||||
.mobile-menu-toggle small { font-size: 10px; font-weight: 700; }
|
||||
@@ -559,7 +656,12 @@ footer > span { color: #9aa4b2; font-size: 10px; }
|
||||
.selector-shell { border-radius: 16px; }
|
||||
.question-panel, .result-panel { padding: 20px 16px; }
|
||||
.welcome-panel { padding: 55px 20px 35px; }
|
||||
.choice-grid, .two-fields, .parameter-grid, .form-grid, .recommendation-grid { grid-template-columns: 1fr; }
|
||||
.two-fields, .parameter-grid, .form-grid, .recommendation-grid { grid-template-columns: 1fr; }
|
||||
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
|
||||
.choice-card { min-height: 62px; padding: 9px 27px 9px 10px; border-radius: 9px; }
|
||||
.choice-card b { font-size: 11px; }
|
||||
.choice-card small { font-size: 8px; line-height: 1.3; }
|
||||
.choice-check { right: 8px; top: 8px; width: 16px; height: 16px; font-size: 9px; }
|
||||
.torque-presets { grid-template-columns: repeat(4, 1fr); }
|
||||
.recommendation-card { min-height: 0; }
|
||||
.capability-strip { grid-template-columns: 1fr 1fr; gap: 24px 0; padding: 28px 16px; }
|
||||
@@ -619,7 +721,7 @@ footer > span { color: #9aa4b2; font-size: 10px; }
|
||||
.catalog-spec-table span { font-size: 7.5px; }
|
||||
.catalog-spec-table strong { font-size: 8.5px; line-height: 1.15; }
|
||||
.catalog-modal-actions { align-items: stretch; flex-direction: column; }
|
||||
.catalog-modal-actions .modal-save-button { width: 100%; }
|
||||
.catalog-modal-actions .modal-cart-button { width: 100%; }
|
||||
.products-section { padding: 75px 16px; }
|
||||
.how-section { grid-template-columns: 1fr; padding: 75px 20px; }
|
||||
footer { grid-template-columns: 1fr; justify-items: center; gap: 15px; }
|
||||
@@ -631,8 +733,11 @@ footer > span { color: #9aa4b2; font-size: 10px; }
|
||||
}
|
||||
|
||||
@media print {
|
||||
.site-header, .hero-copy, .capability-strip, .products-section, .how-section, footer, .selector-topbar, .result-actions, .restart-button { display: none !important; }
|
||||
.hero { display: block; min-height: auto; padding: 0; background: white; }
|
||||
.selector-shell { box-shadow: none; border: 0; }
|
||||
.result-panel { padding: 20px; }
|
||||
@page { size: A4; margin: 12mm 10mm; }
|
||||
body.printing-cart { margin: 0; background: white; }
|
||||
body.printing-cart > * { visibility: hidden !important; }
|
||||
body.printing-cart .cart-print-sheet,
|
||||
body.printing-cart .cart-print-sheet * { visibility: visible !important; }
|
||||
body.printing-cart .cart-print-sheet { position: absolute; inset: 0; display: block !important; width: 100%; color: #17233a; background: white; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
|
||||
body.printing-cart .site-header, body.printing-cart .hero-copy, body.printing-cart .capability-strip, body.printing-cart .products-section, body.printing-cart .how-section, body.printing-cart footer, body.printing-cart .selector-topbar, body.printing-cart .result-actions, body.printing-cart .restart-button { display: none !important; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user