#customizeModal .modal-body { flex-direction: column; overflow-y: hidden; }
#customizeModal .modal-sidebar { flex-direction: row; justify-content: center; align-items: stretch; width: 100%; min-width: 0; padding: 16px; gap: 12px; }
#customizeModal .sidebar-btn { flex: 1 1 0; }
#product-sidebar { width: 100%; height: auto; }
#customizeModal .visual-zone { width: 100%; flex-grow: 1; height: 100%; overflow-y: auto; }
#customizeModal .visual-containers { flex-direction: column; padding: 16px; height: auto; }
#product2DContainer, #product3DContainer { width: 100%; max-width: 100%; }
#product3DContainer { height: auto; aspect-ratio: 1; }
#product3DContainer > canvas { width: 100%; height: 100%; display: block; }
.ratio-filter { padding: 6px 36px 6px 12px; border: 1px solid #666; border-radius: 20px; background-color: #333; color: #000; font-size: 14px; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: right 12px center, right 6px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
#customizeModal .visual-header { height: 40px; }
#customizeModal .image-controls { flex-wrap: nowrap; }
#customizeModal .image-controls button { width: auto; }
#imageSourceModal .small-modal { width: 80%; height: 80%; }
#siteFilesList { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
#pcFilesList { gap: 10px; max-height: 30vh; overflow-y: auto; }
.file-library-sidebar .sidebar-title { flex-basis: 100%; text-align: center; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; margin-bottom: 15px; }
.file-drop-zone { border: 2px dashed var(--border-color); padding: 10px; text-align: center; margin-top: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.file-drop-zone.drag-over { border-color: var(--accent-color); background: rgba(255, 255, 255, 0.05); }
.file-drop-zone i { font-size: 24px; }
.file-list.grid-view .file-item { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.file-list.grid-view .file-item img { width: 100%; height: 100%; object-fit: contain; }
.filter-buttons button { flex: 1; }
.filter-sort { width: 100%; align-items: flex-start; }
.sort-wrapper { width: 100%; justify-content: flex-end; }
body { overflow: hidden; }
#header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; }
.container { flex-direction: column; height: 100dvh; padding-top: 65px; padding-bottom: 100px; box-sizing: border-box; }
.main-content { flex-direction: column; overflow-y: auto; height: calc(100dvh - 65px - 100px); }
.background { padding: 0; height: auto; align-items: center; }
.background-image { display: none; }
.product-info, .product-details { position: static; width: 100%; padding: 10px; text-align: center; }
.product-details { align-items: center; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.product-name { font-size: 1.3rem; margin: 10px 0; }
.product-sizes, .product-colors, .product-description, .product-actions { justify-content: center; display: flex; flex-direction: column; align-items: stretch; }
.product-sizes, .product-description { max-width: 420px; width: 100%; }
.product-colors { max-width: 420px; width: 100%; margin-left: auto; margin-right: auto; }
.product-colors .colors-container { justify-content: center; }
.product-sizes .sizes-container { justify-content: center; }
.product-actions.product-actions--primary { width: 100%; max-width: 420px; order: 1; }
.product-actions.product-actions--primary .design-button { width: 100%; }
.product-description { order: 2; }
.product-details__cards { gap: 16px; }
.product-details__card { margin: 0 auto; max-width: 420px; text-align: left; }
.product-actions.product-actions--secondary { max-width: 420px; width: 100%; margin: 0 auto; margin-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.product-image { position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 20px auto; display: block; }
.image-thumbnails { position: static; transform: none; justify-content: center; margin: 10px auto; flex-wrap: wrap; padding: 14px 18px; gap: 12px; }
.image-thumbnails .thumbnail { width: 72px; height: 72px; }
.image-thumbnails .thumbnail.three-d-thumb { order: 99; }
.options-list { top: 45px; left: 0; width: 100%; }
.product-selector { width: 100%; margin-top: 10px; align-items: center; }
.custom-select { width: 100%; max-width: 420px; min-height: 64px; }
.selected-item { padding: 14px 18px; }
.options-list { left: 0; right: 0; width: 100%; }
.bottom-bar { position: fixed; bottom: 0; left: 0; width: 100%; min-height: 96px; padding: 18px 20px; gap: 16px; z-index: 1000; }
.bottom-bar .image-wrapper { overflow-x: auto; max-width: none; display: flex; justify-content: center; }
.bottom-bar .content { justify-content: center; gap: 12px; }
.bottom-bar .content .thumbnail { width: 72px; height: 72px; }
.bottom-arrow { width: 42px; height: 42px; font-size: 18px; }
