/* FlowBox — Витрина товаров */
/* Дизайн вдохновлён Flowwow: чистый, светлый, с акцентом на фотографии */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f7;
    color: #1a1a2e;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== HEADER ===== */

.flowbox-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #1a1a2e;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 18px;
}

.header-back:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
    color: #e84393;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a2e;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #e84393;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-add-product:hover {
    background: #d63384;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 67, 147, 0.3);
}

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

.btn-add-product:disabled,
.btn-add-bulk:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.bulk-add {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bulk-input {
    width: 52px;
    height: 40px;
    text-align: center;
    border: 1px solid #e0e0e6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #1a1a2e;
    background: white;
    outline: none;
    transition: border-color 0.2s;
    -moz-appearance: textfield;
}

.bulk-input::-webkit-inner-spin-button,
.bulk-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bulk-input:focus {
    border-color: #e84393;
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.1);
}

.btn-add-bulk {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    color: #e84393;
    border: 1px solid #e84393;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-add-bulk:hover {
    background: #fef0f5;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(232, 67, 147, 0.15);
}

.bulk-label {
    font-size: 13px;
    color: #adb5bd;
    font-weight: 500;
}

.bulk-input-pos {
    width: 60px;
}

.bulk-input-pos::placeholder {
    font-size: 11px;
    color: #c0c0c8;
}

/* ===== MAIN ===== */

.flowbox-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

/* ===== PRODUCT CARD ===== */

.product-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Card header with product name */
.product-card-header {
    padding: 28px 32px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.product-name-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.product-position {
    font-size: 14px;
    font-weight: 700;
    color: white;
    background: #e84393;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: -0.3px;
    flex: 1;
    min-width: 0;
}

.product-name-input {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: -0.3px;
    border: none;
    border-bottom: 2px solid #e84393;
    background: transparent;
    outline: none;
    width: 100%;
    font-family: inherit;
    padding: 0 0 4px;
}

.product-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    background: #f5f5f7;
    color: #6c757d;
}

.btn-icon:hover {
    background: #eee;
    color: #1a1a2e;
}

.btn-icon.btn-move {
    color: #6c757d;
    width: 30px;
    height: 30px;
    font-size: 14px;
    border-radius: 8px;
    background: transparent;
}

.btn-icon.btn-move:hover:not(:disabled) {
    background: #f0f0f2;
    color: #e84393;
}

.btn-icon.btn-move:disabled {
    opacity: 0.2;
    cursor: default;
}

.btn-icon.btn-edit {
    color: #e84393;
}

.btn-icon.btn-edit:hover {
    background: #fce4f0;
    color: #d63384;
}

.btn-icon.btn-delete {
    color: #dc3545;
}

.btn-icon.btn-delete:hover {
    background: #fde8ea;
    color: #b02a37;
}

.btn-icon.btn-save {
    color: #198754;
    background: #e8f5e9;
}

.btn-icon.btn-save:hover {
    background: #c8e6c9;
    color: #146c43;
}

.btn-icon.btn-cancel {
    color: #6c757d;
}

.btn-icon.btn-cancel:hover {
    background: #e9ecef;
}

/* ===== PHOTO GALLERY ===== */

.product-gallery {
    padding: 24px 32px;
}

.gallery-grid {
    display: grid;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}

/* Layout depends on number of photos */
.gallery-grid[data-count="1"] {
    grid-template-columns: 1fr;
}

.gallery-grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
}

