.tile-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 1rem 0;
}

.category-tile {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    border: 0.5px solid rgba(0,0,0,0.12);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.18s;
}

    .category-tile:hover {
        transform: scale(1.05);
    }

    .category-tile img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .category-tile .label {
        position: relative;
        z-index: 1;
        width: 100%;
        text-align: center;
        padding: 6px 4px;
        font-size: 18px;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    }

@media (max-width: 480px) {
    .category-tile {
        width: 90px;
        height: 90px;
    }

        .category-tile .label {
            font-size: 10px;
        }
}
/* Smaller devices — shrink tiles slightly */
@media (max-width: 480px) {
    .category-tile {
        width: 90px;
        height: 90px;
    }

        .category-tile span {
            font-size: 11px;
        }
}

.filter-total {
    color: #9e9e9e;
    margin-left: 5px;
}

.primary-color {
    color: var(--bs-primary);
}

.ad-date {
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    margin-left: 16px;
}

.ml-badge {
    font-size: 14px;
    font-weight: 400 !important;
    border: 1px solid var(--bs-primary);
    background-color: transparent !important;
    color: var(--bs-primary);
}

.inline-label {
    width: 120px;
    text-align: right;
}

.w-120 {
    width: 120px;
}

.form .nice-select {
    z-index: auto !important;
    width: 24rem !important;
}

    .form .nice-select .list {
        width: 24rem !important;
    }

/* Show scrollbar for webkit browsers (Chrome, Safari, Edge) */
.nice-select .list::-webkit-scrollbar {
    width: 6px;
}

.nice-select .list::-webkit-scrollbar-track {
    background: transparent;
}

.nice-select .list::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

    .nice-select .list::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

/* Firefox */
.nice-select .list {
    scrollbar-width: thin;
    scrollbar-color: #666 transparent;
}

.nice-select .list {
    overflow-y: auto; /* Changed from scroll to auto */
    /* rest of your styles */
}

.quantity-input {
    width: 80% !important;
}

.price-qty {
    position: absolute;
    left: 160px;
    bottom: 10px;
}

.price-qty-2 {
    position: absolute;
    left: 290px;
    bottom: 10px;
}

.h-110 {
    height: 110px;
}

.form__input--2 {
    height: 3.5rem !important;
}

.form__input {
    background-color: #2e2e2e !important;
}

.form .shop-toolbar .product-short {
    display: flex;
    align-items: flex-start; /* Align to top */
    width: 100%;
    gap: 1.5rem;
}

    .form .shop-toolbar .product-short .select-label {
        flex: 0 0 120px; /* Fixed width, don't grow/shrink */
        text-align: right;
        padding-top: 0.5rem; /* Align with textarea top */
    }

    .form .shop-toolbar .product-short textarea {
        flex: 1; /* Take remaining space */
    }

.with-subtext {
    margin-bottom: 20px;
}

.subtext {
    position: absolute;
    left: 160px;
    bottom: 5px;
}


/* Container layout styling */
.upload-section {
    font-family: sans-serif;
    padding: 20px;
}

.upload-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.upload-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Styled Container Box */
.upload-box {
    width: 140px;
    height: 100px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: #2e2e2e;
    overflow: hidden;
}

    .upload-box:hover {
        border-color: #999;
    }

/* Hide actual file inputs completely */
.crop-input {
    display: none;
}

/* Plus sign styling */
.plus-icon {
    width: 32px;
    height: 32px;
    background: #ccc;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
    transition: background 0.2s;
}

.upload-box:hover .plus-icon {
    background: #bbb;
}

/* The cropped image within the container box */
.cropped-result {
    display: none; /* hidden until selected */
    position: absolute;
    max-width: 85%; /* leaves spacing so it's not full-width inside the card */
    max-height: 85%;
    object-fit: contain;
    z-index: 1;
}

/* Plus sign styling shift once an image is uploaded */
.upload-box.has-image .plus-icon {
    background: rgba(255, 255, 255, 0.7);
    color: #555;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Eye preview button below the box */
.view-preview-btn {
    display: none; /* hidden until image exists */
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 25px;
    color: var(--bs-primary);
    padding: 0px 7px;
}


/* Modals Setup (Cropper + Lightbox) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#cropModal .modal-content, .lightbox-content {
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    position: relative;
}

.lightbox-content {
    text-align: center;
    max-width: 400px;
}

    .lightbox-content img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
    }

.cropper-wrapper {
    max-height: 350px;
    margin-bottom: 15px;
}

    .cropper-wrapper img {
        display: block;
        max-width: 100%;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.btn-save {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.points {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .points li {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 6px 0;
        line-height: 1.5;
    }

        .points li::before {
            content: '›';
            font-size: 1.2em;
            line-height: 1.4;
            flex-shrink: 0;
            color: var(--bs-primary); /* swap to your theme color */
        }