.admin-container {
    max-width: 900px;
    margin: 50px auto;
}

.product-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}

.product-form input,
.product-form textarea {
    padding: 10px;
    border: 1px solid #ddd;
}

.product-form button {
    background: black;
    color: white;
    padding: 12px;
    border: none;
    cursor: pointer;
}

.admin-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.admin-card {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
}

.admin-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.admin-card h3 {
    margin: 10px 0 5px;
}

.admin-card p {
    font-size: 13px;
    color: #555;
}

.admin-card strong {
    display: block;
    margin: 10px 0;
}

.admin-card form,
.admin-card a {
    width: 100%;
}

.admin-card button {
    width: 100%;
    margin-top: 8px;
    padding: 10px;
}

.reorder-buttons {
    display: flex;
    gap: 10px;
}

.reorder-buttons form {
    flex: 1;
}

.edit-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.edit-image-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    cursor: grab;
}

.edit-image-card:active {
    cursor: grabbing;
}

.edit-image-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.edit-image-card:hover img {
    transform: scale(1.03);
}

.edit-image-card:hover .delete-btn {
    opacity: 1;
}

.delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: .2s;
}

.delete-btn input {
    display: none;
}

.delete-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.delete-btn input:checked+* {
    background: red;
}

.delete-btn input:checked~img,
.edit-image-card input:checked~img {
    opacity: 0.5;
}

.edit-product {
    max-width: 900px;
}

.admin-section {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
}

.admin-section h3 {
    margin: 0 0 18px;
    font-size: 18px;
}

.product-options {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-top: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section-header span {
    color: #777;
    font-size: 13px;
}

.save-btn {
    margin-top: 10px;
    height: 54px;
    font-size: 17px;
    font-weight: 600;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 26px;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.main-image-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #111;
    color: white;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
}

.upload-box {
    display: flex;
    gap: 15px;
    align-items: center;
}

.upload-box input[type=file] {
    flex: 1;
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-actions button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: white;
    color: #111;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.card-content {
    padding: 18px;
    text-align: center;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    min-height: 55px;
    color: #666;
}

.card-content strong {
    display: block;
    margin-top: 14px;
    font-size: 22px;
}

.card-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px;
}

.btn-light {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
    border: 1px solid #111;
    color: #111;
    text-decoration: none;
    border-radius: 10px;
}

.btn-danger {
    height: 44px;
    background: #111;
    color: white;
    border-radius: 10px;
}

.choose-files {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    border: 1px solid #111;
    border-radius: 10px;
    cursor: pointer;
}