        .tab-navigation {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .error-message {
            color: #ff3860;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .field-error {
            border-color: #ff3860 !important;
        }

        .disabled-tab {
            pointer-events: none;
            opacity: 0.6;
        }


        /* Loading state */
        .loading-dropdown {
            position: relative;
        }

        .loading-dropdown::after {
            content: "";
            position: absolute;
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            border: 2px solid #f3f3f3;
            border-top: 2px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: translateY(-50%) rotate(0deg);
            }

            100% {
                transform: translateY(-50%) rotate(360deg);
            }
        }

        /* Attribute data styling */
        #get_attributedata {
            border-top: 1px solid #e1e5e9;
            padding-top: 20px;
            margin-top: 20px;
        }

        #get_attributedata h4 {
            color: #333;
            margin-bottom: 15px;
            font-size: 16px;
            font-weight: 600;
        }

        .upload-box {
            border: 2px dashed #aaa;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            background-color: #f9f9f9;
            transition: 0.3s;
        }

        .upload-box:hover {
            background-color: #f0f0f0;
        }

        .upload-box.dragover {
            border-color: #2196f3;
            background-color: #e3f2fd;
        }

        .preview-container {
            display: flex;
            flex-wrap: wrap;
            margin-top: 10px;
            gap: 10px;
        }

        .preview-container img,
        .preview-container video {
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 8px;
            border: 1px solid #ccc;
        }

        /* Add loading animation */
        .gallery-image-preview.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 30px;
            height: 30px;
            border: 3px solid #f3f3f3;
            border-top: 3px solid #3498db;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: translate(-50%, -50%) rotate(0deg);
            }

            100% {
                transform: translate(-50%, -50%) rotate(360deg);
            }
        }

        /* Add these styles to your existing CSS */
        .main-image-preview-container {
            width: 100%;
            min-height: 200px;
            border: 2px dashed #ddd;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }

        .main-image-preview-container img {
            max-width: 100%;
            object-fit: contain;
        }

        .main-image-preview-container .delete-preview {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: rgba(255, 0, 0, 0.7);
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            z-index: 2;
            transition: background 0.3s ease;
        }

        .main-image-preview-container .delete-preview:hover {
            background: rgba(255, 0, 0, 0.9);
        }

        .main-image-preview-container .placeholder-text {
            color: #666;
            text-align: center;
            padding: 20px;
        }

        /* Add these styles to your existing CSS */

        .suggestions-container {
            margin-top: 15px;
        }

        .suggested-image {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .suggested-image:hover {
            transform: scale(1.05);
        }

        .suggested-description {
            background: #f8f9fa;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 10px;
            font-size: 14px;
            color: #666;
        }

        .suggested-description h4 {
            font-size: 16px;
            margin-bottom: 8px;
            color: #333;
        }

        .suggested-description p {
            margin: 0;
            line-height: 1.4;
        }

        .wrap-checkbox {
            padding-left: 1.5rem;
        }

        .checkbox-item {
            margin-top: 0.2rem;
        }

        .body-text {
            font-size: 1.35rem !important;
            color: #333;
            font-weight: 400 !important;
        }

        .variant-container {
            display: flex;
            align-items: flex-start;
            margin: 20px 0;
        }

        .variant-label {
            width: 200px;
            font-weight: bold;
            padding: 10px;
        }

        .checkbox-scroll-box {
            max-height: 250px;
            overflow-y: auto;
            border: 1px solid #ccc;
            padding: 10px;
            width: 100%;
            /* background: #fafafa; */
            border-radius: 12px;
        }

        .checkbox-scroll-box ul {
            list-style: none;
            padding-left: 0;
            margin: 0;
        }

        .checkbox-scroll-box li {
            margin-bottom: 8px;
        }

        .checkbox-scroll-box li:last-child {
            margin-bottom: 0;
        }

        .checkbox-scroll-box input[type="checkbox"] {
            margin-right: 6px;
        }

        .variant-collapse-btn {
            background-color: #9543fd;
            ;
            /* Light purple from image */
            border: none;
            color: #333;
            padding: 12px 20px;
            border-radius: 12px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid #9747fd;
            color: #fff;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .variant-collapse-btn:hover {
            background-color: rgb(255, 255, 255);
            color: #9747fd;
        }

        .variant-collapse-btn[aria-expanded="true"] {
            background-color: #9747fd;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border: 1px solid #9747fd;
            color: #fff;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .attr-selection-wrapper {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            padding: 15px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
        }

        .attr-search-container .input-group {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            border: 1px solid #e2e8f0;
        }

        .attr-search-container .input-group-text {
            border: none;
            color: #94a3b8;
            padding-left: 12px;
        }

        .attr-search-container .attr-filter-input {
            border: none !important;
            padding: 10px 12px !important;
            font-size: 13px !important;
        }

        .attr-search-container .attr-filter-input:focus {
            box-shadow: none !important;
        }

        .scrollable-chips {
            max-height: 200px;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 5px;
        }

        /* Premium Scrollbar */
        .scrollable-chips::-webkit-scrollbar {
            width: 6px;
        }

        .scrollable-chips::-webkit-scrollbar-track {
            background: transparent;
        }

        .scrollable-chips::-webkit-scrollbar-thumb {
            background: #e2e8f0;
            border-radius: 10px;
        }

        .scrollable-chips::-webkit-scrollbar-thumb:hover {
            background: #cbd5e1;
        }

        .custom-chip-checkbox {
            position: relative;
        }

        .custom-chip-checkbox input[type="checkbox"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }

        .custom-chip-checkbox label {
            display: inline-block;
            padding: 6px 14px;
            background-color: #f8fafc;
            color: #64748b;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px !important;
            font-weight: 500;
            transition: all 0.2s ease;
            margin-bottom: 0;
            user-select: none;
            white-space: nowrap;
        }

        .custom-chip-checkbox input[type="checkbox"]:checked+label {
            background-color: #f1f5f9;
            color: #9747fd;
            border-color: #9747fd;
            box-shadow: 0 0 0 1px #9747fd;
        }

        .custom-chip-checkbox label:hover {
            border-color: #9747fd;
            color: #9747fd;
            background-color: #f1f5f9;
        }

        .attr-row {
            border-bottom: 1px solid #f8fafc;
            padding-bottom: 20px;
            margin-bottom: 20px !important;
        }

        .attr-row:last-child {
            border-bottom: none;
        }

        .attr-row p {
            font-weight: 600 !important;
            color: #334155;
            margin-bottom: 10px;
            font-size: 16px !important;
        }

        /* Media Upload Improved UI */
        .suggestion-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            margin-bottom: 15px;
        }

        .suggestion-card.clickable {
            cursor: pointer;
        }

        .suggestion-card.clickable:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            border-color: #9747fd;
        }

        .suggestion-img-wrapper {
            position: relative;
            padding-top: 75%;
            /* 4:3 Aspect Ratio */
            background: #f8fafc;
            overflow: hidden;
        }

        .suggestion-img-wrapper img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 10px;
        }

        .suggestion-info {
            padding: 10px;
            background: #fff;
            border-top: 1px solid #f1f5f9;
            flex-grow: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
        }

        .suggestion-info p {
            margin: 0;
            font-size: 13px;
            color: #475569;
            font-weight: 500;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .upload-zone-card {
            background: #ffffff;
            border: 2px dashed #e2e8f0;
            border-radius: 16px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .upload-zone-card:hover {
            border-color: #9747fd;
            background: #fdfaff;
        }

        .upload-zone-card i {
            font-size: 40px;
            color: #9747fd;
            margin-bottom: 15px;
            display: block;
        }

        .media-section-title {
            font-size: 17px;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        hr.opacity-10 {
            opacity: 0.1;
            border-top: 1px solid #000;
        }

        .media-section-title i {
            color: #9747fd;
        }

        .media-suggestion-box {
            height: 355px;
            /* Fixed height for symmetry */
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: #f8fafc;
            border-radius: 12px;
            padding: 20px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }

        .suggestions-scroll-area {
            flex-grow: 1;
            overflow-y: auto;
            padding-right: 8px;
            margin-top: 10px;
        }

        /* Customize scrollbar */
        .suggestions-scroll-area::-webkit-scrollbar {
            width: 5px;
        }

        .suggestions-scroll-area::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .suggestion-details-box {
            background: #fdfaff;
            border: 1px solid #e9d5ff;
            border-radius: 7px;
            padding: 15px;
        }

        /* Prevent focus outlines/shadows */
        .form-control:focus,
        .form-select:focus,
        .tf-button:focus,
        button:focus,
        input:focus,
        textarea:focus,
        a:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        .suggestion-details-box label {
            color: #7c3aed;
            font-weight: 600;
        }

        .gallery-container {
            background-color: #ffffff !important;
            border: 2px dashed #e2e8f0 !important;
            border-radius: 16px !important;
            padding: 20px !important;
        }

        .gallery-preview-scroll {
            max-height: 450px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-right: 10px;
        }

        /* Clean scrollbar for gallery */
        .gallery-preview-scroll::-webkit-scrollbar {
            width: 6px;
        }

        .gallery-preview-scroll::-webkit-scrollbar-track {
            background: #f1f5f9;
            border-radius: 10px;
        }

        .gallery-preview-scroll::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 10px;
        }

        .gallery-preview-scroll::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .main-image-preview-container {
            border: 2px dashed #e2e8f0 !important;
            background: #f8fafc !important;
            border-radius: 12px !important;
            min-height: 150px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .gallery-image-preview {
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            background: #f8fafc;
            aspect-ratio: 1/1;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .gallery-image-preview:hover {
            border-color: #9747fd;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .gallery-image-preview img,
        .gallery-image-preview video {
            width: 100%;
            height: 100%;
            object-fit: contain !important;
        }

        .delete-preview {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 22px;
            height: 22px;
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 15px;
            font-weight: bold;
            z-index: 10;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            padding: 0;
            line-height: 1;
        }

        .delete-preview:hover {
            background: #ef4444;
            transform: scale(1.1);
        }