 /* Gallery Modal Styles */
 .gallery-image-item {
     cursor: pointer;
     border: 2px solid #e5e7eb;
     border-radius: 6px;
     padding: 0.25rem;
     transition: all 0.2s ease;
     height: 120px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: #f9fafb;
 }

 .gallery-image-item:hover {
     border-color: var(--secondary-color-1, #593921);
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
 }

 .gallery-image-item.selected {
     border-color: var(--secondary-color-1, #593921);
     border-width: 3px;
     box-shadow: 0 0 0 2px rgba(89, 57, 33, 0.2);
 }

 .gallery-image-item img {
     width: 100%;
     height: 100%;
     object-fit: contain;
     border-radius: 4px;
 }

 /* Confirmation modal and variant selection styles */
 .confirmation-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     display: flex;
     align-items: center;
     justify-content: center;
     z-index: 2000;
 }

 .confirmation-modal {
     background: white;
     border-radius: 8px;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
     width: 380px;
     max-width: 90%;
     overflow: hidden;
 }

 .confirmation-header {
     background-color: #593921;
     color: white;
     padding: 0.75rem 1.25rem;
 }

 .confirmation-header h6 {
     margin: 0;
     font-weight: 600;
     font-size: 0.9rem;
 }

 .confirmation-body {
     padding: 1.25rem;
 }

 .confirmation-body p {
     margin: 0 0 0.5rem 0;
     color: #374151;
     font-size: 0.875rem;
 }

 .confirmation-footer {
     padding: 0.75rem 1.25rem;
     border-top: 1px solid #e5e7eb;
     display: flex;
     gap: 0.5rem;
     justify-content: flex-end;
 }

 .confirmation-btn {
     padding: 0.5rem 1rem;
     border-radius: 6px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.2s ease;
     border: 2px solid transparent;
     font-size: 0.875rem;
 }

 .confirmation-btn.no {
     background-color: #f3f4f6;
     color: #374151;
     border-color: #d1d5db;
 }

 .confirmation-btn.yes {
     background-color: #593921;
     color: white;
     border-color: #593921;
 }

 /* Variant Selection Modal */
 .variant-selection-modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.5);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 2100;
 }

 .variant-selection-modal.show {
     display: flex !important;
 }

 .variant-selection-content {
     background: white;
     border-radius: 8px;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
     width: 600px;
     max-width: 95%;
     max-height: 90vh;
     overflow: hidden;
     display: flex;
     flex-direction: column;
 }

 .variant-selection-header {
     background-color: #593921;
     color: white;
     padding: 0.75rem 1.25rem;
 }

 .variant-selection-header h5 {
     margin: 0;
     font-weight: 600;
     font-size: 1rem;
 }

 .variant-selection-body {
     padding: 1.25rem;
     overflow-y: auto;
     flex: 1;
 }

 .variant-checkbox-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0.75rem;
     background: #f9fafb;
     border-radius: 6px;
     margin-bottom: 0.625rem;
     border: 2px solid #e5e7eb;
     transition: all 0.2s ease;
 }

 .variant-checkbox-item:hover {
     border-color: #d1d5db;
     background: #f3f4f6;
 }

 .variant-checkbox-item.selected {
     border-color: var(--secondary-color, #593921);
     background: rgba(89, 57, 33, 0.05);
 }

 .variant-checkbox-wrapper {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     flex: 1;
 }

 .variant-checkbox-wrapper input[type="checkbox"] {
     width: 18px;
     height: 18px;
     cursor: pointer;
 }

 .variant-checkbox-info {
     flex: 1;
 }

 .variant-checkbox-name {
     font-weight: 500;
     color: #374151;
     margin-bottom: 0.25rem;
     font-size: 0.9rem;
 }

 .variant-checkbox-price {
     font-size: 0.8rem;
     color: #6b7280;
 }

 .variant-checkbox-qty {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .variant-checkbox-qty button {
     padding: 0.375rem 0.625rem;
     border: 1px solid #e5e7eb;
     background: #ffffff;
     border-radius: 4px;
     cursor: pointer;
     transition: all 0.2s ease;
     font-size: 0.875rem;
 }

 .variant-checkbox-qty button:hover:not(:disabled) {
     background: #f3f4f6;
     border-color: var(--secondary-color, #593921);
 }

 .variant-checkbox-qty button:disabled {
     opacity: 0.5;
     cursor: not-allowed;
 }

 .variant-checkbox-qty input {
     width: 60px;
     padding: 0.375rem;
     border: 1px solid #e5e7eb;
     border-radius: 4px;
     text-align: center;
     font-weight: 500;
     font-size: 0.875rem;
 }

 .variant-selection-footer {
     padding: 0.75rem 1.25rem;
     border-top: 1px solid #e5e7eb;
     display: flex;
     gap: 0.5rem;
     justify-content: space-between;
     align-items: center;
 }

 .variant-selection-summary {
     font-size: 0.875rem;
     color: #6b7280;
 }

 .variant-selection-actions {
     display: flex;
     gap: 0.5rem;
 }

 /* Main Customization Modal - COMPACT */
 .customization-modal .modal-dialog {
     max-width: 1100px;
     width: 100%;
     margin: 0.5rem auto;
 }

 .customization-modal .modal-content {
     border-radius: 8px;
     border: none;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
     background: #ffffff;
 }

 .customization-modal .modal-header {
     padding: 0.75rem 1.25rem;
     background-color: #593921;
     color: white;
     border-bottom: none;
 }

 .customization-modal .modal-title {
     font-size: 0.95rem;
 }

 .customization-modal .modal-body {
     padding: 0;
     display: flex;
     min-height: 500px;
     max-height: 80vh;
 }

 /* Preview Panel */
 .preview-panel {
     flex: 1;
     background: #f8f9fa;
     padding: 0.75rem;
     display: flex;
     flex-direction: column;
     border-right: 1px solid #e5e7eb;
     overflow: hidden;
 }

 .preview-container {
     position: relative;
     background: #ffffff;
     border-radius: 6px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     overflow: hidden;
     flex: 1;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 #customizationCanvas {
     max-width: 100%;
     max-height: 100%;
     cursor: grab;
     display: block;
     background: white;
 }

 /* Area selector - LEFT SIDE OVERLAY */
 .area-selector {
     position: absolute;
     top: 1rem;
     left: 1rem;
     z-index: 10;
     display: flex;
     flex-direction: column;
     gap: 0.375rem;
     max-width: 140px;
 }

 .area-btn {
     padding: 0.5rem 0.75rem;
     border: 2px solid #e5e7eb;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(8px);
     border-radius: 6px;
     cursor: pointer;
     transition: all 0.2s ease;
     font-weight: 500;
     color: #374151;
     font-size: 0.8rem;
     white-space: nowrap;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .area-btn:hover {
     border-color: var(--secondary-color, #593921);
     background: rgba(255, 255, 255, 1);
     transform: translateX(2px);
 }

 .area-btn.active {
     border-color: var(--secondary-color, #593921);
     background: var(--secondary-color, #593921);
     color: #ffffff;
     transform: translateX(4px);
 }

 .area-btn i {
     font-size: 0.75rem;
 }

 /* Preview trigger button - TOP RIGHT of canvas */
 .preview-trigger-btn {
     position: absolute;
     top: 1rem;
     right: 1rem;
     z-index: 10;
     background: #593921;
     color: #fff;
     border: none;
     border-radius: 6px;
     padding: 0.4rem 0.75rem;
     font-size: 0.75rem;
     font-weight: 600;
     cursor: pointer;
     display: flex;
     align-items: center;
     gap: 0.35rem;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
     transition: all 0.2s ease;
     user-select: none;
 }

 .preview-trigger-btn:hover {
     background: #7a4e2c;
     transform: translateY(-1px);
     box-shadow: 0 4px 12px rgba(89, 57, 33, 0.35);
 }

 .preview-trigger-btn i {
     font-size: 0.7rem;
 }

 /* Zoom Controls - BOTTOM RIGHT OVERLAY */
 .zoom-controls {
     position: absolute;
     bottom: 1rem;
     right: 1rem;
     z-index: 10;
     display: flex;
     gap: 0.25rem;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(8px);
     padding: 0.375rem;
     border-radius: 6px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .zoom-btn {
     padding: 0.375rem 0.625rem;
     border: 1px solid #e5e7eb;
     background: #ffffff;
     border-radius: 4px;
     cursor: pointer;
     font-size: 0.75rem;
     transition: all 0.2s;
     min-width: 32px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .zoom-btn:hover {
     background: #f9fafb;
     border-color: var(--secondary-color, #593921);
     transform: translateY(-1px);
 }

 .zoom-btn:active {
     transform: translateY(0);
 }

 .zoom-btn i {
     font-size: 0.7rem;
 }

 /* Controls Panel - COMPACT */
 .controls-panel {
     width: 340px;
     background: #ffffff;
     padding: 0.75rem;
     overflow-y: auto;
     display: flex;
     flex-direction: column;
 }

 /* Accordion Styles - COMPACT */
 .accordion-item {
     border: 1px solid #e5e7eb;
     border-radius: 4px !important;
     margin-bottom: 0.5rem;
     overflow: hidden;
 }

 .accordion-header {
     margin-bottom: 0;
 }

 .accordion-button {
     background: #f9fafb;
     color: #374151;
     font-weight: 600;
     padding: 0.5rem 0.75rem;
     border: none;
     font-size: 0.875rem;
 }

 .accordion-button:not(.collapsed) {
     background: var(--secondary-color, #593921);
     color: white;
 }

 .accordion-button:focus {
     box-shadow: none;
     border: none;
 }

 .accordion-button::after {
     filter: brightness(0);
     width: 0.875rem;
     height: 0.875rem;
     background-size: 0.875rem;
 }

 .accordion-button:not(.collapsed)::after {
     filter: brightness(0) invert(1);
 }

 .accordion-body {
     padding: 0.75rem;
 }

 /* Control Groups - COMPACT */
 .control-group {
     margin-bottom: 0.75rem;
 }

 .control-group:last-child {
     margin-bottom: 0;
 }

 .control-group label {
     display: block;
     font-weight: 500;
     color: #374151;
     margin-bottom: 0.25rem;
     font-size: 0.8rem;
 }

 .control-group textarea,
 .control-group input[type="text"],
 .control-group input[type="number"],
 .control-group select {
     width: 100%;
     padding: 0.4rem 0.6rem;
     border: 1px solid #e5e7eb;
     border-radius: 4px;
     font-size: 0.8rem;
     transition: border-color 0.2s;
 }

 .control-group textarea:focus,
 .control-group input:focus,
 .control-group select:focus {
     outline: none;
     border-color: var(--secondary-color, #593921);
 }

 .control-group textarea {
     resize: vertical;
     min-height: 50px;
     font-family: inherit;
 }

 /* Text Style Buttons - COMPACT */
 .text-style-buttons {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 0.375rem;
 }

 .text-style-btn {
     padding: 0.375rem;
     border: 1px solid #e5e7eb;
     background: #ffffff;
     border-radius: 4px;
     cursor: pointer;
     font-weight: 600;
     font-size: 0.75rem;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.375rem;
 }

 .text-style-btn:hover {
     background: #f9fafb;
 }

 .text-style-btn.active {
     background: var(--secondary-color, #593921);
     color: #ffffff;
     border-color: var(--secondary-color, #593921);
 }

 .btn-add-text-field {
     width: 100%;
     padding: 0.5rem 0.75rem;
     border: none;
     background: var(--secondary-color, #593921);
     color: white;
     border-radius: 6px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.2s ease;
     margin-top: 0.5rem;
     font-size: 0.8rem;
 }

 .btn-add-text-field:hover {
     transform: translateY(-1px);
     box-shadow: 0 2px 8px rgba(89, 57, 33, 0.3);
 }

 /* Element Buttons - COMPACT */
 .element-buttons {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 0.375rem;
     margin-bottom: 0.5rem !important;
 }

 .btn-add-text,
 .btn-add-image {
     padding: 0.5rem 0.375rem;
     border: 1px solid var(--secondary-color, #593921);
     background: #ffffff;
     color: var(--secondary-color, #593921);
     border-radius: 6px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.375rem;
     font-size: 0.8rem;
     white-space: nowrap;
 }

 .btn-add-text:hover,
 .btn-add-image:hover {
     background: var(--secondary-color, #593921);
     color: white;
 }

 /* Range Inputs - COMPACT */
 .range-group {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .range-group label {
     flex: 1;
     margin: 0;
     font-size: 0.8rem;
 }

 .range-value {
     min-width: 40px;
     text-align: right;
     font-weight: 600;
     color: var(--secondary-color, #593921);
     font-size: 0.8rem;
 }

 input[type="range"] {
     width: 100%;
     height: 4px;
     border-radius: 2px;
     background: #e5e7eb;
     outline: none;
     margin-top: 0.25rem;
 }

 input[type="range"]::-webkit-slider-thumb {
     width: 14px;
     height: 14px;
     border-radius: 50%;
     background: var(--secondary-color, #593921);
     cursor: pointer;
 }

 input[type="range"]::-moz-range-thumb {
     width: 14px;
     height: 14px;
     border-radius: 50%;
     background: var(--secondary-color, #593921);
     cursor: pointer;
     border: none;
 }

 /* Elements List - COMPACT */
 .elements-list {
     max-height: 200px;
     overflow-y: auto;
     padding: 0.25rem;
 }

 .element-item {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0.5rem;
     background: #f9fafb;
     border-radius: 4px;
     margin-bottom: 0.25rem;
     border: 1px solid transparent;
     cursor: pointer;
     font-size: 0.8rem;
     transition: all 0.2s;
 }

 .element-item:hover {
     background: #f3f4f6;
 }

 .element-item.active {
     background: rgba(89, 57, 33, 0.1);
     border-color: var(--secondary-color, #593921);
 }

 .element-info {
     display: flex;
     align-items: center;
     gap: 0.375rem;
     font-size: 0.8rem;
 }

 .element-actions button {
     background: none;
     border: none;
     color: #dc3545;
     cursor: pointer;
     padding: 0.2rem 0.3rem;
     transition: color 0.2s;
     font-size: 0.8rem;
 }

 .element-actions button:hover {
     color: #a71d2a;
 }

 /* Image Upload Area - COMPACT */
 .image-upload-area {
     border: 2px dashed #d1d5db;
     border-radius: 6px;
     padding: 0.75rem;
     text-align: center;
     cursor: pointer;
     background: #f9fafb;
     transition: all 0.2s;
 }

 .image-upload-area:hover {
     border-color: var(--secondary-color, #593921);
     background: #f3f4f6;
 }

 .image-upload-area i {
     font-size: 1.5rem;
     margin-bottom: 0.25rem !important;
 }

 .image-upload-area p {
     font-size: 0.8rem;
     margin-bottom: 0.25rem !important;
 }

 .image-upload-area small {
     font-size: 0.7rem;
 }

 /* Color Picker Grid - COMPACT */
 .color-picker-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
     gap: 0.25rem;
 }

 .color-option {
     position: relative;
     cursor: pointer;
     display: block;
 }

 .color-option input[type="radio"] {
     position: absolute;
     opacity: 0;
     width: 0;
     height: 0;
 }

 .color-swatch {
     width: 28px;
     height: 28px;
     border-radius: 4px;
     border: 2px solid #e5e7eb;
     display: block;
     cursor: pointer;
     transition: all 0.2s ease;
 }

 .color-option input[type="radio"]:checked+.color-swatch {
     border-color: var(--secondary-color, #593921);
     border-width: 2px;
     box-shadow: 0 0 0 2px rgba(89, 57, 33, 0.2);
 }

 /* Character Counter - COMPACT */
 .character-counter {
     font-size: 0.65rem;
     color: #9ca3af;
     margin-top: 0.2rem;
     text-align: right;
 }

 /* Customization Actions - COMPACT */
 .customization-actions {
     display: flex;
     gap: 0.75rem;
     padding: 0.5rem 0.75rem;
     border-top: 1px solid #e5e7eb;
     background: #f8f9fa;
 }

 .customization-actions .btn {
     flex: 1;
     padding: 0.5rem 0.75rem;
     border-radius: 6px;
     font-weight: 600;
     transition: all 0.2s;
     font-size: 0.875rem;
 }

 .customization-actions .btn-secondary {
     background: white;
     border: 1px solid #e5e7eb;
     color: #374151;
 }

 .customization-actions .btn-dark {
     background: var(--secondary-color, #593921);
     border: none;
 }

 /* Alignment Controls - COMPACT */
 .alignment-controls {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 0.25rem;
 }

 .align-btn {
     padding: 0.375rem;
     border: 1px solid #e5e7eb;
     background: white;
     border-radius: 4px;
     cursor: pointer;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.8rem;
 }

 .align-btn:hover {
     background: #f9fafb;
 }

 .align-btn.active {
     background: var(--secondary-color, #593921);
     color: white;
     border-color: var(--secondary-color, #593921);
 }

 /* ==================== PREVIEW GALLERY STYLES ==================== */
 .preview-gallery-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(0, 0, 0, 0.92);
     display: none;
     align-items: center;
     justify-content: center;
     z-index: 3000;
     backdrop-filter: blur(6px);
 }

 .preview-gallery-overlay.show {
     display: flex !important;
 }

 .preview-gallery-container {
     position: relative;
     width: 100%;
     height: 100%;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
 }

 /* Close button */
 .preview-gallery-close {
     position: absolute;
     top: 1.25rem;
     right: 1.25rem;
     width: 40px;
     height: 40px;
     background: rgba(255, 255, 255, 0.12);
     border: 1px solid rgba(255, 255, 255, 0.25);
     border-radius: 50%;
     color: #fff;
     font-size: 1.1rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s ease;
     z-index: 10;
 }

 .preview-gallery-close:hover {
     background: rgba(255, 255, 255, 0.25);
     transform: scale(1.1);
 }

 /* Title bar */
 .preview-gallery-title {
     position: absolute;
     top: 1.25rem;
     left: 50%;
     transform: translateX(-50%);
     color: #fff;
     font-size: 0.9rem;
     font-weight: 600;
     letter-spacing: 0.05em;
     text-transform: uppercase;
     opacity: 0.85;
     white-space: nowrap;
     z-index: 10;
 }

 /* Main image display */
 .preview-gallery-main {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
     flex: 1;
     width: 100%;
     padding: 5rem 5rem 1.5rem;
     box-sizing: border-box;
 }

 .preview-gallery-img-wrap {
     position: relative;
     width: 70vh;
     height: 70vh;
     max-width: 70vw;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     cursor: grab;
     border-radius: 10px;
 }

 .preview-gallery-img-wrap.grabbing {
     cursor: grabbing;
 }

 .preview-gallery-img-wrap img {
     max-width: 100%;
     max-height: 70vh;
     border-radius: 10px;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
     object-fit: contain;
     background: #fff;
     display: block;
     transform-origin: center center;
     user-select: none;
     pointer-events: none;
     -webkit-user-drag: none;
 }

 /* Area label badge */
 .preview-gallery-label {
     position: absolute;
     bottom: -2.5rem;
     left: 50%;
     transform: translateX(-50%);
     background: rgba(89, 57, 33, 0.95);
     color: #fff;
     padding: 0.3rem 1rem;
     border-radius: 20px;
     font-size: 0.78rem;
     font-weight: 600;
     white-space: nowrap;
     letter-spacing: 0.04em;
 }

 /* Prev/Next navigation arrows */
 .preview-gallery-arrow {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     width: 44px;
     height: 44px;
     background: rgba(255, 255, 255, 0.1);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 50%;
     color: #fff;
     font-size: 1rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
     z-index: 5;
 }

 .preview-gallery-arrow:hover {
     background: rgba(255, 255, 255, 0.22);
     transform: translateY(-50%) scale(1.08);
 }

 .preview-gallery-arrow.prev {
     left: 1.5rem;
 }

 .preview-gallery-arrow.next {
     right: 1.5rem;
 }

 .preview-gallery-arrow.hidden {
     opacity: 0;
     pointer-events: none;
 }

 /* Gallery zoom bar - bottom center */
 .preview-gallery-zoom-bar {
     position: absolute;
     bottom: 1.5rem;
     left: 50%;
     transform: translateX(-50%);
     display: flex;
     align-items: center;
     gap: 0.375rem;
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.15);
     padding: 0.375rem 0.5rem;
     border-radius: 8px;
     z-index: 10;
 }

 .gallery-zoom-btn {
     width: 32px;
     height: 32px;
     background: rgba(255, 255, 255, 0.12);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 6px;
     color: #fff;
     font-size: 0.75rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
 }

 .gallery-zoom-btn:hover {
     background: rgba(255, 255, 255, 0.25);
     transform: scale(1.08);
 }

 .gallery-zoom-label {
     color: rgba(255, 255, 255, 0.85);
     font-size: 0.72rem;
     font-weight: 600;
     min-width: 38px;
     text-align: center;
     letter-spacing: 0.02em;
 }

 /* Thumbnails strip */
 .preview-gallery-thumbs {
     display: flex;
     gap: 0.625rem;
     padding: 0.75rem 1.5rem 4rem;
     justify-content: center;
     flex-wrap: wrap;
 }

 .preview-gallery-thumb {
     width: 64px;
     height: 64px;
     border-radius: 6px;
     overflow: hidden;
     border: 2px solid rgba(255, 255, 255, 0.2);
     cursor: pointer;
     transition: all 0.2s;
     background: #fff;
     flex-shrink: 0;
 }

 .preview-gallery-thumb img {
     width: 100%;
     height: 100%;
     object-fit: contain;
     display: block;
 }

 .preview-gallery-thumb:hover {
     border-color: rgba(255, 255, 255, 0.6);
     transform: translateY(-2px);
 }

 .preview-gallery-thumb.active {
     border-color: #593921;
     box-shadow: 0 0 0 2px rgba(89, 57, 33, 0.6);
     transform: translateY(-2px);
 }

 /* Dot indicators (single area) */
 .preview-gallery-dots {
     display: flex;
     gap: 0.5rem;
     padding-bottom: 4rem;
 }

 .preview-gallery-dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.3);
     cursor: pointer;
     transition: all 0.2s;
 }

 .preview-gallery-dot.active {
     background: #593921;
     transform: scale(1.3);
 }

 /* Hint text */
 .preview-gallery-hint {
     position: absolute;
     top: 4rem;
     left: 50%;
     transform: translateX(-50%);
     color: rgba(255, 255, 255, 0.4);
     font-size: 0.7rem;
     white-space: nowrap;
     pointer-events: none;
     z-index: 10;
 }

 /* Responsive */
 @media (max-width: 1024px) {
     .controls-panel {
         width: 300px;
     }
 }

 @media (max-width: 768px) {
     .customization-modal .modal-body {
         flex-direction: column;
         max-height: 85vh;
     }

     .controls-panel {
         width: 100%;
         max-height: 250px;
     }

     .preview-panel {
         min-height: 250px;
     }

     .area-selector {
         top: 0.5rem;
         left: 0.5rem;
         max-width: 120px;
     }

     .area-btn {
         padding: 0.375rem 0.5rem;
         font-size: 0.75rem;
     }

     .zoom-controls {
         bottom: 0.5rem;
         right: 0.5rem;
         padding: 0.25rem;
     }

     .zoom-btn {
         padding: 0.25rem 0.5rem;
         font-size: 0.7rem;
         min-width: 28px;
     }

     .preview-trigger-btn {
         top: 0.5rem;
         right: 0.5rem;
         padding: 0.3rem 0.5rem;
         font-size: 0.7rem;
     }

     .preview-gallery-main {
         padding: 4.5rem 1rem 1rem;
     }

     .preview-gallery-arrow.prev {
         left: 0.5rem;
     }

     .preview-gallery-arrow.next {
         right: 0.5rem;
     }

     .preview-gallery-img-wrap {
         width: 85vw;
         height: 55vh;
         max-width: 85vw;
     }

     .preview-gallery-img-wrap img {
         max-height: 55vh;
     }

     .preview-gallery-thumb {
         width: 52px;
         height: 52px;
     }
 }

 /* Variant selection error message */
 .variant-selection-error {
     background-color: #fee2e2;
     border: 1px solid #ef4444;
     color: #b91c1c;
     padding: 0.75rem;
     border-radius: 6px;
     margin: 0.75rem 1.25rem;
     font-size: 0.875rem;
     text-align: center;
     animation: slideIn 0.2s ease;
 }

 @keyframes slideIn {
     from {
         opacity: 0;
         transform: translateY(-10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }
