.lookbook-wrap { max-width: 1400px; margin: 20px 0; }
.lookbook-category { border: 1px solid #ccd0d4; background: #fff; margin: 20px 0; padding: 20px; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.lookbook-category h3 { margin: 0 0 20px 0; padding-bottom: 10px; border-bottom: 1px solid #ddd; display: flex; align-items: center; gap: 10px; }
.lookbook-category-name { font-size: 18px; font-weight: 600; color: #23282d; border: none; border-bottom: 1px solid transparent; padding: 4px 8px; max-width: 350px; }
.lookbook-category-name:focus { outline: none; border-bottom: 1px solid #0073aa; background-color: #f0f6fc; }
.lookbook-items-sortable { list-style: none; margin: 0; padding: 0; }

/* --- Item Layout using CSS Grid --- */
.lookbook-item {
  background: #fdfdfd; border: 1px solid #ddd; padding: 20px 15px; margin: 10px 0; border-radius: 4px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 10px 25px;
  align-items: start;
}
.item-main-controls       { grid-column: 1; grid-row: 1; }
.main-image-controls      { grid-column: 2; grid-row: 1; }
.additional-image-controls{ grid-column: 3; grid-row: 1; }
.main-image-preview-area  { grid-column: 2; grid-row: 2; }
.additional-image-preview-area { grid-column: 3; grid-row: 2; }

/* --- Item Components Styling --- */
.item-main-controls { display: flex; align-items: center; gap: 10px; }
.lookbook-item-handle { width: 30px; height: 30px; background: #f0f0f1; color: #50575e; text-align: center; line-height: 30px; border-radius: 4px; cursor: grab; flex-shrink: 0; font-size: 20px; border: 1px solid #ddd; }
.lookbook-item-name { width: 180px; }
.lookbook-delete-item { color: #d63638; text-decoration: none; font-size: 20px; line-height: 1; }
.main-image-controls .button { width: 100%; box-sizing: border-box; }
.image-preview-wrapper { position: relative; display: inline-block; }
.image-preview-wrapper img { height: 100%; width: 100%; border-radius: 4px; border: 1px solid #ddd; background-color: #fff; display: block; }
.thumb-preview img { object-fit: contain; }
.additional-preview img { object-fit: cover; }

.remove-image-btn {
  position: absolute; top: -8px; right: -8px; background: #d63638; color: white; border: 2px solid white;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2); border-radius: 50%; width: 22px; height: 22px;
  cursor: pointer; opacity: 0; transition: opacity 0.2s; font-weight: bold; padding: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.image-preview-wrapper:hover .remove-image-btn { opacity: 1; }

.thumb-preview { display: flex; width: 180px; aspect-ratio: 3 / 2; }
.additional-preview { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; }
.thumb-preview, .additional-preview { align-items: center; justify-content: center; padding: 10px; border: 1px dashed #ccc; border-radius: 4px; background-color: #fff; min-height: 120px; }
.additional-preview .image-preview-wrapper { cursor: move; height: 80px; width: auto; flex-shrink: 0; }

.lookbook-shortcode-area { background: #f8f9fa; padding: 15px; margin: 20px 0; border: 1px solid #ddd; border-radius: 4px; max-width: 50%; }
.save-button-wrapper { position: relative; }
.inline-notification {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background-color: #28a745; color: white; padding: 5px 10px; border-radius: 4px;
  font-size: 12px; z-index: 10; opacity: 0; transition: all 0.3s;
  white-space: nowrap; pointer-events: none;
}
.inline-notification.show { opacity: 1; bottom: calc(100% + 5px); }
.button-group label { display: block; margin-bottom: 5px; font-weight: 600; }