.gallery-grid[data-count="3"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.gallery-grid[data-count="3"] .gallery-item:first-child {
    grid-row: 1 / 3;
}

.gallery-grid[data-count="4"] {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.gallery-grid[data-count="4"] .gallery-item:first-child {
    grid-row: 1 / 3;
}

.gallery-grid[data-count="5"] {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.gallery-grid[data-count="5"] .gallery-item:first-child {
    grid-row: 1 / 3;
    grid-column: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f2;
    min-height: 200px;
}

.gallery-grid[data-count="1"] .gallery-item {
    min-height: 500px;
    max-height: 650px;
}

.gallery-grid[data-count="2"] .gallery-item {
    min-height: 380px;
}

.gallery-grid:not([data-count="1"]):not([data-count="2"]) .gallery-item:first-child {
    min-height: 400px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* Drag handle for reordering */
.gallery-item .photo-drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: grab;
    z-index: 5;
    transition: all 0.2s;
}

.product-card.editing .gallery-item .photo-drag-handle {
    display: flex;
}

.gallery-item .photo-drag-handle:hover {
    background: rgba(232, 67, 147, 0.8);
    transform: scale(1.1);
}

.gallery-item .photo-drag-handle:active {
    cursor: grabbing;
}

/* Drag states */
.gallery-item.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.gallery-item.drag-over {
    outline: 3px solid #e84393;
    outline-offset: -3px;
}

.gallery-item.drag-over::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(232, 67, 147, 0.15);
    z-index: 4;
    pointer-events: none;
}

.gallery-item .photo-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    z-index: 5;
}

.product-card.editing .gallery-item .photo-delete-btn,
.product-card.editing .slider-thumb .photo-delete-btn {
    display: flex;
}

.gallery-item .photo-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

/* ===== SLIDER GALLERY ===== */

.slider-gallery {
    border-radius: 16px;
    overflow: hidden;
}

.slider-main {
    position: relative;
    width: 100%;
    background: #f0f0f2;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.slider-main-media {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a2e;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav:hover {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev {
    left: 16px;
}

.slider-next {
    right: 16px;
}

.slider-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 5;
}

.slider-thumbs-wrap {
    padding: 10px 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.slider-thumbs-wrap::-webkit-scrollbar {
    height: 4px;
}

.slider-thumbs-wrap::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.slider-thumbs {
    display: flex;
    gap: 8px;
    width: max-content;
}

.slider-thumb {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #f0f0f2;
}

.slider-thumb.active {
    border-color: #e84393;
    box-shadow: 0 0 0 2px rgba(232, 67, 147, 0.2);
}

.slider-thumb:hover:not(.active) {
    border-color: #ccc;
}

.slider-thumb img,
.slider-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-thumb .thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 20px;
}

.slider-thumb .photo-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
    z-index: 5;
}

.slider-thumb .photo-delete-btn:hover {
    background: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.slider-thumb .photo-drag-handle {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 5;
}

.product-card.editing .slider-thumb .photo-drag-handle {
    display: flex;
}

.slider-thumb.dragging {
    opacity: 0.4;
    transform: scale(0.9);
}

.slider-thumb.drag-over {
    outline: 2px solid #e84393;
    outline-offset: -2px;
}

/* Upload zone */
.photo-upload-zone {
    display: none;
    border: 2px dashed #d1d5db;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    background: #fafafa;
}

.product-card.editing .photo-upload-zone {
    display: block;
}

.photo-upload-zone:hover {
    border-color: #e84393;
    background: #fef0f5;
}

.photo-upload-zone.dragover {
    border-color: #e84393;
    background: #fce4f0;
    transform: scale(1.01);
}

.upload-icon {
    font-size: 36px;
    color: #c0c0c8;
    margin-bottom: 12px;
}

.upload-text {
    font-size: 15px;
    color: #6c757d;
    font-weight: 500;
}

.upload-hint {
    font-size: 13px;
    color: #adb5bd;
    margin-top: 6px;
}

.photo-upload-zone input[type="file"] {
    display: none;
}

/* Collage upload zone */
.collage-upload-zone {
    display: none;
    border: 2px dashed #a29bfe;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    background: #f8f7ff;
}

.product-card.editing .collage-upload-zone {
    display: block;
}

.collage-upload-zone:hover {
    border-color: #6c5ce7;
    background: #eee8ff;
}

.collage-upload-zone .upload-icon {
    color: #a29bfe;
}

.collage-upload-zone:hover .upload-icon {
    color: #6c5ce7;
}

.collage-upload-zone input[type="file"] {
    display: none;
}

/* ===== COMPOSITION / DESCRIPTION ===== */

.product-description {
    padding: 0 32px 28px;
}

.description-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #adb5bd;
    margin-bottom: 10px;
}

