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

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

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

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

         /* Gallery styles */
         .gallery-container {
            background-color: #f8f9fa;
            margin-top: 20px;
        }

        .gallery-image-preview {
            position: relative;
            padding-bottom: 100%;
            /* Creates a square aspect ratio */
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            margin: 4px;
        }

        .gallery-image-preview:hover {
            transform: scale(1.02);
        }

        .gallery-image-preview img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .gallery-container {
                padding: 10px;
            }

            .gallery-image-preview {
                margin-bottom: 10px;
            }
        }

        @media (max-width: 576px) {
            .gallery-image-preview {
                padding-bottom: 75%;
                /* Slightly shorter on mobile */
            }
        }

        /* 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 these styles to your existing CSS */
        .gallery-image-preview {
            position: relative;
            padding-bottom: 100%;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            margin-bottom: 15px;
        }

        .gallery-image-preview img,
        .gallery-image-preview video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .delete-preview {
            position: absolute;
            top: 5px;
            right: 5px;
            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: 18px;
            z-index: 2;
            transition: background 0.3s ease;
            padding: 8px;
        }

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

        .gallery-image-preview:hover {
            transform: scale(1.02);
        }

        /* 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%;
            max-height: 300px;
            object-fit: contain;
        }

        .main-image-preview-container .delete-preview {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 30px;
            height: 30px;
            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: 20px;
            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 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;
        }