/* --- Constructor (Module 16) --- */
.constructor-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-4); }
@media (min-width: 900px) { .constructor-layout { grid-template-columns: 1fr 1fr; } }
.constructor-controls { background: var(--color-bg-card-alt); padding: var(--space-4); border-radius: var(--radius-md); }
.control-group { margin-bottom: var(--space-4); }
.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.c-option input[type="radio"] { display: none; }
.c-option span { display: block; text-align: center; padding: 10px; border: 2px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; transition: 0.2s; font-size: var(--text-sm); }
.c-option input[type="radio"]:checked + span { border-color: var(--color-primary); box-shadow: 0 0 0 1px var(--color-primary); }

.constructor-preview-pane { display: flex; flex-direction: column; }
.c-preview-canvas { flex-grow: 1; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none" stroke="%23eee" stroke-width="1"/></svg>'); background-color: #fafafa; border: 1px solid var(--color-border); border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 20px; position: relative; min-height: 400px; overflow: hidden; }

/* Камень (Стилизация) */
.c-layer { transition: all 0.3s ease; box-shadow: 2px 2px 10px rgba(0,0,0,0.3); }

/* Цвета камня */
.c-material-gabbro { background: linear-gradient(135deg, #333 0%, #111 100%); color: #fff; }
.c-material-koelga { background: linear-gradient(135deg, #fefefe 0%, #dcdcdc 100%); color: #333; border: 1px solid #ccc; }
.c-material-dymovsky { background: linear-gradient(135deg, #8a5a54 0%, #4a2c28 100%); color: #fff; }

/* Форма Стелы */
.c-stela { width: 140px; height: 250px; position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; padding-top: 20px; }
.c-stela.classic { border-radius: 4px; }
.c-stela.wave { border-radius: 4px 60px 4px 4px; }
.c-stela.sail { border-radius: 100px 100px 4px 4px; }

/* Тумба */
.c-stand { width: 180px; height: 30px; margin-top: -5px; z-index: 2; border-radius: 2px; }

/* Цветник */
.c-base { width: 160px; height: 40px; margin-top: -5px; z-index: 1; transform: perspective(300px) rotateX(60deg); transform-origin: top; border: 15px solid transparent; }
.c-base.open { border-top-color: transparent !important; } /* Center is empty */
.c-base.half { background: linear-gradient(to bottom, currentColor 50%, transparent 50%); } /* Half closed */
.c-base.closed { background: currentColor; }

/* Гравировки */
.c-engraving { text-align: center; opacity: 0.8; transition: opacity 0.2s; line-height: 1.2; }
.c-material-gabbro .c-engraving { color: #f0f0f0; } /* Светлая гравировка на темном */
.c-material-koelga .c-engraving { color: #222; } /* Темная гравировка на белом */
.c-material-dymovsky .c-engraving { color: #eecda3; } /* Золотистая/светлая на коричневом */

.c-cross { font-size: 24px; margin-bottom: 5px; }
.c-portrait { font-size: 40px; margin-bottom: 10px; background: rgba(255,255,255,0.1); border-radius: 5px; padding: 5px; }
.c-text { font-size: 10px; font-weight: bold; }
.c-flowers { font-size: 20px; margin-top: 15px; }

.c-summary { margin-top: var(--space-4); background: var(--color-bg-card); padding: var(--space-4); border-radius: var(--radius-md); text-align: center; }
.c-price { font-size: var(--heading-2); font-weight: bold; color: var(--color-primary); margin-bottom: var(--space-3); }
