/* ===== Custom Page Specific Styles ===== */
:root {
--bg: #FFFFFF;
--text: #1A1A2E;
--sage: #E8364E;
--sage-light: #f5c6cb;
--sage-bg: #fef0f0;
--border: #E5E5E5;
--price-red: #E74C3C;
--config-bg: #ffffff;
--config-shadow: 0 -2px 20px rgba(0,0,0,0.06);
}
.customize-hero { display: none; }
.customize-cta { display: none; }
/* Main layout */
.customizer {
display: flex;
flex-direction: column;
min-height: calc(100vh - 140px);
}
.customizer__body {
display: flex;
flex: 1;
padding: 24px;
gap: 24px;
max-width: 1400px;
margin: 0 auto;
width: 100%;
box-sizing: border-box;
}
/* Left: Config panel */
.config-panel {
width: 38%;
flex-shrink: 0;
overflow-y: auto;
max-height: calc(100vh - 146px);
padding-right: 8px;
}
.config-panel::-webkit-scrollbar { width: 4px; }
.config-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
/* Right: Preview panel */
.preview-panel {
flex: 1;
position: sticky;
top: 80px;
align-self: flex-start;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* Bottom action bar */
.action-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--config-bg);
border-top: 1px solid var(--border);
box-shadow: var(--config-shadow);
padding: 12px 24px;
z-index: 100;
display: none;
}
.action-bar.visible { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; margin: 0 auto; }
.action-bar__price {
display: flex;
align-items: baseline;
gap: 12px;
flex-wrap: wrap;
}
.action-bar__original {
text-decoration: line-through;
color: #999;
font-size: 14px;
}
.action-bar__current {
font-size: 22px;
font-weight: 700;
color: var(--text);
}
.action-bar__total {
font-size: 22px;
font-weight: 700;
color: var(--sage);
}
.action-bar__qty {
display: flex;
align-items: center;
gap: 8px;
}
.action-bar__qty button {
width: 32px;
height: 32px;
border: 1px solid var(--border);
background: var(--bg);
border-radius: 6px;
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.action-bar__qty button:hover { border-color: var(--sage); color: var(--sage); }
.action-bar__qty span { font-weight: 600; min-width: 24px; text-align: center; }
.action-bar__actions {
display: flex;
gap: 10px;
}
.action-bar__actions .btn { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
/* Section titles */
.config-section {
background: var(--config-bg);
border-radius: 10px;
border: 1px solid var(--border);
padding: 14px;
margin-bottom: 10px;
}
.config-section__title {
font-size: 14px;
font-weight: 600;
color: var(--text);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.config-section__title svg { width: 18px; height: 18px; color: var(--sage); }
/* Product category pills */
.category-grid {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.category-card {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 6px 12px;
border: 1.5px solid var(--border);
border-radius: 20px;
cursor: pointer;
transition: background .15s, border-color .15s, color .15s;
background: var(--bg);
font-size: 13px;
font-weight: 500;
color: var(--text);
white-space: nowrap;
}
.category-card:hover { border-color: var(--sage-light); }
.category-card.active { border-color: var(--sage); background: var(--sage-bg); color: var(--sage); font-weight: 600; }
.category-card__icon { font-size: 16px; }
.category-card__name { font-size: 13px; font-weight: 500; }
.category-card__price { display: none; }
/* Product items list */
.product-list { margin-top: 10px; }
.product-list.collapsed { display: none; }
.product-item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px;
border: 1px solid var(--border);
border-radius: 8px;
margin-bottom: 6px;
cursor: pointer;
transition: background .15s, border-color .15s, color .15s;
}
.product-item:hover { border-color: var(--sage-light); }
.product-item.active { border-color: var(--sage); background: var(--sage-bg); }
.product-item__thumb {
width: 44px;
height: 44px;
border-radius: 6px;
object-fit: cover;
background: #eee;
flex-shrink: 0;
}
.product-item__info { flex: 1; min-width: 0; }
.product-item__name { font-size: 13px; font-weight: 600; }
.product-item__price { font-size: 13px; color: var(--text); font-weight: 600; }
.product-item__original { text-decoration: line-through; color: #999; font-size: 11px; margin-left: 6px; font-weight: 400; }
/* Color swatches */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
width: 32px;
height: 32px;
border-radius: 50%;
border: 2px solid var(--border);
cursor: pointer;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
position: relative;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage); }
.color-swatch::after {
content: attr(data-name);
position: absolute;
bottom: -18px;
left: 50%;
transform: translateX(-50%);
font-size: 10px;
color: #888;
white-space: nowrap;
opacity: 0;
transition: opacity .2s;
}
.color-swatch:hover::after { opacity: 1; }
/* Size buttons */
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn {
padding: 8px 16px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.size-btn:hover:not(.out-of-stock) { border-color: var(--sage); }
.size-btn.active { border-color: var(--sage); background: var(--sage); color: #fff; }
.size-btn.out-of-stock { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
/* Print side toggle */
.side-toggle {
display: flex;
gap: 10px;
align-items: center;
justify-content: space-between;
}
.side-toggle__item {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 12px;
border: 1px solid var(--border);
border-radius: 8px;
cursor: pointer;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
background: var(--bg);
}
.side-toggle__item:hover { border-color: var(--sage-light); }
.side-toggle__item.editing { border-color: var(--sage); box-shadow: 0 0 0 2px rgba(139,158,139,0.2); }
.side-toggle__label { font-size: 13px; font-weight: 500; }
.side-toggle__switch {
position: relative;
width: 36px;
height: 20px;
background: #ddd;
border-radius: 10px;
transition: background .2s;
flex-shrink: 0;
}
.side-toggle__switch::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: #fff;
border-radius: 50%;
transition: transform .2s;
}
.side-toggle__switch.on { background: var(--sage); }
.side-toggle__switch.on::after { transform: translateX(16px); }
/* Text input area */
.text-input-group { margin-bottom: 8px; }
.text-input-group label {
display: block;
font-size: 12px;
font-weight: 600;
color: #666;
margin-bottom: 6px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.text-input-group input[type="text"],
.text-input-group textarea {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 14px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
box-sizing: border-box;
transition: border-color .2s;
}
.text-input-group input:focus,
.text-input-group textarea:focus { outline: none; border-color: var(--sage); }
.text-input-group .char-count {
text-align: right;
font-size: 11px;
color: #999;
margin-top: 4px;
}
.text-input-group .char-count.over { color: var(--price-red); }
/* Text color picker row */
.text-color-row {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
}
.text-color-swatch {
width: 26px;
height: 26px;
border-radius: 50%;
border: 2px solid var(--border);
cursor: pointer;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.text-color-swatch.active { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage); }
.text-color-custom {
width: 26px;
height: 26px;
border: none;
padding: 0;
border-radius: 50%;
cursor: pointer;
background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
}
/* Text size slider */
.text-size-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.text-size-row input[type="range"] {
flex: 1;
-webkit-appearance: none;
height: 4px;
border-radius: 2px;
background: var(--border);
}
.text-size-row input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--sage);
cursor: pointer;
}
.text-size-row span { font-size: 12px; color: #888; min-width: 36px; }
.text-elements { display: flex; flex-direction: column; gap: 8px; }
.text-card { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg); }
.text-card__header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; cursor: pointer; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--border); user-select: none; }
.text-card.collapsed .text-card__body { display: none; }
.text-card__header::before { content: '▾ '; font-size: 10px; transition: transform 0.2s; }
.text-card.collapsed .text-card__header::before { content: '▸ '; }
.text-card__delete { background: none; border: none; font-size: 18px; cursor: pointer; color: #ccc; padding: 0 4px; line-height: 1; }
.text-card__delete:hover { color: #e74c3c; }
.text-card__body { padding: 12px; }
.text-card__body .text-input-group { margin-bottom: 6px; }
.text-card__body .text-input-group:last-child { margin-bottom: 0; }
.ai-prompt-input {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 8px;
font-size: 14px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
box-sizing: border-box;
resize: vertical;
outline: none;
transition: border-color .2s;
}
.ai-prompt-input:focus { border-color: var(--sage); }
.text-card__input { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--text); background: #fff; outline: none; transition: border-color 0.2s; }
.text-card__input:focus { border-color: var(--sage); }
.text-card__char { font-size: 11px; color: #aaa; text-align: right; margin-top: 2px; }
.text-card__char.over { color: #e74c3c; }
.text-add-btn { width: 100%; padding: 10px; border: 2px dashed var(--border); border-radius: 10px; background: transparent; color: #999; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; margin-top: 8px; }
.text-add-btn:hover:not(:disabled) { border-color: var(--sage); color: var(--sage); }
.text-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.font-options {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.font-option {
padding: 6px 14px;
border: 1.5px solid var(--border);
border-radius: 20px;
background: #fff;
font-size: 13px;
cursor: pointer;
transition: background .15s, border-color .15s, color .15s;
color: var(--text);
}
.font-option:hover { border-color: var(--sage-light); }
.font-option.active {
border-color: var(--sage);
background: var(--sage-bg);
color: var(--sage);
font-weight: 600;
}
/* Upload area */
.upload-area {
border: 2px dashed var(--border);
border-radius: 8px;
padding: 14px;
text-align: center;
cursor: pointer;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
background: var(--bg);
}
.upload-area:hover { border-color: var(--sage); }
.upload-area.dragover { border-color: var(--sage); background: var(--sage-bg); }
.upload-area__icon { font-size: 28px; color: var(--sage); margin-bottom: 8px; }
.upload-area__text { font-size: 13px; color: #666; }
.upload-area__hint { font-size: 11px; color: #aaa; margin-top: 4px; }
.upload-area input[type="file"] { display: none; }
/* Image source tabs */
.image-source-tabs {
display: flex;
gap: 8px;
margin-bottom: 14px;
}
.image-source-tab {
flex: 1;
padding: 8px 12px;
border: 1.5px solid var(--border);
border-radius: 8px;
background: var(--bg);
font-size: 13px;
font-weight: 500;
cursor: pointer;
transition: background .15s, border-color .15s, color .15s;
color: var(--text);
text-align: center;
}
.image-source-tab:hover { border-color: var(--sage-light); }
.image-source-tab.active {
border-color: var(--sage);
background: var(--sage-bg);
color: var(--sage);
font-weight: 600;
}
.image-source-panel { display: block; }
/* AI Generate options */
.ai-options-stack { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.ai-option-row { display: flex; align-items: center; gap: 8px; }
.ai-option-label { font-size: 12px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: 0.5px; min-width: 36px; }
.ai-option-row .font-options { flex: 1; }
.ai-remaining {
font-size: 11px;
color: #999;
margin-top: 6px;
text-align: center;
}
@keyframes aiSpin {
to { transform: rotate(360deg); }
}
.ai-results {
margin-top: 12px;
}
.ai-history { margin-top: 10px; }
.ai-history-clear { display: block; width: 100%; margin-top: 6px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: transparent; color: #999; font-size: 12px; cursor: pointer; transition: color .15s, border-color .15s; }
.ai-history-clear:hover { color: var(--price-red); border-color: var(--price-red); }
.ai-history-grid { grid-template-columns: repeat(5, 1fr) !important; gap: 4px !important; }
.ai-history-grid .ai-result-item { aspect-ratio: 1/1; }
.ai-history-grid .ai-result-item img { border-radius: 4px; }
.ai-history-grid .ai-result-check { width: 16px; height: 16px; font-size: 10px; top: 3px; right: 3px; }
.ai-results__label {
font-size: 12px;
color: #666;
margin-bottom: 8px;
font-weight: 500;
}
.ai-results__grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
.ai-result-item {
position: relative;
border-radius: 8px;
overflow: hidden;
border: 2px solid var(--border);
cursor: pointer;
transition: border-color .15s;
aspect-ratio: 1/1;
background: #f5f5f5;
}
.ai-result-item:hover { border-color: var(--sage-light); }
.ai-result-item.selected { border-color: var(--sage); box-shadow: 0 0 0 2px var(--sage); }
.ai-result-item img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.ai-result-item .ai-result-check {
position: absolute;
top: 6px;
right: 6px;
width: 22px;
height: 22px;
border-radius: 50%;
background: var(--sage);
color: #fff;
display: none;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 700;
}
.ai-result-item.selected .ai-result-check { display: flex; }
.image-size-slider { margin-top: 10px; }
.image-size-slider label { display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.image-size-slider .text-size-row { margin-bottom: 0; }
/* Uploaded image preview */
.uploaded-preview {
display: flex;
align-items: center;
gap: 10px;
margin-top: 10px;
padding: 8px;
background: var(--bg);
border-radius: 8px;
border: 1px solid var(--border);
}
.uploaded-preview img {
width: 48px;
height: 48px;
border-radius: 6px;
object-fit: cover;
}
.uploaded-preview__info { flex: 1; font-size: 12px; color: #666; }
.uploaded-preview__delete {
background: none;
border: none;
color: #999;
cursor: pointer;
font-size: 18px;
padding: 4px;
}
.uploaded-preview__delete:hover { color: var(--price-red); }
/* DOM Preview */
.canvas-wrapper {
background: transparent;
border: 2px dashed var(--sage);
border-radius: 5px;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
max-height: calc(100vh - 146px);
position: relative;
overflow: hidden;
box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}
.canvas-empty {
text-align: center;
color: #999;
}
.canvas-empty__icon { font-size: 56px; margin-bottom: 16px; opacity: 0.6; }
.canvas-empty__text { font-size: 16px; font-weight: 500; color: #777; }
.canvas-empty__sub { font-size: 13px; color: #aaa; margin-top: 6px; }
/* Preview stage */
.preview-stage {
position: relative;
width: 100%;
max-height: 100%;
display: none;
filter: drop-shadow(0 8px 24px rgba(0,0,0,0.08));
display: flex;
align-items: center;
justify-content: center;
}
.preview-stage.visible { display: flex; }
.preview-bg {
max-width: 1400px;
max-height: calc(100vh - 146px);
display: block;
border-radius: 8px;
object-fit: contain;
}
.preview-color-overlay {
position: absolute;
inset: 0;
mix-blend-mode: multiply;
opacity: 0.18;
pointer-events: none;
border-radius: 4px;
}
.preview-print-area {
position: absolute;
inset: 0;
overflow: hidden;
box-sizing: border-box;
}
.preview-text {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
font-weight: 600;
font-size: 28px;
color: #2D2D2D;
text-align: center;
width: auto;
max-width: 1400px;
padding: 8px 12px;
cursor: grab;
outline: none;
word-break: break-word;
user-select: none;
line-height: 1.2;
letter-spacing: 0.5px;
touch-action: none;
border-radius: 4px;
}
.preview-text:active { cursor: grabbing; }
.preview-text:focus {
outline: none;
background: rgba(255,255,255,0.15);
cursor: text;
}
.preview-image-wrapper {
position: absolute;
cursor: grab;
touch-action: none;
}
.preview-image-wrapper:active { cursor: grabbing; }
.preview-image-wrapper img {
width: 100%;
height: 100%;
display: block;
object-fit: contain;
pointer-events: none;
-webkit-user-drag: none;
border-radius: 2px;
}
.preview-image-wrapper .resize-handle {
position: absolute;
width: 16px;
height: 16px;
background: #fff;
border: 2px solid var(--sage);
border-radius: 50%;
box-shadow: 0 1px 4px rgba(0,0,0,0.25);
opacity: 0;
transition: opacity 0.15s;
}
.preview-image-wrapper:hover .resize-handle,
.preview-image-wrapper:active .resize-handle {
opacity: 1;
}
.resize-handle.br { bottom: -8px; right: -8px; cursor: se-resize; }
/* Step bar */
/* Section divider */
.section-divider {
height: 1px;
background: var(--border);
margin: 14px 0 10px;
}
/* Action buttons (Confirm, AI Generate, etc.) */
.step-nav-btn {
display: block;
width: 100%;
padding: 10px 16px;
border: none;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background .2s, color .2s;
text-align: center;
margin-top: 12px;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
background: var(--sage);
color: #fff;
}
.step-nav-btn:hover { background: var(--sage-light); }
.step-nav-btn:disabled { background: var(--border); color: #999; cursor: not-allowed; }
/* Order summary */
.order-summary {
display: flex;
flex-direction: column;
gap: 0;
}
.order-summary__row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 0;
border-bottom: 1px solid var(--border);
font-size: 14px;
}
.order-summary__row:last-child { border-bottom: none; }
.order-summary__label { color: #999; }
.order-summary__value { font-weight: 500; color: var(--text); text-align: right; max-width: 60%; }
.order-summary__total {
margin-top: 8px;
padding-top: 12px;
border-top: 2px solid var(--text);
font-size: 16px;
}
.order-summary__total .order-summary__value {
color: var(--sage);
font-weight: 700;
font-size: 18px;
}
.qty-btn {
width: 28px;
height: 28px;
border: 1px solid var(--border);
border-radius: 6px;
background: var(--bg);
font-size: 16px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.qty-btn:hover { border-color: var(--sage); color: var(--sage); }
.preview-side-toggle { display: flex; gap: 4px; }
.preview-side-btn {
padding: 5px 14px;
border: 1px solid var(--border);
border-radius: 6px;
background: transparent;
font-size: 12px;
cursor: pointer;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
color: #999;
}
.preview-side-btn.active { border-color: var(--sage); background: var(--sage-bg); color: var(--sage); font-weight: 600; }
.preview-side-btn:hover { border-color: var(--sage); }
/* Empty state */
.empty-state {
text-align: center;
padding: 60px 20px;
color: #999;
}
.empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.empty-state__text { font-size: 16px; margin-bottom: 4px; }
.empty-state__sub { font-size: 13px; }
/* Toast notification */
.toast {
position: fixed;
bottom: 100px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: var(--text);
color: #fff;
padding: 12px 24px;
border-radius: 8px;
font-size: 14px;
opacity: 0;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
z-index: 1000;
white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--sage); }
.toast.error { background: var(--price-red); }
/* Modal */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 200;
opacity: 0;
visibility: hidden;
transition: background .2s, border-color .2s, color .2s, opacity .2s;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal {
background: var(--config-bg);
border-radius: 12px;
padding: 32px;
max-width: 400px;
width: 90%;
text-align: center;
}
.modal__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.modal__desc { font-size: 14px; color: #666; margin-bottom: 20px; }
.modal__actions { display: flex; gap: 10px; justify-content: center; }
.modal__actions .btn { min-width: 100px; }
.btn-personalize {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 12px 16px;
border: none;
border-radius: 8px;
background: var(--sage);
color: #fff;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: background .2s, opacity .2s;
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
.btn-personalize:hover { background: var(--sage-light); }
.btn-personalize:disabled { background: var(--border); color: #999; cursor: not-allowed; }
.btn-personalize.has-content { background: var(--sage); }
/* Order Summary Drawer */
.order-drawer-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.3);
z-index: 300;
opacity: 0;
visibility: hidden;
transition: opacity .25s, visibility .25s;
}
.order-drawer-overlay.open { opacity: 1; visibility: visible; }
.order-drawer {
position: fixed;
top: 0;
right: 0;
width: 420px;
max-width: 92vw;
height: 100vh;
background: var(--config-bg);
z-index: 301;
transform: translateX(100%);
transition: transform .3s cubic-bezier(.4,0,.2,1);
display: flex;
flex-direction: column;
box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.order-drawer.open { transform: translateX(0); }
.order-drawer__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 18px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.order-drawer__title { font-size: 16px; font-weight: 700; }
.order-drawer__close {
width: 32px; height: 32px; border: none;
background: var(--sage-bg); color: var(--sage);
border-radius: 8px; font-size: 18px; cursor: pointer;
display: flex; align-items: center; justify-content: center;
}
.order-drawer__close:hover { background: var(--sage-light); }
.order-drawer__body {
flex: 1;
overflow-y: auto;
padding: 18px;
}
.order-drawer__preview {
width: 100%;
aspect-ratio: 1/1;
background: #f8f8f8;
border: 1px dashed var(--border);
border-radius: 12px;
overflow: hidden;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: center;
}
.order-drawer__preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.order-drawer__side-tabs {
display: flex;
gap: 6px;
margin-bottom: 14px;
}
.order-drawer__side-tab {
flex: 1;
padding: 8px;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
font-size: 13px;
font-weight: 500;
text-align: center;
cursor: pointer;
transition: border-color .15s, background .15s, color .15s;
}
.order-drawer__side-tab.active { border-color: var(--sage); background: var(--sage-bg); color: var(--sage); }
.order-drawer__summary { margin-bottom: 16px; }
.order-drawer__footer {
padding: 12px 18px;
border-top: 1px solid var(--border);
display: flex;
gap: 10px;
flex-shrink: 0;
}
.order-drawer__footer .step-nav-btn { flex: 1; }
.btn-buy-now {
background: var(--text) !important;
}
.btn-buy-now:hover { opacity: .85; }
/* Error message */
.field-error {
color: var(--price-red);
font-size: 11px;
margin-top: 4px;
display: none;
}
.field-error.visible { display: block; }
/* ===== Responsive ===== */
@media (max-width: 1023px) {
.config-panel { width: 50%; }
}
@media (max-width: 767px) {
.customizer__body {
flex-direction: column;
padding: 12px;
gap: 12px;
}
.preview-panel {
position: relative;
top: auto;
width: 100%;
height: 45vh;
min-height: 300px;
}
.preview-panel .canvas-wrapper { min-height: 250px; padding: 16px; height: auto; }
.config-panel {
width: 100%;
max-height: none;
padding-right: 0;
overflow-y: visible;
}
.action-bar.visible {
flex-wrap: wrap;
gap: 10px;
padding: 10px 12px;
}
.action-bar__price { gap: 8px; }
.action-bar__current { font-size: 18px; }
.action-bar__total { font-size: 18px; }
.action-bar__actions .btn { padding: 8px 14px; font-size: 13px; }
.category-grid { flex-wrap: wrap; gap: 6px; }
.config-section { padding: 14px; }
.body-has-actionbar { padding-bottom: 120px; }
}
/* ===== Focus Visible ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
outline: 2px solid #8B9E8B;
outline-offset: 2px;
}
.step-nav-btn:focus-visible, .preview-side-btn:focus-visible { outline-offset: 3px; }
.color-swatch:focus-visible, .text-color-swatch:focus-visible, .side-toggle__item:focus-visible,
.category-card:focus-visible, .product-item:focus-visible, .font-option:focus-visible {
outline: 2px solid #E8764B;
outline-offset: 2px;
}
/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