.description-text {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    white-space: pre-wrap;
}

.description-textarea {
    width: 100%;
    min-height: 120px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    border: 1px solid #e0e0e6;
    border-radius: 12px;
    padding: 14px 16px;
    resize: vertical;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}

.description-textarea:focus {
    border-color: #e84393;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.1);
}

/* Separator between cards */
.product-card + .product-card {
    margin-top: 48px;
}

.product-card + .product-card::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #e84393, #fd79a8);
    border-radius: 2px;
    margin: -24px auto 24px;
}

/* ===== EMPTY STATE ===== */

.empty-state {
    text-align: center;
    padding: 120px 24px;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 600;
    color: #adb5bd;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 16px;
    color: #c0c0c8;
}

/* ===== LIGHTBOX ===== */

.photo-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.photo-lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* ===== LOADING ===== */

.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 60px;
}

.loading-spinner::after {
    content: '';
    width: 36px;
    height: 36px;
    border: 3px solid #eee;
    border-top-color: #e84393;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Photo upload progress overlay */
.photo-uploading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.photo-uploading::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid #eee;
    border-top-color: #e84393;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .header-inner {
        padding: 0 16px;
    }

    .header-actions {
        gap: 8px;
    }

    .btn-add-product span,
    .btn-add-bulk span {
        display: none;
    }

    .btn-add-product,
    .btn-add-bulk {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 12px;
        justify-content: center;
    }

    .bulk-input {
        width: 44px;
        height: 36px;
        font-size: 13px;
    }

    .flowbox-main {
        padding: 20px 12px 60px;
    }

    .product-card-header {
        padding: 20px 20px 0;
    }

    .product-name,
    .product-name-input {
        font-size: 22px;
    }

    .product-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .product-position {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .bulk-label {
        display: none;
    }

    .product-gallery {
        padding: 16px 20px;
    }

    .product-description {
        padding: 0 20px 20px;
    }

    .gallery-grid[data-count="3"],
    .gallery-grid[data-count="4"],
    .gallery-grid[data-count="5"] {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-grid[data-count="3"] .gallery-item:first-child,
    .gallery-grid[data-count="4"] .gallery-item:first-child,
    .gallery-grid[data-count="5"] .gallery-item:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery-grid[data-count="1"] .gallery-item {
        min-height: 300px;
        max-height: 450px;
    }

    .gallery-grid[data-count="2"] .gallery-item {
        min-height: 200px;
    }

    .gallery-grid:not([data-count="1"]):not([data-count="2"]) .gallery-item:first-child {
        min-height: 250px;
    }

    .gallery-item {
        min-height: 150px;
    }

    .photo-upload-zone {
        padding: 24px;
    }

    .slider-main {
        aspect-ratio: 1 / 1;
    }

    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    .slider-thumb {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 480px) {
    .gallery-grid[data-count="2"] {
        grid-template-columns: 1fr;
    }
}

/* ===== CONFIRM DELETE MODAL ===== */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.confirm-dialog {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.confirm-dialog h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.confirm-dialog p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 24px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-confirm-cancel {
    background: #f0f0f2;
    color: #6c757d;
}

.btn-confirm-cancel:hover {
    background: #e5e5e9;
}

.btn-confirm-delete {
    background: #dc3545;
    color: white;
}

.btn-confirm-delete:hover {
    background: #b02a37;
}

/* ===== COLLAGE PREVIEW ===== */

.collage-preview-dialog {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 520px;
    width: 92%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.2s ease;
}

.collage-preview-dialog h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.collage-preview-dialog p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
}

.collage-grid-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.collage-cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: grab;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #f0f0f2;
}

.collage-cell:hover {
    border-color: #e84393;
}

.collage-cell.dragging {
    opacity: 0.4;
    transform: scale(0.95);
}

.collage-cell.drag-over {
    border-color: #e84393;
    box-shadow: 0 0 0 3px rgba(232, 67, 147, 0.2);
}

.collage-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-cell-num {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
