html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

main {
    padding-top: 40px;
    padding-bottom: 40px;
}

.category-img {
    height: 250px;
    object-fit: cover;
}

.category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
    }

.image-dropzone {
    border: 2px dashed #4caf50;
    border-radius: 6px;
    padding: 30px 15px;
    text-align: center;
    color: #6c757d;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .image-dropzone.dragover {
        background-color: #f1f8f2;
        border-color: #2e7d32;
        color: #2e7d32;
    }

.image-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    cursor: grab;
    background: #f8f9fa;
}

    .image-preview-item.dragging {
        opacity: 0.4;
    }

    .image-preview-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

.image-preview-order {
    position: absolute;
    left: 6px;
    bottom: 6px;
    background: rgba(33, 37, 41, 0.75);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 4px;
}

.image-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    cursor: pointer;
}

    .image-preview-remove:hover {
        background: #c62828;
    }

.img-hover-wrap {
    position: relative;
    overflow: hidden;
}

    .img-hover-wrap .category-img {
        width: 100%;
        display: block;
        transition: opacity 0.3s ease-in-out;
    }

    .img-hover-wrap .img-hover {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
    }

.category-card:hover .img-hover {
    opacity: 1;
}

.category-card:hover .img-default {
    opacity: 0;
}

.product-image-box {
    width: 100%;
    height: 650px;
    background: #fff;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.product-main-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: .3s;
}

.thumb-item {
    width: 90px;
    height: 90px;
    padding: 8px;
    background: white;
    object-fit: contain;
    border-radius: 15px;
    cursor: pointer;
    transition: .25s;
    border: 2px solid transparent;
}

    .thumb-item:hover {
        transform: scale(1.05);
    }

    .thumb-item.active {
        border-color: black;
    }

.profile-hover-effect {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .profile-hover-effect:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
