.woo-crud-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.woo-crud-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.woo-crud-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Tabs */
.product-tabs {
    margin-bottom: 30px;
}

.tab-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ddd;
    flex-wrap: wrap;
}

.tab-nav li {
    margin-right: 5px;
}

.tab-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s;
}

.tab-nav li.active a {
    background: white;
    color: #D97536;
    font-weight: 600;
    border-color: #ddd;
    margin-bottom: -2px;
    border-bottom: 2px solid white;
}

.tab-nav a:hover {
    background: #fff;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Opciones de tipo de producto */
.product-type-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-inline input {
    cursor: pointer;
    width: auto;
}

/* Dimensiones */
.dimensions-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

/* Categorías con checkboxes */
.categories-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.checkbox-label {
    display: block;
    padding: 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: #fff;
    padding-left: 10px;
}

.checkbox-label input {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

/* Atributos */
.attribute-item {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 10px;
    margin-bottom: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    align-items: center;
}

.attribute-item input {
    margin: 0;
}

.attribute-item .remove-attr {
    padding: 8px 12px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.attribute-item .remove-attr:hover {
    background: #c82333;
}

#add-attribute {
    margin-top: 10px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.form-group small a {
    color: #D97536;
    text-decoration: none;
}

.form-group small a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #D97536;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 10px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #D97536;
    color: white;
}

.btn-primary:hover {
    background: #C16629;
}

.btn-secondary {
    background: white;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Mensajes */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
}

/* Lista de productos */
.woo-crud-list {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.woo-crud-list h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.products-table thead {
    background: #f8f9fa;
}

.products-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.products-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}

.products-table tbody tr:hover {
    background: #f8f9fa;
}

.products-table td img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    vertical-align: middle;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    transition: all 0.3s;
}

.btn-edit {
    background: #D97536;
    color: white;
}

.btn-edit:hover {
    background: #C16629;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
}

/* Previsualización de imágenes */
.image-preview,
.gallery-preview {
    margin-top: 15px;
}

.image-item {
    position: relative;
    display: inline-block;
    margin-right: 10px;
}

.image-item img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    position: relative;
    display: inline-block;
}

.gallery-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: #dc3545;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.remove-image:hover {
    background: #c82333;
    transform: scale(1.1);
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #D97536;
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .woo-crud-container {
        padding: 10px;
    }
    
    .woo-crud-form,
    .woo-crud-list {
        padding: 20px;
    }
    
    .products-table {
        font-size: 13px;
    }
    
    .products-table th,
    .products-table td {
        padding: 8px;
    }
}